From 07405673a1a89954cb26690d22336a94fbc369b7 Mon Sep 17 00:00:00 2001 From: Eastman Date: Wed, 12 Jul 2023 11:30:14 +0300 Subject: [PATCH] Generated beta models and request builders (#307) * Update generated files with build 119869 * Update changelog --------- Co-authored-by: Microsoft Graph DevX Tooling Co-authored-by: rkodev <43806892+rkodev@users.noreply.github.com> --- CHANGELOG.md | 7 + admin/admin_request_builder.go | 4 + admin/apps_and_services_request_builder.go | 16 +- admin/dynamics_request_builder.go | 16 +- admin/forms_request_builder.go | 16 +- admin/people_pronouns_request_builder.go | 161 +++++++++++++ admin/people_request_builder.go | 159 +++++++++++++ admin/todo_request_builder.go | 16 +- ...esource_connection_item_request_builder.go | 6 +- ...ts_updatable_asset_item_request_builder.go | 14 +- ..._compliance_change_item_request_builder.go | 6 +- ...tem_participants_invite_request_builder.go | 6 +- ...tings_item_registration_request_builder.go | 8 +- ...n_jobs_item_bulk_upload_request_builder.go | 165 +++++++++++++ ...lk_upload_value_content_request_builder.go | 106 +++++++++ ...rectories_item_discover_request_builder.go | 2 +- ...em_synchronization_jobs_request_builder.go | 4 +- ...ynchronization_job_item_request_builder.go | 4 + ...rectories_item_discover_request_builder.go | 2 +- ...nchronization_templates_request_builder.go | 2 +- ...tem_participants_invite_request_builder.go | 6 +- ...tings_item_registration_request_builder.go | 8 +- ...licies_item_assignments_request_builder.go | 6 +- ..._policy_assignment_item_request_builder.go | 6 +- ...m_items_drive_item_item_request_builder.go | 6 +- ...rkbook_names_item_range_request_builder.go | 6 +- ...ems_item_workbook_names_request_builder.go | 2 +- ...ook_tables_item_columns_request_builder.go | 2 +- ...ms_item_workbook_tables_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 +- ...ers_education_user_item_request_builder.go | 6 +- ...try_data_connector_item_request_builder.go | 6 +- ...ry_data_data_connectors_request_builder.go | 14 +- ...flows_inbound_flow_item_request_builder.go | 8 +- 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 | 14 +- ..._item_in_reply_to_reply_request_builder.go | 6 +- ...s_item_posts_item_reply_request_builder.go | 6 +- ...item_threads_item_reply_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 +- ...horizontal_section_item_request_builder.go | 7 +- ...out_horizontal_sections_request_builder.go | 7 +- ...layout_vertical_section_request_builder.go | 7 +- ...onversation_thread_item_request_builder.go | 14 +- ..._item_in_reply_to_reply_request_builder.go | 6 +- ...s_item_posts_item_reply_request_builder.go | 6 +- ...item_threads_item_reply_request_builder.go | 6 +- ...ons_named_location_item_request_builder.go | 12 +- ..._callout_extension_item_request_builder.go | 14 +- ...workflow_extension_item_request_builder.go | 6 +- ...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 | 4 +- models/aad_user_conversation_member.go | 2 +- models/aad_user_conversation_member_result.go | 38 ++- models/aad_user_notification_recipient.go | 4 +- models/access_package.go | 36 +++ models/access_package_answer_string.go | 38 ++- models/access_package_assignment.go | 2 + ..._package_assignment_collection_response.go | 2 +- models/access_package_assignment_policy.go | 2 + ...e_assignment_policy_collection_response.go | 2 +- models/access_package_assignment_request.go | 2 + ...ackage_assignment_request_callback_data.go | 4 +- ..._assignment_request_collection_response.go | 2 +- ...e_assignment_request_workflow_extension.go | 2 +- ...access_package_assignment_resource_role.go | 2 + ...nment_resource_role_collection_response.go | 2 +- ...s_package_assignment_workflow_extension.go | 2 +- models/access_package_catalog.go | 2 + ...ess_package_catalog_collection_response.go | 2 +- models/access_package_collection_response.go | 2 +- ...access_package_multiple_choice_question.go | 38 ++- models/access_package_resource.go | 2 + ...ess_package_resource_attribute_question.go | 4 +- ...ss_package_resource_collection_response.go | 2 +- models/access_package_resource_environment.go | 2 + ...esource_environment_collection_response.go | 2 +- models/access_package_resource_request.go | 2 + ...ge_resource_request_collection_response.go | 2 +- models/access_package_resource_role.go | 2 + ...ckage_resource_role_collection_response.go | 2 +- models/access_package_resource_role_scope.go | 2 + ...resource_role_scope_collection_response.go | 2 +- models/access_package_resource_scope.go | 2 + ...kage_resource_scope_collection_response.go | 2 +- models/access_package_subject.go | 2 + ...ess_package_subject_collection_response.go | 2 +- models/access_package_text_input_question.go | 38 ++- ..._package_user_directory_attribute_store.go | 4 +- models/access_review.go | 4 +- models/access_review_collection_response.go | 2 +- models/access_review_decision.go | 2 + ...ess_review_decision_collection_response.go | 2 +- models/access_review_error.go | 4 +- models/access_review_history_definition.go | 36 +++ ..._history_definition_collection_response.go | 2 +- models/access_review_history_instance.go | 2 + ...ew_history_instance_collection_response.go | 2 +- ...ccess_review_inactive_users_query_scope.go | 2 +- models/access_review_instance.go | 36 +++ ...ess_review_instance_collection_response.go | 2 +- .../access_review_instance_decision_item.go | 2 + ...cess_package_assignment_policy_resource.go | 38 ++- ...tance_decision_item_azure_role_resource.go | 38 ++- ...tance_decision_item_collection_response.go | 2 +- ...ecision_item_service_principal_resource.go | 38 ++- ..._decision_item_service_principal_target.go | 38 ++- ...view_instance_decision_item_user_target.go | 4 +- ...view_notification_recipient_query_scope.go | 46 +++- models/access_review_policy.go | 2 + models/access_review_query_scope.go | 4 +- models/access_review_reviewer.go | 2 + ...ess_review_reviewer_collection_response.go | 2 +- models/access_review_reviewer_scope.go | 38 ++- models/access_review_schedule_definition.go | 36 +++ ...schedule_definition_collection_response.go | 2 +- models/access_review_set.go | 4 +- models/access_review_stage.go | 2 + ...access_review_stage_collection_response.go | 2 +- models/account_collection_response.go | 2 +- models/activate_device_esim_action_result.go | 6 +- ...ry_windows_autopilot_deployment_profile.go | 4 +- models/activity_based_timeout_policy.go | 2 +- ...ased_timeout_policy_collection_response.go | 2 +- models/activity_history_item.go | 2 + ...tivity_history_item_collection_response.go | 2 +- models/activity_statistics.go | 36 +++ ...activity_statistics_collection_response.go | 2 +- models/add_content_footer_action.go | 38 ++- models/add_content_header_action.go | 38 ++- models/add_footer.go | 38 ++- models/add_header.go | 4 +- models/add_in.go | 2 +- models/add_large_gallery_view_operation.go | 2 +- models/add_watermark.go | 4 +- models/add_watermark_action.go | 38 ++- models/address_book_account_target_content.go | 38 ++- models/admin.go | 42 +++- models/admin_apps_and_services.go | 4 +- models/admin_consent_request_policy.go | 4 +- models/admin_dynamics.go | 4 +- models/admin_forms.go | 4 +- models/admin_report_settings.go | 4 +- models/admin_todo.go | 4 +- models/admin_windows_updates.go | 2 + models/administrative_unit.go | 2 +- ...administrative_unit_collection_response.go | 2 +- ...tection_onboarding_device_setting_state.go | 2 + ...evice_setting_state_collection_response.go | 2 +- ...eat_protection_onboarding_state_summary.go | 6 +- models/aged_accounts_payable.go | 2 +- ...ed_accounts_payable_collection_response.go | 2 +- models/aged_accounts_receivable.go | 2 +- ...accounts_receivable_collection_response.go | 2 +- models/aggregation_option.go | 2 +- models/agreement.go | 2 + models/agreement_acceptance.go | 2 + ...greement_acceptance_collection_response.go | 2 +- models/agreement_collection_response.go | 2 +- models/agreement_file.go | 2 +- ...t_file_localization_collection_response.go | 2 +- models/agreement_file_properties.go | 2 + ...eement_file_version_collection_response.go | 2 +- models/alert.go | 4 +- models/alert_collection_response.go | 2 +- models/all_devices_assignment_target.go | 6 +- models/all_domains.go | 4 +- .../all_licensed_users_assignment_target.go | 6 +- models/allowed_data_location.go | 4 +- ...lowed_data_location_collection_response.go | 2 +- models/allowed_value.go | 2 + models/allowed_value_collection_response.go | 2 +- models/altered_query_token.go | 2 +- models/alternative_security_id.go | 2 +- models/android_certificate_profile_base.go | 4 +- models/android_compliance_policy.go | 4 +- models/android_custom_configuration.go | 4 +- ...oid_device_compliance_local_action_base.go | 6 +- ...ice_compliance_local_action_lock_device.go | 4 +- ..._local_action_lock_device_with_passcode.go | 4 +- ...d_device_owner_certificate_profile_base.go | 4 +- .../android_device_owner_compliance_policy.go | 4 +- ...credential_authentication_configuration.go | 4 +- ...android_device_owner_enrollment_profile.go | 2 + ..._enrollment_profile_collection_response.go | 2 +- ...ce_owner_enterprise_wi_fi_configuration.go | 4 +- ...vice_owner_general_device_configuration.go | 4 +- ...d_device_owner_global_proxy_auto_config.go | 6 +- ...ndroid_device_owner_global_proxy_direct.go | 40 +++- ...wner_imported_p_f_x_certificate_profile.go | 4 +- models/android_device_owner_kiosk_mode_app.go | 40 +++- ...oid_device_owner_kiosk_mode_folder_item.go | 40 +++- ...evice_owner_kiosk_mode_home_screen_item.go | 2 +- ...ner_kiosk_mode_managed_folder_reference.go | 40 +++- ...android_device_owner_kiosk_mode_weblink.go | 6 +- ...d_device_owner_pkcs_certificate_profile.go | 4 +- ...d_device_owner_scep_certificate_profile.go | 4 +- ...d_device_owner_trusted_root_certificate.go | 2 +- .../android_device_owner_vpn_configuration.go | 4 +- ...ndroid_device_owner_wi_fi_configuration.go | 4 +- ...android_eas_email_profile_configuration.go | 4 +- .../android_enterprise_wi_fi_configuration.go | 4 +- models/android_for_work_app.go | 6 +- ...droid_for_work_app_configuration_schema.go | 36 +++ ...onfiguration_schema_collection_response.go | 2 +- ...droid_for_work_certificate_profile_base.go | 4 +- models/android_for_work_compliance_policy.go | 4 +- .../android_for_work_custom_configuration.go | 4 +- ...android_for_work_eas_email_profile_base.go | 4 +- models/android_for_work_enrollment_profile.go | 2 + ..._enrollment_profile_collection_response.go | 2 +- ...for_work_enterprise_wi_fi_configuration.go | 4 +- ...d_for_work_general_device_configuration.go | 4 +- ...ndroid_for_work_gmail_eas_configuration.go | 4 +- ...work_imported_p_f_x_certificate_profile.go | 4 +- ...droid_for_work_mobile_app_configuration.go | 4 +- ...id_for_work_nine_work_eas_configuration.go | 4 +- ...droid_for_work_pkcs_certificate_profile.go | 4 +- ...droid_for_work_scep_certificate_profile.go | 4 +- models/android_for_work_settings.go | 4 +- ...droid_for_work_trusted_root_certificate.go | 2 +- models/android_for_work_vpn_configuration.go | 4 +- .../android_for_work_wi_fi_configuration.go | 4 +- ...droid_fota_deployment_assignment_target.go | 40 +++- .../android_general_device_configuration.go | 4 +- ...roid_imported_p_f_x_certificate_profile.go | 4 +- models/android_lob_app.go | 4 +- models/android_managed_app_protection.go | 4 +- ...aged_app_protection_collection_response.go | 2 +- models/android_managed_app_registration.go | 4 +- ...naged_store_account_enterprise_settings.go | 4 +- models/android_managed_store_app.go | 6 +- ...d_managed_store_app_assignment_settings.go | 40 +++- ...android_managed_store_app_configuration.go | 4 +- ..._managed_store_app_configuration_schema.go | 36 +++ ...onfiguration_schema_collection_response.go | 2 +- models/android_managed_store_web_app.go | 4 +- models/android_mobile_app_identifier.go | 40 +++- models/android_oma_cp_configuration.go | 4 +- models/android_pkcs_certificate_profile.go | 4 +- models/android_scep_certificate_profile.go | 4 +- models/android_store_app.go | 6 +- models/android_trusted_root_certificate.go | 2 +- models/android_vpn_configuration.go | 4 +- models/android_wi_fi_configuration.go | 4 +- ...d_work_profile_certificate_profile_base.go | 4 +- .../android_work_profile_compliance_policy.go | 4 +- ...droid_work_profile_custom_configuration.go | 4 +- ...oid_work_profile_eas_email_profile_base.go | 4 +- ..._profile_enterprise_wi_fi_configuration.go | 4 +- ...rk_profile_general_device_configuration.go | 4 +- ...id_work_profile_gmail_eas_configuration.go | 4 +- ...ork_profile_nine_work_eas_configuration.go | 4 +- ...d_work_profile_pkcs_certificate_profile.go | 4 +- ...d_work_profile_scep_certificate_profile.go | 4 +- ...d_work_profile_trusted_root_certificate.go | 2 +- .../android_work_profile_vpn_configuration.go | 4 +- ...ndroid_work_profile_wi_fi_configuration.go | 4 +- models/anonymous_guest_conversation_member.go | 2 +- ...p_device_owner_certificate_profile_base.go | 4 +- models/aosp_device_owner_compliance_policy.go | 4 +- .../aosp_device_owner_device_configuration.go | 4 +- ...ce_owner_enterprise_wi_fi_configuration.go | 4 +- ...p_device_owner_pkcs_certificate_profile.go | 4 +- ...p_device_owner_scep_certificate_profile.go | 4 +- ...p_device_owner_trusted_root_certificate.go | 2 +- .../aosp_device_owner_wi_fi_configuration.go | 4 +- models/app_catalogs.go | 2 +- models/app_consent_approval_route.go | 4 +- models/app_consent_request.go | 2 + ...app_consent_request_collection_response.go | 2 +- models/app_credential_sign_in_activity.go | 4 +- ...al_sign_in_activity_collection_response.go | 2 +- models/app_hosted_media_config.go | 38 ++- models/app_identity.go | 2 +- models/app_log_collection_request.go | 2 + ..._collection_request_collection_response.go | 2 +- models/app_management_policy.go | 2 +- ...p_management_policy_collection_response.go | 2 +- models/app_role.go | 2 +- models/app_role_assignment.go | 36 +++ ...app_role_assignment_collection_response.go | 2 +- models/app_scope.go | 2 + models/app_scope_collection_response.go | 2 +- models/app_vulnerability_managed_device.go | 2 + models/app_vulnerability_mobile_app.go | 36 +++ models/app_vulnerability_task.go | 4 +- models/apple_app_list_item.go | 6 +- ...pple_device_features_configuration_base.go | 4 +- models/apple_enrollment_profile_assignment.go | 2 + ..._profile_assignment_collection_response.go | 2 +- ...le_expedited_checkin_configuration_base.go | 4 +- models/apple_managed_identity_provider.go | 2 +- models/apple_push_notification_certificate.go | 4 +- ...apple_user_initiated_enrollment_profile.go | 2 + ..._enrollment_profile_collection_response.go | 2 +- models/apple_vpn_configuration.go | 4 +- .../apple_vpp_token_troubleshooting_event.go | 4 +- models/application.go | 2 +- models/application_collection_response.go | 2 +- ...n_enforced_restrictions_session_control.go | 38 ++- models/application_segment.go | 2 + .../application_sign_in_detailed_summary.go | 4 +- ...in_detailed_summary_collection_response.go | 2 +- models/application_sign_in_summary.go | 4 +- models/application_template.go | 4 +- ...pplication_template_collection_response.go | 2 +- models/apply_label_action.go | 38 ++- models/approval.go | 2 + models/approval_collection_response.go | 2 +- models/approval_step.go | 2 + models/approval_step_collection_response.go | 2 +- models/approval_workflow_provider.go | 4 +- ...l_workflow_provider_collection_response.go | 2 +- models/apps_and_services_settings.go | 10 +- models/assigned_license.go | 2 +- models/assigned_plan.go | 2 +- ...gnment_filter_evaluation_status_details.go | 2 + ...tion_status_details_collection_response.go | 2 +- .../assignment_filter_evaluation_summary.go | 2 +- models/associated_team_info.go | 2 +- ...ssociated_team_info_collection_response.go | 2 +- models/attachment.go | 36 +++ models/attachment_base.go | 36 +++ models/attachment_base_collection_response.go | 2 +- models/attachment_collection_response.go | 2 +- models/attachment_content_properties.go | 4 +- models/attachment_info.go | 2 +- models/attachment_item.go | 2 +- models/attachment_session.go | 2 + .../attachment_session_collection_response.go | 2 +- models/attack_simulation_operation.go | 2 +- ...imulation_operation_collection_response.go | 2 +- models/attack_simulation_root.go | 4 +- models/attendance_record.go | 2 + .../attendance_record_collection_response.go | 2 +- models/attendee.go | 2 +- models/attendee_availability.go | 2 +- models/attendee_base.go | 4 +- models/attribute_mapping_function_schema.go | 2 + ...ing_function_schema_collection_response.go | 2 +- models/attribute_set.go | 36 +++ models/attribute_set_collection_response.go | 2 +- models/audio_routing_group.go | 2 + ...audio_routing_group_collection_response.go | 2 +- models/audit_activity_initiator.go | 2 +- models/audit_event.go | 2 + models/audit_event_collection_response.go | 2 +- models/audit_log_root.go | 2 +- models/audit_user_identity.go | 2 +- models/authentication.go | 2 + ...uthentication_combination_configuration.go | 4 +- ...ation_configuration_collection_response.go | 2 +- .../authentication_condition_application.go | 2 +- .../authentication_context_class_reference.go | 2 + ...ext_class_reference_collection_response.go | 2 +- models/authentication_event_listener.go | 4 +- ...tion_event_listener_collection_response.go | 2 +- models/authentication_events_flow.go | 2 + ...ication_events_flow_collection_response.go | 2 +- models/authentication_events_policy.go | 4 +- models/authentication_flows_policy.go | 4 +- models/authentication_listener.go | 2 + models/authentication_method.go | 2 + ...thentication_method_collection_response.go | 2 +- models/authentication_method_configuration.go | 4 +- ...ethod_configuration_collection_response.go | 2 +- models/authentication_method_mode_detail.go | 4 +- ..._method_mode_detail_collection_response.go | 2 +- models/authentication_method_target.go | 2 + models/authentication_methods_policy.go | 38 ++- ...ds_registration_campaign_include_target.go | 2 +- models/authentication_methods_root.go | 4 +- models/authentication_strength_policy.go | 4 +- ...ion_strength_policy_collection_response.go | 2 +- models/authentication_strength_root.go | 4 +- models/authored_note.go | 4 +- models/authored_note_collection_response.go | 2 +- models/authorization_policy.go | 2 +- ...uthorization_policy_collection_response.go | 2 +- models/availability_item.go | 2 +- models/azure_a_d_authentication.go | 89 +++++++ ..._d_windows_autopilot_deployment_profile.go | 4 +- models/azure_active_directory_tenant.go | 38 ++- models/azure_ad_pop_token_authentication.go | 38 ++- models/azure_ad_token_authentication.go | 38 ++- ...ation_services_user_conversation_member.go | 2 +- ...re_communication_services_user_identity.go | 4 +- models/b2c_authentication_methods_policy.go | 38 ++- models/b2c_identity_user_flow.go | 2 +- ..._identity_user_flow_collection_response.go | 2 +- models/b2x_identity_user_flow.go | 2 +- ..._identity_user_flow_collection_response.go | 2 +- models/base_item.go | 36 +++ models/base_item_collection_response.go | 2 +- models/base_item_version.go | 2 + models/basic_authentication.go | 38 ++- models/bitlocker.go | 2 + models/bitlocker_recovery_key.go | 2 + ...locker_recovery_key_collection_response.go | 2 +- models/block_access_action.go | 38 ++- models/booking_appointment.go | 6 +- ...booking_appointment_collection_response.go | 2 +- models/booking_business.go | 6 +- .../booking_business_collection_response.go | 2 +- models/booking_currency.go | 4 +- .../booking_currency_collection_response.go | 2 +- models/booking_custom_question.go | 2 + ...ing_custom_question_collection_response.go | 2 +- models/booking_customer.go | 4 +- .../booking_customer_collection_response.go | 2 +- models/booking_customer_information.go | 38 ++- models/booking_customer_information_base.go | 2 +- models/booking_named_entity.go | 40 +++- models/booking_person.go | 2 + models/booking_service.go | 2 + models/booking_service_collection_response.go | 2 +- models/booking_staff_member.go | 4 +- ...ooking_staff_member_collection_response.go | 2 +- models/browser_shared_cookie.go | 2 + ...owser_shared_cookie_collection_response.go | 2 +- models/browser_shared_cookie_history.go | 2 +- models/browser_site.go | 36 +++ models/browser_site_collection_response.go | 2 +- models/browser_site_history.go | 2 +- models/browser_site_list.go | 2 + .../browser_site_list_collection_response.go | 2 +- models/bucket_aggregation_definition.go | 2 +- models/bucket_aggregation_range.go | 2 +- models/built_in_identity_provider.go | 2 +- models/bulk_upload.go | 41 ++++ models/business_flow.go | 2 + models/business_flow_collection_response.go | 2 +- models/business_flow_settings.go | 38 ++- models/business_flow_template.go | 4 +- ...iness_flow_template_collection_response.go | 2 +- models/business_scenario.go | 4 +- .../business_scenario_collection_response.go | 2 +- models/business_scenario_group_target.go | 38 ++- models/business_scenario_plan_reference.go | 4 +- models/business_scenario_planner.go | 2 + models/business_scenario_task.go | 2 +- ...iness_scenario_task_collection_response.go | 2 +- models/calendar.go | 36 +++ models/calendar_collection_response.go | 2 +- models/calendar_group.go | 2 + models/calendar_group_collection_response.go | 2 +- models/calendar_permission.go | 2 + ...calendar_permission_collection_response.go | 2 +- models/calendar_sharing_message.go | 2 +- models/call.go | 4 +- models/call_activity_statistics.go | 38 ++- models/call_collection_response.go | 2 +- models/call_ended_event_message_detail.go | 38 ++- models/call_recording.go | 2 + models/call_recording_collection_response.go | 2 +- models/call_recording_event_message_detail.go | 38 ++- models/call_started_event_message_detail.go | 38 ++- models/call_transcript.go | 2 + models/call_transcript_collection_response.go | 2 +- .../call_transcript_event_message_detail.go | 38 ++- models/callrecords/call_record.go | 4 +- .../call_record_collection_response.go | 2 +- models/callrecords/client_user_agent.go | 38 ++- models/callrecords/participant_endpoint.go | 38 ++- models/callrecords/segment.go | 2 + .../segment_collection_response.go | 2 +- models/callrecords/service_endpoint.go | 38 ++- models/callrecords/service_user_agent.go | 38 ++- models/callrecords/session.go | 2 + .../session_collection_response.go | 2 +- models/callrecords/trace_route_hop.go | 2 +- models/cancel_media_processing_operation.go | 2 +- models/canvas_layout.go | 2 + models/cart_to_class_association.go | 6 +- ...o_class_association_collection_response.go | 2 +- models/certificate_authority.go | 2 +- models/certificate_authority_as_entity.go | 2 + ...authority_as_entity_collection_response.go | 2 +- models/certificate_authority_path.go | 36 +++ ...ificate_based_application_configuration.go | 2 +- ...ation_configuration_collection_response.go | 2 +- .../certificate_based_auth_configuration.go | 2 + ..._auth_configuration_collection_response.go | 2 +- models/certificate_connector_details.go | 6 +- ...e_connector_details_collection_response.go | 2 +- models/change_tracked_entity.go | 2 + models/channel.go | 2 + models/channel_added_event_message_detail.go | 4 +- models/channel_collection_response.go | 2 +- .../channel_deleted_event_message_detail.go | 38 ++- ...escription_updated_event_message_detail.go | 4 +- .../channel_members_notification_recipient.go | 4 +- .../channel_renamed_event_message_detail.go | 38 ++- ...avorite_by_default_event_message_detail.go | 38 ++- ...avorite_by_default_event_message_detail.go | 38 ++- models/chat.go | 2 + models/chat_activity_statistics.go | 38 ++- models/chat_collection_response.go | 2 +- models/chat_members_notification_recipient.go | 4 +- models/chat_message.go | 2 + models/chat_message_collection_response.go | 2 +- models/chat_message_from_identity_set.go | 38 ++- models/chat_message_hosted_content.go | 2 +- ...sage_hosted_content_collection_response.go | 2 +- models/chat_message_info.go | 2 + models/chat_message_mentioned_identity_set.go | 38 ++- models/chat_message_reaction_identity_set.go | 38 ++- models/chat_renamed_event_message_detail.go | 38 ++- models/checklist_item.go | 2 + models/checklist_item_collection_response.go | 2 +- models/chrome_o_s_onboarding_settings.go | 6 +- ...onboarding_settings_collection_response.go | 2 +- models/claims_mapping_policy.go | 2 +- ...aims_mapping_policy_collection_response.go | 2 +- models/classification_error.go | 38 ++- models/classification_job_response.go | 2 +- models/classification_result.go | 2 +- models/client_certificate_authentication.go | 4 +- models/cloud_app_security_profile.go | 4 +- ...pp_security_profile_collection_response.go | 2 +- models/cloud_app_security_session_control.go | 38 ++- models/cloud_app_security_state.go | 2 +- models/cloud_communications.go | 2 +- models/cloud_p_c.go | 2 + models/cloud_p_c_collection_response.go | 2 +- models/cloud_p_c_connectivity_issue.go | 2 + ..._connectivity_issue_collection_response.go | 2 +- models/cloud_pc_audit_actor.go | 2 +- models/cloud_pc_audit_event.go | 38 ++- ...loud_pc_audit_event_collection_response.go | 2 +- models/cloud_pc_audit_property.go | 2 +- models/cloud_pc_audit_resource.go | 2 +- models/cloud_pc_bulk_action.go | 4 +- ...loud_pc_bulk_action_collection_response.go | 2 +- models/cloud_pc_bulk_power_off.go | 2 +- models/cloud_pc_bulk_power_on.go | 2 +- ...s_cloud_government_organization_mapping.go | 4 +- models/cloud_pc_device_image.go | 4 +- ...oud_pc_device_image_collection_response.go | 2 +- models/cloud_pc_export_job.go | 4 +- ...cloud_pc_export_job_collection_response.go | 2 +- models/cloud_pc_external_partner_setting.go | 4 +- ...nal_partner_setting_collection_response.go | 2 +- models/cloud_pc_forensic_storage_account.go | 2 + models/cloud_pc_gallery_image.go | 4 +- ...ud_pc_gallery_image_collection_response.go | 2 +- ...d_pc_management_group_assignment_target.go | 38 ++- models/cloud_pc_on_premises_connection.go | 38 ++- ...premises_connection_collection_response.go | 2 +- models/cloud_pc_organization_settings.go | 4 +- models/cloud_pc_provisioning_policy.go | 4 +- ...cloud_pc_provisioning_policy_assignment.go | 2 + ...g_policy_assignment_collection_response.go | 2 +- ...provisioning_policy_collection_response.go | 2 +- models/cloud_pc_reports.go | 4 +- models/cloud_pc_service_plan.go | 38 ++- ...oud_pc_service_plan_collection_response.go | 2 +- models/cloud_pc_shared_use_service_plan.go | 4 +- ...ed_use_service_plan_collection_response.go | 2 +- models/cloud_pc_snapshot.go | 4 +- .../cloud_pc_snapshot_collection_response.go | 2 +- models/cloud_pc_subscription.go | 2 + models/cloud_pc_supported_region.go | 4 +- ...pc_supported_region_collection_response.go | 2 +- models/cloud_pc_user_setting.go | 4 +- models/cloud_pc_user_setting_assignment.go | 2 + ..._setting_assignment_collection_response.go | 2 +- ...oud_pc_user_setting_collection_response.go | 2 +- models/collapse_property.go | 2 +- models/column_definition.go | 2 + .../column_definition_collection_response.go | 2 +- models/column_link.go | 36 +++ models/column_link_collection_response.go | 2 +- models/comanagement_eligible_device.go | 36 +++ ...ent_eligible_device_collection_response.go | 2 +- models/command.go | 2 + models/command_collection_response.go | 2 +- models/comms_application.go | 2 +- models/comms_operation.go | 2 + models/comms_operation_collection_response.go | 2 +- models/communications_application_identity.go | 4 +- ...nications_application_instance_identity.go | 4 +- models/communications_encrypted_identity.go | 4 +- models/communications_guest_identity.go | 4 +- models/communications_identity_set.go | 38 ++- models/communications_phone_identity.go | 38 ++- models/communications_user_identity.go | 4 +- models/company.go | 2 +- models/company_collection_response.go | 2 +- models/company_information.go | 2 +- ...company_information_collection_response.go | 2 +- models/company_subscription.go | 4 +- ...ompany_subscription_collection_response.go | 2 +- models/compliance.go | 2 +- models/compliance_management_partner.go | 2 + ..._management_partner_collection_response.go | 2 +- ...conditional_access_all_external_tenants.go | 4 +- models/conditional_access_condition_set.go | 2 +- ...onal_access_enumerated_external_tenants.go | 4 +- models/conditional_access_policy.go | 2 + ...ional_access_policy_collection_response.go | 2 +- models/conditional_access_policy_detail.go | 2 +- models/conditional_access_root.go | 4 +- models/conditional_access_template.go | 2 + ...nal_access_template_collection_response.go | 2 +- models/config_manager_collection.go | 2 + ..._manager_collection_collection_response.go | 2 +- models/configuration_manager_action.go | 2 +- models/configuration_manager_action_result.go | 6 +- ...on_manager_collection_assignment_target.go | 6 +- models/connected_organization.go | 2 + ...nected_organization_collection_response.go | 2 +- models/connected_organization_members.go | 38 ++- models/connection_operation.go | 2 + models/connector.go | 2 + models/connector_collection_response.go | 2 +- models/connector_group.go | 2 + models/connector_group_collection_response.go | 2 +- models/contact.go | 2 +- models/contact_collection_response.go | 2 +- models/contact_folder.go | 2 + models/contact_folder_collection_response.go | 2 +- models/contact_merge_suggestions.go | 2 + models/content_classification.go | 2 +- models/content_info.go | 2 +- models/content_sharing_session.go | 2 + ...ent_sharing_session_collection_response.go | 2 +- models/content_type.go | 2 + models/content_type_collection_response.go | 2 +- models/continuous_access_evaluation_policy.go | 38 ++- models/contract.go | 2 +- models/contract_collection_response.go | 2 +- models/conversation.go | 2 + models/conversation_collection_response.go | 2 +- models/conversation_member.go | 2 + ...conversation_member_collection_response.go | 2 +- ...ember_role_updated_event_message_detail.go | 38 ++- models/conversation_thread.go | 2 + ...conversation_thread_collection_response.go | 2 +- models/convert_id_result.go | 2 +- models/cors_configuration_v2.go | 2 + models/country_named_location.go | 2 +- models/country_region.go | 2 +- models/country_region_collection_response.go | 2 +- models/credential.go | 2 +- models/credential_single_sign_on_extension.go | 6 +- models/credential_usage_summary.go | 4 +- models/credential_user_registration_count.go | 4 +- .../credential_user_registration_details.go | 4 +- ...egistration_details_collection_response.go | 2 +- ...oss_cloud_azure_active_directory_tenant.go | 38 ++- models/cross_tenant_access_policy.go | 2 +- ...ant_access_policy_configuration_default.go | 2 + ...ant_access_policy_configuration_partner.go | 2 +- ...nfiguration_partner_collection_response.go | 2 +- ...enant_access_policy_tenant_restrictions.go | 4 +- models/currency_collection_response.go | 2 +- ...ustom_access_package_workflow_extension.go | 2 +- ..._workflow_extension_collection_response.go | 2 +- models/custom_action.go | 38 ++- models/custom_app_scope.go | 2 +- .../custom_app_scope_attributes_dictionary.go | 38 ++- .../custom_app_scope_collection_response.go | 2 +- models/custom_authentication_extension.go | 2 +- ...ntication_extension_collection_response.go | 2 +- models/custom_callout_extension.go | 2 + ...m_callout_extension_collection_response.go | 2 +- models/custom_extension_callout_result.go | 4 +- models/custom_extension_handler.go | 2 + ...m_extension_handler_collection_response.go | 2 +- models/custom_extension_stage_setting.go | 2 + ...nsion_stage_setting_collection_response.go | 2 +- models/custom_security_attribute_audit.go | 4 +- ...ity_attribute_audit_collection_response.go | 2 +- .../custom_security_attribute_definition.go | 2 + ...ttribute_definition_collection_response.go | 2 +- models/custom_time_zone.go | 4 +- models/custom_training_setting.go | 38 ++- models/customer_collection_response.go | 2 +- models/customer_payment.go | 2 +- .../customer_payment_collection_response.go | 2 +- models/customer_payment_journal.go | 2 +- ...mer_payment_journal_collection_response.go | 2 +- models/customer_voice_settings.go | 14 +- models/data_classification_service.go | 4 +- models/data_loss_prevention_policy.go | 2 + ...s_prevention_policy_collection_response.go | 2 +- models/data_policy_operation.go | 4 +- ...ta_policy_operation_collection_response.go | 2 +- models/data_sharing_consent.go | 2 + ...ata_sharing_consent_collection_response.go | 2 +- models/daylight_time_zone_offset.go | 38 ++- models/default_device_compliance_policy.go | 4 +- models/default_managed_app_protection.go | 4 +- ...aged_app_protection_collection_response.go | 2 +- models/default_user_role_override.go | 2 + ..._user_role_override_collection_response.go | 2 +- models/default_user_role_permissions.go | 2 +- models/delegated_admin_access_assignment.go | 2 + ...n_access_assignment_collection_response.go | 2 +- models/delegated_admin_access_container.go | 2 +- models/delegated_admin_access_details.go | 2 +- models/delegated_admin_customer.go | 4 +- ...ated_admin_customer_collection_response.go | 2 +- models/delegated_admin_relationship.go | 38 ++- ..._admin_relationship_collection_response.go | 2 +- .../delegated_admin_relationship_operation.go | 2 + ...ationship_operation_collection_response.go | 2 +- .../delegated_admin_relationship_request.go | 2 + ...elationship_request_collection_response.go | 2 +- ...legated_admin_service_management_detail.go | 2 + ...e_management_detail_collection_response.go | 2 +- models/delegated_permission_classification.go | 2 + ...sion_classification_collection_response.go | 2 +- ..._from_shared_apple_device_action_result.go | 40 +++- models/deleted_chat.go | 4 +- models/deleted_chat_collection_response.go | 2 +- models/deleted_item_container.go | 4 +- models/deleted_team.go | 4 +- models/deleted_team_collection_response.go | 2 +- ...elivery_optimization_bandwidth_absolute.go | 40 +++- ...ization_bandwidth_hours_with_percentage.go | 40 +++- ...ivery_optimization_bandwidth_percentage.go | 40 +++- .../delivery_optimization_group_id_custom.go | 40 +++- ...ry_optimization_group_id_source_options.go | 40 +++- ...ry_optimization_max_cache_size_absolute.go | 40 +++- ..._optimization_max_cache_size_percentage.go | 40 +++- models/delta_participants.go | 4 +- models/dep_enrollment_base_profile.go | 4 +- models/dep_enrollment_profile.go | 4 +- models/dep_i_o_s_enrollment_profile.go | 4 +- models/dep_mac_o_s_enrollment_profile.go | 4 +- models/dep_onboarding_setting.go | 2 + ..._onboarding_setting_collection_response.go | 2 +- models/detected_app.go | 2 + models/detected_app_collection_response.go | 2 +- models/detected_sensitive_content.go | 38 ++- models/device.go | 2 +- ...ce_and_app_management_assignment_filter.go | 2 + ...t_assignment_filter_collection_response.go | 2 +- ...vice_and_app_management_role_assignment.go | 4 +- ...ent_role_assignment_collection_response.go | 2 +- ...vice_and_app_management_role_definition.go | 4 +- models/device_app_management.go | 40 +++- models/device_app_management_task.go | 6 +- ...app_management_task_collection_response.go | 2 +- models/device_category.go | 38 ++- models/device_category_collection_response.go | 2 +- models/device_collection_response.go | 2 +- ...ce_comanagement_authority_configuration.go | 4 +- models/device_compliance_action_item.go | 2 + ...pliance_action_item_collection_response.go | 2 +- models/device_compliance_device_overview.go | 2 + models/device_compliance_device_status.go | 2 + ...iance_device_status_collection_response.go | 2 +- models/device_compliance_policy.go | 6 +- models/device_compliance_policy_assignment.go | 36 +++ ...e_policy_assignment_collection_response.go | 2 +- ...e_compliance_policy_collection_response.go | 2 +- ..._compliance_policy_device_state_summary.go | 2 + ...vice_compliance_policy_group_assignment.go | 6 +- ...evice_compliance_policy_policy_set_item.go | 4 +- ...compliance_policy_setting_state_summary.go | 2 + ...tting_state_summary_collection_response.go | 2 +- models/device_compliance_policy_state.go | 2 + ...liance_policy_state_collection_response.go | 2 +- ...ce_compliance_scheduled_action_for_rule.go | 2 + ...led_action_for_rule_collection_response.go | 2 +- models/device_compliance_script.go | 2 + ...e_compliance_script_collection_response.go | 2 +- .../device_compliance_script_device_state.go | 2 + ...script_device_state_collection_response.go | 2 +- models/device_compliance_script_rule.go | 2 +- models/device_compliance_script_rule_error.go | 38 ++- .../device_compliance_script_run_summary.go | 4 +- models/device_compliance_setting_state.go | 2 + ...iance_setting_state_collection_response.go | 2 +- models/device_compliance_user_overview.go | 2 + models/device_compliance_user_status.go | 2 + ...pliance_user_status_collection_response.go | 2 +- models/device_configuration.go | 2 + models/device_configuration_assignment.go | 2 + ...guration_assignment_collection_response.go | 2 +- ...evice_configuration_collection_response.go | 2 +- .../device_configuration_conflict_summary.go | 2 + ...on_conflict_summary_collection_response.go | 2 +- .../device_configuration_device_overview.go | 2 + ...vice_configuration_device_state_summary.go | 2 + models/device_configuration_device_status.go | 2 + ...ation_device_status_collection_response.go | 2 +- .../device_configuration_group_assignment.go | 36 +++ ...on_group_assignment_collection_response.go | 2 +- .../device_configuration_policy_set_item.go | 4 +- models/device_configuration_state.go | 2 + ...configuration_state_collection_response.go | 2 +- models/device_configuration_user_overview.go | 2 + ...device_configuration_user_state_summary.go | 2 + models/device_configuration_user_status.go | 2 + ...uration_user_status_collection_response.go | 2 +- .../device_custom_attribute_shell_script.go | 36 +++ ...ribute_shell_script_collection_response.go | 2 +- models/device_enrollment_configuration.go | 2 + ...lment_configuration_collection_response.go | 2 +- .../device_enrollment_limit_configuration.go | 4 +- ...e_enrollment_notification_configuration.go | 4 +- ...ment_platform_restriction_configuration.go | 4 +- ...ent_platform_restrictions_configuration.go | 4 +- ...indows_hello_for_business_configuration.go | 4 +- models/device_health_script.go | 36 +++ models/device_health_script_assignment.go | 2 + ...h_script_assignment_collection_response.go | 2 +- .../device_health_script_boolean_parameter.go | 40 +++- ...evice_health_script_collection_response.go | 2 +- models/device_health_script_daily_schedule.go | 40 +++- models/device_health_script_device_state.go | 2 + ...script_device_state_collection_response.go | 2 +- .../device_health_script_hourly_schedule.go | 40 +++- .../device_health_script_integer_parameter.go | 40 +++- models/device_health_script_policy_state.go | 2 +- ...script_policy_state_collection_response.go | 2 +- ..._health_script_remediation_history_data.go | 2 +- .../device_health_script_run_once_schedule.go | 6 +- models/device_health_script_run_summary.go | 4 +- .../device_health_script_string_parameter.go | 40 +++- models/device_health_script_time_schedule.go | 40 +++- models/device_install_state.go | 2 + ...evice_install_state_collection_response.go | 2 +- models/device_key.go | 2 +- models/device_local_credential.go | 2 + models/device_local_credential_info.go | 4 +- ...cal_credential_info_collection_response.go | 2 +- models/device_log_collection_response.go | 2 + ...collection_response_collection_response.go | 2 +- models/device_management.go | 6 +- ...ent_abstract_complex_setting_definition.go | 4 +- ...ement_abstract_complex_setting_instance.go | 4 +- models/device_management_autopilot_event.go | 36 +++ ...ent_autopilot_event_collection_response.go | 2 +- ...nagement_autopilot_policy_status_detail.go | 2 + ...olicy_status_detail_collection_response.go | 2 +- ...ice_management_boolean_setting_instance.go | 4 +- ..._management_cached_report_configuration.go | 2 + ...eport_configuration_collection_response.go | 2 +- ...anagement_collection_setting_definition.go | 4 +- ..._management_collection_setting_instance.go | 4 +- ...e_management_complex_setting_definition.go | 4 +- ...ice_management_complex_setting_instance.go | 4 +- ...evice_management_compliance_action_item.go | 2 + ...pliance_action_item_collection_response.go | 2 +- models/device_management_compliance_policy.go | 2 + ...t_compliance_policy_collection_response.go | 2 +- ...nt_compliance_scheduled_action_for_rule.go | 2 + ...led_action_for_rule_collection_response.go | 2 +- ...ation_application_setting_applicability.go | 40 +++- ...evice_management_configuration_category.go | 2 + ...figuration_category_collection_response.go | 2 +- ...on_choice_setting_collection_definition.go | 2 +- ...tion_choice_setting_collection_instance.go | 40 +++- ...ce_setting_collection_instance_template.go | 40 +++- ...configuration_choice_setting_definition.go | 4 +- ...t_configuration_choice_setting_instance.go | 6 +- ...ration_choice_setting_instance_template.go | 6 +- ...ment_configuration_choice_setting_value.go | 6 +- ...setting_value_constant_default_template.go | 6 +- ...iguration_choice_setting_value_template.go | 2 +- ...n_exchange_online_setting_applicability.go | 6 +- ...ation_group_setting_collection_instance.go | 40 +++- ...up_setting_collection_instance_template.go | 6 +- ...nt_configuration_group_setting_instance.go | 6 +- ...uration_group_setting_instance_template.go | 6 +- ...ement_configuration_group_setting_value.go | 6 +- ...figuration_group_setting_value_template.go | 2 +- ...ent_configuration_integer_setting_value.go | 4 +- ...setting_value_constant_default_template.go | 6 +- ...ration_integer_setting_value_definition.go | 38 ++- ...guration_integer_setting_value_template.go | 6 +- ...onfiguration_option_definition_template.go | 2 +- .../device_management_configuration_policy.go | 2 + ...agement_configuration_policy_assignment.go | 2 + ...n_policy_assignment_collection_response.go | 2 +- ...onfiguration_policy_collection_response.go | 2 +- ...nt_configuration_policy_policy_set_item.go | 4 +- ...anagement_configuration_policy_template.go | 2 + ...ion_policy_template_collection_response.go | 2 +- ...nfiguration_redirect_setting_definition.go | 4 +- ...t_configuration_reference_setting_value.go | 4 +- ...figuration_referred_setting_information.go | 4 +- ...ment_configuration_secret_setting_value.go | 4 +- ...device_management_configuration_setting.go | 36 +++ ...nfiguration_setting_collection_response.go | 2 +- ...gement_configuration_setting_definition.go | 36 +++ ..._setting_definition_collection_response.go | 2 +- ...ion_setting_group_collection_definition.go | 2 +- ...ation_setting_group_collection_instance.go | 40 +++- ..._configuration_setting_group_definition.go | 4 +- ...nt_configuration_setting_group_instance.go | 40 +++- ...nagement_configuration_setting_instance.go | 2 +- ...configuration_setting_instance_template.go | 2 +- ...nagement_configuration_setting_template.go | 2 + ...on_setting_template_collection_response.go | 2 +- ...on_simple_setting_collection_definition.go | 4 +- ...tion_simple_setting_collection_instance.go | 6 +- ...le_setting_collection_instance_template.go | 6 +- ...configuration_simple_setting_definition.go | 54 ++++- ...t_configuration_simple_setting_instance.go | 40 +++- ...ration_simple_setting_instance_template.go | 40 +++- ...ment_configuration_simple_setting_value.go | 6 +- ...iguration_simple_setting_value_template.go | 2 +- ...ment_configuration_string_setting_value.go | 4 +- ...setting_value_constant_default_template.go | 6 +- ...uration_string_setting_value_definition.go | 14 +- ...iguration_string_setting_value_template.go | 6 +- ...iguration_windows_setting_applicability.go | 4 +- ..._management_derived_credential_settings.go | 4 +- ...credential_settings_collection_response.go | 2 +- ...device_management_domain_join_connector.go | 2 + ...main_join_connector_collection_response.go | 2 +- models/device_management_enum_constraint.go | 6 +- models/device_management_enum_value.go | 2 +- .../device_management_exchange_connector.go | 2 + ..._exchange_connector_collection_response.go | 2 +- ..._management_exchange_on_premises_policy.go | 2 + ..._on_premises_policy_collection_response.go | 2 +- models/device_management_export_job.go | 2 + ...nagement_export_job_collection_response.go | 2 +- ...ice_management_integer_setting_instance.go | 4 +- models/device_management_intent.go | 2 + models/device_management_intent_assignment.go | 2 + ...t_intent_assignment_collection_response.go | 2 +- ...e_management_intent_collection_response.go | 2 +- ...ent_intent_device_setting_state_summary.go | 2 + ...tting_state_summary_collection_response.go | 2 +- .../device_management_intent_device_state.go | 2 + ...intent_device_state_collection_response.go | 2 +- ..._management_intent_device_state_summary.go | 4 +- ...vice_management_intent_setting_category.go | 4 +- ...nt_setting_category_collection_response.go | 2 +- ...gement_intent_setting_secret_constraint.go | 40 +++- models/device_management_intent_user_state.go | 36 +++ ...t_intent_user_state_collection_response.go | 2 +- ...ce_management_intent_user_state_summary.go | 4 +- models/device_management_partner.go | 2 + ..._management_partner_collection_response.go | 2 +- models/device_management_reports.go | 4 +- ...ment_resource_access_profile_assignment.go | 2 + ..._profile_assignment_collection_response.go | 2 +- ...management_resource_access_profile_base.go | 2 + ...access_profile_base_collection_response.go | 2 +- ...vice_management_reusable_policy_setting.go | 2 + ...able_policy_setting_collection_response.go | 2 +- models/device_management_script.go | 2 + models/device_management_script_assignment.go | 2 + ...t_script_assignment_collection_response.go | 2 +- ...e_management_script_collection_response.go | 2 +- .../device_management_script_device_state.go | 2 + ...script_device_state_collection_response.go | 2 +- ...vice_management_script_group_assignment.go | 2 + ...pt_group_assignment_collection_response.go | 2 +- ...evice_management_script_policy_set_item.go | 4 +- .../device_management_script_run_summary.go | 4 +- models/device_management_script_user_state.go | 2 + ...t_script_user_state_collection_response.go | 2 +- ...ting_abstract_implementation_constraint.go | 6 +- ...evice_management_setting_app_constraint.go | 6 +- ...e_management_setting_boolean_constraint.go | 6 +- models/device_management_setting_category.go | 2 + ...nt_setting_category_collection_response.go | 2 +- ...anagement_setting_collection_constraint.go | 6 +- .../device_management_setting_definition.go | 2 + ..._setting_definition_collection_response.go | 2 +- ...ment_setting_enrollment_type_constraint.go | 6 +- ...vice_management_setting_file_constraint.go | 6 +- models/device_management_setting_instance.go | 2 + ...nt_setting_instance_collection_response.go | 2 +- ...e_management_setting_integer_constraint.go | 6 +- ...e_management_setting_profile_constraint.go | 6 +- ...ice_management_setting_regex_constraint.go | 6 +- ..._management_setting_required_constraint.go | 6 +- ...vice_management_setting_sddl_constraint.go | 6 +- ...gement_setting_string_length_constraint.go | 6 +- ...evice_management_setting_xml_constraint.go | 6 +- ...vice_management_string_setting_instance.go | 4 +- models/device_management_template.go | 2 + ...management_template_collection_response.go | 2 +- ...management_template_insights_definition.go | 2 + ...insights_definition_collection_response.go | 2 +- ...ce_management_template_setting_category.go | 4 +- ...te_setting_category_collection_response.go | 2 +- ...device_management_troubleshooting_event.go | 2 + ...oubleshooting_event_collection_response.go | 2 +- models/device_registration_policy.go | 4 +- models/device_restriction_action.go | 38 ++- models/device_setup_configuration.go | 6 +- models/device_shell_script.go | 2 + ...device_shell_script_collection_response.go | 2 +- models/devicemanagement/alert_record.go | 2 + .../alert_record_collection_response.go | 2 +- models/devicemanagement/alert_rule.go | 2 + .../alert_rule_collection_response.go | 2 +- models/devicemanagement/monitoring.go | 2 + models/dimension.go | 2 +- models/dimension_collection_response.go | 2 +- models/dimension_value.go | 2 +- models/dimension_value_collection_response.go | 2 +- models/directory.go | 4 +- models/directory_audit.go | 4 +- models/directory_audit_collection_response.go | 2 +- models/directory_definition.go | 2 + ...irectory_definition_collection_response.go | 2 +- models/directory_object.go | 2 + .../directory_object_collection_response.go | 2 +- models/directory_object_partner_reference.go | 2 +- models/directory_role.go | 2 +- models/directory_role_access_review_policy.go | 4 +- models/directory_role_collection_response.go | 2 +- models/directory_role_template.go | 2 +- ...ctory_role_template_collection_response.go | 2 +- models/directory_setting.go | 2 + .../directory_setting_collection_response.go | 2 +- models/directory_setting_template.go | 2 +- ...ry_setting_template_collection_response.go | 2 +- .../disable_and_delete_user_apply_action.go | 38 ++- models/discovered_sensitive_type.go | 2 +- models/dlp_evaluate_policies_job_response.go | 2 +- .../dlp_evaluation_windows_devices_input.go | 4 +- models/dlp_windows_devices_notification.go | 38 ++- models/document.go | 4 +- models/document_comment.go | 4 +- models/document_comment_reply.go | 2 + models/document_set_version.go | 2 +- ...ocument_set_version_collection_response.go | 2 +- models/domain.go | 4 +- models/domain_collection_response.go | 2 +- models/domain_dns_cname_record.go | 2 +- models/domain_dns_mx_record.go | 2 +- models/domain_dns_record.go | 2 + .../domain_dns_record_collection_response.go | 2 +- models/domain_dns_srv_record.go | 2 +- models/domain_dns_txt_record.go | 2 +- models/domain_dns_unavailable_record.go | 2 +- models/domain_identity_source.go | 4 +- models/domain_security_profile.go | 4 +- ...in_security_profile_collection_response.go | 2 +- models/drive.go | 38 ++- models/drive_collection_response.go | 2 +- models/drive_item.go | 2 + models/drive_item_collection_response.go | 2 +- models/drive_item_version.go | 2 +- .../drive_item_version_collection_response.go | 2 +- models/e_book_install_summary.go | 4 +- .../eas_email_profile_configuration_base.go | 4 +- models/edge.go | 4 +- models/edge_home_button_hidden.go | 6 +- models/edge_home_button_loads_start_page.go | 6 +- models/edge_home_button_opens_custom_u_r_l.go | 6 +- models/edge_home_button_opens_new_tab.go | 6 +- models/edge_search_engine.go | 40 +++- models/edge_search_engine_custom.go | 40 +++- .../ediscovery/add_to_review_set_operation.go | 2 +- models/ediscovery/case_collection_response.go | 2 +- models/ediscovery/case_escaped.go | 41 ++++ models/ediscovery/case_escapedable.go | 47 ---- models/ediscovery/case_export_operation.go | 2 +- ...se_export_operation_collection_response.go | 2 +- models/ediscovery/case_hold_operation.go | 2 +- models/ediscovery/case_index_operation.go | 2 +- models/ediscovery/case_operation.go | 2 + .../case_operation_collection_response.go | 2 +- models/ediscovery/case_settings.go | 2 + models/ediscovery/custodian.go | 2 +- .../custodian_collection_response.go | 2 +- models/ediscovery/data_source.go | 2 + .../data_source_collection_response.go | 2 +- models/ediscovery/data_source_container.go | 2 + models/ediscovery/ediscoveryroot.go | 4 +- .../estimate_statistics_operation.go | 2 +- models/ediscovery/legal_hold.go | 2 + .../legal_hold_collection_response.go | 2 +- ...stodial_data_source_collection_response.go | 2 +- models/ediscovery/purge_data_operation.go | 2 +- models/ediscovery/review_set.go | 2 + .../review_set_collection_response.go | 2 +- models/ediscovery/review_set_query.go | 2 + .../review_set_query_collection_response.go | 2 +- models/ediscovery/site_source.go | 2 +- .../site_source_collection_response.go | 2 +- models/ediscovery/source_collection.go | 2 + .../source_collection_collection_response.go | 2 +- models/ediscovery/tag.go | 2 + models/ediscovery/tag_collection_response.go | 2 +- models/ediscovery/tag_operation.go | 2 +- models/ediscovery/unified_group_source.go | 2 +- ...nified_group_source_collection_response.go | 2 +- models/ediscovery/user_source.go | 2 +- .../user_source_collection_response.go | 2 +- models/edition_upgrade_configuration.go | 4 +- models/education_assignment.go | 4 +- .../education_assignment_class_recipient.go | 38 ++- ...ducation_assignment_collection_response.go | 2 +- models/education_assignment_defaults.go | 4 +- .../education_assignment_group_recipient.go | 4 +- ...ucation_assignment_individual_recipient.go | 38 ++- models/education_assignment_points_grade.go | 4 +- .../education_assignment_points_grade_type.go | 4 +- models/education_assignment_resource.go | 2 + ...assignment_resource_collection_response.go | 2 +- models/education_assignment_settings.go | 4 +- models/education_category.go | 2 + .../education_category_collection_response.go | 2 +- models/education_class.go | 4 +- models/education_class_collection_response.go | 2 +- models/education_csv_data_provider.go | 4 +- models/education_excel_resource.go | 38 ++- models/education_external_resource.go | 38 ++- models/education_feedback_outcome.go | 2 +- models/education_feedback_resource_outcome.go | 2 +- models/education_file_resource.go | 38 ++- models/education_grading_category.go | 2 + ...on_grading_category_collection_response.go | 2 +- ...ucation_identity_creation_configuration.go | 4 +- models/education_identity_domain.go | 2 +- ...ucation_identity_matching_configuration.go | 4 +- models/education_identity_matching_options.go | 2 +- ..._identity_synchronization_configuration.go | 2 +- models/education_link_resource.go | 38 ++- models/education_media_resource.go | 4 +- .../education_one_roster_api_data_provider.go | 38 ++- models/education_organization.go | 2 + models/education_outcome.go | 2 + .../education_outcome_collection_response.go | 2 +- models/education_points_outcome.go | 2 +- models/education_power_point_resource.go | 38 ++- .../education_power_school_data_provider.go | 38 ++- models/education_root.go | 2 +- models/education_rubric.go | 2 + .../education_rubric_collection_response.go | 2 +- models/education_rubric_outcome.go | 2 +- models/education_school.go | 2 +- .../education_school_collection_response.go | 2 +- models/education_submission.go | 2 + ...ducation_submission_collection_response.go | 2 +- ...ucation_submission_individual_recipient.go | 38 ++- models/education_submission_resource.go | 2 + ...submission_resource_collection_response.go | 2 +- ...ion_synchronization_connection_settings.go | 2 +- ...ducation_synchronization_customizations.go | 38 ++- ...education_synchronization_data_provider.go | 2 +- models/education_synchronization_error.go | 2 + ...nchronization_error_collection_response.go | 2 +- ...tion_synchronization_license_assignment.go | 2 +- ...hronization_o_auth1_connection_settings.go | 4 +- ..._client_credentials_connection_settings.go | 4 +- models/education_synchronization_profile.go | 4 +- ...hronization_profile_collection_response.go | 2 +- ...ducation_synchronization_profile_status.go | 2 + models/education_teams_app_resource.go | 4 +- models/education_user.go | 2 + models/education_user_collection_response.go | 2 +- models/education_word_resource.go | 4 +- models/educational_activity.go | 2 +- ...ducational_activity_collection_response.go | 2 +- models/educational_activity_detail.go | 2 +- models/email_activity_statistics.go | 4 +- models/email_authentication_method.go | 2 +- ...thentication_method_collection_response.go | 2 +- ...ail_authentication_method_configuration.go | 2 +- models/email_file_assessment_request.go | 2 +- models/email_identity.go | 38 ++- models/email_payload_detail.go | 38 ++- models/email_settings.go | 2 +- models/embedded_s_i_m_activation_code.go | 2 +- models/embedded_s_i_m_activation_code_pool.go | 2 + ...d_s_i_m_activation_code_pool_assignment.go | 2 + ...ode_pool_assignment_collection_response.go | 2 +- ...ctivation_code_pool_collection_response.go | 2 +- models/embedded_s_i_m_device_state.go | 2 + ..._s_i_m_device_state_collection_response.go | 2 +- models/employee.go | 2 +- models/employee_collection_response.go | 2 +- models/employee_experience.go | 2 +- models/employee_experience_user.go | 4 +- models/encrypt_content.go | 38 ++- models/encrypt_with_template.go | 4 +- models/encrypt_with_user_defined_rights.go | 4 +- models/end_user_notification.go | 2 + ...d_user_notification_collection_response.go | 2 +- models/end_user_notification_detail.go | 2 + ...notification_detail_collection_response.go | 2 +- models/endpoint_collection_response.go | 2 +- models/enrollment_configuration_assignment.go | 2 + ...guration_assignment_collection_response.go | 2 +- models/enrollment_profile.go | 4 +- .../enrollment_profile_collection_response.go | 2 +- ...trictions_configuration_policy_set_item.go | 4 +- models/enrollment_troubleshooting_event.go | 4 +- models/enterprise_code_signing_certificate.go | 2 + ...signing_certificate_collection_response.go | 2 +- models/entitlement_management.go | 4 +- models/entitlement_management_settings.go | 2 + models/entity.go | 8 + models/enumerated_domains.go | 38 ++- models/evaluate_label_job_response.go | 2 +- models/event.go | 2 +- models/event_collection_response.go | 2 +- models/event_message.go | 2 +- models/event_message_request.go | 2 +- models/event_message_response.go | 2 +- models/exact_match_data_store.go | 2 +- models/exact_match_data_store_base.go | 2 + ...ct_match_data_store_collection_response.go | 2 +- .../exact_match_detected_sensitive_content.go | 38 ++- models/exact_match_job_base.go | 2 + models/exact_match_lookup_job.go | 2 +- models/exact_match_session.go | 2 +- models/exact_match_session_base.go | 2 +- ...exact_match_session_collection_response.go | 2 +- models/exact_match_upload_agent.go | 2 + ..._match_upload_agent_collection_response.go | 2 +- models/exclusion_group_assignment_target.go | 6 +- models/expression_evaluation_details.go | 2 +- models/extended_key_usage.go | 2 +- models/extension.go | 2 + models/extension_collection_response.go | 2 +- .../extension_property_collection_response.go | 2 +- models/extension_schema_property.go | 2 +- models/external.go | 38 ++- models/external_connection.go | 2 + models/external_domain_federation.go | 38 ++- models/external_domain_name.go | 2 + models/external_group.go | 2 + models/external_identities_policy.go | 2 +- models/external_item.go | 2 + models/external_meeting_registrant.go | 2 +- models/external_meeting_registration.go | 4 +- models/external_sponsors.go | 38 ++- ..._users_self_service_sign_up_events_flow.go | 2 +- .../connection_operation.go | 2 + ...onnection_operation_collection_response.go | 2 +- models/externalconnectors/connection_quota.go | 2 + models/externalconnectors/external.go | 2 +- .../externalconnectors/external_activity.go | 2 + .../external_activity_collection_response.go | 2 +- .../external_activity_result.go | 2 +- .../externalconnectors/external_connection.go | 4 +- ...external_connection_collection_response.go | 2 +- models/externalconnectors/external_group.go | 2 + .../external_group_collection_response.go | 2 +- models/externalconnectors/external_item.go | 2 + .../external_item_collection_response.go | 2 +- models/externalconnectors/identity.go | 2 + .../identity_collection_response.go | 2 +- models/externalconnectors/item_id_resolver.go | 4 +- models/externalconnectors/schema.go | 2 + models/feature_rollout_policy.go | 4 +- ...ture_rollout_policy_collection_response.go | 2 +- models/federated_identity_credential.go | 2 + ...identity_credential_collection_response.go | 2 +- models/federated_token_validation_policy.go | 2 +- models/fido2_authentication_method.go | 2 +- ...thentication_method_collection_response.go | 2 +- ...do2_authentication_method_configuration.go | 2 +- models/fido2_combination_configuration.go | 2 +- models/field_value_set.go | 2 + models/file_assessment_request.go | 2 +- models/file_attachment.go | 4 +- models/file_classification_request.go | 4 +- models/file_security_profile.go | 4 +- ...le_security_profile_collection_response.go | 2 +- models/filter_operator_schema.go | 4 +- ...ter_operator_schema_collection_response.go | 2 +- models/financials.go | 2 +- models/focus_activity_statistics.go | 38 ++- models/forms_settings.go | 30 +-- models/general_ledger_entry.go | 2 +- ...eneral_ledger_entry_collection_response.go | 2 +- models/governance_insight.go | 2 + .../governance_insight_collection_response.go | 2 +- models/governance_policy_template.go | 2 + ...nce_policy_template_collection_response.go | 2 +- models/governance_resource.go | 2 + ...governance_resource_collection_response.go | 2 +- models/governance_role_assignment.go | 2 + ...nce_role_assignment_collection_response.go | 2 +- models/governance_role_assignment_request.go | 2 + ..._assignment_request_collection_response.go | 2 +- models/governance_role_definition.go | 2 + ...nce_role_definition_collection_response.go | 2 +- models/governance_role_setting.go | 2 + ...rnance_role_setting_collection_response.go | 2 +- models/governance_subject.go | 36 +++ .../governance_subject_collection_response.go | 2 +- models/group.go | 2 +- models/group_assignment_target.go | 40 +++- models/group_collection_response.go | 2 +- models/group_lifecycle_policy.go | 2 + ...up_lifecycle_policy_collection_response.go | 2 +- models/group_members.go | 38 ++- .../group_membership_governance_criteria.go | 4 +- ...outlier_recommendation_insight_settings.go | 38 ++- models/group_policy_category.go | 2 + ...oup_policy_category_collection_response.go | 2 +- models/group_policy_configuration.go | 2 + .../group_policy_configuration_assignment.go | 2 + ...guration_assignment_collection_response.go | 2 +- ...olicy_configuration_collection_response.go | 2 +- models/group_policy_definition.go | 2 + ...p_policy_definition_collection_response.go | 2 +- models/group_policy_definition_file.go | 4 +- ...icy_definition_file_collection_response.go | 2 +- models/group_policy_definition_value.go | 36 +++ ...cy_definition_value_collection_response.go | 2 +- models/group_policy_migration_report.go | 6 +- ...cy_migration_report_collection_response.go | 2 +- models/group_policy_object_file.go | 2 + ..._policy_object_file_collection_response.go | 2 +- models/group_policy_operation.go | 2 + ...up_policy_operation_collection_response.go | 2 +- models/group_policy_presentation.go | 2 + models/group_policy_presentation_check_box.go | 4 +- ...policy_presentation_collection_response.go | 2 +- models/group_policy_presentation_combo_box.go | 4 +- ...up_policy_presentation_decimal_text_box.go | 4 +- ...group_policy_presentation_dropdown_list.go | 4 +- models/group_policy_presentation_list_box.go | 4 +- ...licy_presentation_long_decimal_text_box.go | 4 +- ...roup_policy_presentation_multi_text_box.go | 4 +- models/group_policy_presentation_text.go | 4 +- models/group_policy_presentation_text_box.go | 4 +- models/group_policy_presentation_value.go | 36 +++ ...group_policy_presentation_value_boolean.go | 6 +- ..._presentation_value_collection_response.go | 2 +- ...group_policy_presentation_value_decimal.go | 6 +- .../group_policy_presentation_value_list.go | 6 +- ..._policy_presentation_value_long_decimal.go | 6 +- ...up_policy_presentation_value_multi_text.go | 6 +- .../group_policy_presentation_value_text.go | 6 +- models/group_policy_setting_mapping.go | 2 + ...icy_setting_mapping_collection_response.go | 2 +- .../group_policy_uploaded_definition_file.go | 4 +- ...ded_definition_file_collection_response.go | 2 +- models/group_policy_uploaded_presentation.go | 4 +- models/group_writeback_configuration.go | 38 ++- models/home_realm_discovery_policy.go | 2 +- ...lm_discovery_policy_collection_response.go | 2 +- models/horizontal_section.go | 2 + .../horizontal_section_collection_response.go | 2 +- models/horizontal_section_column.go | 2 + ...ntal_section_column_collection_response.go | 2 +- models/host_security_profile.go | 4 +- ...st_security_profile_collection_response.go | 2 +- models/http_request_endpoint.go | 4 +- models/i_pv4_cidr_range.go | 4 +- models/i_pv4_range.go | 6 +- models/i_pv6_cidr_range.go | 4 +- models/i_pv6_range.go | 6 +- models/identity.go | 8 +- models/identity_api_connector.go | 2 + ...ntity_api_connector_collection_response.go | 2 +- .../identity_built_in_user_flow_attribute.go | 2 +- models/identity_container.go | 2 +- models/identity_custom_user_flow_attribute.go | 2 +- models/identity_governance.go | 2 +- models/identity_protection_root.go | 2 +- models/identity_provider.go | 2 + models/identity_provider_base.go | 2 + ...ntity_provider_base_collection_response.go | 2 +- .../identity_provider_collection_response.go | 2 +- ...ty_security_defaults_enforcement_policy.go | 2 +- models/identity_user_flow.go | 2 + models/identity_user_flow_attribute.go | 2 + ...identity_user_flow_attribute_assignment.go | 2 + ...ttribute_assignment_collection_response.go | 2 +- ...user_flow_attribute_collection_response.go | 2 +- .../identity_user_flow_collection_response.go | 2 +- .../custom_task_extension.go | 2 +- ...m_task_extension_callback_configuration.go | 4 +- .../custom_task_extension_callback_data.go | 38 ++- .../custom_task_extension_callout_data.go | 38 ++- ...stom_task_extension_collection_response.go | 2 +- .../lifecycle_management_settings.go | 4 +- .../lifecycle_workflows_container.go | 4 +- .../on_demand_execution_only.go | 38 ++- models/identitygovernance/parameter.go | 2 +- .../rule_based_subject_set.go | 38 ++- models/identitygovernance/run.go | 4 +- .../run_collection_response.go | 2 +- models/identitygovernance/task.go | 4 +- .../task_collection_response.go | 2 +- models/identitygovernance/task_definition.go | 4 +- .../task_definition_collection_response.go | 2 +- .../task_processing_result.go | 2 + ...k_processing_result_collection_response.go | 2 +- models/identitygovernance/task_report.go | 4 +- .../task_report_collection_response.go | 2 +- .../time_based_attribute_trigger.go | 4 +- .../trigger_and_scope_based_conditions.go | 4 +- .../user_processing_result.go | 2 + ...r_processing_result_collection_response.go | 2 +- models/identitygovernance/workflow.go | 4 +- .../workflow_collection_response.go | 2 +- .../identitygovernance/workflow_template.go | 4 +- .../workflow_template_collection_response.go | 2 +- models/identitygovernance/workflow_version.go | 2 + .../workflow_version_collection_response.go | 2 +- models/impacted_resource.go | 2 + .../impacted_resource_collection_response.go | 2 +- models/imported_apple_device_identity.go | 2 + ...ple_device_identity_collection_response.go | 2 +- .../imported_apple_device_identity_result.go | 4 +- models/imported_device_identity.go | 6 +- ...ted_device_identity_collection_response.go | 2 +- models/imported_device_identity_result.go | 4 +- ...orted_windows_autopilot_device_identity.go | 6 +- ...lot_device_identity_collection_response.go | 2 +- ...indows_autopilot_device_identity_upload.go | 6 +- models/inbound_shared_user_profile.go | 2 +- ...shared_user_profile_collection_response.go | 2 +- models/include_all_account_target_content.go | 4 +- models/include_target.go | 2 +- models/incoming_call_options.go | 4 +- .../industrydata/azure_data_lake_connector.go | 2 +- models/industrydata/file_data_connector.go | 2 +- .../industrydata/file_validate_operation.go | 2 +- .../identifier_type_reference_value.go | 38 ++- .../industrydata/inbound_activity_results.go | 38 ++- models/industrydata/inbound_file_flow.go | 2 +- models/industrydata/inbound_flow.go | 2 +- models/industrydata/inbound_flow_activity.go | 2 +- .../inbound_flow_collection_response.go | 2 +- models/industrydata/industry_data_activity.go | 2 + .../industry_data_activity_statistics.go | 2 +- .../industrydata/industry_data_connector.go | 2 + ...stry_data_connector_collection_response.go | 2 +- models/industrydata/industry_data_root.go | 4 +- models/industrydata/industry_data_run.go | 4 +- .../industry_data_run_activity.go | 2 + ...y_data_run_activity_collection_response.go | 2 +- .../industry_data_run_collection_response.go | 2 +- .../industry_data_run_role_count_metric.go | 2 +- models/industrydata/outbound_flow_activity.go | 2 +- models/industrydata/reference_definition.go | 2 + ...eference_definition_collection_response.go | 2 +- models/industrydata/role_group.go | 2 + .../role_group_collection_response.go | 2 +- models/industrydata/role_reference_value.go | 38 ++- .../industrydata/source_system_definition.go | 2 + ...e_system_definition_collection_response.go | 2 +- .../user_match_target_reference_value.go | 4 +- models/industrydata/validate_operation.go | 2 +- models/industrydata/year_reference_value.go | 4 +- .../year_time_period_definition.go | 2 + ...e_period_definition_collection_response.go | 2 +- models/inference_classification.go | 2 + models/inference_classification_override.go | 2 + ...sification_override_collection_response.go | 2 +- models/information_protection.go | 2 + models/information_protection_action.go | 2 +- models/information_protection_label.go | 2 + ...on_protection_label_collection_response.go | 2 +- models/information_protection_policy.go | 2 + models/initiator.go | 4 +- models/insight_value_double.go | 6 +- models/insight_value_int.go | 40 +++- models/insights_settings.go | 2 + models/institution_data.go | 2 +- models/internal_domain_federation.go | 2 +- ...l_domain_federation_collection_response.go | 2 +- models/internal_sponsors.go | 38 ++- models/internet_explorer_mode.go | 2 + models/intune_branding_profile.go | 6 +- models/intune_branding_profile_assignment.go | 2 + ..._profile_assignment_collection_response.go | 2 +- ...ne_branding_profile_collection_response.go | 2 +- models/invalid_license_alert_configuration.go | 2 +- models/invalid_license_alert_incident.go | 2 +- models/invitation.go | 4 +- models/invitation_collection_response.go | 2 +- models/invitation_participant_info.go | 2 +- models/invite_participants_operation.go | 2 +- models/invoke_user_flow_listener.go | 2 +- .../ios_azure_ad_single_sign_on_extension.go | 6 +- models/ios_certificate_profile.go | 2 +- models/ios_certificate_profile_base.go | 4 +- models/ios_compliance_policy.go | 4 +- ...ios_credential_single_sign_on_extension.go | 6 +- models/ios_custom_configuration.go | 4 +- ...credential_authentication_configuration.go | 4 +- models/ios_device_features_configuration.go | 4 +- models/ios_device_type.go | 2 +- models/ios_eas_email_profile_configuration.go | 4 +- models/ios_edu_device_configuration.go | 4 +- models/ios_education_device_configuration.go | 4 +- models/ios_enterprise_wi_fi_configuration.go | 4 +- models/ios_expedited_checkin_configuration.go | 4 +- models/ios_general_device_configuration.go | 4 +- models/ios_home_screen_app.go | 40 +++- models/ios_home_screen_folder.go | 40 +++- models/ios_home_screen_folder_page.go | 2 +- .../ios_imported_p_f_x_certificate_profile.go | 4 +- .../ios_kerberos_single_sign_on_extension.go | 6 +- models/ios_lob_app.go | 4 +- models/ios_lob_app_assignment_settings.go | 6 +- .../ios_lob_app_provisioning_configuration.go | 2 + ...p_provisioning_configuration_assignment.go | 2 + ...guration_assignment_collection_response.go | 2 +- ...oning_configuration_collection_response.go | 2 +- ...visioning_configuration_policy_set_item.go | 4 +- models/ios_managed_app_protection.go | 4 +- ...aged_app_protection_collection_response.go | 2 +- models/ios_managed_app_registration.go | 4 +- models/ios_mobile_app_configuration.go | 4 +- models/ios_mobile_app_identifier.go | 40 +++- models/ios_pkcs_certificate_profile.go | 4 +- .../ios_redirect_single_sign_on_extension.go | 6 +- models/ios_scep_certificate_profile.go | 4 +- models/ios_single_sign_on_extension.go | 40 +++- models/ios_store_app.go | 6 +- models/ios_store_app_assignment_settings.go | 40 +++- models/ios_trusted_root_certificate.go | 2 +- models/ios_update_configuration.go | 4 +- models/ios_update_device_status.go | 2 + ...pdate_device_status_collection_response.go | 2 +- models/ios_vpn_configuration.go | 4 +- models/ios_vpp_app.go | 6 +- models/ios_vpp_app_assigned_device_license.go | 4 +- models/ios_vpp_app_assigned_license.go | 2 + models/ios_vpp_app_assigned_user_license.go | 4 +- models/ios_vpp_app_assignment_settings.go | 40 +++- models/ios_vpp_e_book.go | 4 +- models/ios_vpp_e_book_assignment.go | 4 +- models/ios_web_content_filter_auto_filter.go | 40 +++- ...content_filter_specific_websites_access.go | 40 +++- models/ios_wi_fi_configuration.go | 4 +- models/iosi_pad_o_s_web_clip.go | 10 +- models/iosik_ev2_vpn_configuration.go | 4 +- models/ip_application_segment.go | 2 +- models/ip_named_location.go | 2 +- models/ip_range.go | 2 +- models/ip_security_profile.go | 4 +- ...ip_security_profile_collection_response.go | 2 +- models/ip_segment_configuration.go | 4 +- models/item_activity.go | 2 + models/item_activity_collection_response.go | 2 +- models/item_activity_o_l_d.go | 2 + ...item_activity_o_l_d_collection_response.go | 2 +- models/item_activity_stat.go | 2 + .../item_activity_stat_collection_response.go | 2 +- models/item_address.go | 2 +- models/item_address_collection_response.go | 2 +- models/item_analytics.go | 2 + models/item_attachment.go | 4 +- models/item_category_collection_response.go | 2 +- models/item_collection_response.go | 2 +- models/item_email.go | 2 +- models/item_email_collection_response.go | 2 +- models/item_facet.go | 2 + models/item_insights.go | 2 +- models/item_patent.go | 2 +- models/item_patent_collection_response.go | 2 +- models/item_phone.go | 2 +- models/item_phone_collection_response.go | 2 +- models/item_publication.go | 2 +- .../item_publication_collection_response.go | 2 +- models/item_retention_label.go | 2 + models/job_response_base.go | 2 + .../job_response_base_collection_response.go | 2 +- models/join_meeting_id_meeting_info.go | 4 +- models/journal.go | 2 +- models/journal_collection_response.go | 2 +- models/journal_line.go | 2 +- models/journal_line_collection_response.go | 2 +- models/justify_action.go | 38 ++- models/kerberos_single_sign_on_extension.go | 6 +- models/key_boolean_value_pair.go | 40 +++- models/key_credential.go | 2 +- models/key_integer_value_pair.go | 6 +- models/key_real_value_pair.go | 40 +++- models/key_string_value_pair.go | 40 +++- models/key_value.go | 10 +- models/key_value_pair.go | 2 +- models/label_details.go | 4 +- models/labeling_options.go | 2 +- models/landing_page.go | 36 +++ models/landing_page_collection_response.go | 2 +- models/landing_page_detail.go | 2 + ...landing_page_detail_collection_response.go | 2 +- models/language_proficiency.go | 2 +- ...anguage_proficiency_collection_response.go | 2 +- models/learning_assignment.go | 2 +- models/learning_content.go | 2 + .../learning_content_collection_response.go | 2 +- models/learning_course_activity.go | 2 + ...ing_course_activity_collection_response.go | 2 +- models/learning_provider.go | 4 +- .../learning_provider_collection_response.go | 2 +- models/learning_self_initiated_course.go | 2 +- models/license_details.go | 2 + models/license_details_collection_response.go | 2 +- models/linked_resource.go | 2 + models/linked_resource_collection_response.go | 2 +- models/list.go | 2 + models/list_collection_response.go | 2 +- models/list_item.go | 2 + models/list_item_collection_response.go | 2 +- models/list_item_version.go | 2 +- .../list_item_version_collection_response.go | 2 +- models/localized_notification_message.go | 2 + ...otification_message_collection_response.go | 2 +- models/locate_device_action_result.go | 6 +- models/location_constraint_item.go | 38 ++- ...ogic_app_trigger_endpoint_configuration.go | 38 ++- models/login_page.go | 2 + models/login_page_collection_response.go | 2 +- models/long_running_operation.go | 2 + ...g_running_operation_collection_response.go | 2 +- models/lookup_result_row.go | 2 + models/mac_app_identifier.go | 40 +++- ...c_o_s_azure_ad_single_sign_on_extension.go | 4 +- models/mac_o_s_certificate_profile_base.go | 2 +- models/mac_o_s_compliance_policy.go | 4 +- ...o_s_credential_single_sign_on_extension.go | 4 +- models/mac_o_s_custom_app_configuration.go | 4 +- models/mac_o_s_custom_configuration.go | 4 +- .../mac_o_s_device_features_configuration.go | 4 +- models/mac_o_s_dmg_app.go | 4 +- ...c_o_s_endpoint_protection_configuration.go | 4 +- .../mac_o_s_enterprise_wi_fi_configuration.go | 4 +- models/mac_o_s_extensions_configuration.go | 4 +- .../mac_o_s_general_device_configuration.go | 4 +- ..._o_s_imported_p_f_x_certificate_profile.go | 4 +- models/mac_o_s_included_app.go | 2 +- ...c_o_s_kerberos_single_sign_on_extension.go | 4 +- models/mac_o_s_lob_app.go | 4 +- models/mac_o_s_mdatp_app.go | 6 +- models/mac_o_s_microsoft_defender_app.go | 6 +- models/mac_o_s_microsoft_edge_app.go | 6 +- models/mac_o_s_office_suite_app.go | 6 +- models/mac_o_s_pkcs_certificate_profile.go | 4 +- models/mac_o_s_pkg_app.go | 4 +- ...c_o_s_redirect_single_sign_on_extension.go | 4 +- models/mac_o_s_scep_certificate_profile.go | 4 +- models/mac_o_s_single_sign_on_extension.go | 4 +- ...mac_o_s_software_update_account_summary.go | 2 + ...ate_account_summary_collection_response.go | 2 +- ...ac_o_s_software_update_category_summary.go | 2 + ...te_category_summary_collection_response.go | 2 +- .../mac_o_s_software_update_configuration.go | 4 +- .../mac_o_s_software_update_state_summary.go | 2 + ...pdate_state_summary_collection_response.go | 2 +- models/mac_o_s_trusted_root_certificate.go | 2 +- models/mac_o_s_vpn_configuration.go | 4 +- models/mac_o_s_wi_fi_configuration.go | 4 +- models/mac_o_s_wired_network_configuration.go | 4 +- models/mac_os_lob_app_assignment_settings.go | 44 +++- models/mac_os_vpp_app.go | 6 +- models/mac_os_vpp_app_assigned_license.go | 2 + models/mac_os_vpp_app_assignment_settings.go | 6 +- ...ine_learning_detected_sensitive_content.go | 38 ++- models/mail_assessment_request.go | 2 +- models/mail_folder.go | 2 + models/mail_folder_collection_response.go | 2 +- models/mail_search_folder.go | 2 +- models/mail_tips.go | 2 +- models/malware_state_for_windows_device.go | 2 + ..._for_windows_device_collection_response.go | 2 +- .../managed_all_device_certificate_state.go | 2 + ...e_certificate_state_collection_response.go | 2 +- models/managed_android_lob_app.go | 4 +- models/managed_android_store_app.go | 4 +- models/managed_app.go | 6 +- models/managed_app_configuration.go | 4 +- models/managed_app_operation.go | 2 + ...naged_app_operation_collection_response.go | 2 +- models/managed_app_policy.go | 2 + .../managed_app_policy_collection_response.go | 2 +- .../managed_app_policy_deployment_summary.go | 4 +- models/managed_app_protection.go | 4 +- .../managed_app_protection_policy_set_item.go | 4 +- models/managed_app_registration.go | 2 + ...ed_app_registration_collection_response.go | 2 +- models/managed_app_status.go | 2 + .../managed_app_status_collection_response.go | 2 +- models/managed_app_status_raw.go | 4 +- models/managed_device.go | 2 + models/managed_device_certificate_state.go | 2 + models/managed_device_collection_response.go | 2 +- models/managed_device_encryption_state.go | 2 + ...ce_encryption_state_collection_response.go | 2 +- ...managed_device_mobile_app_configuration.go | 6 +- ...ice_mobile_app_configuration_assignment.go | 2 + ...guration_assignment_collection_response.go | 2 +- ...e_app_configuration_collection_response.go | 2 +- ..._mobile_app_configuration_device_status.go | 2 + ...ation_device_status_collection_response.go | 2 +- ...mobile_app_configuration_device_summary.go | 4 +- ...obile_app_configuration_policy_set_item.go | 4 +- ...d_device_mobile_app_configuration_state.go | 2 + ...configuration_state_collection_response.go | 2 +- ...ce_mobile_app_configuration_user_status.go | 2 + ...uration_user_status_collection_response.go | 2 +- ...e_mobile_app_configuration_user_summary.go | 38 ++- models/managed_device_overview.go | 4 +- models/managed_device_reported_app.go | 2 +- models/managed_e_book.go | 2 + models/managed_e_book_assignment.go | 2 + ...d_e_book_assignment_collection_response.go | 2 +- models/managed_e_book_category.go | 2 + ...ged_e_book_category_collection_response.go | 2 +- models/managed_e_book_collection_response.go | 2 +- models/managed_i_o_s_lob_app.go | 4 +- models/managed_i_o_s_store_app.go | 4 +- models/managed_mobile_app.go | 2 + .../managed_mobile_app_collection_response.go | 2 +- models/managed_mobile_lob_app.go | 4 +- ...aged_mobile_lob_app_collection_response.go | 2 +- .../aggregated_policy_compliance.go | 2 + ...d_policy_compliance_collection_response.go | 2 +- models/managedtenants/app_performance.go | 2 + .../app_performance_collection_response.go | 2 +- models/managedtenants/audit_event.go | 2 + .../audit_event_collection_response.go | 2 +- models/managedtenants/cloud_pc_connection.go | 2 + ...cloud_pc_connection_collection_response.go | 2 +- models/managedtenants/cloud_pc_device.go | 2 + .../cloud_pc_device_collection_response.go | 2 +- models/managedtenants/cloud_pc_overview.go | 2 + .../cloud_pc_overview_collection_response.go | 2 +- .../conditional_access_policy_coverage.go | 2 + ...ess_policy_coverage_collection_response.go | 2 +- .../credential_user_registrations_summary.go | 2 + ...gistrations_summary_collection_response.go | 2 +- .../managedtenants/device_app_performance.go | 2 + ...ice_app_performance_collection_response.go | 2 +- ...compliance_policy_setting_state_summary.go | 2 + ...tting_state_summary_collection_response.go | 2 +- models/managedtenants/device_health_status.go | 2 + ...evice_health_status_collection_response.go | 2 +- models/managedtenants/email.go | 2 +- .../managed_device_compliance.go | 2 + ...d_device_compliance_collection_response.go | 2 +- .../managed_device_compliance_trend.go | 2 + ...ce_compliance_trend_collection_response.go | 2 +- models/managedtenants/managed_tenant.go | 4 +- models/managedtenants/managed_tenant_alert.go | 2 + ...anaged_tenant_alert_collection_response.go | 2 +- .../managed_tenant_alert_log.go | 2 + ...ed_tenant_alert_log_collection_response.go | 2 +- .../managed_tenant_alert_rule.go | 2 + ...d_tenant_alert_rule_collection_response.go | 2 +- .../managed_tenant_alert_rule_definition.go | 2 + ...ert_rule_definition_collection_response.go | 2 +- .../managed_tenant_api_notification.go | 2 + ...nt_api_notification_collection_response.go | 2 +- .../managed_tenant_email_notification.go | 2 + ..._email_notification_collection_response.go | 2 +- .../managed_tenant_ticketing_endpoint.go | 2 + ..._ticketing_endpoint_collection_response.go | 2 +- models/managedtenants/management_action.go | 2 + .../management_action_collection_response.go | 2 +- ...agement_action_tenant_deployment_status.go | 2 + ...t_deployment_status_collection_response.go | 2 +- models/managedtenants/management_intent.go | 2 + .../management_intent_collection_response.go | 2 +- models/managedtenants/management_template.go | 2 + .../management_template_collection.go | 2 + ...template_collection_collection_response.go | 2 +- ...management_template_collection_response.go | 2 +- ...ment_template_collection_tenant_summary.go | 2 + ...tion_tenant_summary_collection_response.go | 2 +- .../management_template_step.go | 2 + ...ement_template_step_collection_response.go | 2 +- .../management_template_step_deployment.go | 2 + ...ate_step_deployment_collection_response.go | 2 +- ...management_template_step_tenant_summary.go | 2 + ...step_tenant_summary_collection_response.go | 2 +- .../management_template_step_version.go | 2 + ...mplate_step_version_collection_response.go | 2 +- models/managedtenants/my_role.go | 2 +- .../my_role_collection_response.go | 2 +- models/managedtenants/role_definition.go | 2 +- models/managedtenants/tenant.go | 4 +- .../tenant_collection_response.go | 2 +- .../tenant_customized_information.go | 4 +- ...tomized_information_collection_response.go | 2 +- .../tenant_detailed_information.go | 4 +- ...etailed_information_collection_response.go | 2 +- models/managedtenants/tenant_group.go | 4 +- .../tenant_group_collection_response.go | 2 +- models/managedtenants/tenant_tag.go | 4 +- .../tenant_tag_collection_response.go | 2 +- .../windows_device_malware_state.go | 4 +- ...evice_malware_state_collection_response.go | 2 +- .../windows_protection_state.go | 2 + ...ws_protection_state_collection_response.go | 2 +- models/mark_content.go | 38 ++- models/match_location.go | 2 +- models/matching_dlp_rule.go | 2 +- ...m_windows_information_protection_policy.go | 4 +- ...n_protection_policy_collection_response.go | 2 +- ...ation_protection_policy_policy_set_item.go | 4 +- models/media_prompt.go | 4 +- models/meeting_activity_statistics.go | 4 +- models/meeting_attendance_report.go | 2 + ...g_attendance_report_collection_response.go | 2 +- ...ing_policy_updated_event_message_detail.go | 38 ++- models/meeting_registrant.go | 2 +- models/meeting_registrant_base.go | 2 + ...ing_registrant_base_collection_response.go | 2 +- models/meeting_registration.go | 4 +- models/meeting_registration_base.go | 36 +++ models/meeting_registration_question.go | 2 + ...gistration_question_collection_response.go | 2 +- models/meeting_time_suggestion.go | 2 +- models/members_added_event_message_detail.go | 38 ++- .../members_deleted_event_message_detail.go | 38 ++- models/members_joined_event_message_detail.go | 4 +- models/members_left_event_message_detail.go | 38 ++- models/membership_outlier_insight.go | 2 +- models/mention.go | 2 + models/mention_collection_response.go | 2 +- models/message.go | 2 +- models/message_collection_response.go | 2 +- models/message_event.go | 2 + models/message_event_collection_response.go | 2 +- models/message_pinned_event_message_detail.go | 38 ++- models/message_recipient.go | 4 +- .../message_recipient_collection_response.go | 2 +- models/message_rule.go | 2 + models/message_rule_collection_response.go | 2 +- models/message_trace.go | 38 ++- models/message_trace_collection_response.go | 2 +- .../message_unpinned_event_message_detail.go | 38 ++- models/metadata_action.go | 38 ++- ...rosoft_account_user_conversation_member.go | 2 +- ...rosoft_application_data_access_settings.go | 2 + ...oft_authenticator_authentication_method.go | 2 +- ...thentication_method_collection_response.go | 2 +- ...tor_authentication_method_configuration.go | 2 +- ...henticator_authentication_method_target.go | 2 +- models/microsoft_custom_training_setting.go | 4 +- models/microsoft_managed_training_setting.go | 38 ++- models/microsoft_store_for_business_app.go | 6 +- ...re_for_business_app_assignment_settings.go | 40 +++- ...rosoft_store_for_business_contained_app.go | 4 +- .../microsoft_training_assignment_mapping.go | 36 +++ models/microsoft_tunnel_configuration.go | 2 + ...unnel_configuration_collection_response.go | 2 +- models/microsoft_tunnel_health_threshold.go | 2 + ...el_health_threshold_collection_response.go | 2 +- models/microsoft_tunnel_server.go | 2 + ...osoft_tunnel_server_collection_response.go | 2 +- ...t_tunnel_server_log_collection_response.go | 36 +++ ...collection_response_collection_response.go | 2 +- models/microsoft_tunnel_site.go | 2 + ...crosoft_tunnel_site_collection_response.go | 2 +- models/mobile_app.go | 36 +++ models/mobile_app_assignment.go | 2 + ...bile_app_assignment_collection_response.go | 2 +- models/mobile_app_category.go | 2 + ...mobile_app_category_collection_response.go | 2 +- models/mobile_app_collection_response.go | 2 +- models/mobile_app_content.go | 2 + models/mobile_app_content_file.go | 2 + models/mobile_app_dependency.go | 4 +- models/mobile_app_install_status.go | 6 +- models/mobile_app_install_summary.go | 40 +++- models/mobile_app_intent_and_state.go | 2 + ...pp_intent_and_state_collection_response.go | 2 +- models/mobile_app_policy_set_item.go | 4 +- ...pp_provisioning_config_group_assignment.go | 2 + ...ig_group_assignment_collection_response.go | 2 +- models/mobile_app_relationship.go | 2 + ...le_app_relationship_collection_response.go | 2 +- models/mobile_app_supersedence.go | 4 +- ...bleshooting_app_policy_creation_history.go | 40 +++- ...e_app_troubleshooting_app_state_history.go | 40 +++- ..._app_troubleshooting_app_target_history.go | 40 +++- ..._app_troubleshooting_app_update_history.go | 40 +++- ..._troubleshooting_device_checkin_history.go | 40 +++- models/mobile_app_troubleshooting_event.go | 4 +- ...oubleshooting_event_collection_response.go | 2 +- models/mobile_contained_app.go | 2 + models/mobile_lob_app.go | 6 +- models/mobile_lob_app_collection_response.go | 2 +- models/mobile_threat_defense_connector.go | 2 + ...t_defense_connector_collection_response.go | 2 +- models/mobility_management_policy.go | 4 +- ...y_management_policy_collection_response.go | 2 +- .../multi_value_legacy_extended_property.go | 2 + models/mute_participant_operation.go | 2 +- models/mute_participants_operation.go | 2 +- models/named_location.go | 2 + models/named_location_collection_response.go | 2 +- models/ndes_connector.go | 36 +++ models/ndes_connector_collection_response.go | 2 +- models/networkaccess/associated_branch.go | 8 +- models/networkaccess/bgp_configuration.go | 14 +- models/networkaccess/branch_site.go | 34 +-- .../branch_site_collection_response.go | 2 +- .../conditional_access_policy.go | 20 +- .../conditional_access_settings.go | 4 +- models/networkaccess/connectivity.go | 6 +- .../cross_tenant_access_settings.go | 4 +- models/networkaccess/cross_tenant_summary.go | 20 +- models/networkaccess/destination_summary.go | 8 +- models/networkaccess/device_link.go | 18 +- .../device_link_collection_response.go | 2 +- models/networkaccess/device_usage_summary.go | 12 +- models/networkaccess/enriched_audit_logs.go | 16 +- models/networkaccess/entities_summary.go | 12 +- models/networkaccess/forwarding_options.go | 4 +- models/networkaccess/forwarding_policy.go | 2 +- .../forwarding_policy_collection_response.go | 2 +- .../networkaccess/forwarding_policy_link.go | 2 +- models/networkaccess/forwarding_profile.go | 10 +- .../forwarding_profile_collection_response.go | 2 +- models/networkaccess/forwarding_rule.go | 6 +- models/networkaccess/fqdn.go | 42 +++- models/networkaccess/headers.go | 12 +- models/networkaccess/ip_address.go | 8 +- models/networkaccess/ip_range.go | 12 +- models/networkaccess/ip_subnet.go | 42 +++- models/networkaccess/logs.go | 8 +- models/networkaccess/m365_forwarding_rule.go | 6 +- models/networkaccess/network_access_root.go | 32 +-- .../networkaccess/network_access_traffic.go | 98 ++++---- ...work_access_traffic_collection_response.go | 2 +- models/networkaccess/policy.go | 18 +- models/networkaccess/policy_link.go | 6 +- .../policy_link_collection_response.go | 2 +- models/networkaccess/policy_rule.go | 6 +- .../policy_rule_collection_response.go | 2 +- models/networkaccess/policy_rule_delta.go | 6 +- .../private_access_forwarding_rule.go | 2 +- models/networkaccess/profile.go | 22 +- .../networkaccess/redundancy_configuration.go | 4 +- models/networkaccess/reports.go | 2 + models/networkaccess/settings.go | 2 + models/networkaccess/tenant_status.go | 8 +- models/networkaccess/transaction_summary.go | 8 +- models/networkaccess/tunnel_configuration.go | 6 +- .../tunnel_configuration_i_k_ev2_custom.go | 42 +++- .../tunnel_configuration_i_k_ev2_default.go | 4 +- models/networkaccess/url.go | 8 +- ..._on_role_activation_alert_configuration.go | 2 +- ...o_mfa_on_role_activation_alert_incident.go | 2 +- models/no_training_notification_setting.go | 4 +- models/no_training_setting.go | 4 +- models/note.go | 2 +- models/notebook.go | 2 +- models/notebook_collection_response.go | 2 +- models/notification.go | 2 + models/notification_collection_response.go | 2 +- models/notification_message_template.go | 2 + ...on_message_template_collection_response.go | 2 +- models/notify_user_action.go | 38 ++- models/o_auth2_permission_grant.go | 2 + ...h2_permission_grant_collection_response.go | 2 +- models/offer_shift_request.go | 2 +- ...offer_shift_request_collection_response.go | 2 +- models/office365_active_user_counts.go | 4 +- models/office365_active_user_detail.go | 4 +- models/office365_groups_activity_counts.go | 4 +- models/office365_groups_activity_detail.go | 4 +- .../office365_groups_activity_file_counts.go | 4 +- .../office365_groups_activity_group_counts.go | 4 +- models/office365_groups_activity_storage.go | 4 +- models/office365_services_user_counts.go | 4 +- models/office_graph_insights.go | 2 + models/office_suite_app.go | 6 +- models/oma_setting_base64.go | 6 +- models/oma_setting_boolean.go | 6 +- models/oma_setting_date_time.go | 6 +- models/oma_setting_floating_point.go | 6 +- models/oma_setting_integer.go | 6 +- models/oma_setting_string.go | 6 +- models/oma_setting_string_xml.go | 6 +- ...ion_external_users_self_service_sign_up.go | 4 +- models/on_attribute_collection_listener.go | 2 +- ...art_external_users_self_service_sign_up.go | 4 +- ...thentication_method_load_start_listener.go | 2 +- ...art_external_users_self_service_sign_up.go | 38 ++- ...on_interactive_auth_flow_start_listener.go | 2 +- models/on_premises_agent.go | 4 +- .../on_premises_agent_collection_response.go | 2 +- models/on_premises_agent_group.go | 36 +++ ...remises_agent_group_collection_response.go | 2 +- ...on_premises_conditional_access_settings.go | 4 +- .../on_premises_directory_synchronization.go | 38 ++- ...ory_synchronization_collection_response.go | 2 +- ...mises_directory_synchronization_feature.go | 2 +- models/on_premises_publishing_profile.go | 4 +- ..._publishing_profile_collection_response.go | 2 +- ...n_token_issuance_start_custom_extension.go | 2 +- ...issuance_start_custom_extension_handler.go | 38 ++- models/on_token_issuance_start_listener.go | 2 +- ...art_external_users_self_service_sign_up.go | 4 +- models/on_user_create_start_listener.go | 2 +- models/onenote.go | 2 + models/onenote_entity_base_model.go | 36 +++ models/onenote_entity_hierarchy_model.go | 2 +- models/onenote_entity_schema_object_model.go | 4 +- models/onenote_operation.go | 2 +- .../onenote_operation_collection_response.go | 2 +- models/onenote_page_collection_response.go | 2 +- models/onenote_resource.go | 4 +- .../onenote_resource_collection_response.go | 2 +- models/onenote_section_collection_response.go | 2 +- models/online_meeting.go | 2 + models/online_meeting_collection_response.go | 2 +- models/open_id_connect_identity_provider.go | 2 +- models/open_id_connect_provider.go | 2 +- models/open_shift.go | 2 +- models/open_shift_change_request.go | 2 +- ...hift_change_request_collection_response.go | 2 +- models/open_shift_collection_response.go | 2 +- models/open_shift_item.go | 2 +- models/open_type_extension.go | 2 +- models/operation.go | 2 + models/org_contact.go | 2 +- models/org_contact_collection_response.go | 2 +- models/organization.go | 2 +- models/organization_collection_response.go | 2 +- models/organization_settings.go | 6 +- models/organizational_branding.go | 2 +- ...anding_localization_collection_response.go | 2 +- models/organizational_branding_properties.go | 2 + models/organizer_meeting_info.go | 4 +- models/outbound_shared_user_profile.go | 2 +- ...shared_user_profile_collection_response.go | 2 +- models/outgoing_call_options.go | 38 ++- models/outlook_category.go | 2 + .../outlook_category_collection_response.go | 2 +- models/outlook_item.go | 2 + models/outlook_task.go | 2 +- models/outlook_task_collection_response.go | 2 +- models/outlook_task_folder.go | 2 + ...outlook_task_folder_collection_response.go | 2 +- models/outlook_task_group.go | 2 + .../outlook_task_group_collection_response.go | 2 +- models/outlook_user.go | 2 + models/package_escaped.go | 12 + models/package_escapedable.go | 19 -- models/participant.go | 2 + models/participant_collection_response.go | 2 +- models/participant_joining_notification.go | 4 +- models/participant_left_notification.go | 4 +- models/password_authentication_method.go | 2 +- ...thentication_method_collection_response.go | 2 +- models/password_credential.go | 2 +- ...oft_authenticator_authentication_method.go | 2 +- ...thentication_method_collection_response.go | 2 +- models/payload.go | 2 + models/payload_collection_response.go | 2 +- .../payload_compatible_assignment_filter.go | 4 +- models/payload_response.go | 2 + .../payload_response_collection_response.go | 2 +- models/payload_types.go | 2 +- models/payment_method.go | 2 +- models/payment_method_collection_response.go | 2 +- models/payment_term_collection_response.go | 2 +- models/people_admin_settings.go | 77 +++++++ models/permission.go | 2 + models/permission_collection_response.go | 2 +- models/permission_grant_condition_set.go | 36 +++ ...grant_condition_set_collection_response.go | 2 +- models/permission_grant_policy.go | 2 +- ...ission_grant_policy_collection_response.go | 2 +- models/permission_scope.go | 2 +- models/persistent_browser_session_control.go | 4 +- models/person.go | 2 + models/person_annotation.go | 2 +- .../person_annotation_collection_response.go | 2 +- models/person_annual_event.go | 2 +- ...person_annual_event_collection_response.go | 2 +- models/person_award.go | 2 +- models/person_award_collection_response.go | 2 +- models/person_certification.go | 2 +- ...erson_certification_collection_response.go | 2 +- models/person_collection_response.go | 2 +- models/person_extension.go | 2 +- models/person_interest.go | 2 +- models/person_interest_collection_response.go | 2 +- models/person_name.go | 2 +- models/person_name_collection_response.go | 2 +- models/person_responsibility.go | 2 +- models/person_website.go | 2 +- models/person_website_collection_response.go | 2 +- models/phone_authentication_method.go | 2 +- ...thentication_method_collection_response.go | 2 +- models/picture.go | 2 +- models/picture_collection_response.go | 2 +- models/pinned_chat_message_info.go | 2 + ...d_chat_message_info_collection_response.go | 2 +- models/pkcs12_certificate.go | 4 +- models/place.go | 2 + models/planner.go | 4 +- models/planner_bucket_collection_response.go | 2 +- models/planner_delta.go | 2 + models/planner_delta_collection_response.go | 2 +- models/planner_external_bucket_source.go | 38 ++- models/planner_external_plan_source.go | 38 ++- models/planner_external_task_source.go | 4 +- models/planner_group.go | 2 + models/planner_plan_collection_response.go | 2 +- models/planner_plan_configuration.go | 2 + ...planner_plan_configuration_localization.go | 2 + ...ration_localization_collection_response.go | 2 +- .../planner_relationship_based_user_type.go | 4 +- models/planner_roster.go | 4 +- models/planner_roster_collection_response.go | 2 +- models/planner_roster_member.go | 2 + ...anner_roster_member_collection_response.go | 2 +- models/planner_shared_with_container.go | 4 +- models/planner_task_collection_response.go | 2 +- models/planner_task_configuration.go | 2 + models/planner_task_property_rule.go | 38 ++- models/planner_user.go | 2 +- models/play_prompt_operation.go | 2 +- models/policy_root.go | 2 +- models/policy_set.go | 2 + models/policy_set_assignment.go | 2 + ...licy_set_assignment_collection_response.go | 2 +- models/policy_set_collection_response.go | 2 +- models/policy_set_item.go | 2 + models/policy_set_item_collection_response.go | 2 +- models/position_detail.go | 2 +- models/positive_reinforcement_notification.go | 4 +- models/post.go | 2 +- models/post_collection_response.go | 2 +- models/presence.go | 2 + models/presence_collection_response.go | 2 +- models/presentation.go | 4 +- .../principal_resource_memberships_scope.go | 38 ++- models/print.go | 2 +- models/print_certificate_signing_request.go | 2 +- models/print_connector.go | 2 + models/print_connector_collection_response.go | 2 +- models/print_document.go | 2 + models/print_document_collection_response.go | 2 +- models/print_document_upload_properties.go | 2 +- models/print_job.go | 2 + models/print_job_collection_response.go | 2 +- models/print_job_configuration.go | 2 +- models/print_job_status.go | 2 +- models/print_operation.go | 2 + models/print_operation_collection_response.go | 2 +- models/print_operation_status.go | 2 +- models/print_service.go | 4 +- models/print_service_collection_response.go | 2 +- models/print_service_endpoint.go | 2 + ...nt_service_endpoint_collection_response.go | 2 +- models/print_task.go | 2 + models/print_task_collection_response.go | 2 +- models/print_task_definition.go | 2 + ...int_task_definition_collection_response.go | 2 +- models/print_task_status.go | 2 +- models/print_task_trigger.go | 2 + .../print_task_trigger_collection_response.go | 2 +- models/print_usage.go | 2 + models/print_usage_by_printer.go | 2 +- ...nt_usage_by_printer_collection_response.go | 2 +- models/print_usage_by_user.go | 2 +- ...print_usage_by_user_collection_response.go | 2 +- models/print_usage_collection_response.go | 2 +- models/printer_base.go | 2 + models/printer_collection_response.go | 2 +- models/printer_create_operation.go | 2 +- models/printer_document_configuration.go | 2 +- models/printer_share.go | 2 +- models/printer_share_collection_response.go | 2 +- models/printer_status.go | 2 +- models/privacy.go | 2 +- models/privilege_management_elevation.go | 2 + ...anagement_elevation_collection_response.go | 2 +- models/privileged_access.go | 4 +- .../privileged_access_collection_response.go | 2 +- models/privileged_access_group.go | 2 + ...ileged_access_group_assignment_schedule.go | 4 +- ...assignment_schedule_collection_response.go | 2 +- ...cess_group_assignment_schedule_instance.go | 2 +- ...t_schedule_instance_collection_response.go | 2 +- ...ccess_group_assignment_schedule_request.go | 2 +- ...nt_schedule_request_collection_response.go | 2 +- ...leged_access_group_eligibility_schedule.go | 2 + ...ligibility_schedule_collection_response.go | 2 +- ...y_schedule_instance_collection_response.go | 2 +- ...cess_group_eligibility_schedule_request.go | 2 +- ...ty_schedule_request_collection_response.go | 2 +- models/privileged_access_root.go | 38 ++- models/privileged_access_schedule.go | 36 +++ models/privileged_access_schedule_instance.go | 2 + models/privileged_access_schedule_request.go | 2 +- models/privileged_approval.go | 2 + ...privileged_approval_collection_response.go | 2 +- models/privileged_operation_event.go | 4 +- ...ged_operation_event_collection_response.go | 2 +- models/privileged_role.go | 2 + models/privileged_role_assignment.go | 2 + ...ged_role_assignment_collection_response.go | 2 +- models/privileged_role_assignment_request.go | 2 + ..._assignment_request_collection_response.go | 2 +- models/privileged_role_collection_response.go | 2 +- models/privileged_role_settings.go | 2 + models/privileged_role_summary.go | 2 + models/privileged_signup_status.go | 2 + ...leged_signup_status_collection_response.go | 2 +- models/profile.go | 2 + models/profile_card_property.go | 2 + ...ofile_card_property_collection_response.go | 2 +- models/profile_photo.go | 2 + models/profile_photo_collection_response.go | 2 +- models/program.go | 4 +- models/program_collection_response.go | 2 +- models/program_control.go | 2 + models/program_control_collection_response.go | 2 +- models/program_control_type.go | 2 + ...rogram_control_type_collection_response.go | 2 +- models/program_resource.go | 4 +- models/project_participation.go | 2 +- ...oject_participation_collection_response.go | 2 +- models/prompt.go | 2 +- models/pronouns_settings.go | 2 + models/protect_adhoc_action.go | 38 ++- models/protect_by_template_action.go | 38 ++- models/protect_do_not_forward_action.go | 38 ++- models/protect_group.go | 38 ++- models/protect_online_meeting_action.go | 4 +- models/protect_site.go | 38 ++- models/provider_tenant_setting.go | 4 +- ...ider_tenant_setting_collection_response.go | 2 +- models/provisioned_identity.go | 4 +- models/provisioned_plan.go | 2 +- models/provisioning_object_summary.go | 4 +- ...ning_object_summary_collection_response.go | 2 +- models/provisioning_service_principal.go | 4 +- models/provisioning_system.go | 4 +- models/proxied_domain.go | 2 +- models/published_resource.go | 36 +++ .../published_resource_collection_response.go | 2 +- models/purchase_invoice.go | 2 +- .../purchase_invoice_collection_response.go | 2 +- models/purchase_invoice_line.go | 4 +- ...rchase_invoice_line_collection_response.go | 2 +- models/rbac_application.go | 4 +- .../rbac_application_collection_response.go | 2 +- models/rbac_application_multiple.go | 4 +- models/recommend_label_action.go | 38 ++- models/recommendation.go | 2 +- models/recommendation_base.go | 2 + models/recommendation_collection_response.go | 2 +- models/record_operation.go | 2 +- models/redirect_single_sign_on_extension.go | 40 +++- models/redirect_uri_settings.go | 2 +- ...edundant_assignment_alert_configuration.go | 2 +- models/redundant_assignment_alert_incident.go | 2 +- models/reference_attachment.go | 4 +- models/regional_and_language_settings.go | 36 +++ models/relying_party_detailed_summary.go | 4 +- models/reminder.go | 2 +- models/remote_action_audit.go | 36 +++ ...remote_action_audit_collection_response.go | 2 +- models/remote_assistance_partner.go | 2 + ..._assistance_partner_collection_response.go | 2 +- models/remote_assistance_settings.go | 4 +- models/remote_lock_action_result.go | 6 +- models/remove_access_apply_action.go | 38 ++- models/remove_content_footer_action.go | 38 ++- models/remove_content_header_action.go | 4 +- models/remove_protection_action.go | 38 ++- models/remove_watermark_action.go | 38 ++- models/report_root.go | 90 +++++++- models/request.go | 2 + models/requestor_manager.go | 4 +- models/required_resource_access.go | 2 +- models/reset_passcode_action_result.go | 40 +++- models/resource_access.go | 2 +- models/resource_operation.go | 2 + .../resource_operation_collection_response.go | 2 +- ...ic_permission_grant_collection_response.go | 2 +- models/restricted_apps_violation.go | 2 + ...cted_apps_violation_collection_response.go | 2 +- models/result_template_dictionary.go | 38 ++- ...revoke_apple_vpp_licenses_action_result.go | 6 +- models/rich_long_running_operation.go | 2 +- ...g_running_operation_collection_response.go | 2 +- models/risk_detection.go | 4 +- models/risk_detection_collection_response.go | 2 +- models/risky_service_principal.go | 4 +- ...y_service_principal_collection_response.go | 2 +- ...ncipal_history_item_collection_response.go | 2 +- models/risky_user.go | 2 + models/risky_user_collection_response.go | 2 +- ...y_user_history_item_collection_response.go | 2 +- models/role_assignment.go | 2 + models/role_assignment_collection_response.go | 2 +- models/role_definition.go | 4 +- models/role_definition_collection_response.go | 2 +- models/role_management.go | 2 +- models/role_management_alert.go | 4 +- models/role_membership_governance_criteria.go | 4 +- models/role_scope_tag.go | 2 + models/role_scope_tag_auto_assignment.go | 2 + ...tag_auto_assignment_collection_response.go | 2 +- models/role_scope_tag_collection_response.go | 2 +- ...identity_management_alert_configuration.go | 2 +- ...eged_identity_management_alert_incident.go | 2 +- models/room.go | 2 +- models/room_collection_response.go | 2 +- models/room_list.go | 2 +- models/room_list_collection_response.go | 2 +- ...te_bit_locker_keys_device_action_result.go | 6 +- models/sales_credit_memo.go | 2 +- .../sales_credit_memo_collection_response.go | 2 +- models/sales_credit_memo_line.go | 4 +- ...es_credit_memo_line_collection_response.go | 2 +- models/sales_invoice.go | 2 +- models/sales_invoice_collection_response.go | 2 +- models/sales_invoice_line.go | 2 + .../sales_invoice_line_collection_response.go | 2 +- models/sales_order.go | 2 +- models/sales_order_collection_response.go | 2 +- models/sales_order_line.go | 4 +- .../sales_order_line_collection_response.go | 2 +- models/sales_quote.go | 2 +- models/sales_quote_collection_response.go | 2 +- models/sales_quote_line.go | 4 +- .../sales_quote_line_collection_response.go | 2 +- ...ml_or_ws_fed_external_domain_federation.go | 2 +- models/saml_or_ws_fed_provider.go | 2 +- models/schedule.go | 2 + models/schedule_change_request.go | 2 +- models/schedule_item.go | 2 +- models/scheduling_group.go | 2 +- .../scheduling_group_collection_response.go | 2 +- models/schema.go | 2 + models/schema_extension.go | 4 +- .../schema_extension_collection_response.go | 2 +- models/scoped_role_membership.go | 2 + ...ped_role_membership_collection_response.go | 2 +- models/search/acronym.go | 2 +- models/search/acronym_collection_response.go | 2 +- models/search/bookmark.go | 2 +- models/search/bookmark_collection_response.go | 2 +- models/search/qna.go | 2 +- models/search/qna_collection_response.go | 2 +- models/search/search_answer.go | 2 + models/search_aggregation.go | 2 +- models/search_bucket.go | 2 +- models/search_entity.go | 4 +- models/search_hit.go | 38 ++- models/search_hits_container.go | 2 +- models/search_query.go | 2 +- models/search_request.go | 2 +- models/search_response.go | 2 +- models/section_group_collection_response.go | 2 +- models/secure_score.go | 4 +- models/secure_score_collection_response.go | 2 +- models/secure_score_control_profile.go | 4 +- ...ore_control_profile_collection_response.go | 2 +- models/secure_sign_in_session_control.go | 38 ++- models/security.go | 4 +- models/security/add_content_footer_action.go | 38 ++- models/security/add_content_header_action.go | 38 ++- models/security/add_watermark_action.go | 38 ++- models/security/alert.go | 2 + models/security/alert_collection_response.go | 2 +- models/security/amazon_resource_evidence.go | 38 ++- models/security/analyzed_message_evidence.go | 38 ++- models/security/applied_category.go | 38 ++- models/security/apply_label_action.go | 38 ++- models/security/article.go | 2 + .../security/article_collection_response.go | 2 +- models/security/article_indicator.go | 2 +- .../article_indicator_collection_response.go | 2 +- models/security/artifact.go | 2 + models/security/authority.go | 4 +- models/security/authority_template.go | 2 +- .../authority_template_collection_response.go | 2 +- models/security/azure_resource_evidence.go | 38 ++- models/security/case_escaped.go | 19 ++ models/security/case_escapedable.go | 25 -- models/security/case_operation.go | 2 + .../case_operation_collection_response.go | 2 +- models/security/cases_root.go | 2 + models/security/category_template.go | 2 +- .../category_template_collection_response.go | 2 +- models/security/citation.go | 4 +- models/security/citation_template.go | 2 +- .../citation_template_collection_response.go | 2 +- models/security/classification_result.go | 2 +- models/security/cloud_application_evidence.go | 4 +- models/security/content_info.go | 2 +- models/security/custom_action.go | 38 ++- models/security/cvss_summary.go | 2 +- models/security/data_set.go | 2 + models/security/data_source.go | 2 + .../data_source_collection_response.go | 2 +- models/security/data_source_container.go | 2 + models/security/department.go | 4 +- models/security/department_template.go | 2 +- ...department_template_collection_response.go | 2 +- models/security/device_evidence.go | 4 +- models/security/disposition_review_stage.go | 2 + ...sition_review_stage_collection_response.go | 2 +- .../ediscovery_add_to_review_set_operation.go | 2 +- models/security/ediscovery_case.go | 2 +- .../ediscovery_case_collection_response.go | 2 +- models/security/ediscovery_case_settings.go | 2 + models/security/ediscovery_custodian.go | 2 +- ...discovery_custodian_collection_response.go | 2 +- .../security/ediscovery_export_operation.go | 2 +- models/security/ediscovery_file.go | 2 +- .../ediscovery_file_collection_response.go | 2 +- models/security/ediscovery_hold_operation.go | 2 +- models/security/ediscovery_hold_policy.go | 2 +- ...scovery_hold_policy_collection_response.go | 2 +- ...stodial_data_source_collection_response.go | 2 +- .../ediscovery_purge_data_operation.go | 2 +- models/security/ediscovery_review_set.go | 2 +- ...iscovery_review_set_collection_response.go | 2 +- .../security/ediscovery_review_set_query.go | 2 +- ...ry_review_set_query_collection_response.go | 2 +- models/security/ediscovery_review_tag.go | 2 +- ...iscovery_review_tag_collection_response.go | 2 +- models/security/ediscovery_search.go | 2 +- .../ediscovery_search_collection_response.go | 2 +- models/security/ediscovery_tag_operation.go | 2 +- .../email_content_threat_submission.go | 2 +- models/security/email_threat_submission.go | 2 +- ...l_threat_submission_collection_response.go | 2 +- .../email_threat_submission_policy.go | 2 + ...t_submission_policy_collection_response.go | 2 +- .../security/email_url_threat_submission.go | 2 +- models/security/file.go | 2 + .../file_content_threat_submission.go | 2 +- models/security/file_evidence.go | 38 ++- models/security/file_plan_descriptor.go | 2 + .../security/file_plan_descriptor_template.go | 2 + models/security/file_plan_reference.go | 38 ++- .../security/file_plan_reference_template.go | 2 +- ..._reference_template_collection_response.go | 2 +- models/security/file_threat_submission.go | 2 +- ...e_threat_submission_collection_response.go | 2 +- models/security/file_url_threat_submission.go | 2 +- models/security/formatted_content.go | 2 +- .../google_cloud_resource_evidence.go | 38 ++- models/security/host.go | 2 +- models/security/host_collection_response.go | 2 +- .../host_component_collection_response.go | 2 +- .../host_cookie_collection_response.go | 2 +- models/security/host_reputation.go | 2 + .../host_tracker_collection_response.go | 2 +- models/security/hostname.go | 2 +- models/security/hunting_row_result.go | 2 +- models/security/hyperlink.go | 2 +- models/security/incident.go | 2 + .../security/incident_collection_response.go | 2 +- models/security/indicator.go | 2 + models/security/information_protection.go | 2 + .../security/information_protection_action.go | 2 +- .../information_protection_policy_setting.go | 2 + models/security/intelligence_profile.go | 2 + ...ntelligence_profile_collection_response.go | 2 +- .../intelligence_profile_indicator.go | 2 +- ...e_profile_indicator_collection_response.go | 2 +- models/security/ip_address.go | 2 +- models/security/ip_evidence.go | 38 ++- models/security/justify_action.go | 38 ++- models/security/key_value_pair.go | 2 +- models/security/labeling_options.go | 2 +- models/security/labels_root.go | 2 + models/security/mail_cluster_evidence.go | 38 ++- models/security/mailbox_evidence.go | 4 +- models/security/metadata_action.go | 38 ++- models/security/oauth_application_evidence.go | 38 ++- .../passive_dns_record_collection_response.go | 2 +- models/security/policy_base.go | 2 + models/security/process_evidence.go | 4 +- models/security/protect_adhoc_action.go | 38 ++- models/security/protect_by_template_action.go | 4 +- .../security/protect_do_not_forward_action.go | 38 ++- models/security/recommend_label_action.go | 38 ++- models/security/registry_key_evidence.go | 38 ++- models/security/registry_value_evidence.go | 38 ++- .../security/remove_content_footer_action.go | 38 ++- .../security/remove_content_header_action.go | 38 ++- models/security/remove_protection_action.go | 38 ++- models/security/remove_watermark_action.go | 38 ++- models/security/retention_duration_forever.go | 4 +- models/security/retention_duration_in_days.go | 4 +- models/security/retention_event.go | 2 + .../retention_event_collection_response.go | 2 +- models/security/retention_event_type.go | 2 + ...etention_event_type_collection_response.go | 2 +- models/security/retention_label.go | 2 + .../retention_label_collection_response.go | 2 +- models/security/search.go | 2 + models/security/security.go | 2 + models/security/security_group_evidence.go | 38 ++- models/security/sensitivity_label.go | 2 + .../sensitivity_label_collection_response.go | 2 +- models/security/single_property_schema.go | 2 +- models/security/site_source.go | 2 +- .../site_source_collection_response.go | 2 +- models/security/sub_category.go | 2 + ...b_category_template_collection_response.go | 2 +- models/security/subdomain.go | 2 + .../security/subdomain_collection_response.go | 2 +- models/security/submission_user_identity.go | 4 +- models/security/tag.go | 2 + models/security/threat_intelligence.go | 2 + models/security/threat_submission.go | 2 + models/security/threat_submission_root.go | 2 + models/security/trigger_types_root.go | 2 + models/security/triggers_root.go | 2 + models/security/unclassified_artifact.go | 2 +- models/security/unified_group_source.go | 2 +- ...nified_group_source_collection_response.go | 2 +- models/security/url_evidence.go | 38 ++- models/security/url_threat_submission.go | 2 +- ...l_threat_submission_collection_response.go | 2 +- models/security/user_evidence.go | 38 ++- models/security/user_source.go | 2 +- .../user_source_collection_response.go | 2 +- models/security/vulnerability.go | 2 + .../vulnerability_collection_response.go | 2 +- models/security/vulnerability_component.go | 2 + ...erability_component_collection_response.go | 2 +- models/security_action.go | 4 +- models/security_action_collection_response.go | 2 +- ...ecurity_baseline_category_state_summary.go | 4 +- models/security_baseline_device_state.go | 2 + models/security_baseline_setting_state.go | 2 + ...eline_setting_state_collection_response.go | 2 +- models/security_baseline_state.go | 2 + ...rity_baseline_state_collection_response.go | 2 +- models/security_baseline_state_summary.go | 2 + models/security_baseline_template.go | 4 +- models/security_configuration_task.go | 4 +- models/security_reports_root.go | 2 + models/self_signed_certificate.go | 2 +- models/sensitive_type.go | 2 + models/sensitive_type_collection_response.go | 2 +- models/sensitivity_label.go | 36 +++ models/sensitivity_label_assignment.go | 2 +- .../sensitivity_label_collection_response.go | 2 +- models/sensitivity_policy_settings.go | 2 + ...activation_renewals_alert_configuration.go | 2 +- ...tial_activation_renewals_alert_incident.go | 2 +- models/service_announcement.go | 4 +- models/service_announcement_attachment.go | 2 + ...uncement_attachment_collection_response.go | 2 +- models/service_announcement_base.go | 2 + models/service_health.go | 2 + models/service_health_collection_response.go | 2 +- models/service_health_issue.go | 2 +- ...ervice_health_issue_collection_response.go | 2 +- models/service_health_issue_post.go | 2 +- models/service_hosted_media_config.go | 4 +- models/service_information.go | 2 +- models/service_level_agreement_attainment.go | 218 ++++++++++++++++++ models/service_level_agreement_root.go | 77 +++++++ models/service_now_connection.go | 6 +- ...vice_now_connection_collection_response.go | 2 +- ...service_now_oauth_secret_authentication.go | 40 +++- models/service_plan_info.go | 2 +- models/service_principal.go | 2 +- .../service_principal_collection_response.go | 2 +- ...ervice_principal_creation_condition_set.go | 2 + ...ation_condition_set_collection_response.go | 2 +- models/service_principal_creation_policy.go | 2 +- ...pal_creation_policy_collection_response.go | 2 +- models/service_principal_identity.go | 4 +- models/service_principal_risk_detection.go | 4 +- ...ipal_risk_detection_collection_response.go | 2 +- models/service_principal_sign_in_activity.go | 2 + ...al_sign_in_activity_collection_response.go | 2 +- ...ovisioning_linked_resource_error_detail.go | 38 ++- models/service_provisioning_resource_error.go | 38 ++- models/service_provisioning_xml_error.go | 38 ++- models/service_update_message.go | 2 +- ...vice_update_message_collection_response.go | 2 +- models/setting_state_device_summary.go | 2 + ...tate_device_summary_collection_response.go | 2 +- models/setting_template_value.go | 2 +- models/setting_value.go | 2 +- models/share_point_identity.go | 38 ++- models/share_point_identity_set.go | 38 ++- models/shared_drive_item.go | 4 +- .../shared_drive_item_collection_response.go | 2 +- models/shared_email_domain.go | 4 +- ...shared_email_domain_collection_response.go | 2 +- models/shared_email_domain_invitation.go | 2 + ...l_domain_invitation_collection_response.go | 2 +- models/shared_insight.go | 2 + models/shared_insight_collection_response.go | 2 +- models/shared_p_c_configuration.go | 4 +- models/shared_with_channel_team_info.go | 2 +- ...h_channel_team_info_collection_response.go | 2 +- models/sharepoint.go | 4 +- models/sharepoint_settings.go | 2 + models/shift.go | 2 +- models/shift_collection_response.go | 2 +- models/shift_item.go | 4 +- models/shift_preferences.go | 2 +- models/shipment_method_collection_response.go | 2 +- models/sign_in.go | 4 +- models/sign_in_collection_response.go | 2 +- models/sign_in_frequency_session_control.go | 38 ++- models/simulation.go | 2 + models/simulation_automation.go | 2 + ...mulation_automation_collection_response.go | 2 +- models/simulation_automation_run.go | 2 + ...tion_automation_run_collection_response.go | 2 +- models/simulation_collection_response.go | 2 +- models/simulation_notification.go | 4 +- models/single_user.go | 4 +- .../single_value_legacy_extended_property.go | 2 + models/site.go | 2 + models/site_collection_response.go | 2 +- models/site_page.go | 2 + models/site_page_collection_response.go | 2 +- models/skill_proficiency.go | 2 +- .../skill_proficiency_collection_response.go | 2 +- ...e_for_business_user_conversation_member.go | 2 +- models/skype_user_conversation_member.go | 2 +- ...sms_authentication_method_configuration.go | 2 +- models/sms_authentication_method_target.go | 2 +- models/social_identity_provider.go | 2 +- models/software_oath_authentication_method.go | 2 +- ...thentication_method_collection_response.go | 2 +- ...ath_authentication_method_configuration.go | 2 +- models/software_update_status_summary.go | 2 + models/solutions_root.go | 2 +- models/sort_property.go | 2 +- models/stale_sign_in_alert_configuration.go | 2 +- models/stale_sign_in_alert_incident.go | 2 +- models/standard_web_part.go | 6 +- models/start_hold_music_operation.go | 2 +- models/status_details.go | 38 ++- models/stop_hold_music_operation.go | 2 +- models/string_key_object_value_pair.go | 2 +- models/strong_authentication_detail.go | 4 +- .../strong_authentication_phone_app_detail.go | 4 +- models/sts_policy.go | 2 +- models/subject_rights_request.go | 4 +- ...ect_rights_request_all_mailbox_location.go | 4 +- ...ubject_rights_request_all_site_location.go | 4 +- ...ject_rights_request_collection_response.go | 2 +- ...hts_request_enumerated_mailbox_location.go | 4 +- ...rights_request_enumerated_site_location.go | 38 ++- models/subscribe_to_tone_operation.go | 2 +- models/subscribed_sku.go | 2 + models/subscribed_sku_collection_response.go | 2 +- models/subscription.go | 2 + models/subscription_collection_response.go | 2 +- models/swap_shifts_change_request.go | 2 +- ...ifts_change_request_collection_response.go | 2 +- models/symantec_code_signing_certificate.go | 2 + models/synchronization.go | 2 + models/synchronization_job.go | 38 +++ ...synchronization_job_collection_response.go | 2 +- models/synchronization_job_subject.go | 2 +- models/synchronization_schema.go | 2 + models/synchronization_template.go | 2 + ...ronization_template_collection_response.go | 2 +- models/tab_updated_event_message_detail.go | 38 ++- models/target_user_sponsors.go | 43 ++++ models/targeted_managed_app_configuration.go | 4 +- ...d_app_configuration_collection_response.go | 2 +- ...naged_app_configuration_policy_set_item.go | 4 +- .../targeted_managed_app_policy_assignment.go | 2 + ...p_policy_assignment_collection_response.go | 2 +- models/targeted_managed_app_protection.go | 4 +- models/task_file_attachment.go | 4 +- models/tax_area.go | 2 +- models/tax_area_collection_response.go | 2 +- models/tax_group.go | 4 +- models/tax_group_collection_response.go | 2 +- models/team.go | 2 + models/team_archived_event_message_detail.go | 38 ++- models/team_collection_response.go | 2 +- models/team_created_event_message_detail.go | 4 +- ...escription_updated_event_message_detail.go | 38 ++- models/team_info.go | 2 + ...m_joining_disabled_event_message_detail.go | 38 ++- ...am_joining_enabled_event_message_detail.go | 38 ++- models/team_members_notification_recipient.go | 4 +- models/team_renamed_event_message_detail.go | 38 ++- models/team_template.go | 4 +- models/team_template_collection_response.go | 2 +- models/team_template_definition.go | 2 + ...template_definition_collection_response.go | 2 +- .../team_unarchived_event_message_detail.go | 38 ++- models/teams_app.go | 2 + models/teams_app_collection_response.go | 2 +- models/teams_app_definition.go | 2 + ...eams_app_definition_collection_response.go | 2 +- models/teams_app_icon.go | 2 + models/teams_app_installation.go | 2 + ...ms_app_installation_collection_response.go | 2 +- ...eams_app_installed_event_message_detail.go | 38 ++- .../teams_app_removed_event_message_detail.go | 38 ++- models/teams_app_settings.go | 38 ++- ...teams_app_upgraded_event_message_detail.go | 4 +- models/teams_async_operation.go | 2 + ...ams_async_operation_collection_response.go | 2 +- models/teams_tab.go | 2 + models/teams_tab_collection_response.go | 2 +- models/teams_template.go | 2 + models/teams_template_collection_response.go | 2 +- models/teamwork.go | 4 +- models/teamwork_application_identity.go | 38 ++- models/teamwork_bot.go | 2 + models/teamwork_configured_peripheral.go | 2 +- models/teamwork_connection.go | 2 +- models/teamwork_conversation_identity.go | 4 +- models/teamwork_device.go | 2 + models/teamwork_device_activity.go | 2 + models/teamwork_device_collection_response.go | 2 +- models/teamwork_device_configuration.go | 2 + models/teamwork_device_health.go | 4 +- models/teamwork_device_operation.go | 2 + ...rk_device_operation_collection_response.go | 2 +- models/teamwork_hardware_detail.go | 2 +- models/teamwork_hosted_content.go | 2 + models/teamwork_peripheral.go | 2 + models/teamwork_tag.go | 2 + models/teamwork_tag_collection_response.go | 2 +- models/teamwork_tag_identity.go | 38 ++- models/teamwork_tag_member.go | 2 + ...teamwork_tag_member_collection_response.go | 2 +- models/teamwork_user_identity.go | 4 +- models/telecom_expense_management_partner.go | 2 + ..._management_partner_collection_response.go | 2 +- models/teleconference_device_audio_quality.go | 38 ++- models/teleconference_device_media_quality.go | 2 +- models/teleconference_device_quality.go | 2 +- ...onference_device_screen_sharing_quality.go | 4 +- models/teleconference_device_video_quality.go | 38 ++- ...orary_access_pass_authentication_method.go | 2 +- ...thentication_method_collection_response.go | 2 +- ...ass_authentication_method_configuration.go | 2 +- models/tenant_app_management_policy.go | 2 +- models/tenant_attach_r_b_a_c.go | 4 +- models/tenant_reference.go | 2 +- .../tenant_reference_collection_response.go | 2 +- models/tenant_relationship.go | 2 +- .../tenant_relationship_access_policy_base.go | 2 +- models/tenant_setup_info.go | 4 +- models/terms_and_conditions.go | 6 +- .../terms_and_conditions_acceptance_status.go | 2 + ...s_acceptance_status_collection_response.go | 2 +- models/terms_and_conditions_assignment.go | 2 + ...nditions_assignment_collection_response.go | 2 +- ...erms_and_conditions_collection_response.go | 2 +- .../terms_and_conditions_group_assignment.go | 2 + ...ns_group_assignment_collection_response.go | 2 +- models/terms_of_use_container.go | 4 +- models/termstore/group.go | 2 + models/termstore/group_collection_response.go | 2 +- models/termstore/relation.go | 2 + .../termstore/relation_collection_response.go | 2 +- models/termstore/set.go | 2 + models/termstore/set_collection_response.go | 2 +- models/termstore/store.go | 2 + models/termstore/term.go | 2 + models/termstore/term_collection_response.go | 2 +- models/text_classification_request.go | 4 +- models/text_web_part.go | 2 +- models/threat_assessment_request.go | 2 + ..._assessment_request_collection_response.go | 2 +- models/threat_assessment_result.go | 36 +++ ...t_assessment_result_collection_response.go | 2 +- models/thumbnail_set.go | 2 + models/thumbnail_set_collection_response.go | 2 +- models/ti_indicator.go | 4 +- models/ti_indicator_collection_response.go | 2 +- models/time_card.go | 2 +- models/time_card_collection_response.go | 2 +- models/time_off.go | 2 +- models/time_off_collection_response.go | 2 +- models/time_off_item.go | 38 ++- models/time_off_reason.go | 2 +- models/time_off_reason_collection_response.go | 2 +- models/time_off_request.go | 2 +- .../time_off_request_collection_response.go | 2 +- models/time_zone_information.go | 2 +- models/todo.go | 4 +- models/todo_settings.go | 14 +- models/todo_task.go | 2 + models/todo_task_collection_response.go | 2 +- models/todo_task_list.go | 2 + models/todo_task_list_collection_response.go | 2 +- models/token_issuance_policy.go | 2 +- ...ken_issuance_policy_collection_response.go | 2 +- models/token_lifetime_policy.go | 2 +- ...ken_lifetime_policy_collection_response.go | 2 +- models/token_meeting_info.go | 38 ++- ..._assigned_to_tenant_alert_configuration.go | 2 +- ...dmins_assigned_to_tenant_alert_incident.go | 2 +- models/training.go | 2 + models/training_collection_response.go | 2 +- models/training_language_detail.go | 2 + ...ing_language_detail_collection_response.go | 2 +- models/training_notification_setting.go | 4 +- models/training_reminder_notification.go | 4 +- models/translation_language_override.go | 2 +- models/trending.go | 2 + models/trending_collection_response.go | 2 +- models/trust_framework.go | 2 +- models/trust_framework_key.go | 2 +- models/trust_framework_key_set.go | 4 +- ...t_framework_key_set_collection_response.go | 2 +- models/trust_framework_policy.go | 4 +- ...st_framework_policy_collection_response.go | 2 +- ...ed_certificate_authority_as_entity_base.go | 2 +- models/typed_email_address.go | 38 ++- models/unified_rbac_application.go | 4 +- models/unified_rbac_resource_action.go | 2 + ...bac_resource_action_collection_response.go | 2 +- models/unified_rbac_resource_namespace.go | 2 + ..._resource_namespace_collection_response.go | 2 +- models/unified_rbac_resource_scope.go | 2 + models/unified_role.go | 2 +- models/unified_role_assignment.go | 2 + ...ied_role_assignment_collection_response.go | 2 +- models/unified_role_assignment_multiple.go | 2 + ...assignment_multiple_collection_response.go | 2 +- models/unified_role_assignment_schedule.go | 2 +- ...assignment_schedule_collection_response.go | 2 +- ...ified_role_assignment_schedule_instance.go | 2 +- ...t_schedule_instance_collection_response.go | 2 +- ...nified_role_assignment_schedule_request.go | 2 +- ...nt_schedule_request_collection_response.go | 2 +- models/unified_role_definition.go | 2 + ...ied_role_definition_collection_response.go | 2 +- ...ligibility_schedule_collection_response.go | 2 +- ...y_schedule_instance_collection_response.go | 2 +- ...ified_role_eligibility_schedule_request.go | 2 +- ...ty_schedule_request_collection_response.go | 2 +- models/unified_role_management_alert.go | 2 + ...le_management_alert_collection_response.go | 2 +- ...ied_role_management_alert_configuration.go | 2 + ...alert_configuration_collection_response.go | 2 +- ...nified_role_management_alert_definition.go | 2 + ...nt_alert_definition_collection_response.go | 2 +- .../unified_role_management_alert_incident.go | 2 + ...ment_alert_incident_collection_response.go | 2 +- models/unified_role_management_policy.go | 4 +- ...ed_role_management_policy_approval_rule.go | 2 +- ...ified_role_management_policy_assignment.go | 4 +- ...t_policy_assignment_collection_response.go | 2 +- ...ment_policy_authentication_context_rule.go | 2 +- ...e_management_policy_collection_response.go | 2 +- ..._role_management_policy_enablement_rule.go | 2 +- ..._role_management_policy_expiration_rule.go | 2 +- ...ole_management_policy_notification_rule.go | 2 +- models/unified_role_management_policy_rule.go | 2 + ...agement_policy_rule_collection_response.go | 2 +- models/unified_role_schedule_base.go | 2 + models/unified_role_schedule_instance_base.go | 2 + models/unit_of_measure.go | 2 +- models/unit_of_measure_collection_response.go | 2 +- models/unmanaged_device_discovery_task.go | 4 +- models/unmute_participant_operation.go | 2 +- models/unsupported_device_configuration.go | 4 +- models/unsupported_group_policy_extension.go | 2 + ...up_policy_extension_collection_response.go | 2 +- models/update_recording_status_operation.go | 2 +- models/url_assessment_request.go | 2 +- models/usage_right.go | 2 + models/usage_right_collection_response.go | 2 +- models/used_insight.go | 2 + models/used_insight_collection_response.go | 2 +- models/user_account_information.go | 2 +- ...account_information_collection_response.go | 2 +- models/user_activity.go | 2 + models/user_activity_collection_response.go | 2 +- models/user_analytics.go | 2 + models/user_app_install_status.go | 6 +- models/user_collection_response.go | 2 +- models/user_configuration.go | 2 + .../user_configuration_collection_response.go | 2 +- models/user_consent_request.go | 2 +- ...ser_consent_request_collection_response.go | 2 +- models/user_credential_usage_details.go | 2 + ...ntial_usage_details_collection_response.go | 2 +- models/user_experience_analytics_anomaly.go | 36 +++ ...e_analytics_anomaly_collection_response.go | 2 +- ...tics_anomaly_correlation_group_overview.go | 36 +++ ...tion_group_overview_collection_response.go | 2 +- ...ser_experience_analytics_anomaly_device.go | 2 + ...tics_anomaly_device_collection_response.go | 2 +- ...p_health_app_performance_by_app_version.go | 2 + ...ance_by_app_version_collection_response.go | 2 +- ..._app_performance_by_app_version_details.go | 2 + ...app_version_details_collection_response.go | 2 +- ...pp_performance_by_app_version_device_id.go | 2 + ...p_version_device_id_collection_response.go | 2 +- ...p_health_app_performance_by_o_s_version.go | 36 +++ ...ance_by_o_s_version_collection_response.go | 2 +- ...tics_app_health_application_performance.go | 2 + ...ication_performance_collection_response.go | 2 +- ...ics_app_health_device_model_performance.go | 2 + ...e_model_performance_collection_response.go | 2 +- ...analytics_app_health_device_performance.go | 2 + ..._device_performance_collection_response.go | 2 +- ...s_app_health_device_performance_details.go | 2 + ...performance_details_collection_response.go | 2 +- ...tics_app_health_o_s_version_performance.go | 36 +++ ...version_performance_collection_response.go | 2 +- models/user_experience_analytics_baseline.go | 2 + ..._analytics_baseline_collection_response.go | 2 +- ...nce_analytics_battery_health_app_impact.go | 2 + ...y_health_app_impact_collection_response.go | 2 +- ...alytics_battery_health_capacity_details.go | 38 ++- ...lytics_battery_health_device_app_impact.go | 2 + ...h_device_app_impact_collection_response.go | 2 +- ...ytics_battery_health_device_performance.go | 2 + ..._device_performance_collection_response.go | 2 +- ...s_battery_health_device_runtime_history.go | 2 + ...ice_runtime_history_collection_response.go | 2 +- ...lytics_battery_health_model_performance.go | 36 +++ ...h_model_performance_collection_response.go | 2 +- ...analytics_battery_health_os_performance.go | 2 + ...alth_os_performance_collection_response.go | 2 +- ...nalytics_battery_health_runtime_details.go | 4 +- models/user_experience_analytics_category.go | 4 +- ..._analytics_category_collection_response.go | 2 +- ...experience_analytics_device_performance.go | 2 + ..._device_performance_collection_response.go | 2 +- .../user_experience_analytics_device_scope.go | 4 +- ...lytics_device_scope_collection_response.go | 2 +- ...user_experience_analytics_device_scores.go | 2 + ...ytics_device_scores_collection_response.go | 2 +- ...rience_analytics_device_startup_history.go | 2 + ...ice_startup_history_collection_response.go | 2 +- ...rience_analytics_device_startup_process.go | 2 + ...ice_startup_process_collection_response.go | 2 +- ...tics_device_startup_process_performance.go | 2 + ...process_performance_collection_response.go | 2 +- ...erience_analytics_device_timeline_event.go | 36 +++ ...vice_timeline_event_collection_response.go | 2 +- ...analytics_device_without_cloud_identity.go | 2 + ...hout_cloud_identity_collection_response.go | 2 +- ..._experience_analytics_impacting_process.go | 2 + ...s_impacting_process_collection_response.go | 2 +- models/user_experience_analytics_metric.go | 2 + ...ce_analytics_metric_collection_response.go | 2 +- ...ser_experience_analytics_metric_history.go | 2 + ...tics_metric_history_collection_response.go | 2 +- .../user_experience_analytics_model_scores.go | 2 + ...lytics_model_scores_collection_response.go | 2 +- ...ce_analytics_not_autopilot_ready_device.go | 2 + ...opilot_ready_device_collection_response.go | 2 +- models/user_experience_analytics_overview.go | 4 +- ..._experience_analytics_remote_connection.go | 2 + ...s_remote_connection_collection_response.go | 2 +- ...perience_analytics_resource_performance.go | 2 + ...esource_performance_collection_response.go | 2 +- ...user_experience_analytics_score_history.go | 2 + ...ytics_score_history_collection_response.go | 2 +- ...nce_analytics_work_from_anywhere_device.go | 2 + ...rom_anywhere_device_collection_response.go | 2 +- ...from_anywhere_hardware_readiness_metric.go | 4 +- ...nce_analytics_work_from_anywhere_metric.go | 2 + ...rom_anywhere_metric_collection_response.go | 2 +- ...cs_work_from_anywhere_model_performance.go | 2 + ...e_model_performance_collection_response.go | 2 +- models/user_flow_language_configuration.go | 2 + ...guage_configuration_collection_response.go | 2 +- models/user_flow_language_page.go | 2 + ..._flow_language_page_collection_response.go | 2 +- models/user_governance_criteria.go | 4 +- models/user_identity.go | 4 +- models/user_insights_settings.go | 2 + models/user_install_state_summary.go | 2 + ...stall_state_summary_collection_response.go | 2 +- ..._sign_in_recommendation_insight_setting.go | 4 +- models/user_p_f_x_certificate.go | 6 +- ...r_p_f_x_certificate_collection_response.go | 2 +- models/user_registration_count.go | 2 +- models/user_registration_details.go | 30 +-- ...egistration_details_collection_response.go | 2 +- models/user_registration_feature_count.go | 2 +- models/user_registration_feature_summary.go | 18 +- models/user_registration_method_count.go | 6 +- models/user_registration_method_summary.go | 10 +- models/user_scope_teams_app_installation.go | 2 +- ...ms_app_installation_collection_response.go | 2 +- models/user_security_profile.go | 4 +- ...er_security_profile_collection_response.go | 2 +- models/user_set.go | 2 + models/user_settings.go | 2 + models/user_sign_in_insight.go | 2 +- models/user_simulation_event_info.go | 2 +- models/user_teamwork.go | 4 +- models/user_training_status_info.go | 2 +- models/validating_domains.go | 2 +- models/validation_result.go | 2 +- models/vendor_collection_response.go | 2 +- models/vendor_escaped.go | 50 ++++ models/vendor_escapedable.go | 59 ----- models/verifiable_credential_required.go | 38 ++- models/verifiable_credential_retrieved.go | 38 ++- models/verifiable_credential_verified.go | 38 ++- models/verified_domain.go | 2 +- models/vertical_section.go | 2 + models/virtual_appointment.go | 2 + models/virtual_endpoint.go | 2 + models/virtual_event.go | 2 + models/virtual_event_collection_response.go | 2 +- models/virtual_event_presenter.go | 2 + ...ual_event_presenter_collection_response.go | 2 +- models/virtual_event_presenter_info.go | 4 +- models/virtual_event_registrant.go | 2 + models/virtual_event_registration.go | 2 + models/virtual_event_registration_question.go | 2 + models/virtual_event_session.go | 2 +- ...rtual_event_session_collection_response.go | 2 +- models/virtual_event_webinar.go | 2 +- ...rtual_event_webinar_collection_response.go | 2 +- models/virtual_events_root.go | 4 +- models/visual_info.go | 2 +- ...ice_authentication_method_configuration.go | 2 +- models/voice_authentication_method_target.go | 2 +- models/vpn_configuration.go | 4 +- models/vpn_server.go | 2 +- models/vpp_token.go | 2 + models/vpp_token_collection_response.go | 2 +- ...vpp_token_revoke_licenses_action_result.go | 6 +- models/vulnerable_managed_device.go | 2 + models/web_account.go | 2 +- models/web_account_collection_response.go | 2 +- models/web_app.go | 6 +- models/web_application_segment.go | 2 +- models/web_part.go | 2 + models/web_part_collection_response.go | 2 +- models/web_segment_configuration.go | 38 ++- models/win32_lob_app.go | 4 +- models/win32_lob_app_assignment_settings.go | 40 +++- models/win32_lob_app_file_system_detection.go | 40 +++- .../win32_lob_app_file_system_requirement.go | 40 +++- models/win32_lob_app_file_system_rule.go | 40 +++- ...32_lob_app_power_shell_script_detection.go | 6 +- ..._lob_app_power_shell_script_requirement.go | 40 +++- .../win32_lob_app_power_shell_script_rule.go | 40 +++- .../win32_lob_app_product_code_detection.go | 6 +- models/win32_lob_app_product_code_rule.go | 40 +++- models/win32_lob_app_registry_detection.go | 6 +- models/win32_lob_app_registry_requirement.go | 6 +- models/win32_lob_app_registry_rule.go | 40 +++- models/win_get_app.go | 6 +- models/win_get_app_assignment_settings.go | 40 +++- models/windows10_certificate_profile_base.go | 4 +- models/windows10_compliance_policy.go | 4 +- models/windows10_custom_configuration.go | 4 +- ...device_firmware_configuration_interface.go | 4 +- ...ndows10_eas_email_profile_configuration.go | 4 +- ...ows10_endpoint_protection_configuration.go | 4 +- ...nrollment_completion_page_configuration.go | 4 +- ...tion_page_configuration_policy_set_item.go | 4 +- ...ise_modern_app_management_configuration.go | 4 +- models/windows10_general_configuration.go | 4 +- ...ws10_imported_p_f_x_certificate_profile.go | 4 +- models/windows10_mobile_compliance_policy.go | 4 +- ...indows10_network_boundary_configuration.go | 4 +- ...dows10_p_f_x_import_certificate_profile.go | 4 +- models/windows10_pkcs_certificate_profile.go | 4 +- ...ndows10_secure_assessment_configuration.go | 4 +- .../windows10_team_general_configuration.go | 4 +- models/windows10_vpn_configuration.go | 4 +- models/windows10_vpn_proxy_server.go | 40 +++- models/windows10_x_certificate_profile.go | 4 +- ...windows10_x_s_c_e_p_certificate_profile.go | 4 +- .../windows10_x_trusted_root_certificate.go | 4 +- models/windows10_x_vpn_configuration.go | 4 +- models/windows10_x_wifi_configuration.go | 4 +- models/windows81_certificate_profile_base.go | 4 +- models/windows81_compliance_policy.go | 4 +- models/windows81_general_configuration.go | 4 +- .../windows81_s_c_e_p_certificate_profile.go | 4 +- models/windows81_trusted_root_certificate.go | 2 +- models/windows81_vpn_configuration.go | 4 +- models/windows81_vpn_proxy_server.go | 6 +- models/windows81_wifi_import_configuration.go | 4 +- models/windows_app_identifier.go | 40 +++- models/windows_app_x.go | 4 +- .../windows_app_x_app_assignment_settings.go | 40 +++- models/windows_assigned_access_profile.go | 6 +- .../windows_autopilot_deployment_profile.go | 6 +- ...autopilot_deployment_profile_assignment.go | 2 + ..._profile_assignment_collection_response.go | 2 +- ..._deployment_profile_collection_response.go | 2 +- ...ilot_deployment_profile_policy_set_item.go | 4 +- models/windows_autopilot_device_identity.go | 2 + ...lot_device_identity_collection_response.go | 2 +- models/windows_autopilot_settings.go | 6 +- models/windows_certificate_profile_base.go | 4 +- ...dvanced_threat_protection_configuration.go | 4 +- ...application_control_supplemental_policy.go | 40 ++-- ..._control_supplemental_policy_assignment.go | 2 + ...l_policy_assignment_collection_response.go | 2 +- ...supplemental_policy_collection_response.go | 2 +- ...l_supplemental_policy_deployment_status.go | 6 +- ...y_deployment_status_collection_response.go | 2 +- ..._supplemental_policy_deployment_summary.go | 38 ++- models/windows_defender_scan_action_result.go | 6 +- ...ows_delivery_optimization_configuration.go | 4 +- models/windows_device_a_d_account.go | 4 +- models/windows_device_azure_a_d_account.go | 4 +- models/windows_device_malware_state.go | 2 + ...evice_malware_state_collection_response.go | 2 +- models/windows_domain_join_configuration.go | 4 +- models/windows_driver_update_inventory.go | 2 + ...er_update_inventory_collection_response.go | 2 +- models/windows_driver_update_profile.go | 36 +++ ...indows_driver_update_profile_assignment.go | 2 + ..._profile_assignment_collection_response.go | 2 +- ...iver_update_profile_collection_response.go | 2 +- models/windows_feature_update_catalog_item.go | 4 +- models/windows_feature_update_profile.go | 2 + ...ndows_feature_update_profile_assignment.go | 2 + ..._profile_assignment_collection_response.go | 2 +- ...ture_update_profile_collection_response.go | 2 +- ...windows_health_monitoring_configuration.go | 4 +- ...ello_for_business_authentication_method.go | 2 +- ...thentication_method_collection_response.go | 2 +- ...ndows_identity_protection_configuration.go | 4 +- models/windows_information_protection.go | 4 +- ...rmation_protection_app_learning_summary.go | 6 +- ...pp_learning_summary_collection_response.go | 2 +- ..._information_protection_app_locker_file.go | 2 + ...ion_app_locker_file_collection_response.go | 2 +- ...dows_information_protection_desktop_app.go | 6 +- ...ormation_protection_device_registration.go | 2 + ...device_registration_collection_response.go | 2 +- ...ion_protection_network_learning_summary.go | 6 +- ...rk_learning_summary_collection_response.go | 2 +- .../windows_information_protection_policy.go | 4 +- ...n_protection_policy_collection_response.go | 2 +- ...indows_information_protection_store_app.go | 40 +++- ...dows_information_protection_wipe_action.go | 36 +++ ...tection_wipe_action_collection_response.go | 2 +- .../windows_kiosk_active_directory_group.go | 6 +- models/windows_kiosk_app_base.go | 2 +- models/windows_kiosk_app_configuration.go | 2 +- models/windows_kiosk_autologon.go | 6 +- models/windows_kiosk_azure_a_d_group.go | 6 +- models/windows_kiosk_azure_a_d_user.go | 6 +- models/windows_kiosk_configuration.go | 4 +- models/windows_kiosk_desktop_app.go | 6 +- models/windows_kiosk_local_group.go | 6 +- models/windows_kiosk_local_user.go | 6 +- models/windows_kiosk_multiple_apps.go | 6 +- models/windows_kiosk_single_u_w_p_app.go | 6 +- models/windows_kiosk_single_win32_app.go | 6 +- models/windows_kiosk_u_w_p_app.go | 6 +- models/windows_kiosk_user.go | 2 +- models/windows_kiosk_visitor.go | 6 +- models/windows_kiosk_win32_app.go | 6 +- models/windows_malware_information.go | 2 + ...malware_information_collection_response.go | 2 +- models/windows_managed_app_protection.go | 4 +- ...aged_app_protection_collection_response.go | 2 +- models/windows_managed_device.go | 4 +- models/windows_management_app.go | 4 +- models/windows_management_app_health_state.go | 2 + .../windows_management_app_health_summary.go | 6 +- models/windows_microsoft_edge_app.go | 6 +- models/windows_mobile_m_s_i.go | 4 +- models/windows_phone81_app_x.go | 4 +- models/windows_phone81_app_x_bundle.go | 4 +- ...indows_phone81_certificate_profile_base.go | 2 +- models/windows_phone81_compliance_policy.go | 4 +- .../windows_phone81_custom_configuration.go | 4 +- .../windows_phone81_general_configuration.go | 4 +- ...ne81_imported_p_f_x_certificate_profile.go | 4 +- ...ows_phone81_s_c_e_p_certificate_profile.go | 4 +- models/windows_phone81_store_app.go | 6 +- ...indows_phone81_trusted_root_certificate.go | 2 +- models/windows_phone81_vpn_configuration.go | 4 +- ...phone_e_a_s_email_profile_configuration.go | 4 +- models/windows_phone_x_a_p.go | 4 +- ...indows_privacy_data_access_control_item.go | 2 + models/windows_protection_state.go | 4 +- models/windows_quality_update_catalog_item.go | 4 +- models/windows_quality_update_profile.go | 2 + ...ndows_quality_update_profile_assignment.go | 2 + ..._profile_assignment_collection_response.go | 2 +- ...lity_update_profile_collection_response.go | 2 +- models/windows_store_app.go | 6 +- models/windows_universal_app_x.go | 4 +- ...universal_app_x_app_assignment_settings.go | 40 +++- .../windows_universal_app_x_contained_app.go | 4 +- models/windows_update_active_hours_install.go | 4 +- models/windows_update_catalog_item.go | 2 + ...update_catalog_item_collection_response.go | 2 +- ...ndows_update_for_business_configuration.go | 4 +- models/windows_update_scheduled_install.go | 4 +- models/windows_update_state.go | 4 +- models/windows_vpn_configuration.go | 4 +- models/windows_web_app.go | 6 +- models/windows_wifi_configuration.go | 4 +- ...ows_wifi_enterprise_e_a_p_configuration.go | 4 +- models/windows_wired_network_configuration.go | 4 +- .../applicable_content_device_match.go | 2 +- models/windowsupdates/azure_a_d_device.go | 2 +- .../azure_a_d_device_registration_error.go | 4 +- models/windowsupdates/catalog.go | 2 + models/windowsupdates/catalog_content.go | 4 +- models/windowsupdates/catalog_entry.go | 2 + .../catalog_entry_collection_response.go | 2 +- models/windowsupdates/compliance_change.go | 2 + .../compliance_change_collection_response.go | 2 +- models/windowsupdates/content_approval.go | 2 +- .../windowsupdates/content_approval_rule.go | 38 ++- .../date_driven_rollout_settings.go | 38 ++- models/windowsupdates/deployment.go | 2 + models/windowsupdates/deployment_audience.go | 2 + ...deployment_audience_collection_response.go | 2 +- .../deployment_collection_response.go | 2 +- .../windowsupdates/deployment_state_reason.go | 2 +- .../driver_update_catalog_entry.go | 2 +- models/windowsupdates/driver_update_filter.go | 2 +- .../duration_driven_rollout_settings.go | 4 +- .../feature_update_catalog_entry.go | 2 +- .../operational_insights_connection.go | 2 +- .../quality_update_catalog_entry.go | 2 +- .../rate_driven_rollout_settings.go | 38 ++- models/windowsupdates/resource_connection.go | 2 + ...resource_connection_collection_response.go | 2 +- .../software_update_catalog_entry.go | 2 +- .../windowsupdates/software_update_filter.go | 4 +- models/windowsupdates/updatable_asset.go | 2 + .../updatable_asset_collection_response.go | 2 +- .../windowsupdates/updatable_asset_group.go | 2 +- .../update_management_enrollment.go | 4 +- models/windowsupdates/update_policy.go | 2 + .../update_policy_collection_response.go | 2 +- .../windowsupdates/windows_update_filter.go | 2 +- models/work_position.go | 2 +- models/work_position_collection_response.go | 2 +- models/workbook.go | 2 + models/workbook_application.go | 2 + models/workbook_chart.go | 2 + models/workbook_chart_area_format.go | 2 + models/workbook_chart_axes.go | 2 + models/workbook_chart_axis.go | 2 + models/workbook_chart_axis_format.go | 2 + models/workbook_chart_axis_title.go | 2 + models/workbook_chart_axis_title_format.go | 2 + models/workbook_chart_collection_response.go | 2 +- models/workbook_chart_data_label_format.go | 2 + models/workbook_chart_data_labels.go | 2 + models/workbook_chart_fill.go | 2 + models/workbook_chart_font.go | 2 + models/workbook_chart_gridlines.go | 2 + models/workbook_chart_gridlines_format.go | 2 + models/workbook_chart_legend.go | 2 + models/workbook_chart_legend_format.go | 2 + models/workbook_chart_line_format.go | 2 + models/workbook_chart_point.go | 2 + ...orkbook_chart_point_collection_response.go | 2 +- models/workbook_chart_point_format.go | 2 + models/workbook_chart_series.go | 2 + ...rkbook_chart_series_collection_response.go | 2 +- models/workbook_chart_series_format.go | 2 + models/workbook_chart_title.go | 2 + models/workbook_chart_title_format.go | 2 + models/workbook_comment.go | 2 + .../workbook_comment_collection_response.go | 2 +- models/workbook_comment_reply.go | 2 + ...kbook_comment_reply_collection_response.go | 2 +- models/workbook_filter.go | 2 + models/workbook_format_protection.go | 38 ++- models/workbook_function_result.go | 4 +- models/workbook_functions.go | 2 + models/workbook_named_item.go | 2 + ...workbook_named_item_collection_response.go | 2 +- models/workbook_operation.go | 2 + .../workbook_operation_collection_response.go | 2 +- models/workbook_pivot_table.go | 2 + ...orkbook_pivot_table_collection_response.go | 2 +- models/workbook_range.go | 4 +- models/workbook_range_border.go | 2 + models/workbook_range_fill.go | 2 + models/workbook_range_font.go | 2 + models/workbook_range_format.go | 2 + models/workbook_range_sort.go | 2 + models/workbook_range_view.go | 4 +- models/workbook_table.go | 2 + models/workbook_table_collection_response.go | 2 +- models/workbook_table_column.go | 2 + ...rkbook_table_column_collection_response.go | 2 +- models/workbook_table_row.go | 2 + .../workbook_table_row_collection_response.go | 2 +- models/workbook_table_sort.go | 2 + models/workbook_worksheet.go | 36 +++ .../workbook_worksheet_collection_response.go | 2 +- models/workbook_worksheet_protection.go | 2 + models/workforce_integration.go | 2 +- ...rkforce_integration_collection_response.go | 2 +- ...ate_authentication_method_configuration.go | 2 +- models/zebra_fota_artifact.go | 6 +- ...zebra_fota_artifact_collection_response.go | 2 +- models/zebra_fota_connector.go | 6 +- models/zebra_fota_deployment.go | 6 +- ...bra_fota_deployment_collection_response.go | 2 +- models/zebra_fota_deployment_settings.go | 2 +- ...anches_branch_site_item_request_builder.go | 23 +- ..._links_device_link_item_request_builder.go | 23 +- ...nches_item_device_links_request_builder.go | 16 +- ...forwarding_profile_item_request_builder.go | 6 +- ...em_policies_item_policy_request_builder.go | 6 +- ...licies_policy_link_item_request_builder.go | 6 +- ..._profiles_item_policies_request_builder.go | 6 +- ...tem_forwarding_profiles_request_builder.go | 9 +- .../connectivity_branches_request_builder.go | 16 +- networkaccess/connectivity_request_builder.go | 6 +- ..._forwarding_policy_item_request_builder.go | 9 +- ...ess_update_policy_rules_request_builder.go | 7 +- ..._rules_policy_rule_item_request_builder.go | 6 +- ...icies_item_policy_rules_request_builder.go | 6 +- .../forwarding_policies_request_builder.go | 6 +- ...forwarding_profile_item_request_builder.go | 16 +- ...em_policies_item_policy_request_builder.go | 6 +- ...licies_policy_link_item_request_builder.go | 6 +- ..._profiles_item_policies_request_builder.go | 6 +- .../forwarding_profiles_request_builder.go | 9 +- networkaccess/logs_request_builder.go | 6 +- ...raffic_transaction_item_request_builder.go | 6 +- networkaccess/logs_traffic_request_builder.go | 9 +- networkaccess/reports_request_builder.go | 6 +- ...ings_conditional_access_request_builder.go | 16 +- ...ngs_cross_tenant_access_request_builder.go | 16 +- ...ngs_enriched_audit_logs_request_builder.go | 7 +- ...ings_forwarding_options_request_builder.go | 16 +- networkaccess/settings_request_builder.go | 6 +- .../tenant_status_request_builder.go | 9 +- .../item_connector_groups_request_builder.go | 6 +- .../item_settings_pronouns_request_builder.go | 16 +- ...er_registration_details_request_builder.go | 6 +- ...t_usage_by_printer_item_request_builder.go | 6 +- ..._print_usage_by_printer_request_builder.go | 6 +- ...rint_usage_by_user_item_request_builder.go | 6 +- ...ily_print_usage_by_user_request_builder.go | 6 +- ...t_usage_by_printer_item_request_builder.go | 6 +- ..._print_usage_by_printer_request_builder.go | 6 +- ...rint_usage_by_user_item_request_builder.go | 6 +- ...hly_print_usage_by_user_request_builder.go | 6 +- reports/reports_request_builder.go | 4 + ...zure_a_d_authentication_request_builder.go | 158 +++++++++++++ reports/sla_request_builder.go | 159 +++++++++++++ .../risk_detections_request_builder.go | 8 +- ...f_directory_object_item_request_builder.go | 4 + ...ph_directory_role_count_request_builder.go | 76 ++++++ ...of_graph_directory_role_request_builder.go | 93 ++++++++ ...em_graph_directory_role_request_builder.go | 77 +++++++ .../item_member_of_request_builder.go | 4 + ...n_jobs_item_bulk_upload_request_builder.go | 165 +++++++++++++ ...lk_upload_value_content_request_builder.go | 106 +++++++++ ...rectories_item_discover_request_builder.go | 2 +- ...em_synchronization_jobs_request_builder.go | 4 +- ...ynchronization_job_item_request_builder.go | 4 + ...rectories_item_discover_request_builder.go | 2 +- ...nchronization_templates_request_builder.go | 2 +- ...f_directory_object_item_request_builder.go | 4 + ...ph_directory_role_count_request_builder.go | 76 ++++++ ...of_graph_directory_role_request_builder.go | 93 ++++++++ ...em_graph_directory_role_request_builder.go | 77 +++++++ ...em_transitive_member_of_request_builder.go | 4 + ...horizontal_section_item_request_builder.go | 7 +- ...out_horizontal_sections_request_builder.go | 7 +- ...layout_vertical_section_request_builder.go | 7 +- sites/sites_request_builder.go | 8 +- ...sions_item_registration_request_builder.go | 8 +- ...sions_item_registration_request_builder.go | 8 +- teamwork/team_templates_request_builder.go | 8 +- ...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 +- ...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 +- ...sages_item_mark_as_junk_request_builder.go | 7 +- ...s_item_mark_as_not_junk_request_builder.go | 7 +- ...ders_item_child_folders_request_builder.go | 6 +- ...sages_item_mark_as_junk_request_builder.go | 7 +- ...s_item_mark_as_not_junk_request_builder.go | 7 +- ...olders_mail_folder_item_request_builder.go | 6 +- ...f_directory_object_item_request_builder.go | 4 + ...ph_directory_role_count_request_builder.go | 76 ++++++ ...of_graph_directory_role_request_builder.go | 93 ++++++++ ...em_graph_directory_role_request_builder.go | 77 +++++++ users/item_member_of_request_builder.go | 4 + ...sages_item_mark_as_junk_request_builder.go | 7 +- ...s_item_mark_as_not_junk_request_builder.go | 7 +- ...ages_item_value_content_request_builder.go | 2 +- ...m_messages_message_item_request_builder.go | 14 +- users/item_messages_request_builder.go | 2 +- ...tings_item_registration_request_builder.go | 8 +- ...f_directory_object_item_request_builder.go | 4 + ...ph_directory_role_count_request_builder.go | 76 ++++++ ...of_graph_directory_role_request_builder.go | 93 ++++++++ ...em_graph_directory_role_request_builder.go | 77 +++++++ ...em_transitive_member_of_request_builder.go | 4 + 3470 files changed, 21427 insertions(+), 4000 deletions(-) create mode 100644 admin/people_pronouns_request_builder.go create mode 100644 admin/people_request_builder.go create mode 100644 applications/item_synchronization_jobs_item_bulk_upload_request_builder.go create mode 100644 applications/item_synchronization_jobs_item_bulk_upload_value_content_request_builder.go create mode 100644 models/azure_a_d_authentication.go create mode 100644 models/bulk_upload.go delete mode 100644 models/ediscovery/case_escapedable.go delete mode 100644 models/package_escapedable.go create mode 100644 models/people_admin_settings.go delete mode 100644 models/security/case_escapedable.go create mode 100644 models/service_level_agreement_attainment.go create mode 100644 models/service_level_agreement_root.go create mode 100644 models/target_user_sponsors.go delete mode 100644 models/vendor_escapedable.go create mode 100644 reports/sla_azure_a_d_authentication_request_builder.go create mode 100644 reports/sla_request_builder.go create mode 100644 serviceprincipals/item_member_of_graph_directory_role_count_request_builder.go create mode 100644 serviceprincipals/item_member_of_graph_directory_role_request_builder.go create mode 100644 serviceprincipals/item_member_of_item_graph_directory_role_request_builder.go create mode 100644 serviceprincipals/item_synchronization_jobs_item_bulk_upload_request_builder.go create mode 100644 serviceprincipals/item_synchronization_jobs_item_bulk_upload_value_content_request_builder.go create mode 100644 serviceprincipals/item_transitive_member_of_graph_directory_role_count_request_builder.go create mode 100644 serviceprincipals/item_transitive_member_of_graph_directory_role_request_builder.go create mode 100644 serviceprincipals/item_transitive_member_of_item_graph_directory_role_request_builder.go create mode 100644 users/item_member_of_graph_directory_role_count_request_builder.go create mode 100644 users/item_member_of_graph_directory_role_request_builder.go create mode 100644 users/item_member_of_item_graph_directory_role_request_builder.go create mode 100644 users/item_transitive_member_of_graph_directory_role_count_request_builder.go create mode 100644 users/item_transitive_member_of_graph_directory_role_request_builder.go create mode 100644 users/item_transitive_member_of_item_graph_directory_role_request_builder.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bf04e7c9c5..8798da62d57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed + +## [0.74.0]- 2023-07-05 + +### Added + +- Weekly generation. + ## [0.73.0]- 2023-07-05 ### Added diff --git a/admin/admin_request_builder.go b/admin/admin_request_builder.go index b2bf7970a02..c48be3c0749 100644 --- a/admin/admin_request_builder.go +++ b/admin/admin_request_builder.go @@ -101,6 +101,10 @@ func (m *AdminRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Adminable), nil } +// People provides operations to manage the people property of the microsoft.graph.admin entity. +func (m *AdminRequestBuilder) People()(*PeopleRequestBuilder) { + return NewPeopleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ReportSettings provides operations to manage the reportSettings property of the microsoft.graph.admin entity. func (m *AdminRequestBuilder) ReportSettings()(*ReportSettingsRequestBuilder) { return NewReportSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/admin/apps_and_services_request_builder.go b/admin/apps_and_services_request_builder.go index bad70c44d94..69712c43b30 100644 --- a/admin/apps_and_services_request_builder.go +++ b/admin/apps_and_services_request_builder.go @@ -18,7 +18,7 @@ type AppsAndServicesRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// AppsAndServicesRequestBuilderGetQueryParameters get appsAndServices from admin +// AppsAndServicesRequestBuilderGetQueryParameters read the properties and relationships of a adminAppsAndServices object. type AppsAndServicesRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *AppsAndServicesRequestBuilder) Delete(ctx context.Context, requestConfi } return nil } -// Get get appsAndServices from admin +// Get read the properties and relationships of a adminAppsAndServices object. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/adminappsandservices-get?view=graph-rest-1.0 func (m *AppsAndServicesRequestBuilder) Get(ctx context.Context, requestConfiguration *AppsAndServicesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminAppsAndServicesable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +92,10 @@ func (m *AppsAndServicesRequestBuilder) Get(ctx context.Context, requestConfigur } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminAppsAndServicesable), nil } -// Patch update the navigation property appsAndServices in admin +// Patch update the properties of a adminAppsAndServices object. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/adminappsandservices-update?view=graph-rest-1.0 func (m *AppsAndServicesRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminAppsAndServicesable, requestConfiguration *AppsAndServicesRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminAppsAndServicesable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -120,7 +126,7 @@ func (m *AppsAndServicesRequestBuilder) ToDeleteRequestInformation(ctx context.C } return requestInfo, nil } -// ToGetRequestInformation get appsAndServices from admin +// ToGetRequestInformation read the properties and relationships of a adminAppsAndServices object. func (m *AppsAndServicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AppsAndServicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -136,7 +142,7 @@ func (m *AppsAndServicesRequestBuilder) ToGetRequestInformation(ctx context.Cont } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property appsAndServices in admin +// ToPatchRequestInformation update the properties of a adminAppsAndServices object. func (m *AppsAndServicesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminAppsAndServicesable, requestConfiguration *AppsAndServicesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/admin/dynamics_request_builder.go b/admin/dynamics_request_builder.go index 23f621698c2..4a1bfd356e6 100644 --- a/admin/dynamics_request_builder.go +++ b/admin/dynamics_request_builder.go @@ -18,7 +18,7 @@ type DynamicsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DynamicsRequestBuilderGetQueryParameters get dynamics from admin +// DynamicsRequestBuilderGetQueryParameters read the properties and relationships of a adminDynamics object. type DynamicsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *DynamicsRequestBuilder) Delete(ctx context.Context, requestConfiguratio } return nil } -// Get get dynamics from admin +// Get read the properties and relationships of a adminDynamics object. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/admindynamics-get?view=graph-rest-1.0 func (m *DynamicsRequestBuilder) Get(ctx context.Context, requestConfiguration *DynamicsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminDynamicsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +92,10 @@ func (m *DynamicsRequestBuilder) Get(ctx context.Context, requestConfiguration * } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminDynamicsable), nil } -// Patch update the navigation property dynamics in admin +// Patch update the properties of a adminDynamics object. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/admindynamics-update?view=graph-rest-1.0 func (m *DynamicsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminDynamicsable, requestConfiguration *DynamicsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminDynamicsable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -120,7 +126,7 @@ func (m *DynamicsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, } return requestInfo, nil } -// ToGetRequestInformation get dynamics from admin +// ToGetRequestInformation read the properties and relationships of a adminDynamics object. func (m *DynamicsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DynamicsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -136,7 +142,7 @@ func (m *DynamicsRequestBuilder) ToGetRequestInformation(ctx context.Context, re } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property dynamics in admin +// ToPatchRequestInformation update the properties of a adminDynamics object. func (m *DynamicsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminDynamicsable, requestConfiguration *DynamicsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/admin/forms_request_builder.go b/admin/forms_request_builder.go index c004b418b4d..01781c0510e 100644 --- a/admin/forms_request_builder.go +++ b/admin/forms_request_builder.go @@ -18,7 +18,7 @@ type FormsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// FormsRequestBuilderGetQueryParameters get forms from admin +// FormsRequestBuilderGetQueryParameters read the properties and relationships of a adminForms object. type FormsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *FormsRequestBuilder) Delete(ctx context.Context, requestConfiguration * } return nil } -// Get get forms from admin +// Get read the properties and relationships of a adminForms object. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/adminforms-get?view=graph-rest-1.0 func (m *FormsRequestBuilder) Get(ctx context.Context, requestConfiguration *FormsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminFormsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +92,10 @@ func (m *FormsRequestBuilder) Get(ctx context.Context, requestConfiguration *For } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminFormsable), nil } -// Patch update the navigation property forms in admin +// Patch update the properties of a adminForms object. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/adminforms-update?view=graph-rest-1.0 func (m *FormsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminFormsable, requestConfiguration *FormsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminFormsable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -120,7 +126,7 @@ func (m *FormsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, re } return requestInfo, nil } -// ToGetRequestInformation get forms from admin +// ToGetRequestInformation read the properties and relationships of a adminForms object. func (m *FormsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FormsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -136,7 +142,7 @@ func (m *FormsRequestBuilder) ToGetRequestInformation(ctx context.Context, reque } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property forms in admin +// ToPatchRequestInformation update the properties of a adminForms object. func (m *FormsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminFormsable, requestConfiguration *FormsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/admin/people_pronouns_request_builder.go b/admin/people_pronouns_request_builder.go new file mode 100644 index 00000000000..1cf5094f9cf --- /dev/null +++ b/admin/people_pronouns_request_builder.go @@ -0,0 +1,161 @@ +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" +) + +// PeoplePronounsRequestBuilder provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity. +type PeoplePronounsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// PeoplePronounsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PeoplePronounsRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// PeoplePronounsRequestBuilderGetQueryParameters get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. +type PeoplePronounsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// PeoplePronounsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PeoplePronounsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *PeoplePronounsRequestBuilderGetQueryParameters +} +// PeoplePronounsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PeoplePronounsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewPeoplePronounsRequestBuilderInternal instantiates a new PronounsRequestBuilder and sets the default values. +func NewPeoplePronounsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PeoplePronounsRequestBuilder) { + m := &PeoplePronounsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/people/pronouns{?%24select,%24expand}", pathParameters), + } + return m +} +// NewPeoplePronounsRequestBuilder instantiates a new PronounsRequestBuilder and sets the default values. +func NewPeoplePronounsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PeoplePronounsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewPeoplePronounsRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property pronouns for admin +func (m *PeoplePronounsRequestBuilder) Delete(ctx context.Context, requestConfiguration *PeoplePronounsRequestBuilderDeleteRequestConfiguration)(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 the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/peopleadminsettings-list-pronouns?view=graph-rest-1.0 +func (m *PeoplePronounsRequestBuilder) Get(ctx context.Context, requestConfiguration *PeoplePronounsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PronounsSettingsable, 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.CreatePronounsSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PronounsSettingsable), nil +} +// Patch update the properties of a pronounsSettings in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/pronounssettings-update?view=graph-rest-1.0 +func (m *PeoplePronounsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PronounsSettingsable, requestConfiguration *PeoplePronounsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PronounsSettingsable, 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.CreatePronounsSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PronounsSettingsable), nil +} +// ToDeleteRequestInformation delete navigation property pronouns for admin +func (m *PeoplePronounsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *PeoplePronounsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToGetRequestInformation get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. +func (m *PeoplePronounsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PeoplePronounsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToPatchRequestInformation update the properties of a pronounsSettings in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. +func (m *PeoplePronounsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PronounsSettingsable, requestConfiguration *PeoplePronounsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH + requestInfo.Headers.Add("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/admin/people_request_builder.go b/admin/people_request_builder.go new file mode 100644 index 00000000000..98c88852402 --- /dev/null +++ b/admin/people_request_builder.go @@ -0,0 +1,159 @@ +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" +) + +// PeopleRequestBuilder provides operations to manage the people property of the microsoft.graph.admin entity. +type PeopleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// PeopleRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PeopleRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// PeopleRequestBuilderGetQueryParameters get people from admin +type PeopleRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// PeopleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PeopleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *PeopleRequestBuilderGetQueryParameters +} +// PeopleRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PeopleRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewPeopleRequestBuilderInternal instantiates a new PeopleRequestBuilder and sets the default values. +func NewPeopleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PeopleRequestBuilder) { + m := &PeopleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/people{?%24select,%24expand}", pathParameters), + } + return m +} +// NewPeopleRequestBuilder instantiates a new PeopleRequestBuilder and sets the default values. +func NewPeopleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PeopleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewPeopleRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property people for admin +func (m *PeopleRequestBuilder) Delete(ctx context.Context, requestConfiguration *PeopleRequestBuilderDeleteRequestConfiguration)(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 people from admin +func (m *PeopleRequestBuilder) Get(ctx context.Context, requestConfiguration *PeopleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PeopleAdminSettingsable, 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.CreatePeopleAdminSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PeopleAdminSettingsable), nil +} +// Patch update the navigation property people in admin +func (m *PeopleRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PeopleAdminSettingsable, requestConfiguration *PeopleRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PeopleAdminSettingsable, 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.CreatePeopleAdminSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PeopleAdminSettingsable), nil +} +// Pronouns provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity. +func (m *PeopleRequestBuilder) Pronouns()(*PeoplePronounsRequestBuilder) { + return NewPeoplePronounsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property people for admin +func (m *PeopleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *PeopleRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToGetRequestInformation get people from admin +func (m *PeopleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PeopleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property people in admin +func (m *PeopleRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PeopleAdminSettingsable, requestConfiguration *PeopleRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH + requestInfo.Headers.Add("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/admin/todo_request_builder.go b/admin/todo_request_builder.go index deb03952854..c81435a040c 100644 --- a/admin/todo_request_builder.go +++ b/admin/todo_request_builder.go @@ -18,7 +18,7 @@ type TodoRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// TodoRequestBuilderGetQueryParameters get todo from admin +// TodoRequestBuilderGetQueryParameters read the properties and relationships of a adminTodo object. type TodoRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *TodoRequestBuilder) Delete(ctx context.Context, requestConfiguration *T } return nil } -// Get get todo from admin +// Get read the properties and relationships of a adminTodo object. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/admintodo-get?view=graph-rest-1.0 func (m *TodoRequestBuilder) Get(ctx context.Context, requestConfiguration *TodoRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminTodoable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +92,10 @@ func (m *TodoRequestBuilder) Get(ctx context.Context, requestConfiguration *Todo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminTodoable), nil } -// Patch update the navigation property todo in admin +// Patch update the properties of a adminTodo object. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/admintodo-update?view=graph-rest-1.0 func (m *TodoRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminTodoable, requestConfiguration *TodoRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminTodoable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -120,7 +126,7 @@ func (m *TodoRequestBuilder) ToDeleteRequestInformation(ctx context.Context, req } return requestInfo, nil } -// ToGetRequestInformation get todo from admin +// ToGetRequestInformation read the properties and relationships of a adminTodo object. func (m *TodoRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TodoRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -136,7 +142,7 @@ func (m *TodoRequestBuilder) ToGetRequestInformation(ctx context.Context, reques } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property todo in admin +// ToPatchRequestInformation update the properties of a adminTodo object. func (m *TodoRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminTodoable, requestConfiguration *TodoRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 b0eef9149ec..9860530b9d5 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 @@ -54,10 +54,10 @@ func NewWindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a resourceConnection object. +// Delete delete an operationalInsightsConnection object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-delete?view=graph-rest-1.0 func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -114,7 +114,7 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ResourceConnectionable), nil } -// ToDeleteRequestInformation delete a resourceConnection object. +// ToDeleteRequestInformation delete an operationalInsightsConnection object. func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 c378fcdf260..c554758f044 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 of an azureADDevice object. +// WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters read the properties and relationships of an updatableAssetGroup 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 azureADDevice object. When an Azure AD 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. +// Delete delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/windowsupdates-updatableassetgroup-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 of an azureADDevice object. +// Get read the properties and relationships of an updatableAssetGroup object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/windowsupdates-updatableassetgroup-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 azureADDevice object. When an Azure AD 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. +// ToDeleteRequestInformation delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -142,7 +142,7 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToDelete } return requestInfo, nil } -// ToGetRequestInformation read the properties of an azureADDevice object. +// ToGetRequestInformation read the properties and relationships of an updatableAssetGroup object. func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 e27fe483321..cc96b7932b2 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 @@ -95,10 +95,10 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable), nil } -// Patch update the properties of a complianceChange object. +// Patch update the properties of a contentApproval object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-1.0 func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe } return requestInfo, nil } -// ToPatchRequestInformation update the properties of a complianceChange object. +// ToPatchRequestInformation update the properties of a contentApproval object. func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/app/calls_item_participants_invite_request_builder.go b/app/calls_item_participants_invite_request_builder.go index e15b8fc02cf..be26a982ba1 100644 --- a/app/calls_item_participants_invite_request_builder.go +++ b/app/calls_item_participants_invite_request_builder.go @@ -31,10 +31,10 @@ func NewCallsItemParticipantsInviteRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewCallsItemParticipantsInviteRequestBuilderInternal(urlParams, requestAdapter) } -// Post delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. +// Post invite participants to the active call. For more information about how to handle operations, see commsOperation. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -53,7 +53,7 @@ func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable), nil } -// ToPostRequestInformation delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. +// ToPostRequestInformation invite participants to the active call. For more information about how to handle operations, see commsOperation. func (m *CallsItemParticipantsInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/app/online_meetings_item_registration_request_builder.go b/app/online_meetings_item_registration_request_builder.go index 59f79a61938..d9c8183e8f8 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 externalMeetingRegistration details associated with an onlineMeeting. +// OnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. type OnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -77,10 +77,10 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Contex } return nil } -// Get get the externalMeetingRegistration details associated with an onlineMeeting. +// Get get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/externalmeetingregistration-get?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/meetingregistration-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 { @@ -137,7 +137,7 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformatio } return requestInfo, nil } -// ToGetRequestInformation get the externalMeetingRegistration details associated with an onlineMeeting. +// ToGetRequestInformation get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/applications/item_synchronization_jobs_item_bulk_upload_request_builder.go b/applications/item_synchronization_jobs_item_bulk_upload_request_builder.go new file mode 100644 index 00000000000..0087c35a312 --- /dev/null +++ b/applications/item_synchronization_jobs_item_bulk_upload_request_builder.go @@ -0,0 +1,165 @@ +package applications + +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" +) + +// ItemSynchronizationJobsItemBulkUploadRequestBuilder provides operations to manage the bulkUpload property of the microsoft.graph.synchronizationJob entity. +type ItemSynchronizationJobsItemBulkUploadRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSynchronizationJobsItemBulkUploadRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSynchronizationJobsItemBulkUploadRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSynchronizationJobsItemBulkUploadRequestBuilderGetQueryParameters the bulk upload operation for the job. +type ItemSynchronizationJobsItemBulkUploadRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemSynchronizationJobsItemBulkUploadRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSynchronizationJobsItemBulkUploadRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemSynchronizationJobsItemBulkUploadRequestBuilderGetQueryParameters +} +// ItemSynchronizationJobsItemBulkUploadRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSynchronizationJobsItemBulkUploadRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSynchronizationJobsItemBulkUploadRequestBuilderInternal instantiates a new BulkUploadRequestBuilder and sets the default values. +func NewItemSynchronizationJobsItemBulkUploadRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSynchronizationJobsItemBulkUploadRequestBuilder) { + m := &ItemSynchronizationJobsItemBulkUploadRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/bulkUpload{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemSynchronizationJobsItemBulkUploadRequestBuilder instantiates a new BulkUploadRequestBuilder and sets the default values. +func NewItemSynchronizationJobsItemBulkUploadRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSynchronizationJobsItemBulkUploadRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSynchronizationJobsItemBulkUploadRequestBuilderInternal(urlParams, requestAdapter) +} +// Content provides operations to manage the media for the application entity. +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) Content()(*ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) { + return NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Delete delete navigation property bulkUpload for applications +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderDeleteRequestConfiguration)(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 the bulk upload operation for the job. +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable, 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.CreateBulkUploadFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable), nil +} +// Patch update the navigation property bulkUpload in applications +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable, 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.CreateBulkUploadFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable), nil +} +// ToDeleteRequestInformation delete navigation property bulkUpload for applications +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToGetRequestInformation the bulk upload operation for the job. +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property bulkUpload in applications +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH + requestInfo.Headers.Add("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/applications/item_synchronization_jobs_item_bulk_upload_value_content_request_builder.go b/applications/item_synchronization_jobs_item_bulk_upload_value_content_request_builder.go new file mode 100644 index 00000000000..5103689e6b1 --- /dev/null +++ b/applications/item_synchronization_jobs_item_bulk_upload_value_content_request_builder.go @@ -0,0 +1,106 @@ +package applications + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder provides operations to manage the media for the application entity. +type ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderInternal instantiates a new ContentRequestBuilder and sets the default values. +func NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) { + m := &ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applications/{application%2Did}/synchronization/jobs/{synchronizationJob%2Did}/bulkUpload/$value", pathParameters), + } + return m +} +// NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder instantiates a new ContentRequestBuilder and sets the default values. +func NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get media content for the navigation property bulkUpload from applications +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put update media content for the navigation property bulkUpload in applications +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(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 +} +// ToGetRequestInformation get media content for the navigation property bulkUpload from applications +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToPutRequestInformation update media content for the navigation property bulkUpload in applications +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT + requestInfo.SetStreamContent(body) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/applications/item_synchronization_jobs_item_schema_directories_item_discover_request_builder.go b/applications/item_synchronization_jobs_item_schema_directories_item_discover_request_builder.go index 03129a4674f..67941e8d86b 100644 --- a/applications/item_synchronization_jobs_item_schema_directories_item_discover_request_builder.go +++ b/applications/item_synchronization_jobs_item_schema_directories_item_discover_request_builder.go @@ -34,7 +34,7 @@ func NewItemSynchronizationJobsItemSchemaDirectoriesItemDiscoverRequestBuilder(r // Post discover the latest schema definition for provisioning to an application. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/directorydefinition-discover?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-directorydefinition-discover?view=graph-rest-1.0 func (m *ItemSynchronizationJobsItemSchemaDirectoriesItemDiscoverRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemSchemaDirectoriesItemDiscoverRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryDefinitionable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/applications/item_synchronization_jobs_request_builder.go b/applications/item_synchronization_jobs_request_builder.go index d482261081f..91bf373f837 100644 --- a/applications/item_synchronization_jobs_request_builder.go +++ b/applications/item_synchronization_jobs_request_builder.go @@ -77,7 +77,7 @@ func (m *ItemSynchronizationJobsRequestBuilder) Count()(*ItemSynchronizationJobs // Get list existing jobs for a given application instance (service principal). // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronizationjob-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronization-list-jobs?view=graph-rest-1.0 func (m *ItemSynchronizationJobsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSynchronizationJobsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SynchronizationJobCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,7 +99,7 @@ func (m *ItemSynchronizationJobsRequestBuilder) Get(ctx context.Context, request // Post create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronizationjob-post?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronization-post-jobs?view=graph-rest-1.0 func (m *ItemSynchronizationJobsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SynchronizationJobable, requestConfiguration *ItemSynchronizationJobsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SynchronizationJobable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/applications/item_synchronization_jobs_synchronization_job_item_request_builder.go b/applications/item_synchronization_jobs_synchronization_job_item_request_builder.go index 08352bb3f0c..2fe2437dcb5 100644 --- a/applications/item_synchronization_jobs_synchronization_job_item_request_builder.go +++ b/applications/item_synchronization_jobs_synchronization_job_item_request_builder.go @@ -41,6 +41,10 @@ type ItemSynchronizationJobsSynchronizationJobItemRequestBuilderPatchRequestConf // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BulkUpload provides operations to manage the bulkUpload property of the microsoft.graph.synchronizationJob entity. +func (m *ItemSynchronizationJobsSynchronizationJobItemRequestBuilder) BulkUpload()(*ItemSynchronizationJobsItemBulkUploadRequestBuilder) { + return NewItemSynchronizationJobsItemBulkUploadRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewItemSynchronizationJobsSynchronizationJobItemRequestBuilderInternal instantiates a new SynchronizationJobItemRequestBuilder and sets the default values. func NewItemSynchronizationJobsSynchronizationJobItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSynchronizationJobsSynchronizationJobItemRequestBuilder) { m := &ItemSynchronizationJobsSynchronizationJobItemRequestBuilder{ diff --git a/applications/item_synchronization_templates_item_schema_directories_item_discover_request_builder.go b/applications/item_synchronization_templates_item_schema_directories_item_discover_request_builder.go index 611c7f46d42..a9f4678df14 100644 --- a/applications/item_synchronization_templates_item_schema_directories_item_discover_request_builder.go +++ b/applications/item_synchronization_templates_item_schema_directories_item_discover_request_builder.go @@ -34,7 +34,7 @@ func NewItemSynchronizationTemplatesItemSchemaDirectoriesItemDiscoverRequestBuil // Post discover the latest schema definition for provisioning to an application. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/directorydefinition-discover?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-directorydefinition-discover?view=graph-rest-1.0 func (m *ItemSynchronizationTemplatesItemSchemaDirectoriesItemDiscoverRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemSynchronizationTemplatesItemSchemaDirectoriesItemDiscoverRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryDefinitionable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/applications/item_synchronization_templates_request_builder.go b/applications/item_synchronization_templates_request_builder.go index c94575c9bfa..8ea30a59505 100644 --- a/applications/item_synchronization_templates_request_builder.go +++ b/applications/item_synchronization_templates_request_builder.go @@ -77,7 +77,7 @@ func (m *ItemSynchronizationTemplatesRequestBuilder) Count()(*ItemSynchronizatio // Get list the synchronization templates associated with a given application or service principal. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronizationtemplate-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronization-list-templates?view=graph-rest-1.0 func (m *ItemSynchronizationTemplatesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSynchronizationTemplatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SynchronizationTemplateCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/communications/calls_item_participants_invite_request_builder.go b/communications/calls_item_participants_invite_request_builder.go index 3ddfb6a8750..e777974fb15 100644 --- a/communications/calls_item_participants_invite_request_builder.go +++ b/communications/calls_item_participants_invite_request_builder.go @@ -31,10 +31,10 @@ func NewCallsItemParticipantsInviteRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewCallsItemParticipantsInviteRequestBuilderInternal(urlParams, requestAdapter) } -// Post delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. +// Post invite participants to the active call. For more information about how to handle operations, see commsOperation. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -53,7 +53,7 @@ func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable), nil } -// ToPostRequestInformation delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. +// ToPostRequestInformation invite participants to the active call. For more information about how to handle operations, see commsOperation. func (m *CallsItemParticipantsInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/communications/online_meetings_item_registration_request_builder.go b/communications/online_meetings_item_registration_request_builder.go index 0b74482dfc3..d287d054c55 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 externalMeetingRegistration details associated with an onlineMeeting. +// OnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. type OnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -77,10 +77,10 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Contex } return nil } -// Get get the externalMeetingRegistration details associated with an onlineMeeting. +// Get get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/externalmeetingregistration-get?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/meetingregistration-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 { @@ -137,7 +137,7 @@ func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformatio } return requestInfo, nil } -// ToGetRequestInformation get the externalMeetingRegistration details associated with an onlineMeeting. +// ToGetRequestInformation get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. func (m *OnlineMeetingsItemRegistrationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsItemRegistrationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/deviceappmanagement/wdac_supplemental_policies_item_assignments_request_builder.go b/deviceappmanagement/wdac_supplemental_policies_item_assignments_request_builder.go index 6789d51726a..153c9856fc5 100644 --- a/deviceappmanagement/wdac_supplemental_policies_item_assignments_request_builder.go +++ b/deviceappmanagement/wdac_supplemental_policies_item_assignments_request_builder.go @@ -11,7 +11,7 @@ import ( type WdacSupplementalPoliciesItemAssignmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// WdacSupplementalPoliciesItemAssignmentsRequestBuilderGetQueryParameters the associated group assignments for this WindowsDefenderApplicationControl supplemental policy. +// WdacSupplementalPoliciesItemAssignmentsRequestBuilderGetQueryParameters the associated group assignments for the Windows Defender Application Control Supplemental Policy. type WdacSupplementalPoliciesItemAssignmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewWdacSupplementalPoliciesItemAssignmentsRequestBuilder(rawUrl string, req func (m *WdacSupplementalPoliciesItemAssignmentsRequestBuilder) Count()(*WdacSupplementalPoliciesItemAssignmentsCountRequestBuilder) { return NewWdacSupplementalPoliciesItemAssignmentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the associated group assignments for this WindowsDefenderApplicationControl supplemental policy. +// Get the associated group assignments for the Windows Defender Application Control Supplemental Policy. func (m *WdacSupplementalPoliciesItemAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *WdacSupplementalPoliciesItemAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDefenderApplicationControlSupplementalPolicyAssignmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *WdacSupplementalPoliciesItemAssignmentsRequestBuilder) Post(ctx context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDefenderApplicationControlSupplementalPolicyAssignmentable), nil } -// ToGetRequestInformation the associated group assignments for this WindowsDefenderApplicationControl supplemental policy. +// ToGetRequestInformation the associated group assignments for the Windows Defender Application Control Supplemental Policy. func (m *WdacSupplementalPoliciesItemAssignmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WdacSupplementalPoliciesItemAssignmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/deviceappmanagement/wdac_supplemental_policies_item_assignments_windows_defender_application_control_supplemental_policy_assignment_item_request_builder.go b/deviceappmanagement/wdac_supplemental_policies_item_assignments_windows_defender_application_control_supplemental_policy_assignment_item_request_builder.go index 16723a6f857..30cb460fc7d 100644 --- a/deviceappmanagement/wdac_supplemental_policies_item_assignments_windows_defender_application_control_supplemental_policy_assignment_item_request_builder.go +++ b/deviceappmanagement/wdac_supplemental_policies_item_assignments_windows_defender_application_control_supplemental_policy_assignment_item_request_builder.go @@ -18,7 +18,7 @@ type WdacSupplementalPoliciesItemAssignmentsWindowsDefenderApplicationControlSup // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// WdacSupplementalPoliciesItemAssignmentsWindowsDefenderApplicationControlSupplementalPolicyAssignmentItemRequestBuilderGetQueryParameters the associated group assignments for this WindowsDefenderApplicationControl supplemental policy. +// WdacSupplementalPoliciesItemAssignmentsWindowsDefenderApplicationControlSupplementalPolicyAssignmentItemRequestBuilderGetQueryParameters the associated group assignments for the Windows Defender Application Control Supplemental Policy. type WdacSupplementalPoliciesItemAssignmentsWindowsDefenderApplicationControlSupplementalPolicyAssignmentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *WdacSupplementalPoliciesItemAssignmentsWindowsDefenderApplicationContro } return nil } -// Get the associated group assignments for this WindowsDefenderApplicationControl supplemental policy. +// Get the associated group assignments for the Windows Defender Application Control Supplemental Policy. func (m *WdacSupplementalPoliciesItemAssignmentsWindowsDefenderApplicationControlSupplementalPolicyAssignmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WdacSupplementalPoliciesItemAssignmentsWindowsDefenderApplicationControlSupplementalPolicyAssignmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDefenderApplicationControlSupplementalPolicyAssignmentable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +120,7 @@ func (m *WdacSupplementalPoliciesItemAssignmentsWindowsDefenderApplicationContro } return requestInfo, nil } -// ToGetRequestInformation the associated group assignments for this WindowsDefenderApplicationControl supplemental policy. +// ToGetRequestInformation the associated group assignments for the Windows Defender Application Control Supplemental Policy. func (m *WdacSupplementalPoliciesItemAssignmentsWindowsDefenderApplicationControlSupplementalPolicyAssignmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WdacSupplementalPoliciesItemAssignmentsWindowsDefenderApplicationControlSupplementalPolicyAssignmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/drives/item_items_drive_item_item_request_builder.go b/drives/item_items_drive_item_item_request_builder.go index bbb7abe90eb..b643f5466fa 100644 --- a/drives/item_items_drive_item_item_request_builder.go +++ b/drives/item_items_drive_item_item_request_builder.go @@ -168,10 +168,10 @@ func (m *ItemItemsDriveItemItemRequestBuilder) LastModifiedByUser()(*ItemItemsIt func (m *ItemItemsDriveItemItemRequestBuilder) ListItem()(*ItemItemsItemListItemRequestBuilder) { return NewItemItemsItemListItemRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the metadata for a DriveItem by ID or path. You can also use update to move an item to another parent by updating the item's **parentReference** property. +// Patch to move a DriveItem to a new parent item, your app requests to update the **parentReference** of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/driveitem-update?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/driveitem-move?view=graph-rest-1.0 func (m *ItemItemsDriveItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, requestConfiguration *ItemItemsDriveItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -246,7 +246,7 @@ func (m *ItemItemsDriveItemItemRequestBuilder) ToGetRequestInformation(ctx conte } return requestInfo, nil } -// ToPatchRequestInformation update the metadata for a DriveItem by ID or path. You can also use update to move an item to another parent by updating the item's **parentReference** property. +// ToPatchRequestInformation to move a DriveItem to a new parent item, your app requests to update the **parentReference** of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. func (m *ItemItemsDriveItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, requestConfiguration *ItemItemsDriveItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 48fa86ba8a5..b6b271c7039 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://docs.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 +// [Find more info here]: https://docs.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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/drives/item_items_item_workbook_names_request_builder.go b/drives/item_items_item_workbook_names_request_builder.go index 14d29afbd43..03ad1de776f 100644 --- a/drives/item_items_item_workbook_names_request_builder.go +++ b/drives/item_items_item_workbook_names_request_builder.go @@ -85,7 +85,7 @@ func (m *ItemItemsItemWorkbookNamesRequestBuilder) Count()(*ItemItemsItemWorkboo // Get retrieve a list of nameditem objects. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/workbook-list-names?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/nameditem-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookNamesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookNamedItemCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != 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 7ca910addda..3b0113ed7e7 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://docs.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.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_tables_request_builder.go b/drives/item_items_item_workbook_tables_request_builder.go index 5a5a0a46ff2..a4727fc7486 100644 --- a/drives/item_items_item_workbook_tables_request_builder.go +++ b/drives/item_items_item_workbook_tables_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookTablesRequestBuilder) Count()(*ItemItemsItemWorkbo // Get retrieve a list of table objects. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/table-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/workbook-list-tables?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableCollectionResponseable, 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 2aeb3bb84d4..2f91a66d769 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://docs.microsoft.com/graph/api/chartseries-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 50815c2ebe3..135121f23cd 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://docs.microsoft.com/graph/api/chart-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 8240ae48be9..af4260d45d4 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://docs.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 +// [Find more info here]: https://docs.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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 31b94296cf8..62e4c1aed55 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://docs.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 cbf85161457..fb946e312ca 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://docs.microsoft.com/graph/api/worksheet-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/workbook-list-worksheets?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/education/users_education_user_item_request_builder.go b/education/users_education_user_item_request_builder.go index f30d6a35c8b..dd490bc5c9e 100644 --- a/education/users_education_user_item_request_builder.go +++ b/education/users_education_user_item_request_builder.go @@ -103,10 +103,10 @@ func (m *UsersEducationUserItemRequestBuilder) Get(ctx context.Context, requestC } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable), nil } -// Patch update the relatedContact collection of an educationUser object. +// Patch update the properties of an **educationuser** object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/relatedcontact-update?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/educationuser-update?view=graph-rest-1.0 func (m *UsersEducationUserItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable, requestConfiguration *UsersEducationUserItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -165,7 +165,7 @@ func (m *UsersEducationUserItemRequestBuilder) ToGetRequestInformation(ctx conte } return requestInfo, nil } -// ToPatchRequestInformation update the relatedContact collection of an educationUser object. +// ToPatchRequestInformation update the properties of an **educationuser** object. func (m *UsersEducationUserItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable, requestConfiguration *UsersEducationUserItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 12d4bd31aca..238df4e7050 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://docs.microsoft.com/graph/api/industrydata-industrydataconnector-delete?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/external/industry_data_data_connectors_request_builder.go b/external/industry_data_data_connectors_request_builder.go index dbf68cc6c76..41cdcffd335 100644 --- a/external/industry_data_data_connectors_request_builder.go +++ b/external/industry_data_data_connectors_request_builder.go @@ -11,7 +11,7 @@ import ( type IndustryDataDataConnectorsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// IndustryDataDataConnectorsRequestBuilderGetQueryParameters get the industryDataConnector resources from the **dataConnector** navigation property. +// IndustryDataDataConnectorsRequestBuilderGetQueryParameters get a list of the azureDataLakeConnector objects and their properties. type IndustryDataDataConnectorsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,10 +74,10 @@ func NewIndustryDataDataConnectorsRequestBuilder(rawUrl string, requestAdapter i func (m *IndustryDataDataConnectorsRequestBuilder) Count()(*IndustryDataDataConnectorsCountRequestBuilder) { return NewIndustryDataDataConnectorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the industryDataConnector resources from the **dataConnector** navigation property. +// Get get a list of the azureDataLakeConnector objects and their properties. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/industrydata-industrydataconnector-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/industrydata-azuredatalakeconnector-list?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -96,10 +96,10 @@ func (m *IndustryDataDataConnectorsRequestBuilder) Get(ctx context.Context, requ } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorCollectionResponseable), nil } -// Post create a new azureDataLakeConnector object. +// Post create a new industryDataConnector object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/industrydata-azuredatalakeconnector-post?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/industrydata-industrydataconnector-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 { @@ -118,7 +118,7 @@ func (m *IndustryDataDataConnectorsRequestBuilder) Post(ctx context.Context, bod } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable), nil } -// ToGetRequestInformation get the industryDataConnector resources from the **dataConnector** navigation property. +// ToGetRequestInformation get a list of the azureDataLakeConnector objects and their properties. func (m *IndustryDataDataConnectorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -134,7 +134,7 @@ func (m *IndustryDataDataConnectorsRequestBuilder) ToGetRequestInformation(ctx c } return requestInfo, nil } -// ToPostRequestInformation create a new azureDataLakeConnector object. +// ToPostRequestInformation create a new industryDataConnector object. func (m *IndustryDataDataConnectorsRequestBuilder) ToPostRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 7e6201c5015..95d368bad65 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 inboundFileFlow object. +// IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters read the properties and relationships of an inboundFlow 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 inboundFileFlow object. +// Get read the properties and relationships of an inboundFlow object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/industrydata-inboundfileflow-get?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/industrydata-inboundflow-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 { @@ -133,7 +133,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToDeleteRequestI } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an inboundFileFlow object. +// ToGetRequestInformation read the properties and relationships of an inboundFlow object. func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/graph_request_adapter.go b/graph_request_adapter.go index 87750f43c7d..b3972df6e5d 100644 --- a/graph_request_adapter.go +++ b/graph_request_adapter.go @@ -10,7 +10,7 @@ import ( var clientOptions = core.GraphClientOptions{ GraphServiceVersion: "beta", - GraphServiceLibraryVersion: "0.72.0", + GraphServiceLibraryVersion: "0.73.0", } // GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware. @@ -101,5 +101,6 @@ 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 ac3eff8db5c..658913a1176 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInfo } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 052ec679e86..23192e7cdd5 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 d1d159fef1d..cac94526d8e 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 07367324173..bab4542f8c2 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToG } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 ab2f669aac3..dcd612f59d4 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_events_item_attachments_request_builder.go b/groups/item_calendar_events_item_attachments_request_builder.go index 68217d48c6d..f9d052713bc 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToGetRequestInformatio } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 195e65ea461..78d32d365d8 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 1ac7c83ad13..56adce61c40 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 b887e89235f..6cf035b9716 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequ } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 0e6812f32fb..cf642e3429c 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_calendar_view_item_attachments_request_builder.go b/groups/item_calendar_view_item_attachments_request_builder.go index da06aa75609..7b6dc2e6298 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInformation( } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 e2055eaa3c2..62c4fae32b9 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 65d25cad432..3868118d454 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 cb0b3c5f1a2..428504fac88 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToGetReques } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 af391f070a8..0a8c2c3cbec 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_conversations_conversation_item_request_builder.go b/groups/item_conversations_conversation_item_request_builder.go index 051780e607d..b13f42473f9 100644 --- a/groups/item_conversations_conversation_item_request_builder.go +++ b/groups/item_conversations_conversation_item_request_builder.go @@ -18,7 +18,7 @@ type ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemConversationsConversationItemRequestBuilderGetQueryParameters get a conversation object. +// ItemConversationsConversationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of conversation object. type ItemConversationsConversationItemRequestBuilderGetQueryParameters struct { // Select properties to be returned Select []string `uriparametername:"%24select"` @@ -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://docs.microsoft.com/graph/api/group-delete-conversation?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -64,10 +64,10 @@ func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get get a conversation object. +// Get retrieve the properties and relationships of conversation object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/group-get-conversation?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/conversation-get?view=graph-rest-1.0 func (m *ItemConversationsConversationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, error) { requestInfo, err := m.ToGetRequestInformation(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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -102,7 +102,7 @@ func (m *ItemConversationsConversationItemRequestBuilder) ToDeleteRequestInforma } return requestInfo, nil } -// ToGetRequestInformation get a conversation object. +// ToGetRequestInformation retrieve the properties and relationships of conversation object. func (m *ItemConversationsConversationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_conversations_item_threads_item_posts_item_in_reply_to_reply_request_builder.go b/groups/item_conversations_item_threads_item_posts_item_in_reply_to_reply_request_builder.go index db83525ee76..9eeec98cce4 100644 --- a/groups/item_conversations_item_threads_item_posts_item_in_reply_to_reply_request_builder.go +++ b/groups/item_conversations_item_threads_item_posts_item_in_reply_to_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 func (m *ItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilder) Post(ctx context.Context, body ItemConversationsItemThreadsItemPostsItemInReplyToReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilder) } return nil } -// ToPostRequestInformation reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. func (m *ItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemConversationsItemThreadsItemPostsItemInReplyToReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_conversations_item_threads_item_posts_item_reply_request_builder.go b/groups/item_conversations_item_threads_item_posts_item_reply_request_builder.go index 3403d1fe2d0..e0a89db66f1 100644 --- a/groups/item_conversations_item_threads_item_posts_item_reply_request_builder.go +++ b/groups/item_conversations_item_threads_item_posts_item_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemConversationsItemThreadsItemPostsItemReplyRequestBuilder(rawUrl stri urlParams["request-raw-url"] = rawUrl return NewItemConversationsItemThreadsItemPostsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 func (m *ItemConversationsItemThreadsItemPostsItemReplyRequestBuilder) Post(ctx context.Context, body ItemConversationsItemThreadsItemPostsItemReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemPostsItemReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemConversationsItemThreadsItemPostsItemReplyRequestBuilder) Post(ctx } return nil } -// ToPostRequestInformation reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. func (m *ItemConversationsItemThreadsItemPostsItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemConversationsItemThreadsItemPostsItemReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemPostsItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_conversations_item_threads_item_reply_request_builder.go b/groups/item_conversations_item_threads_item_reply_request_builder.go index 5ae0edd5d5a..08546b16adc 100644 --- a/groups/item_conversations_item_threads_item_reply_request_builder.go +++ b/groups/item_conversations_item_threads_item_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemConversationsItemThreadsItemReplyRequestBuilder(rawUrl string, reque urlParams["request-raw-url"] = rawUrl return NewItemConversationsItemThreadsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. +// Post add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. 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://docs.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/post-post-attachments?view=graph-rest-1.0 func (m *ItemConversationsItemThreadsItemReplyRequestBuilder) Post(ctx context.Context, body ItemConversationsItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemConversationsItemThreadsItemReplyRequestBuilder) Post(ctx context.C } return nil } -// ToPostRequestInformation reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. +// ToPostRequestInformation add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemConversationsItemThreadsItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemConversationsItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_conversations_request_builder.go b/groups/item_conversations_request_builder.go index 433bdf40a3a..2ea498cece4 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. See known limitations of open extensions for more information. 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://docs.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -132,7 +132,7 @@ func (m *ItemConversationsRequestBuilder) ToGetRequestInformation(ctx context.Co } 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. See known limitations of open extensions for more information. 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_events_item_attachments_request_builder.go b/groups/item_events_item_attachments_request_builder.go index a858abe372c..9413cd0689b 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx co } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 1b1670ffc3b..88e44cd2f16 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetR } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 86bbc5ff5aa..2a8d6e923ea 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 dcbc78180d5..253597be990 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInfor } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 dd202311c91..f05a1e7a157 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_sites_item_pages_item_canvas_layout_horizontal_sections_horizontal_section_item_request_builder.go b/groups/item_sites_item_pages_item_canvas_layout_horizontal_sections_horizontal_section_item_request_builder.go index 3cfcb32d157..6e5f964ef91 100644 --- a/groups/item_sites_item_pages_item_canvas_layout_horizontal_sections_horizontal_section_item_request_builder.go +++ b/groups/item_sites_item_pages_item_canvas_layout_horizontal_sections_horizontal_section_item_request_builder.go @@ -96,7 +96,10 @@ func (m *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionIt } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable), nil } -// Patch update the navigation property horizontalSections in groups +// Patch update the properties of a horizontalSection object. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/horizontalsection-update?view=graph-rest-1.0 func (m *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, requestConfiguration *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -143,7 +146,7 @@ func (m *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionIt } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property horizontalSections in groups +// ToPatchRequestInformation update the properties of a horizontalSection object. func (m *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, requestConfiguration *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_sites_item_pages_item_canvas_layout_horizontal_sections_request_builder.go b/groups/item_sites_item_pages_item_canvas_layout_horizontal_sections_request_builder.go index 5ef038bbf42..d8dd7debab2 100644 --- a/groups/item_sites_item_pages_item_canvas_layout_horizontal_sections_request_builder.go +++ b/groups/item_sites_item_pages_item_canvas_layout_horizontal_sections_request_builder.go @@ -96,7 +96,10 @@ func (m *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilder) Get } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionCollectionResponseable), nil } -// Post create new navigation property to horizontalSections for groups +// Post create a horizontalSection object in a given sitePage. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/sitepage-post-horizontalsection?view=graph-rest-1.0 func (m *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, requestConfiguration *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -131,7 +134,7 @@ func (m *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilder) ToG } return requestInfo, nil } -// ToPostRequestInformation create new navigation property to horizontalSections for groups +// ToPostRequestInformation create a horizontalSection object in a given sitePage. func (m *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, requestConfiguration *ItemSitesItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_sites_item_pages_item_canvas_layout_vertical_section_request_builder.go b/groups/item_sites_item_pages_item_canvas_layout_vertical_section_request_builder.go index 37259383736..a184e397569 100644 --- a/groups/item_sites_item_pages_item_canvas_layout_vertical_section_request_builder.go +++ b/groups/item_sites_item_pages_item_canvas_layout_vertical_section_request_builder.go @@ -92,7 +92,10 @@ func (m *ItemSitesItemPagesItemCanvasLayoutVerticalSectionRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VerticalSectionable), nil } -// Patch update the navigation property verticalSection in groups +// Patch create a verticalSection object in a given sitePage. A sitePage can only have one vertical section. If a vertical section already exists, this method returns a `409 Conflict` response code. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/sitepage-post-verticalsection?view=graph-rest-1.0 func (m *ItemSitesItemPagesItemCanvasLayoutVerticalSectionRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VerticalSectionable, requestConfiguration *ItemSitesItemPagesItemCanvasLayoutVerticalSectionRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VerticalSectionable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -139,7 +142,7 @@ func (m *ItemSitesItemPagesItemCanvasLayoutVerticalSectionRequestBuilder) ToGetR } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property verticalSection in groups +// ToPatchRequestInformation create a verticalSection object in a given sitePage. A sitePage can only have one vertical section. If a vertical section already exists, this method returns a `409 Conflict` response code. func (m *ItemSitesItemPagesItemCanvasLayoutVerticalSectionRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VerticalSectionable, requestConfiguration *ItemSitesItemPagesItemCanvasLayoutVerticalSectionRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_threads_conversation_thread_item_request_builder.go b/groups/item_threads_conversation_thread_item_request_builder.go index e46763fc190..193e8165a1d 100644 --- a/groups/item_threads_conversation_thread_item_request_builder.go +++ b/groups/item_threads_conversation_thread_item_request_builder.go @@ -18,7 +18,7 @@ type ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters get a thread object. +// ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. type ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters struct { // Select properties to be returned Select []string `uriparametername:"%24select"` @@ -52,10 +52,10 @@ func NewItemThreadsConversationThreadItemRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemThreadsConversationThreadItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete conversationThread. +// Delete delete a thread object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/conversationthread-delete?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/group-delete-thread?view=graph-rest-1.0 func (m *ItemThreadsConversationThreadItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -71,10 +71,10 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get get a thread object. +// Get get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/group-get-thread?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/conversationthread-get?view=graph-rest-1.0 func (m *ItemThreadsConversationThreadItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationThreadable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -123,7 +123,7 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) Posts()(*ItemThreadsIt func (m *ItemThreadsConversationThreadItemRequestBuilder) Reply()(*ItemThreadsItemReplyRequestBuilder) { return NewItemThreadsItemReplyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete conversationThread. +// ToDeleteRequestInformation delete a thread object. func (m *ItemThreadsConversationThreadItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -135,7 +135,7 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) ToDeleteRequestInforma } return requestInfo, nil } -// ToGetRequestInformation get a thread object. +// ToGetRequestInformation get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. func (m *ItemThreadsConversationThreadItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_threads_item_posts_item_in_reply_to_reply_request_builder.go b/groups/item_threads_item_posts_item_in_reply_to_reply_request_builder.go index 5c6dba38fb4..a874ec24602 100644 --- a/groups/item_threads_item_posts_item_in_reply_to_reply_request_builder.go +++ b/groups/item_threads_item_posts_item_in_reply_to_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemThreadsItemPostsItemInReplyToReplyRequestBuilder(rawUrl string, requ urlParams["request-raw-url"] = rawUrl return NewItemThreadsItemPostsItemInReplyToReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 func (m *ItemThreadsItemPostsItemInReplyToReplyRequestBuilder) Post(ctx context.Context, body ItemThreadsItemPostsItemInReplyToReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemPostsItemInReplyToReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemThreadsItemPostsItemInReplyToReplyRequestBuilder) Post(ctx context. } return nil } -// ToPostRequestInformation reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. func (m *ItemThreadsItemPostsItemInReplyToReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemThreadsItemPostsItemInReplyToReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemPostsItemInReplyToReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_threads_item_posts_item_reply_request_builder.go b/groups/item_threads_item_posts_item_reply_request_builder.go index 8fde3a7ce28..0c6429bd4e1 100644 --- a/groups/item_threads_item_posts_item_reply_request_builder.go +++ b/groups/item_threads_item_posts_item_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemThreadsItemPostsItemReplyRequestBuilder(rawUrl string, requestAdapte urlParams["request-raw-url"] = rawUrl return NewItemThreadsItemPostsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 func (m *ItemThreadsItemPostsItemReplyRequestBuilder) Post(ctx context.Context, body ItemThreadsItemPostsItemReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemPostsItemReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemThreadsItemPostsItemReplyRequestBuilder) Post(ctx context.Context, } return nil } -// ToPostRequestInformation reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. func (m *ItemThreadsItemPostsItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemThreadsItemPostsItemReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemPostsItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_threads_item_reply_request_builder.go b/groups/item_threads_item_reply_request_builder.go index 15091fd9108..d39df3c0105 100644 --- a/groups/item_threads_item_reply_request_builder.go +++ b/groups/item_threads_item_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemThreadsItemReplyRequestBuilder(rawUrl string, requestAdapter i2ae418 urlParams["request-raw-url"] = rawUrl return NewItemThreadsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. +// Post add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. 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://docs.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/post-post-attachments?view=graph-rest-1.0 func (m *ItemThreadsItemReplyRequestBuilder) Post(ctx context.Context, body ItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemThreadsItemReplyRequestBuilder) Post(ctx context.Context, body Item } return nil } -// ToPostRequestInformation reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. +// ToPostRequestInformation add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. func (m *ItemThreadsItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 7c5f379e85b..205f3f84e4f 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 @@ -54,10 +54,10 @@ func NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an ipNamedLocation object. +// Delete delete a namedLocation object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/ipnamedlocation-delete?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/namedlocation-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 { @@ -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://docs.microsoft.com/graph/api/ipnamedlocation-update?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 an ipNamedLocation object. +// ToDeleteRequestInformation delete a namedLocation object. func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -145,7 +145,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToGetRe } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 2ac4152365c..a99354ddc46 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://docs.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 accessPackageAssignmentWorkflowExtension object. +// Patch update the properties of an accessPackageAssignmentRequestWorkflowExtension 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://docs.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-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 { @@ -130,7 +130,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } 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.NewRequestInformation() @@ -147,7 +147,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return requestInfo, nil } -// ToPatchRequestInformation update the properties of an accessPackageAssignmentWorkflowExtension object. +// ToPatchRequestInformation update the properties of an accessPackageAssignmentRequestWorkflowExtension 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.NewRequestInformation() diff --git a/identitygovernance/entitlement_management_access_package_catalogs_item_custom_access_package_workflow_extensions_custom_access_package_workflow_extension_item_request_builder.go b/identitygovernance/entitlement_management_access_package_catalogs_item_custom_access_package_workflow_extensions_custom_access_package_workflow_extension_item_request_builder.go index 99f907163ae..07c4a5ccf45 100644 --- a/identitygovernance/entitlement_management_access_package_catalogs_item_custom_access_package_workflow_extensions_custom_access_package_workflow_extension_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_catalogs_item_custom_access_package_workflow_extensions_custom_access_package_workflow_extension_item_request_builder.go @@ -54,11 +54,11 @@ func NewEntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflo urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending `?$expand=accessPackage($expand=accessPackageCatalog)` to the query. For example, `https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog)`.2. Use the access package catalog ID and retrieve the ID of the **accessPackageCustomWorkflowExtension** object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. +// Delete delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending `?$expand=accessPackage($expand=accessPackageCatalog)` to the query. For example, `https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog)`.2. Use the access package catalog ID and retrieve the ID of the **accessPackageCustomWorkflowExtension** object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. // 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://docs.microsoft.com/graph/api/accesspackageassignmentworkflowextension-delete?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-delete?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +120,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkfl } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomAccessPackageWorkflowExtensionable), nil } -// ToDeleteRequestInformation delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending `?$expand=accessPackage($expand=accessPackageCatalog)` to the query. For example, `https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog)`.2. Use the access package catalog ID and retrieve the ID of the **accessPackageCustomWorkflowExtension** object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. +// ToDeleteRequestInformation delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending `?$expand=accessPackage($expand=accessPackageCatalog)` to the query. For example, `https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog)`.2. Use the access package catalog ID and retrieve the ID of the **accessPackageCustomWorkflowExtension** object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 func (m *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() 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 c7fccd74d90..79651b890b8 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 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. +// EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an accessPackage object. type EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -89,10 +89,10 @@ func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) Del } return nil } -// 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. +// Get retrieve the properties and relationships of an accessPackage object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/accesspackage-list-accesspackageresourcerolescopes?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/accesspackage-get?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 { @@ -161,7 +161,7 @@ func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) ToD } return requestInfo, nil } -// 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. +// ToGetRequestInformation retrieve the properties and relationships of an accessPackage object. func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/identityprotection/risk_detections_risk_detection_item_request_builder.go b/identityprotection/risk_detections_risk_detection_item_request_builder.go index 3bc28c11a8a..0d9945cbf73 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 **riskDetection** object. +// RiskDetectionsRiskDetectionItemRequestBuilderGetQueryParameters retrieve the properties of a collection of **riskDetection** objects. 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 **riskDetection** object. +// Get retrieve the properties of a collection of **riskDetection** objects. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/riskdetection-list?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 { @@ -123,7 +123,7 @@ func (m *RiskDetectionsRiskDetectionItemRequestBuilder) ToDeleteRequestInformati } return requestInfo, nil } -// ToGetRequestInformation retrieve the properties of a **riskDetection** object. +// ToGetRequestInformation retrieve the properties of a collection of **riskDetection** objects. func (m *RiskDetectionsRiskDetectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskDetectionsRiskDetectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/identityprotection/risky_users_request_builder.go b/identityprotection/risky_users_request_builder.go index 62909f54fd7..4ccd4db1ed8 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 collection of **riskyUser** objects. +// RiskyUsersRequestBuilderGetQueryParameters retrieve the properties and relationships of a **riskyUser** object. 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 collection of **riskyUser** objects. +// Get retrieve the properties and relationships of a **riskyUser** object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/riskyusers-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/riskyusers-get?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 collection of **riskyUser** objects. +// ToGetRequestInformation retrieve the properties and relationships of a **riskyUser** object. func (m *RiskyUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskyUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/kiota-lock.json b/kiota-lock.json index 39610cf4500..b177d724754 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "1B4505E90EDE0B03241C9AAD96C2E3C09DC5FDFBA4B316661C71488ECBD4427487DCD8C7C5DE36B1D44D4414C3B0B193C46572F86A265840231E0D6439B01FD6", + "descriptionHash": "8AE6707E3B470F57AD3CAD05A1EDF4303BE598A638AE6A902ADC23B63D6DC9C939328E70874F55DF450B8351E652095F5EF0058A19A946984EB86E2830490421", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.3.0", + "kiotaVersion": "1.4.0", "clientClassName": "GraphBaseServiceClient", "clientNamespaceName": "github.com/microsoftgraph/msgraph-beta-sdk-go/", "language": "Go", diff --git a/models/aad_user_conversation_member.go b/models/aad_user_conversation_member.go index f2940d596f0..5cbb5f340da 100644 --- a/models/aad_user_conversation_member.go +++ b/models/aad_user_conversation_member.go @@ -8,7 +8,7 @@ import ( type AadUserConversationMember struct { ConversationMember } -// NewAadUserConversationMember instantiates a new AadUserConversationMember and sets the default values. +// NewAadUserConversationMember instantiates a new aadUserConversationMember and sets the default values. func NewAadUserConversationMember()(*AadUserConversationMember) { m := &AadUserConversationMember{ ConversationMember: *NewConversationMember(), diff --git a/models/aad_user_conversation_member_result.go b/models/aad_user_conversation_member_result.go index d8a2dd63c76..a064ec3adbe 100644 --- a/models/aad_user_conversation_member_result.go +++ b/models/aad_user_conversation_member_result.go @@ -8,7 +8,7 @@ import ( type AadUserConversationMemberResult struct { ActionResultPart } -// NewAadUserConversationMemberResult instantiates a new AadUserConversationMemberResult and sets the default values. +// NewAadUserConversationMemberResult instantiates a new aadUserConversationMemberResult and sets the default values. func NewAadUserConversationMemberResult()(*AadUserConversationMemberResult) { m := &AadUserConversationMemberResult{ ActionResultPart: *NewActionResultPart(), @@ -24,6 +24,16 @@ func CreateAadUserConversationMemberResultFromDiscriminatorValue(parseNode i878a // GetFieldDeserializers the deserialization information for the current model func (m *AadUserConversationMemberResult) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ActionResultPart.GetFieldDeserializers() + 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["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,6 +46,17 @@ func (m *AadUserConversationMemberResult) GetFieldDeserializers()(map[string]fun } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AadUserConversationMemberResult) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUserId gets the userId property value. The user object ID of the Azure AD user that was being added as part of the bulk operation. func (m *AadUserConversationMemberResult) GetUserId()(*string) { val, err := m.GetBackingStore().Get("userId") @@ -53,6 +74,12 @@ func (m *AadUserConversationMemberResult) Serialize(writer i878a80d2330e89d26896 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("userId", m.GetUserId()) if err != nil { @@ -61,6 +88,13 @@ func (m *AadUserConversationMemberResult) Serialize(writer i878a80d2330e89d26896 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AadUserConversationMemberResult) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUserId sets the userId property value. The user object ID of the Azure AD user that was being added as part of the bulk operation. func (m *AadUserConversationMemberResult) SetUserId(value *string)() { err := m.GetBackingStore().Set("userId", value) @@ -72,6 +106,8 @@ func (m *AadUserConversationMemberResult) SetUserId(value *string)() { type AadUserConversationMemberResultable interface { ActionResultPartable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUserId()(*string) + SetOdataType(value *string)() SetUserId(value *string)() } diff --git a/models/aad_user_notification_recipient.go b/models/aad_user_notification_recipient.go index b96eff12b5f..54f0b3c062b 100644 --- a/models/aad_user_notification_recipient.go +++ b/models/aad_user_notification_recipient.go @@ -7,8 +7,10 @@ import ( // AadUserNotificationRecipient type AadUserNotificationRecipient struct { TeamworkNotificationRecipient + // The OdataType property + OdataType *string } -// NewAadUserNotificationRecipient instantiates a new AadUserNotificationRecipient and sets the default values. +// NewAadUserNotificationRecipient instantiates a new aadUserNotificationRecipient and sets the default values. func NewAadUserNotificationRecipient()(*AadUserNotificationRecipient) { m := &AadUserNotificationRecipient{ TeamworkNotificationRecipient: *NewTeamworkNotificationRecipient(), diff --git a/models/access_package.go b/models/access_package.go index fa972c61396..da51076b7f5 100644 --- a/models/access_package.go +++ b/models/access_package.go @@ -302,6 +302,16 @@ func (m *AccessPackage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } 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 } // GetIncompatibleAccessPackages gets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this access package. @@ -370,6 +380,17 @@ func (m *AccessPackage) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6 } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessPackage) 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 *AccessPackage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -496,6 +517,12 @@ func (m *AccessPackage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAccessPackageAssignmentPolicies sets the accessPackageAssignmentPolicies property value. Read-only. Nullable. Supports $expand. @@ -603,6 +630,13 @@ func (m *AccessPackage) SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessPackage) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AccessPackageable type AccessPackageable interface { Entityable @@ -622,6 +656,7 @@ type AccessPackageable interface { GetIsRoleScopesVisible()(*bool) GetModifiedBy()(*string) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) SetAccessPackageAssignmentPolicies(value []AccessPackageAssignmentPolicyable)() SetAccessPackageCatalog(value AccessPackageCatalogable)() SetAccessPackageResourceRoleScopes(value []AccessPackageResourceRoleScopeable)() @@ -637,4 +672,5 @@ type AccessPackageable interface { SetIsRoleScopesVisible(value *bool)() SetModifiedBy(value *string)() SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() } diff --git a/models/access_package_answer_string.go b/models/access_package_answer_string.go index fcbb9285f69..f93c9d93ce9 100644 --- a/models/access_package_answer_string.go +++ b/models/access_package_answer_string.go @@ -8,7 +8,7 @@ import ( type AccessPackageAnswerString struct { AccessPackageAnswer } -// NewAccessPackageAnswerString instantiates a new AccessPackageAnswerString and sets the default values. +// NewAccessPackageAnswerString instantiates a new accessPackageAnswerString and sets the default values. func NewAccessPackageAnswerString()(*AccessPackageAnswerString) { m := &AccessPackageAnswerString{ AccessPackageAnswer: *NewAccessPackageAnswer(), @@ -24,6 +24,16 @@ func CreateAccessPackageAnswerStringFromDiscriminatorValue(parseNode i878a80d233 // GetFieldDeserializers the deserialization information for the current model func (m *AccessPackageAnswerString) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AccessPackageAnswer.GetFieldDeserializers() + 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["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,6 +46,17 @@ func (m *AccessPackageAnswerString) GetFieldDeserializers()(map[string]func(i878 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessPackageAnswerString) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetValue gets the value property value. The value stored on the requestor's user profile, if this answer is configured to be stored as a specific attribute. func (m *AccessPackageAnswerString) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") @@ -53,6 +74,12 @@ func (m *AccessPackageAnswerString) Serialize(writer i878a80d2330e89d26896388a3f if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("value", m.GetValue()) if err != nil { @@ -61,6 +88,13 @@ func (m *AccessPackageAnswerString) Serialize(writer i878a80d2330e89d26896388a3f } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessPackageAnswerString) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetValue sets the value property value. The value stored on the requestor's user profile, if this answer is configured to be stored as a specific attribute. func (m *AccessPackageAnswerString) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) @@ -72,6 +106,8 @@ func (m *AccessPackageAnswerString) SetValue(value *string)() { type AccessPackageAnswerStringable interface { AccessPackageAnswerable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetValue()(*string) + SetOdataType(value *string)() SetValue(value *string)() } diff --git a/models/access_package_assignment.go b/models/access_package_assignment.go index b11aea33e27..82c74e18f40 100644 --- a/models/access_package_assignment.go +++ b/models/access_package_assignment.go @@ -8,6 +8,8 @@ import ( // AccessPackageAssignment type AccessPackageAssignment struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageAssignment instantiates a new accessPackageAssignment and sets the default values. func NewAccessPackageAssignment()(*AccessPackageAssignment) { diff --git a/models/access_package_assignment_collection_response.go b/models/access_package_assignment_collection_response.go index ac89ecf7cab..bee7eb5cf4a 100644 --- a/models/access_package_assignment_collection_response.go +++ b/models/access_package_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageAssignmentCollectionResponse instantiates a new AccessPackageAssignmentCollectionResponse and sets the default values. +// NewAccessPackageAssignmentCollectionResponse instantiates a new accessPackageAssignmentCollectionResponse and sets the default values. func NewAccessPackageAssignmentCollectionResponse()(*AccessPackageAssignmentCollectionResponse) { m := &AccessPackageAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_assignment_policy.go b/models/access_package_assignment_policy.go index 38b1d26cb82..819e03c49dc 100644 --- a/models/access_package_assignment_policy.go +++ b/models/access_package_assignment_policy.go @@ -8,6 +8,8 @@ import ( // AccessPackageAssignmentPolicy type AccessPackageAssignmentPolicy struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageAssignmentPolicy instantiates a new accessPackageAssignmentPolicy and sets the default values. func NewAccessPackageAssignmentPolicy()(*AccessPackageAssignmentPolicy) { diff --git a/models/access_package_assignment_policy_collection_response.go b/models/access_package_assignment_policy_collection_response.go index 4fd3d048c3d..1862776fda2 100644 --- a/models/access_package_assignment_policy_collection_response.go +++ b/models/access_package_assignment_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageAssignmentPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageAssignmentPolicyCollectionResponse instantiates a new AccessPackageAssignmentPolicyCollectionResponse and sets the default values. +// NewAccessPackageAssignmentPolicyCollectionResponse instantiates a new accessPackageAssignmentPolicyCollectionResponse and sets the default values. func NewAccessPackageAssignmentPolicyCollectionResponse()(*AccessPackageAssignmentPolicyCollectionResponse) { m := &AccessPackageAssignmentPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_assignment_request.go b/models/access_package_assignment_request.go index 464bee3ec9c..e8525c7b864 100644 --- a/models/access_package_assignment_request.go +++ b/models/access_package_assignment_request.go @@ -8,6 +8,8 @@ import ( // AccessPackageAssignmentRequest type AccessPackageAssignmentRequest struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageAssignmentRequest instantiates a new accessPackageAssignmentRequest and sets the default values. func NewAccessPackageAssignmentRequest()(*AccessPackageAssignmentRequest) { diff --git a/models/access_package_assignment_request_callback_data.go b/models/access_package_assignment_request_callback_data.go index 370a3908891..4fb31134a0c 100644 --- a/models/access_package_assignment_request_callback_data.go +++ b/models/access_package_assignment_request_callback_data.go @@ -7,8 +7,10 @@ import ( // AccessPackageAssignmentRequestCallbackData type AccessPackageAssignmentRequestCallbackData struct { CustomExtensionData + // The OdataType property + OdataType *string } -// NewAccessPackageAssignmentRequestCallbackData instantiates a new AccessPackageAssignmentRequestCallbackData and sets the default values. +// NewAccessPackageAssignmentRequestCallbackData instantiates a new accessPackageAssignmentRequestCallbackData and sets the default values. func NewAccessPackageAssignmentRequestCallbackData()(*AccessPackageAssignmentRequestCallbackData) { m := &AccessPackageAssignmentRequestCallbackData{ CustomExtensionData: *NewCustomExtensionData(), diff --git a/models/access_package_assignment_request_collection_response.go b/models/access_package_assignment_request_collection_response.go index 99cd10a3be7..184f54f44b9 100644 --- a/models/access_package_assignment_request_collection_response.go +++ b/models/access_package_assignment_request_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageAssignmentRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageAssignmentRequestCollectionResponse instantiates a new AccessPackageAssignmentRequestCollectionResponse and sets the default values. +// NewAccessPackageAssignmentRequestCollectionResponse instantiates a new accessPackageAssignmentRequestCollectionResponse and sets the default values. func NewAccessPackageAssignmentRequestCollectionResponse()(*AccessPackageAssignmentRequestCollectionResponse) { m := &AccessPackageAssignmentRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_assignment_request_workflow_extension.go b/models/access_package_assignment_request_workflow_extension.go index da7725071ca..127d24fb971 100644 --- a/models/access_package_assignment_request_workflow_extension.go +++ b/models/access_package_assignment_request_workflow_extension.go @@ -9,7 +9,7 @@ import ( type AccessPackageAssignmentRequestWorkflowExtension struct { CustomCalloutExtension } -// NewAccessPackageAssignmentRequestWorkflowExtension instantiates a new AccessPackageAssignmentRequestWorkflowExtension and sets the default values. +// NewAccessPackageAssignmentRequestWorkflowExtension instantiates a new accessPackageAssignmentRequestWorkflowExtension and sets the default values. func NewAccessPackageAssignmentRequestWorkflowExtension()(*AccessPackageAssignmentRequestWorkflowExtension) { m := &AccessPackageAssignmentRequestWorkflowExtension{ CustomCalloutExtension: *NewCustomCalloutExtension(), diff --git a/models/access_package_assignment_resource_role.go b/models/access_package_assignment_resource_role.go index c18340e2aa4..fa6e501349a 100644 --- a/models/access_package_assignment_resource_role.go +++ b/models/access_package_assignment_resource_role.go @@ -7,6 +7,8 @@ import ( // AccessPackageAssignmentResourceRole type AccessPackageAssignmentResourceRole struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageAssignmentResourceRole instantiates a new accessPackageAssignmentResourceRole and sets the default values. func NewAccessPackageAssignmentResourceRole()(*AccessPackageAssignmentResourceRole) { diff --git a/models/access_package_assignment_resource_role_collection_response.go b/models/access_package_assignment_resource_role_collection_response.go index 8ff7389e63e..f906eef019c 100644 --- a/models/access_package_assignment_resource_role_collection_response.go +++ b/models/access_package_assignment_resource_role_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageAssignmentResourceRoleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageAssignmentResourceRoleCollectionResponse instantiates a new AccessPackageAssignmentResourceRoleCollectionResponse and sets the default values. +// NewAccessPackageAssignmentResourceRoleCollectionResponse instantiates a new accessPackageAssignmentResourceRoleCollectionResponse and sets the default values. func NewAccessPackageAssignmentResourceRoleCollectionResponse()(*AccessPackageAssignmentResourceRoleCollectionResponse) { m := &AccessPackageAssignmentResourceRoleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_assignment_workflow_extension.go b/models/access_package_assignment_workflow_extension.go index 7fce84951b7..a3c96492999 100644 --- a/models/access_package_assignment_workflow_extension.go +++ b/models/access_package_assignment_workflow_extension.go @@ -9,7 +9,7 @@ import ( type AccessPackageAssignmentWorkflowExtension struct { CustomCalloutExtension } -// NewAccessPackageAssignmentWorkflowExtension instantiates a new AccessPackageAssignmentWorkflowExtension and sets the default values. +// NewAccessPackageAssignmentWorkflowExtension instantiates a new accessPackageAssignmentWorkflowExtension and sets the default values. func NewAccessPackageAssignmentWorkflowExtension()(*AccessPackageAssignmentWorkflowExtension) { m := &AccessPackageAssignmentWorkflowExtension{ CustomCalloutExtension: *NewCustomCalloutExtension(), diff --git a/models/access_package_catalog.go b/models/access_package_catalog.go index c512e4ab4df..73b9064f382 100644 --- a/models/access_package_catalog.go +++ b/models/access_package_catalog.go @@ -8,6 +8,8 @@ import ( // AccessPackageCatalog type AccessPackageCatalog struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageCatalog instantiates a new accessPackageCatalog and sets the default values. func NewAccessPackageCatalog()(*AccessPackageCatalog) { diff --git a/models/access_package_catalog_collection_response.go b/models/access_package_catalog_collection_response.go index 40f41618ee9..a6e0325dea7 100644 --- a/models/access_package_catalog_collection_response.go +++ b/models/access_package_catalog_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageCatalogCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageCatalogCollectionResponse instantiates a new AccessPackageCatalogCollectionResponse and sets the default values. +// NewAccessPackageCatalogCollectionResponse instantiates a new accessPackageCatalogCollectionResponse and sets the default values. func NewAccessPackageCatalogCollectionResponse()(*AccessPackageCatalogCollectionResponse) { m := &AccessPackageCatalogCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_collection_response.go b/models/access_package_collection_response.go index a22bc8d81e6..1964639adc5 100644 --- a/models/access_package_collection_response.go +++ b/models/access_package_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageCollectionResponse instantiates a new AccessPackageCollectionResponse and sets the default values. +// NewAccessPackageCollectionResponse instantiates a new accessPackageCollectionResponse and sets the default values. func NewAccessPackageCollectionResponse()(*AccessPackageCollectionResponse) { m := &AccessPackageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_multiple_choice_question.go b/models/access_package_multiple_choice_question.go index 7c988588e78..df90c1ddfc7 100644 --- a/models/access_package_multiple_choice_question.go +++ b/models/access_package_multiple_choice_question.go @@ -8,7 +8,7 @@ import ( type AccessPackageMultipleChoiceQuestion struct { AccessPackageQuestion } -// NewAccessPackageMultipleChoiceQuestion instantiates a new AccessPackageMultipleChoiceQuestion and sets the default values. +// NewAccessPackageMultipleChoiceQuestion instantiates a new accessPackageMultipleChoiceQuestion and sets the default values. func NewAccessPackageMultipleChoiceQuestion()(*AccessPackageMultipleChoiceQuestion) { m := &AccessPackageMultipleChoiceQuestion{ AccessPackageQuestion: *NewAccessPackageQuestion(), @@ -72,8 +72,29 @@ func (m *AccessPackageMultipleChoiceQuestion) GetFieldDeserializers()(map[string } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessPackageMultipleChoiceQuestion) 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 *AccessPackageMultipleChoiceQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AccessPackageQuestion.Serialize(writer) @@ -98,6 +119,12 @@ func (m *AccessPackageMultipleChoiceQuestion) Serialize(writer i878a80d2330e89d2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAllowsMultipleSelection sets the allowsMultipleSelection property value. Indicates whether requestor can select multiple choices as their answer. @@ -114,12 +141,21 @@ func (m *AccessPackageMultipleChoiceQuestion) SetChoices(value []AccessPackageAn panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessPackageMultipleChoiceQuestion) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AccessPackageMultipleChoiceQuestionable type AccessPackageMultipleChoiceQuestionable interface { AccessPackageQuestionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowsMultipleSelection()(*bool) GetChoices()([]AccessPackageAnswerChoiceable) + GetOdataType()(*string) SetAllowsMultipleSelection(value *bool)() SetChoices(value []AccessPackageAnswerChoiceable)() + SetOdataType(value *string)() } diff --git a/models/access_package_resource.go b/models/access_package_resource.go index 659ca241bbc..17c813d764d 100644 --- a/models/access_package_resource.go +++ b/models/access_package_resource.go @@ -8,6 +8,8 @@ import ( // AccessPackageResource type AccessPackageResource struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageResource instantiates a new accessPackageResource and sets the default values. func NewAccessPackageResource()(*AccessPackageResource) { diff --git a/models/access_package_resource_attribute_question.go b/models/access_package_resource_attribute_question.go index 479d29bb44b..68d425b38cb 100644 --- a/models/access_package_resource_attribute_question.go +++ b/models/access_package_resource_attribute_question.go @@ -7,8 +7,10 @@ import ( // AccessPackageResourceAttributeQuestion type AccessPackageResourceAttributeQuestion struct { AccessPackageResourceAttributeSource + // The OdataType property + OdataType *string } -// NewAccessPackageResourceAttributeQuestion instantiates a new AccessPackageResourceAttributeQuestion and sets the default values. +// NewAccessPackageResourceAttributeQuestion instantiates a new accessPackageResourceAttributeQuestion and sets the default values. func NewAccessPackageResourceAttributeQuestion()(*AccessPackageResourceAttributeQuestion) { m := &AccessPackageResourceAttributeQuestion{ AccessPackageResourceAttributeSource: *NewAccessPackageResourceAttributeSource(), diff --git a/models/access_package_resource_collection_response.go b/models/access_package_resource_collection_response.go index 8ce453999ca..602a2c40174 100644 --- a/models/access_package_resource_collection_response.go +++ b/models/access_package_resource_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageResourceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageResourceCollectionResponse instantiates a new AccessPackageResourceCollectionResponse and sets the default values. +// NewAccessPackageResourceCollectionResponse instantiates a new accessPackageResourceCollectionResponse and sets the default values. func NewAccessPackageResourceCollectionResponse()(*AccessPackageResourceCollectionResponse) { m := &AccessPackageResourceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_resource_environment.go b/models/access_package_resource_environment.go index 4ec8af58390..132518af187 100644 --- a/models/access_package_resource_environment.go +++ b/models/access_package_resource_environment.go @@ -8,6 +8,8 @@ import ( // AccessPackageResourceEnvironment type AccessPackageResourceEnvironment struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageResourceEnvironment instantiates a new accessPackageResourceEnvironment and sets the default values. func NewAccessPackageResourceEnvironment()(*AccessPackageResourceEnvironment) { diff --git a/models/access_package_resource_environment_collection_response.go b/models/access_package_resource_environment_collection_response.go index 9ca20876a9f..78fa238a4fb 100644 --- a/models/access_package_resource_environment_collection_response.go +++ b/models/access_package_resource_environment_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageResourceEnvironmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageResourceEnvironmentCollectionResponse instantiates a new AccessPackageResourceEnvironmentCollectionResponse and sets the default values. +// NewAccessPackageResourceEnvironmentCollectionResponse instantiates a new accessPackageResourceEnvironmentCollectionResponse and sets the default values. func NewAccessPackageResourceEnvironmentCollectionResponse()(*AccessPackageResourceEnvironmentCollectionResponse) { m := &AccessPackageResourceEnvironmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_resource_request.go b/models/access_package_resource_request.go index 560a20294fd..1b42c7655f0 100644 --- a/models/access_package_resource_request.go +++ b/models/access_package_resource_request.go @@ -8,6 +8,8 @@ import ( // AccessPackageResourceRequest type AccessPackageResourceRequest struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageResourceRequest instantiates a new accessPackageResourceRequest and sets the default values. func NewAccessPackageResourceRequest()(*AccessPackageResourceRequest) { diff --git a/models/access_package_resource_request_collection_response.go b/models/access_package_resource_request_collection_response.go index 79f6e6b0e9e..338e9e9f6c2 100644 --- a/models/access_package_resource_request_collection_response.go +++ b/models/access_package_resource_request_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageResourceRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageResourceRequestCollectionResponse instantiates a new AccessPackageResourceRequestCollectionResponse and sets the default values. +// NewAccessPackageResourceRequestCollectionResponse instantiates a new accessPackageResourceRequestCollectionResponse and sets the default values. func NewAccessPackageResourceRequestCollectionResponse()(*AccessPackageResourceRequestCollectionResponse) { m := &AccessPackageResourceRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_resource_role.go b/models/access_package_resource_role.go index 36082fa19ef..2345972447a 100644 --- a/models/access_package_resource_role.go +++ b/models/access_package_resource_role.go @@ -7,6 +7,8 @@ import ( // AccessPackageResourceRole type AccessPackageResourceRole struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageResourceRole instantiates a new accessPackageResourceRole and sets the default values. func NewAccessPackageResourceRole()(*AccessPackageResourceRole) { diff --git a/models/access_package_resource_role_collection_response.go b/models/access_package_resource_role_collection_response.go index 14c2077a900..f9c37f4976d 100644 --- a/models/access_package_resource_role_collection_response.go +++ b/models/access_package_resource_role_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageResourceRoleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageResourceRoleCollectionResponse instantiates a new AccessPackageResourceRoleCollectionResponse and sets the default values. +// NewAccessPackageResourceRoleCollectionResponse instantiates a new accessPackageResourceRoleCollectionResponse and sets the default values. func NewAccessPackageResourceRoleCollectionResponse()(*AccessPackageResourceRoleCollectionResponse) { m := &AccessPackageResourceRoleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_resource_role_scope.go b/models/access_package_resource_role_scope.go index 67414e2ed35..096078bb1d5 100644 --- a/models/access_package_resource_role_scope.go +++ b/models/access_package_resource_role_scope.go @@ -8,6 +8,8 @@ import ( // AccessPackageResourceRoleScope type AccessPackageResourceRoleScope struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageResourceRoleScope instantiates a new accessPackageResourceRoleScope and sets the default values. func NewAccessPackageResourceRoleScope()(*AccessPackageResourceRoleScope) { diff --git a/models/access_package_resource_role_scope_collection_response.go b/models/access_package_resource_role_scope_collection_response.go index 69a7bd62622..723d764f41e 100644 --- a/models/access_package_resource_role_scope_collection_response.go +++ b/models/access_package_resource_role_scope_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageResourceRoleScopeCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageResourceRoleScopeCollectionResponse instantiates a new AccessPackageResourceRoleScopeCollectionResponse and sets the default values. +// NewAccessPackageResourceRoleScopeCollectionResponse instantiates a new accessPackageResourceRoleScopeCollectionResponse and sets the default values. func NewAccessPackageResourceRoleScopeCollectionResponse()(*AccessPackageResourceRoleScopeCollectionResponse) { m := &AccessPackageResourceRoleScopeCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_resource_scope.go b/models/access_package_resource_scope.go index bd1379ca66a..777b56a9d3e 100644 --- a/models/access_package_resource_scope.go +++ b/models/access_package_resource_scope.go @@ -7,6 +7,8 @@ import ( // AccessPackageResourceScope type AccessPackageResourceScope struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageResourceScope instantiates a new accessPackageResourceScope and sets the default values. func NewAccessPackageResourceScope()(*AccessPackageResourceScope) { diff --git a/models/access_package_resource_scope_collection_response.go b/models/access_package_resource_scope_collection_response.go index 5a658b4cf16..5c3518cd42a 100644 --- a/models/access_package_resource_scope_collection_response.go +++ b/models/access_package_resource_scope_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageResourceScopeCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageResourceScopeCollectionResponse instantiates a new AccessPackageResourceScopeCollectionResponse and sets the default values. +// NewAccessPackageResourceScopeCollectionResponse instantiates a new accessPackageResourceScopeCollectionResponse and sets the default values. func NewAccessPackageResourceScopeCollectionResponse()(*AccessPackageResourceScopeCollectionResponse) { m := &AccessPackageResourceScopeCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_subject.go b/models/access_package_subject.go index 54ce984c830..7f7fd70831b 100644 --- a/models/access_package_subject.go +++ b/models/access_package_subject.go @@ -7,6 +7,8 @@ import ( // AccessPackageSubject type AccessPackageSubject struct { Entity + // The OdataType property + OdataType *string } // NewAccessPackageSubject instantiates a new accessPackageSubject and sets the default values. func NewAccessPackageSubject()(*AccessPackageSubject) { diff --git a/models/access_package_subject_collection_response.go b/models/access_package_subject_collection_response.go index c77a6a6431e..f628db53444 100644 --- a/models/access_package_subject_collection_response.go +++ b/models/access_package_subject_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessPackageSubjectCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessPackageSubjectCollectionResponse instantiates a new AccessPackageSubjectCollectionResponse and sets the default values. +// NewAccessPackageSubjectCollectionResponse instantiates a new accessPackageSubjectCollectionResponse and sets the default values. func NewAccessPackageSubjectCollectionResponse()(*AccessPackageSubjectCollectionResponse) { m := &AccessPackageSubjectCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_package_text_input_question.go b/models/access_package_text_input_question.go index 21e6f5a884f..3933a1c933c 100644 --- a/models/access_package_text_input_question.go +++ b/models/access_package_text_input_question.go @@ -8,7 +8,7 @@ import ( type AccessPackageTextInputQuestion struct { AccessPackageQuestion } -// NewAccessPackageTextInputQuestion instantiates a new AccessPackageTextInputQuestion and sets the default values. +// NewAccessPackageTextInputQuestion instantiates a new accessPackageTextInputQuestion and sets the default values. func NewAccessPackageTextInputQuestion()(*AccessPackageTextInputQuestion) { m := &AccessPackageTextInputQuestion{ AccessPackageQuestion: *NewAccessPackageQuestion(), @@ -34,6 +34,16 @@ func (m *AccessPackageTextInputQuestion) GetFieldDeserializers()(map[string]func } 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["regexPattern"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -57,6 +67,17 @@ func (m *AccessPackageTextInputQuestion) GetIsSingleLineQuestion()(*bool) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessPackageTextInputQuestion) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRegexPattern gets the regexPattern property value. This is the regex pattern that the corresponding text answer must follow. func (m *AccessPackageTextInputQuestion) GetRegexPattern()(*string) { val, err := m.GetBackingStore().Get("regexPattern") @@ -80,6 +101,12 @@ func (m *AccessPackageTextInputQuestion) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("regexPattern", m.GetRegexPattern()) if err != nil { @@ -95,6 +122,13 @@ func (m *AccessPackageTextInputQuestion) SetIsSingleLineQuestion(value *bool)() panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessPackageTextInputQuestion) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRegexPattern sets the regexPattern property value. This is the regex pattern that the corresponding text answer must follow. func (m *AccessPackageTextInputQuestion) SetRegexPattern(value *string)() { err := m.GetBackingStore().Set("regexPattern", value) @@ -107,7 +141,9 @@ type AccessPackageTextInputQuestionable interface { AccessPackageQuestionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIsSingleLineQuestion()(*bool) + GetOdataType()(*string) GetRegexPattern()(*string) SetIsSingleLineQuestion(value *bool)() + SetOdataType(value *string)() SetRegexPattern(value *string)() } diff --git a/models/access_package_user_directory_attribute_store.go b/models/access_package_user_directory_attribute_store.go index 65762f597cc..523ba90e4eb 100644 --- a/models/access_package_user_directory_attribute_store.go +++ b/models/access_package_user_directory_attribute_store.go @@ -7,8 +7,10 @@ import ( // AccessPackageUserDirectoryAttributeStore type AccessPackageUserDirectoryAttributeStore struct { AccessPackageResourceAttributeDestination + // The OdataType property + OdataType *string } -// NewAccessPackageUserDirectoryAttributeStore instantiates a new AccessPackageUserDirectoryAttributeStore and sets the default values. +// NewAccessPackageUserDirectoryAttributeStore instantiates a new accessPackageUserDirectoryAttributeStore and sets the default values. func NewAccessPackageUserDirectoryAttributeStore()(*AccessPackageUserDirectoryAttributeStore) { m := &AccessPackageUserDirectoryAttributeStore{ AccessPackageResourceAttributeDestination: *NewAccessPackageResourceAttributeDestination(), diff --git a/models/access_review.go b/models/access_review.go index c3a1569c88c..5fea3b9bf3e 100644 --- a/models/access_review.go +++ b/models/access_review.go @@ -8,8 +8,10 @@ import ( // AccessReview type AccessReview struct { Entity + // The OdataType property + OdataType *string } -// NewAccessReview instantiates a new AccessReview and sets the default values. +// NewAccessReview instantiates a new accessReview and sets the default values. func NewAccessReview()(*AccessReview) { m := &AccessReview{ Entity: *NewEntity(), diff --git a/models/access_review_collection_response.go b/models/access_review_collection_response.go index a873d484105..55b90113e13 100644 --- a/models/access_review_collection_response.go +++ b/models/access_review_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessReviewCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessReviewCollectionResponse instantiates a new AccessReviewCollectionResponse and sets the default values. +// NewAccessReviewCollectionResponse instantiates a new accessReviewCollectionResponse and sets the default values. func NewAccessReviewCollectionResponse()(*AccessReviewCollectionResponse) { m := &AccessReviewCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_review_decision.go b/models/access_review_decision.go index 60a49091d82..c21c957c542 100644 --- a/models/access_review_decision.go +++ b/models/access_review_decision.go @@ -8,6 +8,8 @@ import ( // AccessReviewDecision type AccessReviewDecision struct { Entity + // The OdataType property + OdataType *string } // NewAccessReviewDecision instantiates a new accessReviewDecision and sets the default values. func NewAccessReviewDecision()(*AccessReviewDecision) { diff --git a/models/access_review_decision_collection_response.go b/models/access_review_decision_collection_response.go index 4c7155b2c47..0ffcbdb0a25 100644 --- a/models/access_review_decision_collection_response.go +++ b/models/access_review_decision_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessReviewDecisionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessReviewDecisionCollectionResponse instantiates a new AccessReviewDecisionCollectionResponse and sets the default values. +// NewAccessReviewDecisionCollectionResponse instantiates a new accessReviewDecisionCollectionResponse and sets the default values. func NewAccessReviewDecisionCollectionResponse()(*AccessReviewDecisionCollectionResponse) { m := &AccessReviewDecisionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_review_error.go b/models/access_review_error.go index dfe73251f0e..346246bb470 100644 --- a/models/access_review_error.go +++ b/models/access_review_error.go @@ -7,8 +7,10 @@ import ( // AccessReviewError type AccessReviewError struct { GenericError + // The OdataType property + OdataType *string } -// NewAccessReviewError instantiates a new AccessReviewError and sets the default values. +// NewAccessReviewError instantiates a new accessReviewError and sets the default values. func NewAccessReviewError()(*AccessReviewError) { m := &AccessReviewError{ GenericError: *NewGenericError(), diff --git a/models/access_review_history_definition.go b/models/access_review_history_definition.go index ee95ffbf21e..e190115cb83 100644 --- a/models/access_review_history_definition.go +++ b/models/access_review_history_definition.go @@ -160,6 +160,16 @@ func (m *AccessReviewHistoryDefinition) GetFieldDeserializers()(map[string]func( } 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["reviewHistoryPeriodEndDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -240,6 +250,17 @@ func (m *AccessReviewHistoryDefinition) GetInstances()([]AccessReviewHistoryInst } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessReviewHistoryDefinition) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetReviewHistoryPeriodEndDateTime gets the reviewHistoryPeriodEndDateTime property value. A timestamp. Reviews ending on or before this date will be included in the fetched history data. Only required if scheduleSettings is not defined. func (m *AccessReviewHistoryDefinition) GetReviewHistoryPeriodEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("reviewHistoryPeriodEndDateTime") @@ -349,6 +370,12 @@ func (m *AccessReviewHistoryDefinition) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteTimeValue("reviewHistoryPeriodEndDateTime", m.GetReviewHistoryPeriodEndDateTime()) if err != nil { @@ -437,6 +464,13 @@ func (m *AccessReviewHistoryDefinition) SetInstances(value []AccessReviewHistory panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessReviewHistoryDefinition) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetReviewHistoryPeriodEndDateTime sets the reviewHistoryPeriodEndDateTime property value. A timestamp. Reviews ending on or before this date will be included in the fetched history data. Only required if scheduleSettings is not defined. func (m *AccessReviewHistoryDefinition) SetReviewHistoryPeriodEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("reviewHistoryPeriodEndDateTime", value) @@ -483,6 +517,7 @@ type AccessReviewHistoryDefinitionable interface { GetDownloadUri()(*string) GetFulfilledDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetInstances()([]AccessReviewHistoryInstanceable) + GetOdataType()(*string) GetReviewHistoryPeriodEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetReviewHistoryPeriodStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetScheduleSettings()(AccessReviewHistoryScheduleSettingsable) @@ -495,6 +530,7 @@ type AccessReviewHistoryDefinitionable interface { SetDownloadUri(value *string)() SetFulfilledDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetInstances(value []AccessReviewHistoryInstanceable)() + SetOdataType(value *string)() SetReviewHistoryPeriodEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetReviewHistoryPeriodStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetScheduleSettings(value AccessReviewHistoryScheduleSettingsable)() diff --git a/models/access_review_history_definition_collection_response.go b/models/access_review_history_definition_collection_response.go index 1a55518cd1a..d2cf6d04c88 100644 --- a/models/access_review_history_definition_collection_response.go +++ b/models/access_review_history_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessReviewHistoryDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessReviewHistoryDefinitionCollectionResponse instantiates a new AccessReviewHistoryDefinitionCollectionResponse and sets the default values. +// NewAccessReviewHistoryDefinitionCollectionResponse instantiates a new accessReviewHistoryDefinitionCollectionResponse and sets the default values. func NewAccessReviewHistoryDefinitionCollectionResponse()(*AccessReviewHistoryDefinitionCollectionResponse) { m := &AccessReviewHistoryDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_review_history_instance.go b/models/access_review_history_instance.go index 95a305b1dce..6c65b98c6b7 100644 --- a/models/access_review_history_instance.go +++ b/models/access_review_history_instance.go @@ -8,6 +8,8 @@ import ( // AccessReviewHistoryInstance type AccessReviewHistoryInstance struct { Entity + // The OdataType property + OdataType *string } // NewAccessReviewHistoryInstance instantiates a new accessReviewHistoryInstance and sets the default values. func NewAccessReviewHistoryInstance()(*AccessReviewHistoryInstance) { diff --git a/models/access_review_history_instance_collection_response.go b/models/access_review_history_instance_collection_response.go index fb7833d7dbb..48b5d3d6799 100644 --- a/models/access_review_history_instance_collection_response.go +++ b/models/access_review_history_instance_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessReviewHistoryInstanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessReviewHistoryInstanceCollectionResponse instantiates a new AccessReviewHistoryInstanceCollectionResponse and sets the default values. +// NewAccessReviewHistoryInstanceCollectionResponse instantiates a new accessReviewHistoryInstanceCollectionResponse and sets the default values. func NewAccessReviewHistoryInstanceCollectionResponse()(*AccessReviewHistoryInstanceCollectionResponse) { m := &AccessReviewHistoryInstanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_review_inactive_users_query_scope.go b/models/access_review_inactive_users_query_scope.go index 653ac256cf8..6af3d32377c 100644 --- a/models/access_review_inactive_users_query_scope.go +++ b/models/access_review_inactive_users_query_scope.go @@ -8,7 +8,7 @@ import ( type AccessReviewInactiveUsersQueryScope struct { AccessReviewQueryScope } -// NewAccessReviewInactiveUsersQueryScope instantiates a new AccessReviewInactiveUsersQueryScope and sets the default values. +// NewAccessReviewInactiveUsersQueryScope instantiates a new accessReviewInactiveUsersQueryScope and sets the default values. func NewAccessReviewInactiveUsersQueryScope()(*AccessReviewInactiveUsersQueryScope) { m := &AccessReviewInactiveUsersQueryScope{ AccessReviewQueryScope: *NewAccessReviewQueryScope(), diff --git a/models/access_review_instance.go b/models/access_review_instance.go index 5c52eed78de..47e3a01727d 100644 --- a/models/access_review_instance.go +++ b/models/access_review_instance.go @@ -173,6 +173,16 @@ func (m *AccessReviewInstance) GetFieldDeserializers()(map[string]func(i878a80d2 } 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["reviewers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateAccessReviewReviewerScopeFromDiscriminatorValue) if err != nil { @@ -237,6 +247,17 @@ func (m *AccessReviewInstance) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessReviewInstance) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetReviewers gets the reviewers property value. This collection of access review scopes is used to define who the reviewers are. Supports $select. For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API. func (m *AccessReviewInstance) GetReviewers()([]AccessReviewReviewerScopeable) { val, err := m.GetBackingStore().Get("reviewers") @@ -358,6 +379,12 @@ func (m *AccessReviewInstance) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetReviewers() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetReviewers())) for i, v := range m.GetReviewers() { @@ -444,6 +471,13 @@ func (m *AccessReviewInstance) SetFallbackReviewers(value []AccessReviewReviewer panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessReviewInstance) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetReviewers sets the reviewers property value. This collection of access review scopes is used to define who the reviewers are. Supports $select. For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API. func (m *AccessReviewInstance) SetReviewers(value []AccessReviewReviewerScopeable)() { err := m.GetBackingStore().Set("reviewers", value) @@ -489,6 +523,7 @@ type AccessReviewInstanceable interface { GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetErrors()([]AccessReviewErrorable) GetFallbackReviewers()([]AccessReviewReviewerScopeable) + GetOdataType()(*string) GetReviewers()([]AccessReviewReviewerScopeable) GetScope()(AccessReviewScopeable) GetStages()([]AccessReviewStageable) @@ -500,6 +535,7 @@ type AccessReviewInstanceable interface { SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetErrors(value []AccessReviewErrorable)() SetFallbackReviewers(value []AccessReviewReviewerScopeable)() + SetOdataType(value *string)() SetReviewers(value []AccessReviewReviewerScopeable)() SetScope(value AccessReviewScopeable)() SetStages(value []AccessReviewStageable)() diff --git a/models/access_review_instance_collection_response.go b/models/access_review_instance_collection_response.go index 18f44ff8e7c..4e7f0d8856e 100644 --- a/models/access_review_instance_collection_response.go +++ b/models/access_review_instance_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessReviewInstanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessReviewInstanceCollectionResponse instantiates a new AccessReviewInstanceCollectionResponse and sets the default values. +// NewAccessReviewInstanceCollectionResponse instantiates a new accessReviewInstanceCollectionResponse and sets the default values. func NewAccessReviewInstanceCollectionResponse()(*AccessReviewInstanceCollectionResponse) { m := &AccessReviewInstanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_review_instance_decision_item.go b/models/access_review_instance_decision_item.go index 95e438b3dfe..7be94187e97 100644 --- a/models/access_review_instance_decision_item.go +++ b/models/access_review_instance_decision_item.go @@ -8,6 +8,8 @@ import ( // AccessReviewInstanceDecisionItem type AccessReviewInstanceDecisionItem struct { Entity + // The OdataType property + OdataType *string } // NewAccessReviewInstanceDecisionItem instantiates a new accessReviewInstanceDecisionItem and sets the default values. func NewAccessReviewInstanceDecisionItem()(*AccessReviewInstanceDecisionItem) { diff --git a/models/access_review_instance_decision_item_access_package_assignment_policy_resource.go b/models/access_review_instance_decision_item_access_package_assignment_policy_resource.go index 0b4f3bb3f3d..29df9637c74 100644 --- a/models/access_review_instance_decision_item_access_package_assignment_policy_resource.go +++ b/models/access_review_instance_decision_item_access_package_assignment_policy_resource.go @@ -8,7 +8,7 @@ import ( type AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource struct { AccessReviewInstanceDecisionItemResource } -// NewAccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource instantiates a new AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource and sets the default values. +// NewAccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource instantiates a new accessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource and sets the default values. func NewAccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource()(*AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource) { m := &AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource{ AccessReviewInstanceDecisionItemResource: *NewAccessReviewInstanceDecisionItemResource(), @@ -66,8 +66,29 @@ func (m *AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource) } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource) 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 *AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AccessReviewInstanceDecisionItemResource.Serialize(writer) @@ -86,6 +107,12 @@ func (m *AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource) return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAccessPackageDisplayName sets the accessPackageDisplayName property value. Display name of the access package to which access has been granted. @@ -102,12 +129,21 @@ func (m *AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource) panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResourceable type AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResourceable interface { AccessReviewInstanceDecisionItemResourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccessPackageDisplayName()(*string) GetAccessPackageId()(*string) + GetOdataType()(*string) SetAccessPackageDisplayName(value *string)() SetAccessPackageId(value *string)() + SetOdataType(value *string)() } diff --git a/models/access_review_instance_decision_item_azure_role_resource.go b/models/access_review_instance_decision_item_azure_role_resource.go index 13c2e3c8e5b..db2ae306971 100644 --- a/models/access_review_instance_decision_item_azure_role_resource.go +++ b/models/access_review_instance_decision_item_azure_role_resource.go @@ -8,7 +8,7 @@ import ( type AccessReviewInstanceDecisionItemAzureRoleResource struct { AccessReviewInstanceDecisionItemResource } -// NewAccessReviewInstanceDecisionItemAzureRoleResource instantiates a new AccessReviewInstanceDecisionItemAzureRoleResource and sets the default values. +// NewAccessReviewInstanceDecisionItemAzureRoleResource instantiates a new accessReviewInstanceDecisionItemAzureRoleResource and sets the default values. func NewAccessReviewInstanceDecisionItemAzureRoleResource()(*AccessReviewInstanceDecisionItemAzureRoleResource) { m := &AccessReviewInstanceDecisionItemAzureRoleResource{ AccessReviewInstanceDecisionItemResource: *NewAccessReviewInstanceDecisionItemResource(), @@ -24,6 +24,16 @@ func CreateAccessReviewInstanceDecisionItemAzureRoleResourceFromDiscriminatorVal // GetFieldDeserializers the deserialization information for the current model func (m *AccessReviewInstanceDecisionItemAzureRoleResource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AccessReviewInstanceDecisionItemResource.GetFieldDeserializers() + 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["scope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateAccessReviewInstanceDecisionItemResourceFromDiscriminatorValue) if err != nil { @@ -36,6 +46,17 @@ func (m *AccessReviewInstanceDecisionItemAzureRoleResource) GetFieldDeserializer } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessReviewInstanceDecisionItemAzureRoleResource) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetScope gets the scope property value. Details of the scope this role is associated with. func (m *AccessReviewInstanceDecisionItemAzureRoleResource) GetScope()(AccessReviewInstanceDecisionItemResourceable) { val, err := m.GetBackingStore().Get("scope") @@ -53,6 +74,12 @@ func (m *AccessReviewInstanceDecisionItemAzureRoleResource) Serialize(writer i87 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("scope", m.GetScope()) if err != nil { @@ -61,6 +88,13 @@ func (m *AccessReviewInstanceDecisionItemAzureRoleResource) Serialize(writer i87 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessReviewInstanceDecisionItemAzureRoleResource) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetScope sets the scope property value. Details of the scope this role is associated with. func (m *AccessReviewInstanceDecisionItemAzureRoleResource) SetScope(value AccessReviewInstanceDecisionItemResourceable)() { err := m.GetBackingStore().Set("scope", value) @@ -72,6 +106,8 @@ func (m *AccessReviewInstanceDecisionItemAzureRoleResource) SetScope(value Acces type AccessReviewInstanceDecisionItemAzureRoleResourceable interface { AccessReviewInstanceDecisionItemResourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetScope()(AccessReviewInstanceDecisionItemResourceable) + SetOdataType(value *string)() SetScope(value AccessReviewInstanceDecisionItemResourceable)() } diff --git a/models/access_review_instance_decision_item_collection_response.go b/models/access_review_instance_decision_item_collection_response.go index 4fa7c83ff2e..6ed5d40bc0f 100644 --- a/models/access_review_instance_decision_item_collection_response.go +++ b/models/access_review_instance_decision_item_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessReviewInstanceDecisionItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessReviewInstanceDecisionItemCollectionResponse instantiates a new AccessReviewInstanceDecisionItemCollectionResponse and sets the default values. +// NewAccessReviewInstanceDecisionItemCollectionResponse instantiates a new accessReviewInstanceDecisionItemCollectionResponse and sets the default values. func NewAccessReviewInstanceDecisionItemCollectionResponse()(*AccessReviewInstanceDecisionItemCollectionResponse) { m := &AccessReviewInstanceDecisionItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_review_instance_decision_item_service_principal_resource.go b/models/access_review_instance_decision_item_service_principal_resource.go index b2d1e44806b..c964a663f43 100644 --- a/models/access_review_instance_decision_item_service_principal_resource.go +++ b/models/access_review_instance_decision_item_service_principal_resource.go @@ -8,7 +8,7 @@ import ( type AccessReviewInstanceDecisionItemServicePrincipalResource struct { AccessReviewInstanceDecisionItemResource } -// NewAccessReviewInstanceDecisionItemServicePrincipalResource instantiates a new AccessReviewInstanceDecisionItemServicePrincipalResource and sets the default values. +// NewAccessReviewInstanceDecisionItemServicePrincipalResource instantiates a new accessReviewInstanceDecisionItemServicePrincipalResource and sets the default values. func NewAccessReviewInstanceDecisionItemServicePrincipalResource()(*AccessReviewInstanceDecisionItemServicePrincipalResource) { m := &AccessReviewInstanceDecisionItemServicePrincipalResource{ AccessReviewInstanceDecisionItemResource: *NewAccessReviewInstanceDecisionItemResource(), @@ -45,8 +45,29 @@ func (m *AccessReviewInstanceDecisionItemServicePrincipalResource) GetFieldDeser } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessReviewInstanceDecisionItemServicePrincipalResource) 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 *AccessReviewInstanceDecisionItemServicePrincipalResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AccessReviewInstanceDecisionItemResource.Serialize(writer) @@ -59,6 +80,12 @@ func (m *AccessReviewInstanceDecisionItemServicePrincipalResource) Serialize(wri return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAppId sets the appId property value. The globally unique identifier of the application to which access has been granted. @@ -68,10 +95,19 @@ func (m *AccessReviewInstanceDecisionItemServicePrincipalResource) SetAppId(valu panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessReviewInstanceDecisionItemServicePrincipalResource) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AccessReviewInstanceDecisionItemServicePrincipalResourceable type AccessReviewInstanceDecisionItemServicePrincipalResourceable interface { AccessReviewInstanceDecisionItemResourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAppId()(*string) + GetOdataType()(*string) SetAppId(value *string)() + SetOdataType(value *string)() } diff --git a/models/access_review_instance_decision_item_service_principal_target.go b/models/access_review_instance_decision_item_service_principal_target.go index d88f8f31a9b..388ae02b657 100644 --- a/models/access_review_instance_decision_item_service_principal_target.go +++ b/models/access_review_instance_decision_item_service_principal_target.go @@ -8,7 +8,7 @@ import ( type AccessReviewInstanceDecisionItemServicePrincipalTarget struct { AccessReviewInstanceDecisionItemTarget } -// NewAccessReviewInstanceDecisionItemServicePrincipalTarget instantiates a new AccessReviewInstanceDecisionItemServicePrincipalTarget and sets the default values. +// NewAccessReviewInstanceDecisionItemServicePrincipalTarget instantiates a new accessReviewInstanceDecisionItemServicePrincipalTarget and sets the default values. func NewAccessReviewInstanceDecisionItemServicePrincipalTarget()(*AccessReviewInstanceDecisionItemServicePrincipalTarget) { m := &AccessReviewInstanceDecisionItemServicePrincipalTarget{ AccessReviewInstanceDecisionItemTarget: *NewAccessReviewInstanceDecisionItemTarget(), @@ -45,6 +45,16 @@ func (m *AccessReviewInstanceDecisionItemServicePrincipalTarget) GetFieldDeseria } 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["servicePrincipalDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -67,6 +77,17 @@ func (m *AccessReviewInstanceDecisionItemServicePrincipalTarget) GetFieldDeseria } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessReviewInstanceDecisionItemServicePrincipalTarget) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetServicePrincipalDisplayName gets the servicePrincipalDisplayName property value. The display name of the service principal whose access is being reviewed. func (m *AccessReviewInstanceDecisionItemServicePrincipalTarget) GetServicePrincipalDisplayName()(*string) { val, err := m.GetBackingStore().Get("servicePrincipalDisplayName") @@ -101,6 +122,12 @@ func (m *AccessReviewInstanceDecisionItemServicePrincipalTarget) Serialize(write return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("servicePrincipalDisplayName", m.GetServicePrincipalDisplayName()) if err != nil { @@ -122,6 +149,13 @@ func (m *AccessReviewInstanceDecisionItemServicePrincipalTarget) SetAppId(value panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessReviewInstanceDecisionItemServicePrincipalTarget) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetServicePrincipalDisplayName sets the servicePrincipalDisplayName property value. The display name of the service principal whose access is being reviewed. func (m *AccessReviewInstanceDecisionItemServicePrincipalTarget) SetServicePrincipalDisplayName(value *string)() { err := m.GetBackingStore().Set("servicePrincipalDisplayName", value) @@ -141,9 +175,11 @@ type AccessReviewInstanceDecisionItemServicePrincipalTargetable interface { AccessReviewInstanceDecisionItemTargetable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAppId()(*string) + GetOdataType()(*string) GetServicePrincipalDisplayName()(*string) GetServicePrincipalId()(*string) SetAppId(value *string)() + SetOdataType(value *string)() SetServicePrincipalDisplayName(value *string)() SetServicePrincipalId(value *string)() } diff --git a/models/access_review_instance_decision_item_user_target.go b/models/access_review_instance_decision_item_user_target.go index 4dad6e4ca11..4574f318c16 100644 --- a/models/access_review_instance_decision_item_user_target.go +++ b/models/access_review_instance_decision_item_user_target.go @@ -7,8 +7,10 @@ import ( // AccessReviewInstanceDecisionItemUserTarget type AccessReviewInstanceDecisionItemUserTarget struct { AccessReviewInstanceDecisionItemTarget + // The OdataType property + OdataType *string } -// NewAccessReviewInstanceDecisionItemUserTarget instantiates a new AccessReviewInstanceDecisionItemUserTarget and sets the default values. +// NewAccessReviewInstanceDecisionItemUserTarget instantiates a new accessReviewInstanceDecisionItemUserTarget and sets the default values. func NewAccessReviewInstanceDecisionItemUserTarget()(*AccessReviewInstanceDecisionItemUserTarget) { m := &AccessReviewInstanceDecisionItemUserTarget{ AccessReviewInstanceDecisionItemTarget: *NewAccessReviewInstanceDecisionItemTarget(), diff --git a/models/access_review_notification_recipient_query_scope.go b/models/access_review_notification_recipient_query_scope.go index bd02a68b359..36e00634199 100644 --- a/models/access_review_notification_recipient_query_scope.go +++ b/models/access_review_notification_recipient_query_scope.go @@ -8,7 +8,7 @@ import ( type AccessReviewNotificationRecipientQueryScope struct { AccessReviewNotificationRecipientScope } -// NewAccessReviewNotificationRecipientQueryScope instantiates a new AccessReviewNotificationRecipientQueryScope and sets the default values. +// NewAccessReviewNotificationRecipientQueryScope instantiates a new accessReviewNotificationRecipientQueryScope and sets the default values. func NewAccessReviewNotificationRecipientQueryScope()(*AccessReviewNotificationRecipientQueryScope) { m := &AccessReviewNotificationRecipientQueryScope{ AccessReviewNotificationRecipientScope: *NewAccessReviewNotificationRecipientScope(), @@ -24,6 +24,16 @@ func CreateAccessReviewNotificationRecipientQueryScopeFromDiscriminatorValue(par // GetFieldDeserializers the deserialization information for the current model func (m *AccessReviewNotificationRecipientQueryScope) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AccessReviewNotificationRecipientScope.GetFieldDeserializers() + 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["query"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -56,7 +66,18 @@ func (m *AccessReviewNotificationRecipientQueryScope) GetFieldDeserializers()(ma } return res } -// GetQuery gets the query property value. This represents the query for who the recipients are. For example, /groups/{group id}/members for group members and /users/{user id} for a specific user. +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessReviewNotificationRecipientQueryScope) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetQuery gets the query property value. Represents the query for who the recipients are. For example, /groups/{group id}/members for group members and /users/{user id} for a specific user. func (m *AccessReviewNotificationRecipientQueryScope) GetQuery()(*string) { val, err := m.GetBackingStore().Get("query") if err != nil { @@ -67,7 +88,7 @@ func (m *AccessReviewNotificationRecipientQueryScope) GetQuery()(*string) { } return nil } -// GetQueryRoot gets the queryRoot property value. In the scenario where reviewers need to be specified dynamically, this property is used to indicate the relative source of the query. This property is only required if a relative query that is, ./manager) is specified. +// GetQueryRoot gets the queryRoot property value. In the scenario where reviewers need to be specified dynamically, indicates the relative source of the query. This property is only required if a relative query (that is, ./manager) is specified. func (m *AccessReviewNotificationRecipientQueryScope) GetQueryRoot()(*string) { val, err := m.GetBackingStore().Get("queryRoot") if err != nil { @@ -95,6 +116,12 @@ func (m *AccessReviewNotificationRecipientQueryScope) Serialize(writer i878a80d2 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("query", m.GetQuery()) if err != nil { @@ -115,14 +142,21 @@ func (m *AccessReviewNotificationRecipientQueryScope) Serialize(writer i878a80d2 } return nil } -// SetQuery sets the query property value. This represents the query for who the recipients are. For example, /groups/{group id}/members for group members and /users/{user id} for a specific user. +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessReviewNotificationRecipientQueryScope) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetQuery sets the query property value. Represents the query for who the recipients are. For example, /groups/{group id}/members for group members and /users/{user id} for a specific user. func (m *AccessReviewNotificationRecipientQueryScope) SetQuery(value *string)() { err := m.GetBackingStore().Set("query", value) if err != nil { panic(err) } } -// SetQueryRoot sets the queryRoot property value. In the scenario where reviewers need to be specified dynamically, this property is used to indicate the relative source of the query. This property is only required if a relative query that is, ./manager) is specified. +// SetQueryRoot sets the queryRoot property value. In the scenario where reviewers need to be specified dynamically, indicates the relative source of the query. This property is only required if a relative query (that is, ./manager) is specified. func (m *AccessReviewNotificationRecipientQueryScope) SetQueryRoot(value *string)() { err := m.GetBackingStore().Set("queryRoot", value) if err != nil { @@ -140,9 +174,11 @@ func (m *AccessReviewNotificationRecipientQueryScope) SetQueryType(value *string type AccessReviewNotificationRecipientQueryScopeable interface { AccessReviewNotificationRecipientScopeable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetQuery()(*string) GetQueryRoot()(*string) GetQueryType()(*string) + SetOdataType(value *string)() SetQuery(value *string)() SetQueryRoot(value *string)() SetQueryType(value *string)() diff --git a/models/access_review_policy.go b/models/access_review_policy.go index ef51be0dd17..615abad7e0d 100644 --- a/models/access_review_policy.go +++ b/models/access_review_policy.go @@ -7,6 +7,8 @@ import ( // AccessReviewPolicy type AccessReviewPolicy struct { Entity + // The OdataType property + OdataType *string } // NewAccessReviewPolicy instantiates a new accessReviewPolicy and sets the default values. func NewAccessReviewPolicy()(*AccessReviewPolicy) { diff --git a/models/access_review_query_scope.go b/models/access_review_query_scope.go index 247451a4bb5..f485b23ad12 100644 --- a/models/access_review_query_scope.go +++ b/models/access_review_query_scope.go @@ -7,8 +7,10 @@ import ( // AccessReviewQueryScope type AccessReviewQueryScope struct { AccessReviewScope + // The OdataType property + OdataType *string } -// NewAccessReviewQueryScope instantiates a new AccessReviewQueryScope and sets the default values. +// NewAccessReviewQueryScope instantiates a new accessReviewQueryScope and sets the default values. func NewAccessReviewQueryScope()(*AccessReviewQueryScope) { m := &AccessReviewQueryScope{ AccessReviewScope: *NewAccessReviewScope(), diff --git a/models/access_review_reviewer.go b/models/access_review_reviewer.go index b616e5cd47a..096c2d46221 100644 --- a/models/access_review_reviewer.go +++ b/models/access_review_reviewer.go @@ -8,6 +8,8 @@ import ( // AccessReviewReviewer type AccessReviewReviewer struct { Entity + // The OdataType property + OdataType *string } // NewAccessReviewReviewer instantiates a new accessReviewReviewer and sets the default values. func NewAccessReviewReviewer()(*AccessReviewReviewer) { diff --git a/models/access_review_reviewer_collection_response.go b/models/access_review_reviewer_collection_response.go index da9a1cfa669..e7ad29c1205 100644 --- a/models/access_review_reviewer_collection_response.go +++ b/models/access_review_reviewer_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessReviewReviewerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessReviewReviewerCollectionResponse instantiates a new AccessReviewReviewerCollectionResponse and sets the default values. +// NewAccessReviewReviewerCollectionResponse instantiates a new accessReviewReviewerCollectionResponse and sets the default values. func NewAccessReviewReviewerCollectionResponse()(*AccessReviewReviewerCollectionResponse) { m := &AccessReviewReviewerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_review_reviewer_scope.go b/models/access_review_reviewer_scope.go index d9ba5718658..4e98321c476 100644 --- a/models/access_review_reviewer_scope.go +++ b/models/access_review_reviewer_scope.go @@ -8,7 +8,7 @@ import ( type AccessReviewReviewerScope struct { AccessReviewScope } -// NewAccessReviewReviewerScope instantiates a new AccessReviewReviewerScope and sets the default values. +// NewAccessReviewReviewerScope instantiates a new accessReviewReviewerScope and sets the default values. func NewAccessReviewReviewerScope()(*AccessReviewReviewerScope) { m := &AccessReviewReviewerScope{ AccessReviewScope: *NewAccessReviewScope(), @@ -24,6 +24,16 @@ func CreateAccessReviewReviewerScopeFromDiscriminatorValue(parseNode i878a80d233 // GetFieldDeserializers the deserialization information for the current model func (m *AccessReviewReviewerScope) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AccessReviewScope.GetFieldDeserializers() + 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["query"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -56,6 +66,17 @@ func (m *AccessReviewReviewerScope) GetFieldDeserializers()(map[string]func(i878 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessReviewReviewerScope) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetQuery gets the query property value. The query specifying who will be the reviewer. func (m *AccessReviewReviewerScope) GetQuery()(*string) { val, err := m.GetBackingStore().Get("query") @@ -95,6 +116,12 @@ func (m *AccessReviewReviewerScope) Serialize(writer i878a80d2330e89d26896388a3f if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("query", m.GetQuery()) if err != nil { @@ -115,6 +142,13 @@ func (m *AccessReviewReviewerScope) Serialize(writer i878a80d2330e89d26896388a3f } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessReviewReviewerScope) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetQuery sets the query property value. The query specifying who will be the reviewer. func (m *AccessReviewReviewerScope) SetQuery(value *string)() { err := m.GetBackingStore().Set("query", value) @@ -140,9 +174,11 @@ func (m *AccessReviewReviewerScope) SetQueryType(value *string)() { type AccessReviewReviewerScopeable interface { AccessReviewScopeable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetQuery()(*string) GetQueryRoot()(*string) GetQueryType()(*string) + SetOdataType(value *string)() SetQuery(value *string)() SetQueryRoot(value *string)() SetQueryType(value *string)() diff --git a/models/access_review_schedule_definition.go b/models/access_review_schedule_definition.go index cf1f70b0ccf..3782e5a5723 100644 --- a/models/access_review_schedule_definition.go +++ b/models/access_review_schedule_definition.go @@ -245,6 +245,16 @@ func (m *AccessReviewScheduleDefinition) GetFieldDeserializers()(map[string]func } 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["reviewers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateAccessReviewReviewerScopeFromDiscriminatorValue) if err != nil { @@ -342,6 +352,17 @@ func (m *AccessReviewScheduleDefinition) GetLastModifiedDateTime()(*i336074805fc } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AccessReviewScheduleDefinition) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetReviewers gets the reviewers property value. This collection of access review scopes is used to define who are the reviewers. The reviewers property is only updatable if individual users are assigned as reviewers. Required on create. Supports $select. For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API. NOTE: The value of this property will be ignored if reviewers are assigned through the stageSettings property. func (m *AccessReviewScheduleDefinition) GetReviewers()([]AccessReviewReviewerScopeable) { val, err := m.GetBackingStore().Get("reviewers") @@ -493,6 +514,12 @@ func (m *AccessReviewScheduleDefinition) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetReviewers() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetReviewers())) for i, v := range m.GetReviewers() { @@ -614,6 +641,13 @@ func (m *AccessReviewScheduleDefinition) SetLastModifiedDateTime(value *i3360748 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessReviewScheduleDefinition) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetReviewers sets the reviewers property value. This collection of access review scopes is used to define who are the reviewers. The reviewers property is only updatable if individual users are assigned as reviewers. Required on create. Supports $select. For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API. NOTE: The value of this property will be ignored if reviewers are assigned through the stageSettings property. func (m *AccessReviewScheduleDefinition) SetReviewers(value []AccessReviewReviewerScopeable)() { err := m.GetBackingStore().Set("reviewers", value) @@ -664,6 +698,7 @@ type AccessReviewScheduleDefinitionable interface { GetInstanceEnumerationScope()(AccessReviewScopeable) GetInstances()([]AccessReviewInstanceable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetReviewers()([]AccessReviewReviewerScopeable) GetScope()(AccessReviewScopeable) GetSettings()(AccessReviewScheduleSettingsable) @@ -680,6 +715,7 @@ type AccessReviewScheduleDefinitionable interface { SetInstanceEnumerationScope(value AccessReviewScopeable)() SetInstances(value []AccessReviewInstanceable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetReviewers(value []AccessReviewReviewerScopeable)() SetScope(value AccessReviewScopeable)() SetSettings(value AccessReviewScheduleSettingsable)() diff --git a/models/access_review_schedule_definition_collection_response.go b/models/access_review_schedule_definition_collection_response.go index 9bca3131484..2058cf3a24e 100644 --- a/models/access_review_schedule_definition_collection_response.go +++ b/models/access_review_schedule_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessReviewScheduleDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessReviewScheduleDefinitionCollectionResponse instantiates a new AccessReviewScheduleDefinitionCollectionResponse and sets the default values. +// NewAccessReviewScheduleDefinitionCollectionResponse instantiates a new accessReviewScheduleDefinitionCollectionResponse and sets the default values. func NewAccessReviewScheduleDefinitionCollectionResponse()(*AccessReviewScheduleDefinitionCollectionResponse) { m := &AccessReviewScheduleDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/access_review_set.go b/models/access_review_set.go index d8e0e64133f..bc846fd29b8 100644 --- a/models/access_review_set.go +++ b/models/access_review_set.go @@ -7,8 +7,10 @@ import ( // AccessReviewSet type AccessReviewSet struct { Entity + // The OdataType property + OdataType *string } -// NewAccessReviewSet instantiates a new AccessReviewSet and sets the default values. +// NewAccessReviewSet instantiates a new accessReviewSet and sets the default values. func NewAccessReviewSet()(*AccessReviewSet) { m := &AccessReviewSet{ Entity: *NewEntity(), diff --git a/models/access_review_stage.go b/models/access_review_stage.go index 5526388e42d..1af7f24c182 100644 --- a/models/access_review_stage.go +++ b/models/access_review_stage.go @@ -8,6 +8,8 @@ import ( // AccessReviewStage type AccessReviewStage struct { Entity + // The OdataType property + OdataType *string } // NewAccessReviewStage instantiates a new accessReviewStage and sets the default values. func NewAccessReviewStage()(*AccessReviewStage) { diff --git a/models/access_review_stage_collection_response.go b/models/access_review_stage_collection_response.go index ce6ccd1b9ea..3ab00bb7bcf 100644 --- a/models/access_review_stage_collection_response.go +++ b/models/access_review_stage_collection_response.go @@ -8,7 +8,7 @@ import ( type AccessReviewStageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccessReviewStageCollectionResponse instantiates a new AccessReviewStageCollectionResponse and sets the default values. +// NewAccessReviewStageCollectionResponse instantiates a new accessReviewStageCollectionResponse and sets the default values. func NewAccessReviewStageCollectionResponse()(*AccessReviewStageCollectionResponse) { m := &AccessReviewStageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/account_collection_response.go b/models/account_collection_response.go index 9dff2ae2c3b..4dde75ef7a9 100644 --- a/models/account_collection_response.go +++ b/models/account_collection_response.go @@ -8,7 +8,7 @@ import ( type AccountCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAccountCollectionResponse instantiates a new AccountCollectionResponse and sets the default values. +// NewAccountCollectionResponse instantiates a new accountCollectionResponse and sets the default values. func NewAccountCollectionResponse()(*AccountCollectionResponse) { m := &AccountCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/activate_device_esim_action_result.go b/models/activate_device_esim_action_result.go index 0e1f2a1e1f1..75c2c37648a 100644 --- a/models/activate_device_esim_action_result.go +++ b/models/activate_device_esim_action_result.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ActivateDeviceEsimActionResult +// ActivateDeviceEsimActionResult activate device eSIM action result type ActivateDeviceEsimActionResult struct { DeviceActionResult + // The OdataType property + OdataType *string } -// NewActivateDeviceEsimActionResult instantiates a new ActivateDeviceEsimActionResult and sets the default values. +// NewActivateDeviceEsimActionResult instantiates a new activateDeviceEsimActionResult and sets the default values. func NewActivateDeviceEsimActionResult()(*ActivateDeviceEsimActionResult) { m := &ActivateDeviceEsimActionResult{ DeviceActionResult: *NewDeviceActionResult(), diff --git a/models/active_directory_windows_autopilot_deployment_profile.go b/models/active_directory_windows_autopilot_deployment_profile.go index 778e0ae0aa8..9bbdd8c29c0 100644 --- a/models/active_directory_windows_autopilot_deployment_profile.go +++ b/models/active_directory_windows_autopilot_deployment_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ActiveDirectoryWindowsAutopilotDeploymentProfile +// ActiveDirectoryWindowsAutopilotDeploymentProfile windows Autopilot Deployment Profile type ActiveDirectoryWindowsAutopilotDeploymentProfile struct { WindowsAutopilotDeploymentProfile } -// NewActiveDirectoryWindowsAutopilotDeploymentProfile instantiates a new ActiveDirectoryWindowsAutopilotDeploymentProfile and sets the default values. +// NewActiveDirectoryWindowsAutopilotDeploymentProfile instantiates a new activeDirectoryWindowsAutopilotDeploymentProfile and sets the default values. func NewActiveDirectoryWindowsAutopilotDeploymentProfile()(*ActiveDirectoryWindowsAutopilotDeploymentProfile) { m := &ActiveDirectoryWindowsAutopilotDeploymentProfile{ WindowsAutopilotDeploymentProfile: *NewWindowsAutopilotDeploymentProfile(), diff --git a/models/activity_based_timeout_policy.go b/models/activity_based_timeout_policy.go index fbfba815295..6a61713f098 100644 --- a/models/activity_based_timeout_policy.go +++ b/models/activity_based_timeout_policy.go @@ -8,7 +8,7 @@ import ( type ActivityBasedTimeoutPolicy struct { StsPolicy } -// NewActivityBasedTimeoutPolicy instantiates a new ActivityBasedTimeoutPolicy and sets the default values. +// NewActivityBasedTimeoutPolicy instantiates a new activityBasedTimeoutPolicy and sets the default values. func NewActivityBasedTimeoutPolicy()(*ActivityBasedTimeoutPolicy) { m := &ActivityBasedTimeoutPolicy{ StsPolicy: *NewStsPolicy(), diff --git a/models/activity_based_timeout_policy_collection_response.go b/models/activity_based_timeout_policy_collection_response.go index e0cc000d163..f4218aae5ce 100644 --- a/models/activity_based_timeout_policy_collection_response.go +++ b/models/activity_based_timeout_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type ActivityBasedTimeoutPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewActivityBasedTimeoutPolicyCollectionResponse instantiates a new ActivityBasedTimeoutPolicyCollectionResponse and sets the default values. +// NewActivityBasedTimeoutPolicyCollectionResponse instantiates a new activityBasedTimeoutPolicyCollectionResponse and sets the default values. func NewActivityBasedTimeoutPolicyCollectionResponse()(*ActivityBasedTimeoutPolicyCollectionResponse) { m := &ActivityBasedTimeoutPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/activity_history_item.go b/models/activity_history_item.go index 99a118d6ed5..3af6b69041a 100644 --- a/models/activity_history_item.go +++ b/models/activity_history_item.go @@ -8,6 +8,8 @@ import ( // ActivityHistoryItem type ActivityHistoryItem struct { Entity + // The OdataType property + OdataType *string } // NewActivityHistoryItem instantiates a new activityHistoryItem and sets the default values. func NewActivityHistoryItem()(*ActivityHistoryItem) { diff --git a/models/activity_history_item_collection_response.go b/models/activity_history_item_collection_response.go index 59ac9184445..e62a048756a 100644 --- a/models/activity_history_item_collection_response.go +++ b/models/activity_history_item_collection_response.go @@ -8,7 +8,7 @@ import ( type ActivityHistoryItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewActivityHistoryItemCollectionResponse instantiates a new ActivityHistoryItemCollectionResponse and sets the default values. +// NewActivityHistoryItemCollectionResponse instantiates a new activityHistoryItemCollectionResponse and sets the default values. func NewActivityHistoryItemCollectionResponse()(*ActivityHistoryItemCollectionResponse) { m := &ActivityHistoryItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/activity_statistics.go b/models/activity_statistics.go index 37ee82149a6..8e29b32cb9a 100644 --- a/models/activity_statistics.go +++ b/models/activity_statistics.go @@ -111,6 +111,16 @@ func (m *ActivityStatistics) GetFieldDeserializers()(map[string]func(i878a80d233 } 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["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetDateOnlyValue() if err != nil { @@ -133,6 +143,17 @@ func (m *ActivityStatistics) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ActivityStatistics) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetStartDate gets the startDate property value. Date when the activity started, expressed in ISO 8601 format for calendar dates. For example, the property value could be '2019-07-04' that follows the YYYY-MM-DD format. func (m *ActivityStatistics) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { val, err := m.GetBackingStore().Get("startDate") @@ -180,6 +201,12 @@ func (m *ActivityStatistics) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteDateOnlyValue("startDate", m.GetStartDate()) if err != nil { @@ -215,6 +242,13 @@ func (m *ActivityStatistics) SetEndDate(value *i878a80d2330e89d26896388a3f487eef panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ActivityStatistics) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetStartDate sets the startDate property value. Date when the activity started, expressed in ISO 8601 format for calendar dates. For example, the property value could be '2019-07-04' that follows the YYYY-MM-DD format. func (m *ActivityStatistics) SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { err := m.GetBackingStore().Set("startDate", value) @@ -236,11 +270,13 @@ type ActivityStatisticsable interface { GetActivity()(*AnalyticsActivityType) GetDuration()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetEndDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + GetOdataType()(*string) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) GetTimeZoneUsed()(*string) SetActivity(value *AnalyticsActivityType)() SetDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetEndDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() + SetOdataType(value *string)() SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() SetTimeZoneUsed(value *string)() } diff --git a/models/activity_statistics_collection_response.go b/models/activity_statistics_collection_response.go index 9a7cf8782b3..9813c241079 100644 --- a/models/activity_statistics_collection_response.go +++ b/models/activity_statistics_collection_response.go @@ -8,7 +8,7 @@ import ( type ActivityStatisticsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewActivityStatisticsCollectionResponse instantiates a new ActivityStatisticsCollectionResponse and sets the default values. +// NewActivityStatisticsCollectionResponse instantiates a new activityStatisticsCollectionResponse and sets the default values. func NewActivityStatisticsCollectionResponse()(*ActivityStatisticsCollectionResponse) { m := &ActivityStatisticsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/add_content_footer_action.go b/models/add_content_footer_action.go index 159a889ea94..5fe5fcd19e7 100644 --- a/models/add_content_footer_action.go +++ b/models/add_content_footer_action.go @@ -8,7 +8,7 @@ import ( type AddContentFooterAction struct { InformationProtectionAction } -// NewAddContentFooterAction instantiates a new AddContentFooterAction and sets the default values. +// NewAddContentFooterAction instantiates a new addContentFooterAction and sets the default values. func NewAddContentFooterAction()(*AddContentFooterAction) { m := &AddContentFooterAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -85,6 +85,16 @@ func (m *AddContentFooterAction) GetFieldDeserializers()(map[string]func(i878a80 } 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["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -151,6 +161,17 @@ func (m *AddContentFooterAction) GetMargin()(*int32) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AddContentFooterAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetText gets the text property value. The contents of the footer itself. func (m *AddContentFooterAction) GetText()(*string) { val, err := m.GetBackingStore().Get("text") @@ -210,6 +231,12 @@ func (m *AddContentFooterAction) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("text", m.GetText()) if err != nil { @@ -259,6 +286,13 @@ func (m *AddContentFooterAction) SetMargin(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AddContentFooterAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetText sets the text property value. The contents of the footer itself. func (m *AddContentFooterAction) SetText(value *string)() { err := m.GetBackingStore().Set("text", value) @@ -282,6 +316,7 @@ type AddContentFooterActionable interface { GetFontName()(*string) GetFontSize()(*int32) GetMargin()(*int32) + GetOdataType()(*string) GetText()(*string) GetUiElementName()(*string) SetAlignment(value *ContentAlignment)() @@ -289,6 +324,7 @@ type AddContentFooterActionable interface { SetFontName(value *string)() SetFontSize(value *int32)() SetMargin(value *int32)() + SetOdataType(value *string)() SetText(value *string)() SetUiElementName(value *string)() } diff --git a/models/add_content_header_action.go b/models/add_content_header_action.go index 843d4ff4e4b..7ead0b1a35a 100644 --- a/models/add_content_header_action.go +++ b/models/add_content_header_action.go @@ -8,7 +8,7 @@ import ( type AddContentHeaderAction struct { InformationProtectionAction } -// NewAddContentHeaderAction instantiates a new AddContentHeaderAction and sets the default values. +// NewAddContentHeaderAction instantiates a new addContentHeaderAction and sets the default values. func NewAddContentHeaderAction()(*AddContentHeaderAction) { m := &AddContentHeaderAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -85,6 +85,16 @@ func (m *AddContentHeaderAction) GetFieldDeserializers()(map[string]func(i878a80 } 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["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -151,6 +161,17 @@ func (m *AddContentHeaderAction) GetMargin()(*int32) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AddContentHeaderAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetText gets the text property value. The contents of the header itself. func (m *AddContentHeaderAction) GetText()(*string) { val, err := m.GetBackingStore().Get("text") @@ -210,6 +231,12 @@ func (m *AddContentHeaderAction) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("text", m.GetText()) if err != nil { @@ -259,6 +286,13 @@ func (m *AddContentHeaderAction) SetMargin(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AddContentHeaderAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetText sets the text property value. The contents of the header itself. func (m *AddContentHeaderAction) SetText(value *string)() { err := m.GetBackingStore().Set("text", value) @@ -282,6 +316,7 @@ type AddContentHeaderActionable interface { GetFontName()(*string) GetFontSize()(*int32) GetMargin()(*int32) + GetOdataType()(*string) GetText()(*string) GetUiElementName()(*string) SetAlignment(value *ContentAlignment)() @@ -289,6 +324,7 @@ type AddContentHeaderActionable interface { SetFontName(value *string)() SetFontSize(value *int32)() SetMargin(value *int32)() + SetOdataType(value *string)() SetText(value *string)() SetUiElementName(value *string)() } diff --git a/models/add_footer.go b/models/add_footer.go index 89209374ff2..5efceb4d086 100644 --- a/models/add_footer.go +++ b/models/add_footer.go @@ -8,7 +8,7 @@ import ( type AddFooter struct { MarkContent } -// NewAddFooter instantiates a new AddFooter and sets the default values. +// NewAddFooter instantiates a new addFooter and sets the default values. func NewAddFooter()(*AddFooter) { m := &AddFooter{ MarkContent: *NewMarkContent(), @@ -55,6 +55,16 @@ func (m *AddFooter) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 } 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 } // GetMargin gets the margin property value. The margin property @@ -68,6 +78,17 @@ func (m *AddFooter) GetMargin()(*int32) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AddFooter) 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 *AddFooter) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.MarkContent.Serialize(writer) @@ -87,6 +108,12 @@ func (m *AddFooter) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAlignment sets the alignment property value. The alignment property @@ -103,12 +130,21 @@ func (m *AddFooter) SetMargin(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AddFooter) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AddFooterable type AddFooterable interface { MarkContentable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAlignment()(*Alignment) GetMargin()(*int32) + GetOdataType()(*string) SetAlignment(value *Alignment)() SetMargin(value *int32)() + SetOdataType(value *string)() } diff --git a/models/add_header.go b/models/add_header.go index 94006390624..e2d912f981e 100644 --- a/models/add_header.go +++ b/models/add_header.go @@ -7,8 +7,10 @@ import ( // AddHeader type AddHeader struct { MarkContent + // The OdataType property + OdataType *string } -// NewAddHeader instantiates a new AddHeader and sets the default values. +// NewAddHeader instantiates a new addHeader and sets the default values. func NewAddHeader()(*AddHeader) { m := &AddHeader{ MarkContent: *NewMarkContent(), diff --git a/models/add_in.go b/models/add_in.go index 338483fedfd..2e6b051feba 100644 --- a/models/add_in.go +++ b/models/add_in.go @@ -11,7 +11,7 @@ type AddIn struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAddIn instantiates a new AddIn and sets the default values. +// NewAddIn instantiates a new addIn and sets the default values. func NewAddIn()(*AddIn) { m := &AddIn{ } diff --git a/models/add_large_gallery_view_operation.go b/models/add_large_gallery_view_operation.go index 0468526b986..3bdaef254a9 100644 --- a/models/add_large_gallery_view_operation.go +++ b/models/add_large_gallery_view_operation.go @@ -8,7 +8,7 @@ import ( type AddLargeGalleryViewOperation struct { CommsOperation } -// NewAddLargeGalleryViewOperation instantiates a new AddLargeGalleryViewOperation and sets the default values. +// NewAddLargeGalleryViewOperation instantiates a new addLargeGalleryViewOperation and sets the default values. func NewAddLargeGalleryViewOperation()(*AddLargeGalleryViewOperation) { m := &AddLargeGalleryViewOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/add_watermark.go b/models/add_watermark.go index 83deb97611a..e1d5cf59903 100644 --- a/models/add_watermark.go +++ b/models/add_watermark.go @@ -7,8 +7,10 @@ import ( // AddWatermark type AddWatermark struct { MarkContent + // The OdataType property + OdataType *string } -// NewAddWatermark instantiates a new AddWatermark and sets the default values. +// NewAddWatermark instantiates a new addWatermark and sets the default values. func NewAddWatermark()(*AddWatermark) { m := &AddWatermark{ MarkContent: *NewMarkContent(), diff --git a/models/add_watermark_action.go b/models/add_watermark_action.go index c00f3f31b22..81aae81e5e9 100644 --- a/models/add_watermark_action.go +++ b/models/add_watermark_action.go @@ -8,7 +8,7 @@ import ( type AddWatermarkAction struct { InformationProtectionAction } -// NewAddWatermarkAction instantiates a new AddWatermarkAction and sets the default values. +// NewAddWatermarkAction instantiates a new addWatermarkAction and sets the default values. func NewAddWatermarkAction()(*AddWatermarkAction) { m := &AddWatermarkAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -64,6 +64,16 @@ func (m *AddWatermarkAction) GetFieldDeserializers()(map[string]func(i878a80d233 } 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["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -130,6 +140,17 @@ func (m *AddWatermarkAction) GetLayout()(*WatermarkLayout) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AddWatermarkAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetText gets the text property value. The contents of the watermark itself. func (m *AddWatermarkAction) GetText()(*string) { val, err := m.GetBackingStore().Get("text") @@ -183,6 +204,12 @@ func (m *AddWatermarkAction) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("text", m.GetText()) if err != nil { @@ -225,6 +252,13 @@ func (m *AddWatermarkAction) SetLayout(value *WatermarkLayout)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AddWatermarkAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetText sets the text property value. The contents of the watermark itself. func (m *AddWatermarkAction) SetText(value *string)() { err := m.GetBackingStore().Set("text", value) @@ -247,12 +281,14 @@ type AddWatermarkActionable interface { GetFontName()(*string) GetFontSize()(*int32) GetLayout()(*WatermarkLayout) + GetOdataType()(*string) GetText()(*string) GetUiElementName()(*string) SetFontColor(value *string)() SetFontName(value *string)() SetFontSize(value *int32)() SetLayout(value *WatermarkLayout)() + SetOdataType(value *string)() SetText(value *string)() SetUiElementName(value *string)() } diff --git a/models/address_book_account_target_content.go b/models/address_book_account_target_content.go index 50dae2ca68b..53eab4b71b1 100644 --- a/models/address_book_account_target_content.go +++ b/models/address_book_account_target_content.go @@ -8,7 +8,7 @@ import ( type AddressBookAccountTargetContent struct { AccountTargetContent } -// NewAddressBookAccountTargetContent instantiates a new AddressBookAccountTargetContent and sets the default values. +// NewAddressBookAccountTargetContent instantiates a new addressBookAccountTargetContent and sets the default values. func NewAddressBookAccountTargetContent()(*AddressBookAccountTargetContent) { m := &AddressBookAccountTargetContent{ AccountTargetContent: *NewAccountTargetContent(), @@ -51,8 +51,29 @@ func (m *AddressBookAccountTargetContent) GetFieldDeserializers()(map[string]fun } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AddressBookAccountTargetContent) 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 *AddressBookAccountTargetContent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AccountTargetContent.Serialize(writer) @@ -65,6 +86,12 @@ func (m *AddressBookAccountTargetContent) Serialize(writer i878a80d2330e89d26896 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAccountTargetEmails sets the accountTargetEmails property value. List of user emails targeted for an attack simulation training campaign. @@ -74,10 +101,19 @@ func (m *AddressBookAccountTargetContent) SetAccountTargetEmails(value []string) panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AddressBookAccountTargetContent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AddressBookAccountTargetContentable type AddressBookAccountTargetContentable interface { AccountTargetContentable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccountTargetEmails()([]string) + GetOdataType()(*string) SetAccountTargetEmails(value []string)() + SetOdataType(value *string)() } diff --git a/models/admin.go b/models/admin.go index 587ee772769..5b35cf469f3 100644 --- a/models/admin.go +++ b/models/admin.go @@ -10,7 +10,7 @@ type Admin struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAdmin instantiates a new Admin and sets the default values. +// NewAdmin instantiates a new admin and sets the default values. func NewAdmin()(*Admin) { m := &Admin{ } @@ -124,6 +124,16 @@ func (m *Admin) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } return nil } + res["people"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePeopleAdminSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPeople(val.(PeopleAdminSettingsable)) + } + return nil + } res["reportSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateAdminReportSettingsFromDiscriminatorValue) if err != nil { @@ -198,6 +208,17 @@ func (m *Admin) GetOdataType()(*string) { } return nil } +// GetPeople gets the people property value. The people property +func (m *Admin) GetPeople()(PeopleAdminSettingsable) { + val, err := m.GetBackingStore().Get("people") + if err != nil { + panic(err) + } + if val != nil { + return val.(PeopleAdminSettingsable) + } + return nil +} // GetReportSettings gets the reportSettings property value. A container for administrative resources to manage reports. func (m *Admin) GetReportSettings()(AdminReportSettingsable) { val, err := m.GetBackingStore().Get("reportSettings") @@ -285,6 +306,12 @@ func (m *Admin) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4 return err } } + { + err := writer.WriteObjectValue("people", m.GetPeople()) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("reportSettings", m.GetReportSettings()) if err != nil { @@ -369,6 +396,13 @@ func (m *Admin) SetOdataType(value *string)() { panic(err) } } +// SetPeople sets the people property value. The people property +func (m *Admin) SetPeople(value PeopleAdminSettingsable)() { + err := m.GetBackingStore().Set("people", value) + if err != nil { + panic(err) + } +} // SetReportSettings sets the reportSettings property value. A container for administrative resources to manage reports. func (m *Admin) SetReportSettings(value AdminReportSettingsable)() { err := m.GetBackingStore().Set("reportSettings", value) @@ -415,6 +449,7 @@ type Adminable interface { GetEdge()(Edgeable) GetForms()(AdminFormsable) GetOdataType()(*string) + GetPeople()(PeopleAdminSettingsable) GetReportSettings()(AdminReportSettingsable) GetServiceAnnouncement()(ServiceAnnouncementable) GetSharepoint()(Sharepointable) @@ -426,6 +461,7 @@ type Adminable interface { SetEdge(value Edgeable)() SetForms(value AdminFormsable)() SetOdataType(value *string)() + SetPeople(value PeopleAdminSettingsable)() SetReportSettings(value AdminReportSettingsable)() SetServiceAnnouncement(value ServiceAnnouncementable)() SetSharepoint(value Sharepointable)() @@ -436,8 +472,10 @@ type Adminable interface { // AdminWindows type AdminWindows struct { Entity + // The OdataType property + OdataType *string } -// NewAdminWindows instantiates a new AdminWindows and sets the default values. +// NewAdminWindows instantiates a new adminWindows and sets the default values. func NewAdminWindows()(*AdminWindows) { m := &AdminWindows{ Entity: *NewEntity(), diff --git a/models/admin_apps_and_services.go b/models/admin_apps_and_services.go index ae78509c921..cc786618524 100644 --- a/models/admin_apps_and_services.go +++ b/models/admin_apps_and_services.go @@ -7,8 +7,10 @@ import ( // AdminAppsAndServices type AdminAppsAndServices struct { Entity + // The OdataType property + OdataType *string } -// NewAdminAppsAndServices instantiates a new AdminAppsAndServices and sets the default values. +// NewAdminAppsAndServices instantiates a new adminAppsAndServices and sets the default values. func NewAdminAppsAndServices()(*AdminAppsAndServices) { m := &AdminAppsAndServices{ Entity: *NewEntity(), diff --git a/models/admin_consent_request_policy.go b/models/admin_consent_request_policy.go index 0d90d9d279e..01fcf6216aa 100644 --- a/models/admin_consent_request_policy.go +++ b/models/admin_consent_request_policy.go @@ -7,8 +7,10 @@ import ( // AdminConsentRequestPolicy type AdminConsentRequestPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewAdminConsentRequestPolicy instantiates a new AdminConsentRequestPolicy and sets the default values. +// NewAdminConsentRequestPolicy instantiates a new adminConsentRequestPolicy and sets the default values. func NewAdminConsentRequestPolicy()(*AdminConsentRequestPolicy) { m := &AdminConsentRequestPolicy{ Entity: *NewEntity(), diff --git a/models/admin_dynamics.go b/models/admin_dynamics.go index c728ce73561..ce0dee34da7 100644 --- a/models/admin_dynamics.go +++ b/models/admin_dynamics.go @@ -7,8 +7,10 @@ import ( // AdminDynamics type AdminDynamics struct { Entity + // The OdataType property + OdataType *string } -// NewAdminDynamics instantiates a new AdminDynamics and sets the default values. +// NewAdminDynamics instantiates a new adminDynamics and sets the default values. func NewAdminDynamics()(*AdminDynamics) { m := &AdminDynamics{ Entity: *NewEntity(), diff --git a/models/admin_forms.go b/models/admin_forms.go index 57f3fb03af3..164cee62891 100644 --- a/models/admin_forms.go +++ b/models/admin_forms.go @@ -7,8 +7,10 @@ import ( // AdminForms type AdminForms struct { Entity + // The OdataType property + OdataType *string } -// NewAdminForms instantiates a new AdminForms and sets the default values. +// NewAdminForms instantiates a new adminForms and sets the default values. func NewAdminForms()(*AdminForms) { m := &AdminForms{ Entity: *NewEntity(), diff --git a/models/admin_report_settings.go b/models/admin_report_settings.go index 4956b635ba7..d790fc690e9 100644 --- a/models/admin_report_settings.go +++ b/models/admin_report_settings.go @@ -7,8 +7,10 @@ import ( // AdminReportSettings type AdminReportSettings struct { Entity + // The OdataType property + OdataType *string } -// NewAdminReportSettings instantiates a new AdminReportSettings and sets the default values. +// NewAdminReportSettings instantiates a new adminReportSettings and sets the default values. func NewAdminReportSettings()(*AdminReportSettings) { m := &AdminReportSettings{ Entity: *NewEntity(), diff --git a/models/admin_todo.go b/models/admin_todo.go index c2c20f05567..1d2ca8fe415 100644 --- a/models/admin_todo.go +++ b/models/admin_todo.go @@ -7,8 +7,10 @@ import ( // AdminTodo type AdminTodo struct { Entity + // The OdataType property + OdataType *string } -// NewAdminTodo instantiates a new AdminTodo and sets the default values. +// NewAdminTodo instantiates a new adminTodo and sets the default values. func NewAdminTodo()(*AdminTodo) { m := &AdminTodo{ Entity: *NewEntity(), diff --git a/models/admin_windows_updates.go b/models/admin_windows_updates.go index de0e3838765..fe1701d4a3f 100644 --- a/models/admin_windows_updates.go +++ b/models/admin_windows_updates.go @@ -7,6 +7,8 @@ import ( // AdminWindowsUpdates type AdminWindowsUpdates struct { Entity + // The OdataType property + OdataType *string } // NewAdminWindowsUpdates instantiates a new adminWindowsUpdates and sets the default values. func NewAdminWindowsUpdates()(*AdminWindowsUpdates) { diff --git a/models/administrative_unit.go b/models/administrative_unit.go index ca8047c7153..5473c5850ba 100644 --- a/models/administrative_unit.go +++ b/models/administrative_unit.go @@ -8,7 +8,7 @@ import ( type AdministrativeUnit struct { DirectoryObject } -// NewAdministrativeUnit instantiates a new AdministrativeUnit and sets the default values. +// NewAdministrativeUnit instantiates a new administrativeUnit and sets the default values. func NewAdministrativeUnit()(*AdministrativeUnit) { m := &AdministrativeUnit{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/administrative_unit_collection_response.go b/models/administrative_unit_collection_response.go index 58764d8a744..b8ad1afdbb2 100644 --- a/models/administrative_unit_collection_response.go +++ b/models/administrative_unit_collection_response.go @@ -8,7 +8,7 @@ import ( type AdministrativeUnitCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAdministrativeUnitCollectionResponse instantiates a new AdministrativeUnitCollectionResponse and sets the default values. +// NewAdministrativeUnitCollectionResponse instantiates a new administrativeUnitCollectionResponse and sets the default values. func NewAdministrativeUnitCollectionResponse()(*AdministrativeUnitCollectionResponse) { m := &AdministrativeUnitCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/advanced_threat_protection_onboarding_device_setting_state.go b/models/advanced_threat_protection_onboarding_device_setting_state.go index 2018388e917..2d15d28910d 100644 --- a/models/advanced_threat_protection_onboarding_device_setting_state.go +++ b/models/advanced_threat_protection_onboarding_device_setting_state.go @@ -8,6 +8,8 @@ import ( // AdvancedThreatProtectionOnboardingDeviceSettingState aTP onboarding State for a given device. type AdvancedThreatProtectionOnboardingDeviceSettingState struct { Entity + // The OdataType property + OdataType *string } // NewAdvancedThreatProtectionOnboardingDeviceSettingState instantiates a new advancedThreatProtectionOnboardingDeviceSettingState and sets the default values. func NewAdvancedThreatProtectionOnboardingDeviceSettingState()(*AdvancedThreatProtectionOnboardingDeviceSettingState) { diff --git a/models/advanced_threat_protection_onboarding_device_setting_state_collection_response.go b/models/advanced_threat_protection_onboarding_device_setting_state_collection_response.go index 194bd255f56..f48d7d5639a 100644 --- a/models/advanced_threat_protection_onboarding_device_setting_state_collection_response.go +++ b/models/advanced_threat_protection_onboarding_device_setting_state_collection_response.go @@ -8,7 +8,7 @@ import ( type AdvancedThreatProtectionOnboardingDeviceSettingStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAdvancedThreatProtectionOnboardingDeviceSettingStateCollectionResponse instantiates a new AdvancedThreatProtectionOnboardingDeviceSettingStateCollectionResponse and sets the default values. +// NewAdvancedThreatProtectionOnboardingDeviceSettingStateCollectionResponse instantiates a new advancedThreatProtectionOnboardingDeviceSettingStateCollectionResponse and sets the default values. func NewAdvancedThreatProtectionOnboardingDeviceSettingStateCollectionResponse()(*AdvancedThreatProtectionOnboardingDeviceSettingStateCollectionResponse) { m := &AdvancedThreatProtectionOnboardingDeviceSettingStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/advanced_threat_protection_onboarding_state_summary.go b/models/advanced_threat_protection_onboarding_state_summary.go index 6bcbad3a562..318a12162c3 100644 --- a/models/advanced_threat_protection_onboarding_state_summary.go +++ b/models/advanced_threat_protection_onboarding_state_summary.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AdvancedThreatProtectionOnboardingStateSummary +// AdvancedThreatProtectionOnboardingStateSummary windows defender advanced threat protection onboarding state summary across the account. type AdvancedThreatProtectionOnboardingStateSummary struct { Entity + // The OdataType property + OdataType *string } -// NewAdvancedThreatProtectionOnboardingStateSummary instantiates a new AdvancedThreatProtectionOnboardingStateSummary and sets the default values. +// NewAdvancedThreatProtectionOnboardingStateSummary instantiates a new advancedThreatProtectionOnboardingStateSummary and sets the default values. func NewAdvancedThreatProtectionOnboardingStateSummary()(*AdvancedThreatProtectionOnboardingStateSummary) { m := &AdvancedThreatProtectionOnboardingStateSummary{ Entity: *NewEntity(), diff --git a/models/aged_accounts_payable.go b/models/aged_accounts_payable.go index 978b11f5a59..04e97824434 100644 --- a/models/aged_accounts_payable.go +++ b/models/aged_accounts_payable.go @@ -11,7 +11,7 @@ type AgedAccountsPayable struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAgedAccountsPayable instantiates a new AgedAccountsPayable and sets the default values. +// NewAgedAccountsPayable instantiates a new agedAccountsPayable and sets the default values. func NewAgedAccountsPayable()(*AgedAccountsPayable) { m := &AgedAccountsPayable{ } diff --git a/models/aged_accounts_payable_collection_response.go b/models/aged_accounts_payable_collection_response.go index 227cfe2df27..9b347f0b268 100644 --- a/models/aged_accounts_payable_collection_response.go +++ b/models/aged_accounts_payable_collection_response.go @@ -8,7 +8,7 @@ import ( type AgedAccountsPayableCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAgedAccountsPayableCollectionResponse instantiates a new AgedAccountsPayableCollectionResponse and sets the default values. +// NewAgedAccountsPayableCollectionResponse instantiates a new agedAccountsPayableCollectionResponse and sets the default values. func NewAgedAccountsPayableCollectionResponse()(*AgedAccountsPayableCollectionResponse) { m := &AgedAccountsPayableCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/aged_accounts_receivable.go b/models/aged_accounts_receivable.go index 4bfd34d03fa..6ed9bc47bc6 100644 --- a/models/aged_accounts_receivable.go +++ b/models/aged_accounts_receivable.go @@ -11,7 +11,7 @@ type AgedAccountsReceivable struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAgedAccountsReceivable instantiates a new AgedAccountsReceivable and sets the default values. +// NewAgedAccountsReceivable instantiates a new agedAccountsReceivable and sets the default values. func NewAgedAccountsReceivable()(*AgedAccountsReceivable) { m := &AgedAccountsReceivable{ } diff --git a/models/aged_accounts_receivable_collection_response.go b/models/aged_accounts_receivable_collection_response.go index 04fa66c96b3..dba9f191fd5 100644 --- a/models/aged_accounts_receivable_collection_response.go +++ b/models/aged_accounts_receivable_collection_response.go @@ -8,7 +8,7 @@ import ( type AgedAccountsReceivableCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAgedAccountsReceivableCollectionResponse instantiates a new AgedAccountsReceivableCollectionResponse and sets the default values. +// NewAgedAccountsReceivableCollectionResponse instantiates a new agedAccountsReceivableCollectionResponse and sets the default values. func NewAgedAccountsReceivableCollectionResponse()(*AgedAccountsReceivableCollectionResponse) { m := &AgedAccountsReceivableCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/aggregation_option.go b/models/aggregation_option.go index 30e439d665e..955a4f45a55 100644 --- a/models/aggregation_option.go +++ b/models/aggregation_option.go @@ -10,7 +10,7 @@ type AggregationOption struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAggregationOption instantiates a new AggregationOption and sets the default values. +// NewAggregationOption instantiates a new aggregationOption and sets the default values. func NewAggregationOption()(*AggregationOption) { m := &AggregationOption{ } diff --git a/models/agreement.go b/models/agreement.go index 54c790f9ce0..7e7af501773 100644 --- a/models/agreement.go +++ b/models/agreement.go @@ -7,6 +7,8 @@ import ( // Agreement type Agreement struct { Entity + // The OdataType property + OdataType *string } // NewAgreement instantiates a new agreement and sets the default values. func NewAgreement()(*Agreement) { diff --git a/models/agreement_acceptance.go b/models/agreement_acceptance.go index 3551143a312..0ee76912feb 100644 --- a/models/agreement_acceptance.go +++ b/models/agreement_acceptance.go @@ -8,6 +8,8 @@ import ( // AgreementAcceptance type AgreementAcceptance struct { Entity + // The OdataType property + OdataType *string } // NewAgreementAcceptance instantiates a new agreementAcceptance and sets the default values. func NewAgreementAcceptance()(*AgreementAcceptance) { diff --git a/models/agreement_acceptance_collection_response.go b/models/agreement_acceptance_collection_response.go index 98ef5d49ad5..b479da4072e 100644 --- a/models/agreement_acceptance_collection_response.go +++ b/models/agreement_acceptance_collection_response.go @@ -8,7 +8,7 @@ import ( type AgreementAcceptanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAgreementAcceptanceCollectionResponse instantiates a new AgreementAcceptanceCollectionResponse and sets the default values. +// NewAgreementAcceptanceCollectionResponse instantiates a new agreementAcceptanceCollectionResponse and sets the default values. func NewAgreementAcceptanceCollectionResponse()(*AgreementAcceptanceCollectionResponse) { m := &AgreementAcceptanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/agreement_collection_response.go b/models/agreement_collection_response.go index 13b8d3adafd..f89811c84bf 100644 --- a/models/agreement_collection_response.go +++ b/models/agreement_collection_response.go @@ -8,7 +8,7 @@ import ( type AgreementCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAgreementCollectionResponse instantiates a new AgreementCollectionResponse and sets the default values. +// NewAgreementCollectionResponse instantiates a new agreementCollectionResponse and sets the default values. func NewAgreementCollectionResponse()(*AgreementCollectionResponse) { m := &AgreementCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/agreement_file.go b/models/agreement_file.go index 9221ca086f3..f9f1ed92ddd 100644 --- a/models/agreement_file.go +++ b/models/agreement_file.go @@ -8,7 +8,7 @@ import ( type AgreementFile struct { AgreementFileProperties } -// NewAgreementFile instantiates a new AgreementFile and sets the default values. +// NewAgreementFile instantiates a new agreementFile and sets the default values. func NewAgreementFile()(*AgreementFile) { m := &AgreementFile{ AgreementFileProperties: *NewAgreementFileProperties(), diff --git a/models/agreement_file_localization_collection_response.go b/models/agreement_file_localization_collection_response.go index 760b80f30f3..21b14c1a57a 100644 --- a/models/agreement_file_localization_collection_response.go +++ b/models/agreement_file_localization_collection_response.go @@ -8,7 +8,7 @@ import ( type AgreementFileLocalizationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAgreementFileLocalizationCollectionResponse instantiates a new AgreementFileLocalizationCollectionResponse and sets the default values. +// NewAgreementFileLocalizationCollectionResponse instantiates a new agreementFileLocalizationCollectionResponse and sets the default values. func NewAgreementFileLocalizationCollectionResponse()(*AgreementFileLocalizationCollectionResponse) { m := &AgreementFileLocalizationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/agreement_file_properties.go b/models/agreement_file_properties.go index 6484a0870a4..b119888544e 100644 --- a/models/agreement_file_properties.go +++ b/models/agreement_file_properties.go @@ -8,6 +8,8 @@ import ( // AgreementFileProperties type AgreementFileProperties struct { Entity + // The OdataType property + OdataType *string } // NewAgreementFileProperties instantiates a new agreementFileProperties and sets the default values. func NewAgreementFileProperties()(*AgreementFileProperties) { diff --git a/models/agreement_file_version_collection_response.go b/models/agreement_file_version_collection_response.go index 9b6d0c2fe9b..4edf4c3d481 100644 --- a/models/agreement_file_version_collection_response.go +++ b/models/agreement_file_version_collection_response.go @@ -8,7 +8,7 @@ import ( type AgreementFileVersionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAgreementFileVersionCollectionResponse instantiates a new AgreementFileVersionCollectionResponse and sets the default values. +// NewAgreementFileVersionCollectionResponse instantiates a new agreementFileVersionCollectionResponse and sets the default values. func NewAgreementFileVersionCollectionResponse()(*AgreementFileVersionCollectionResponse) { m := &AgreementFileVersionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/alert.go b/models/alert.go index 2e80c4ba235..80eab2f0d75 100644 --- a/models/alert.go +++ b/models/alert.go @@ -8,8 +8,10 @@ import ( // Alert type Alert struct { Entity + // The OdataType property + OdataType *string } -// NewAlert instantiates a new Alert and sets the default values. +// NewAlert instantiates a new alert and sets the default values. func NewAlert()(*Alert) { m := &Alert{ Entity: *NewEntity(), diff --git a/models/alert_collection_response.go b/models/alert_collection_response.go index 548ae0c0e5e..4d3dcc00685 100644 --- a/models/alert_collection_response.go +++ b/models/alert_collection_response.go @@ -8,7 +8,7 @@ import ( type AlertCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAlertCollectionResponse instantiates a new AlertCollectionResponse and sets the default values. +// NewAlertCollectionResponse instantiates a new alertCollectionResponse and sets the default values. func NewAlertCollectionResponse()(*AlertCollectionResponse) { m := &AlertCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/all_devices_assignment_target.go b/models/all_devices_assignment_target.go index d1b1b94dc31..f37fceb9c95 100644 --- a/models/all_devices_assignment_target.go +++ b/models/all_devices_assignment_target.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AllDevicesAssignmentTarget +// AllDevicesAssignmentTarget represents an assignment to all managed devices in the tenant. type AllDevicesAssignmentTarget struct { DeviceAndAppManagementAssignmentTarget + // The OdataType property + OdataType *string } -// NewAllDevicesAssignmentTarget instantiates a new AllDevicesAssignmentTarget and sets the default values. +// NewAllDevicesAssignmentTarget instantiates a new allDevicesAssignmentTarget and sets the default values. func NewAllDevicesAssignmentTarget()(*AllDevicesAssignmentTarget) { m := &AllDevicesAssignmentTarget{ DeviceAndAppManagementAssignmentTarget: *NewDeviceAndAppManagementAssignmentTarget(), diff --git a/models/all_domains.go b/models/all_domains.go index 15afadf3447..a486430edfc 100644 --- a/models/all_domains.go +++ b/models/all_domains.go @@ -7,8 +7,10 @@ import ( // AllDomains type AllDomains struct { ValidatingDomains + // The OdataType property + OdataType *string } -// NewAllDomains instantiates a new AllDomains and sets the default values. +// NewAllDomains instantiates a new allDomains and sets the default values. func NewAllDomains()(*AllDomains) { m := &AllDomains{ ValidatingDomains: *NewValidatingDomains(), diff --git a/models/all_licensed_users_assignment_target.go b/models/all_licensed_users_assignment_target.go index 9f752f9fbf2..d56249a17ed 100644 --- a/models/all_licensed_users_assignment_target.go +++ b/models/all_licensed_users_assignment_target.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AllLicensedUsersAssignmentTarget +// AllLicensedUsersAssignmentTarget represents an assignment to all licensed users in the tenant. type AllLicensedUsersAssignmentTarget struct { DeviceAndAppManagementAssignmentTarget + // The OdataType property + OdataType *string } -// NewAllLicensedUsersAssignmentTarget instantiates a new AllLicensedUsersAssignmentTarget and sets the default values. +// NewAllLicensedUsersAssignmentTarget instantiates a new allLicensedUsersAssignmentTarget and sets the default values. func NewAllLicensedUsersAssignmentTarget()(*AllLicensedUsersAssignmentTarget) { m := &AllLicensedUsersAssignmentTarget{ DeviceAndAppManagementAssignmentTarget: *NewDeviceAndAppManagementAssignmentTarget(), diff --git a/models/allowed_data_location.go b/models/allowed_data_location.go index 8ed983f8352..b788ebfa90b 100644 --- a/models/allowed_data_location.go +++ b/models/allowed_data_location.go @@ -7,8 +7,10 @@ import ( // AllowedDataLocation type AllowedDataLocation struct { Entity + // The OdataType property + OdataType *string } -// NewAllowedDataLocation instantiates a new AllowedDataLocation and sets the default values. +// NewAllowedDataLocation instantiates a new allowedDataLocation and sets the default values. func NewAllowedDataLocation()(*AllowedDataLocation) { m := &AllowedDataLocation{ Entity: *NewEntity(), diff --git a/models/allowed_data_location_collection_response.go b/models/allowed_data_location_collection_response.go index 615ae39b504..85ada6997df 100644 --- a/models/allowed_data_location_collection_response.go +++ b/models/allowed_data_location_collection_response.go @@ -8,7 +8,7 @@ import ( type AllowedDataLocationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAllowedDataLocationCollectionResponse instantiates a new AllowedDataLocationCollectionResponse and sets the default values. +// NewAllowedDataLocationCollectionResponse instantiates a new allowedDataLocationCollectionResponse and sets the default values. func NewAllowedDataLocationCollectionResponse()(*AllowedDataLocationCollectionResponse) { m := &AllowedDataLocationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/allowed_value.go b/models/allowed_value.go index cffd4d4f61e..74ad43ae99a 100644 --- a/models/allowed_value.go +++ b/models/allowed_value.go @@ -7,6 +7,8 @@ import ( // AllowedValue type AllowedValue struct { Entity + // The OdataType property + OdataType *string } // NewAllowedValue instantiates a new allowedValue and sets the default values. func NewAllowedValue()(*AllowedValue) { diff --git a/models/allowed_value_collection_response.go b/models/allowed_value_collection_response.go index 25cbd9daf32..0cb09ee1a7a 100644 --- a/models/allowed_value_collection_response.go +++ b/models/allowed_value_collection_response.go @@ -8,7 +8,7 @@ import ( type AllowedValueCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAllowedValueCollectionResponse instantiates a new AllowedValueCollectionResponse and sets the default values. +// NewAllowedValueCollectionResponse instantiates a new allowedValueCollectionResponse and sets the default values. func NewAllowedValueCollectionResponse()(*AllowedValueCollectionResponse) { m := &AllowedValueCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/altered_query_token.go b/models/altered_query_token.go index 6eb0be53b69..964509385e8 100644 --- a/models/altered_query_token.go +++ b/models/altered_query_token.go @@ -10,7 +10,7 @@ type AlteredQueryToken struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAlteredQueryToken instantiates a new AlteredQueryToken and sets the default values. +// NewAlteredQueryToken instantiates a new alteredQueryToken and sets the default values. func NewAlteredQueryToken()(*AlteredQueryToken) { m := &AlteredQueryToken{ } diff --git a/models/alternative_security_id.go b/models/alternative_security_id.go index f555b3ad1bc..b10fe498f18 100644 --- a/models/alternative_security_id.go +++ b/models/alternative_security_id.go @@ -10,7 +10,7 @@ type AlternativeSecurityId struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAlternativeSecurityId instantiates a new AlternativeSecurityId and sets the default values. +// NewAlternativeSecurityId instantiates a new alternativeSecurityId and sets the default values. func NewAlternativeSecurityId()(*AlternativeSecurityId) { m := &AlternativeSecurityId{ } diff --git a/models/android_certificate_profile_base.go b/models/android_certificate_profile_base.go index 02ea4d249a0..dfa4c597f8c 100644 --- a/models/android_certificate_profile_base.go +++ b/models/android_certificate_profile_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidCertificateProfileBase +// AndroidCertificateProfileBase android certificate profile base. type AndroidCertificateProfileBase struct { DeviceConfiguration } -// NewAndroidCertificateProfileBase instantiates a new AndroidCertificateProfileBase and sets the default values. +// NewAndroidCertificateProfileBase instantiates a new androidCertificateProfileBase and sets the default values. func NewAndroidCertificateProfileBase()(*AndroidCertificateProfileBase) { m := &AndroidCertificateProfileBase{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_compliance_policy.go b/models/android_compliance_policy.go index f4465e0b2c5..22e021eda45 100644 --- a/models/android_compliance_policy.go +++ b/models/android_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidCompliancePolicy +// AndroidCompliancePolicy this class contains compliance settings for Android. type AndroidCompliancePolicy struct { DeviceCompliancePolicy } -// NewAndroidCompliancePolicy instantiates a new AndroidCompliancePolicy and sets the default values. +// NewAndroidCompliancePolicy instantiates a new androidCompliancePolicy and sets the default values. func NewAndroidCompliancePolicy()(*AndroidCompliancePolicy) { m := &AndroidCompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/android_custom_configuration.go b/models/android_custom_configuration.go index da67ba55c75..72e7340052d 100644 --- a/models/android_custom_configuration.go +++ b/models/android_custom_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidCustomConfiguration +// AndroidCustomConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the androidCustomConfiguration resource. type AndroidCustomConfiguration struct { DeviceConfiguration } -// NewAndroidCustomConfiguration instantiates a new AndroidCustomConfiguration and sets the default values. +// NewAndroidCustomConfiguration instantiates a new androidCustomConfiguration and sets the default values. func NewAndroidCustomConfiguration()(*AndroidCustomConfiguration) { m := &AndroidCustomConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_device_compliance_local_action_base.go b/models/android_device_compliance_local_action_base.go index 87c06f04dfb..b471d762565 100644 --- a/models/android_device_compliance_local_action_base.go +++ b/models/android_device_compliance_local_action_base.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceComplianceLocalActionBase +// AndroidDeviceComplianceLocalActionBase local Action Configuration type AndroidDeviceComplianceLocalActionBase struct { Entity + // The OdataType property + OdataType *string } -// NewAndroidDeviceComplianceLocalActionBase instantiates a new AndroidDeviceComplianceLocalActionBase and sets the default values. +// NewAndroidDeviceComplianceLocalActionBase instantiates a new androidDeviceComplianceLocalActionBase and sets the default values. func NewAndroidDeviceComplianceLocalActionBase()(*AndroidDeviceComplianceLocalActionBase) { m := &AndroidDeviceComplianceLocalActionBase{ Entity: *NewEntity(), diff --git a/models/android_device_compliance_local_action_lock_device.go b/models/android_device_compliance_local_action_lock_device.go index 18e71c913e8..b00deed1130 100644 --- a/models/android_device_compliance_local_action_lock_device.go +++ b/models/android_device_compliance_local_action_lock_device.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceComplianceLocalActionLockDevice +// AndroidDeviceComplianceLocalActionLockDevice local Action Lock Device Only Configuration type AndroidDeviceComplianceLocalActionLockDevice struct { AndroidDeviceComplianceLocalActionBase } -// NewAndroidDeviceComplianceLocalActionLockDevice instantiates a new AndroidDeviceComplianceLocalActionLockDevice and sets the default values. +// NewAndroidDeviceComplianceLocalActionLockDevice instantiates a new androidDeviceComplianceLocalActionLockDevice and sets the default values. func NewAndroidDeviceComplianceLocalActionLockDevice()(*AndroidDeviceComplianceLocalActionLockDevice) { m := &AndroidDeviceComplianceLocalActionLockDevice{ AndroidDeviceComplianceLocalActionBase: *NewAndroidDeviceComplianceLocalActionBase(), diff --git a/models/android_device_compliance_local_action_lock_device_with_passcode.go b/models/android_device_compliance_local_action_lock_device_with_passcode.go index 4a4c39af534..0d8e6b74cf6 100644 --- a/models/android_device_compliance_local_action_lock_device_with_passcode.go +++ b/models/android_device_compliance_local_action_lock_device_with_passcode.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceComplianceLocalActionLockDeviceWithPasscode +// AndroidDeviceComplianceLocalActionLockDeviceWithPasscode local Action Lock Device with Passcode Configuration type AndroidDeviceComplianceLocalActionLockDeviceWithPasscode struct { AndroidDeviceComplianceLocalActionBase } -// NewAndroidDeviceComplianceLocalActionLockDeviceWithPasscode instantiates a new AndroidDeviceComplianceLocalActionLockDeviceWithPasscode and sets the default values. +// NewAndroidDeviceComplianceLocalActionLockDeviceWithPasscode instantiates a new androidDeviceComplianceLocalActionLockDeviceWithPasscode and sets the default values. func NewAndroidDeviceComplianceLocalActionLockDeviceWithPasscode()(*AndroidDeviceComplianceLocalActionLockDeviceWithPasscode) { m := &AndroidDeviceComplianceLocalActionLockDeviceWithPasscode{ AndroidDeviceComplianceLocalActionBase: *NewAndroidDeviceComplianceLocalActionBase(), diff --git a/models/android_device_owner_certificate_profile_base.go b/models/android_device_owner_certificate_profile_base.go index 95ffba9ecd5..53147b252a5 100644 --- a/models/android_device_owner_certificate_profile_base.go +++ b/models/android_device_owner_certificate_profile_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerCertificateProfileBase +// AndroidDeviceOwnerCertificateProfileBase android Device Owner certificate profile base. type AndroidDeviceOwnerCertificateProfileBase struct { DeviceConfiguration } -// NewAndroidDeviceOwnerCertificateProfileBase instantiates a new AndroidDeviceOwnerCertificateProfileBase and sets the default values. +// NewAndroidDeviceOwnerCertificateProfileBase instantiates a new androidDeviceOwnerCertificateProfileBase and sets the default values. func NewAndroidDeviceOwnerCertificateProfileBase()(*AndroidDeviceOwnerCertificateProfileBase) { m := &AndroidDeviceOwnerCertificateProfileBase{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_device_owner_compliance_policy.go b/models/android_device_owner_compliance_policy.go index 88a2f191742..5cbd8ccab3b 100644 --- a/models/android_device_owner_compliance_policy.go +++ b/models/android_device_owner_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerCompliancePolicy +// AndroidDeviceOwnerCompliancePolicy this topic provides descriptions of the declared methods, properties and relationships exposed by the AndroidDeviceOwnerCompliancePolicy resource. type AndroidDeviceOwnerCompliancePolicy struct { DeviceCompliancePolicy } -// NewAndroidDeviceOwnerCompliancePolicy instantiates a new AndroidDeviceOwnerCompliancePolicy and sets the default values. +// NewAndroidDeviceOwnerCompliancePolicy instantiates a new androidDeviceOwnerCompliancePolicy and sets the default values. func NewAndroidDeviceOwnerCompliancePolicy()(*AndroidDeviceOwnerCompliancePolicy) { m := &AndroidDeviceOwnerCompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/android_device_owner_derived_credential_authentication_configuration.go b/models/android_device_owner_derived_credential_authentication_configuration.go index ffb76882a7f..093b978de77 100644 --- a/models/android_device_owner_derived_credential_authentication_configuration.go +++ b/models/android_device_owner_derived_credential_authentication_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration +// AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration android COBO Derived Credential profile. type AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration struct { DeviceConfiguration } -// NewAndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration instantiates a new AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration and sets the default values. +// NewAndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration instantiates a new androidDeviceOwnerDerivedCredentialAuthenticationConfiguration and sets the default values. func NewAndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration()(*AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration) { m := &AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_device_owner_enrollment_profile.go b/models/android_device_owner_enrollment_profile.go index e78074d8a7f..238b1bd14d1 100644 --- a/models/android_device_owner_enrollment_profile.go +++ b/models/android_device_owner_enrollment_profile.go @@ -8,6 +8,8 @@ import ( // AndroidDeviceOwnerEnrollmentProfile enrollment Profile used to enroll Android Enterprise devices using Google's Cloud Management. type AndroidDeviceOwnerEnrollmentProfile struct { Entity + // The OdataType property + OdataType *string } // NewAndroidDeviceOwnerEnrollmentProfile instantiates a new androidDeviceOwnerEnrollmentProfile and sets the default values. func NewAndroidDeviceOwnerEnrollmentProfile()(*AndroidDeviceOwnerEnrollmentProfile) { diff --git a/models/android_device_owner_enrollment_profile_collection_response.go b/models/android_device_owner_enrollment_profile_collection_response.go index e5189d9a499..61d3b1e2ba8 100644 --- a/models/android_device_owner_enrollment_profile_collection_response.go +++ b/models/android_device_owner_enrollment_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type AndroidDeviceOwnerEnrollmentProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAndroidDeviceOwnerEnrollmentProfileCollectionResponse instantiates a new AndroidDeviceOwnerEnrollmentProfileCollectionResponse and sets the default values. +// NewAndroidDeviceOwnerEnrollmentProfileCollectionResponse instantiates a new androidDeviceOwnerEnrollmentProfileCollectionResponse and sets the default values. func NewAndroidDeviceOwnerEnrollmentProfileCollectionResponse()(*AndroidDeviceOwnerEnrollmentProfileCollectionResponse) { m := &AndroidDeviceOwnerEnrollmentProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/android_device_owner_enterprise_wi_fi_configuration.go b/models/android_device_owner_enterprise_wi_fi_configuration.go index 7574bba8c3f..316cee37e94 100644 --- a/models/android_device_owner_enterprise_wi_fi_configuration.go +++ b/models/android_device_owner_enterprise_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerEnterpriseWiFiConfiguration +// AndroidDeviceOwnerEnterpriseWiFiConfiguration by providing the configurations in this profile you can instruct the Android Device Owner device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. type AndroidDeviceOwnerEnterpriseWiFiConfiguration struct { AndroidDeviceOwnerWiFiConfiguration } -// NewAndroidDeviceOwnerEnterpriseWiFiConfiguration instantiates a new AndroidDeviceOwnerEnterpriseWiFiConfiguration and sets the default values. +// NewAndroidDeviceOwnerEnterpriseWiFiConfiguration instantiates a new androidDeviceOwnerEnterpriseWiFiConfiguration and sets the default values. func NewAndroidDeviceOwnerEnterpriseWiFiConfiguration()(*AndroidDeviceOwnerEnterpriseWiFiConfiguration) { m := &AndroidDeviceOwnerEnterpriseWiFiConfiguration{ AndroidDeviceOwnerWiFiConfiguration: *NewAndroidDeviceOwnerWiFiConfiguration(), diff --git a/models/android_device_owner_general_device_configuration.go b/models/android_device_owner_general_device_configuration.go index 21e0ac9c2bf..c842e80cbd4 100644 --- a/models/android_device_owner_general_device_configuration.go +++ b/models/android_device_owner_general_device_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerGeneralDeviceConfiguration +// AndroidDeviceOwnerGeneralDeviceConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the androidDeviceOwnerGeneralDeviceConfiguration resource. type AndroidDeviceOwnerGeneralDeviceConfiguration struct { DeviceConfiguration } -// NewAndroidDeviceOwnerGeneralDeviceConfiguration instantiates a new AndroidDeviceOwnerGeneralDeviceConfiguration and sets the default values. +// NewAndroidDeviceOwnerGeneralDeviceConfiguration instantiates a new androidDeviceOwnerGeneralDeviceConfiguration and sets the default values. func NewAndroidDeviceOwnerGeneralDeviceConfiguration()(*AndroidDeviceOwnerGeneralDeviceConfiguration) { m := &AndroidDeviceOwnerGeneralDeviceConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_device_owner_global_proxy_auto_config.go b/models/android_device_owner_global_proxy_auto_config.go index dae8e2c8ea5..8495733f7f0 100644 --- a/models/android_device_owner_global_proxy_auto_config.go +++ b/models/android_device_owner_global_proxy_auto_config.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerGlobalProxyAutoConfig +// AndroidDeviceOwnerGlobalProxyAutoConfig android Device Owner Global Proxy Auto Config. type AndroidDeviceOwnerGlobalProxyAutoConfig struct { AndroidDeviceOwnerGlobalProxy + // The OdataType property + OdataType *string } -// NewAndroidDeviceOwnerGlobalProxyAutoConfig instantiates a new AndroidDeviceOwnerGlobalProxyAutoConfig and sets the default values. +// NewAndroidDeviceOwnerGlobalProxyAutoConfig instantiates a new androidDeviceOwnerGlobalProxyAutoConfig and sets the default values. func NewAndroidDeviceOwnerGlobalProxyAutoConfig()(*AndroidDeviceOwnerGlobalProxyAutoConfig) { m := &AndroidDeviceOwnerGlobalProxyAutoConfig{ AndroidDeviceOwnerGlobalProxy: *NewAndroidDeviceOwnerGlobalProxy(), diff --git a/models/android_device_owner_global_proxy_direct.go b/models/android_device_owner_global_proxy_direct.go index 05452657bdc..cd53cedec63 100644 --- a/models/android_device_owner_global_proxy_direct.go +++ b/models/android_device_owner_global_proxy_direct.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerGlobalProxyDirect +// AndroidDeviceOwnerGlobalProxyDirect android Device Owner Global Proxy Direct. type AndroidDeviceOwnerGlobalProxyDirect struct { AndroidDeviceOwnerGlobalProxy } -// NewAndroidDeviceOwnerGlobalProxyDirect instantiates a new AndroidDeviceOwnerGlobalProxyDirect and sets the default values. +// NewAndroidDeviceOwnerGlobalProxyDirect instantiates a new androidDeviceOwnerGlobalProxyDirect and sets the default values. func NewAndroidDeviceOwnerGlobalProxyDirect()(*AndroidDeviceOwnerGlobalProxyDirect) { m := &AndroidDeviceOwnerGlobalProxyDirect{ AndroidDeviceOwnerGlobalProxy: *NewAndroidDeviceOwnerGlobalProxy(), @@ -61,6 +61,16 @@ func (m *AndroidDeviceOwnerGlobalProxyDirect) GetFieldDeserializers()(map[string } 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["port"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -84,6 +94,17 @@ func (m *AndroidDeviceOwnerGlobalProxyDirect) GetHost()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AndroidDeviceOwnerGlobalProxyDirect) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPort gets the port property value. The port func (m *AndroidDeviceOwnerGlobalProxyDirect) GetPort()(*int32) { val, err := m.GetBackingStore().Get("port") @@ -113,6 +134,12 @@ func (m *AndroidDeviceOwnerGlobalProxyDirect) Serialize(writer i878a80d2330e89d2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("port", m.GetPort()) if err != nil { @@ -135,6 +162,13 @@ func (m *AndroidDeviceOwnerGlobalProxyDirect) SetHost(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AndroidDeviceOwnerGlobalProxyDirect) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPort sets the port property value. The port func (m *AndroidDeviceOwnerGlobalProxyDirect) SetPort(value *int32)() { err := m.GetBackingStore().Set("port", value) @@ -148,8 +182,10 @@ type AndroidDeviceOwnerGlobalProxyDirectable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetExcludedHosts()([]string) GetHost()(*string) + GetOdataType()(*string) GetPort()(*int32) SetExcludedHosts(value []string)() SetHost(value *string)() + SetOdataType(value *string)() SetPort(value *int32)() } 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 75f7aa40fcc..6fe087adcc0 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 @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerImportedPFXCertificateProfile +// AndroidDeviceOwnerImportedPFXCertificateProfile android Device Owner PFX Import certificate profile type AndroidDeviceOwnerImportedPFXCertificateProfile struct { AndroidDeviceOwnerCertificateProfileBase } -// NewAndroidDeviceOwnerImportedPFXCertificateProfile instantiates a new AndroidDeviceOwnerImportedPFXCertificateProfile and sets the default values. +// NewAndroidDeviceOwnerImportedPFXCertificateProfile instantiates a new androidDeviceOwnerImportedPFXCertificateProfile and sets the default values. func NewAndroidDeviceOwnerImportedPFXCertificateProfile()(*AndroidDeviceOwnerImportedPFXCertificateProfile) { m := &AndroidDeviceOwnerImportedPFXCertificateProfile{ AndroidDeviceOwnerCertificateProfileBase: *NewAndroidDeviceOwnerCertificateProfileBase(), diff --git a/models/android_device_owner_kiosk_mode_app.go b/models/android_device_owner_kiosk_mode_app.go index 4616588a454..dce3129a3c1 100644 --- a/models/android_device_owner_kiosk_mode_app.go +++ b/models/android_device_owner_kiosk_mode_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerKioskModeApp +// AndroidDeviceOwnerKioskModeApp an application on the Android Device Owner Managed Home Screen type AndroidDeviceOwnerKioskModeApp struct { AndroidDeviceOwnerKioskModeFolderItem } -// NewAndroidDeviceOwnerKioskModeApp instantiates a new AndroidDeviceOwnerKioskModeApp and sets the default values. +// NewAndroidDeviceOwnerKioskModeApp instantiates a new androidDeviceOwnerKioskModeApp and sets the default values. func NewAndroidDeviceOwnerKioskModeApp()(*AndroidDeviceOwnerKioskModeApp) { m := &AndroidDeviceOwnerKioskModeApp{ AndroidDeviceOwnerKioskModeFolderItem: *NewAndroidDeviceOwnerKioskModeFolderItem(), @@ -45,6 +45,16 @@ func (m *AndroidDeviceOwnerKioskModeApp) GetFieldDeserializers()(map[string]func } 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["package"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -57,6 +67,17 @@ func (m *AndroidDeviceOwnerKioskModeApp) GetFieldDeserializers()(map[string]func } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AndroidDeviceOwnerKioskModeApp) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPackage gets the package property value. Package name of application func (m *AndroidDeviceOwnerKioskModeApp) GetPackage()(*string) { val, err := m.GetBackingStore().Get("packageEscaped") @@ -80,6 +101,12 @@ func (m *AndroidDeviceOwnerKioskModeApp) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("package", m.GetPackage()) if err != nil { @@ -95,6 +122,13 @@ func (m *AndroidDeviceOwnerKioskModeApp) SetClassName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AndroidDeviceOwnerKioskModeApp) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPackage sets the package property value. Package name of application func (m *AndroidDeviceOwnerKioskModeApp) SetPackage(value *string)() { err := m.GetBackingStore().Set("packageEscaped", value) @@ -107,7 +141,9 @@ type AndroidDeviceOwnerKioskModeAppable interface { AndroidDeviceOwnerKioskModeFolderItemable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetClassName()(*string) + GetOdataType()(*string) GetPackage()(*string) SetClassName(value *string)() + SetOdataType(value *string)() SetPackage(value *string)() } diff --git a/models/android_device_owner_kiosk_mode_folder_item.go b/models/android_device_owner_kiosk_mode_folder_item.go index 2cc45b3d71f..c5fa541e22e 100644 --- a/models/android_device_owner_kiosk_mode_folder_item.go +++ b/models/android_device_owner_kiosk_mode_folder_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerKioskModeFolderItem +// AndroidDeviceOwnerKioskModeFolderItem represents an item that can be added to Android Device Owner folder (application or weblink) type AndroidDeviceOwnerKioskModeFolderItem struct { AndroidDeviceOwnerKioskModeHomeScreenItem } -// NewAndroidDeviceOwnerKioskModeFolderItem instantiates a new AndroidDeviceOwnerKioskModeFolderItem and sets the default values. +// NewAndroidDeviceOwnerKioskModeFolderItem instantiates a new androidDeviceOwnerKioskModeFolderItem and sets the default values. func NewAndroidDeviceOwnerKioskModeFolderItem()(*AndroidDeviceOwnerKioskModeFolderItem) { m := &AndroidDeviceOwnerKioskModeFolderItem{ AndroidDeviceOwnerKioskModeHomeScreenItem: *NewAndroidDeviceOwnerKioskModeHomeScreenItem(), @@ -44,18 +44,54 @@ func CreateAndroidDeviceOwnerKioskModeFolderItemFromDiscriminatorValue(parseNode // GetFieldDeserializers the deserialization information for the current model func (m *AndroidDeviceOwnerKioskModeFolderItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AndroidDeviceOwnerKioskModeHomeScreenItem.GetFieldDeserializers() + 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 *AndroidDeviceOwnerKioskModeFolderItem) 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 *AndroidDeviceOwnerKioskModeFolderItem) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AndroidDeviceOwnerKioskModeHomeScreenItem.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AndroidDeviceOwnerKioskModeFolderItem) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AndroidDeviceOwnerKioskModeFolderItemable type AndroidDeviceOwnerKioskModeFolderItemable interface { AndroidDeviceOwnerKioskModeHomeScreenItemable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/android_device_owner_kiosk_mode_home_screen_item.go b/models/android_device_owner_kiosk_mode_home_screen_item.go index c50c9ac5873..84f4e41640e 100644 --- a/models/android_device_owner_kiosk_mode_home_screen_item.go +++ b/models/android_device_owner_kiosk_mode_home_screen_item.go @@ -10,7 +10,7 @@ type AndroidDeviceOwnerKioskModeHomeScreenItem struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAndroidDeviceOwnerKioskModeHomeScreenItem instantiates a new AndroidDeviceOwnerKioskModeHomeScreenItem and sets the default values. +// NewAndroidDeviceOwnerKioskModeHomeScreenItem instantiates a new androidDeviceOwnerKioskModeHomeScreenItem and sets the default values. func NewAndroidDeviceOwnerKioskModeHomeScreenItem()(*AndroidDeviceOwnerKioskModeHomeScreenItem) { m := &AndroidDeviceOwnerKioskModeHomeScreenItem{ } diff --git a/models/android_device_owner_kiosk_mode_managed_folder_reference.go b/models/android_device_owner_kiosk_mode_managed_folder_reference.go index 7f3c4f339e6..8be1aea1184 100644 --- a/models/android_device_owner_kiosk_mode_managed_folder_reference.go +++ b/models/android_device_owner_kiosk_mode_managed_folder_reference.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerKioskModeManagedFolderReference +// AndroidDeviceOwnerKioskModeManagedFolderReference a reference to folder containing apps and weblinks on the Managed Home Screen type AndroidDeviceOwnerKioskModeManagedFolderReference struct { AndroidDeviceOwnerKioskModeHomeScreenItem } -// NewAndroidDeviceOwnerKioskModeManagedFolderReference instantiates a new AndroidDeviceOwnerKioskModeManagedFolderReference and sets the default values. +// NewAndroidDeviceOwnerKioskModeManagedFolderReference instantiates a new androidDeviceOwnerKioskModeManagedFolderReference and sets the default values. func NewAndroidDeviceOwnerKioskModeManagedFolderReference()(*AndroidDeviceOwnerKioskModeManagedFolderReference) { m := &AndroidDeviceOwnerKioskModeManagedFolderReference{ AndroidDeviceOwnerKioskModeHomeScreenItem: *NewAndroidDeviceOwnerKioskModeHomeScreenItem(), @@ -44,6 +44,16 @@ func (m *AndroidDeviceOwnerKioskModeManagedFolderReference) GetFieldDeserializer } 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 } // GetFolderIdentifier gets the folderIdentifier property value. Unique identifier for the folder @@ -68,6 +78,17 @@ func (m *AndroidDeviceOwnerKioskModeManagedFolderReference) GetFolderName()(*str } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AndroidDeviceOwnerKioskModeManagedFolderReference) 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 *AndroidDeviceOwnerKioskModeManagedFolderReference) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AndroidDeviceOwnerKioskModeHomeScreenItem.Serialize(writer) @@ -86,6 +107,12 @@ func (m *AndroidDeviceOwnerKioskModeManagedFolderReference) Serialize(writer i87 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetFolderIdentifier sets the folderIdentifier property value. Unique identifier for the folder @@ -102,12 +129,21 @@ func (m *AndroidDeviceOwnerKioskModeManagedFolderReference) SetFolderName(value panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AndroidDeviceOwnerKioskModeManagedFolderReference) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AndroidDeviceOwnerKioskModeManagedFolderReferenceable type AndroidDeviceOwnerKioskModeManagedFolderReferenceable interface { AndroidDeviceOwnerKioskModeHomeScreenItemable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetFolderIdentifier()(*string) GetFolderName()(*string) + GetOdataType()(*string) SetFolderIdentifier(value *string)() SetFolderName(value *string)() + SetOdataType(value *string)() } diff --git a/models/android_device_owner_kiosk_mode_weblink.go b/models/android_device_owner_kiosk_mode_weblink.go index f955fbd0980..f75b64e6076 100644 --- a/models/android_device_owner_kiosk_mode_weblink.go +++ b/models/android_device_owner_kiosk_mode_weblink.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerKioskModeWeblink +// AndroidDeviceOwnerKioskModeWeblink a weblink on the Android Device Owner Managed Home Screen type AndroidDeviceOwnerKioskModeWeblink struct { AndroidDeviceOwnerKioskModeFolderItem + // The OdataType property + OdataType *string } -// NewAndroidDeviceOwnerKioskModeWeblink instantiates a new AndroidDeviceOwnerKioskModeWeblink and sets the default values. +// NewAndroidDeviceOwnerKioskModeWeblink instantiates a new androidDeviceOwnerKioskModeWeblink and sets the default values. func NewAndroidDeviceOwnerKioskModeWeblink()(*AndroidDeviceOwnerKioskModeWeblink) { m := &AndroidDeviceOwnerKioskModeWeblink{ AndroidDeviceOwnerKioskModeFolderItem: *NewAndroidDeviceOwnerKioskModeFolderItem(), diff --git a/models/android_device_owner_pkcs_certificate_profile.go b/models/android_device_owner_pkcs_certificate_profile.go index d9976d62287..bab8b2769ab 100644 --- a/models/android_device_owner_pkcs_certificate_profile.go +++ b/models/android_device_owner_pkcs_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerPkcsCertificateProfile +// AndroidDeviceOwnerPkcsCertificateProfile android Device Owner PKCS certificate profile type AndroidDeviceOwnerPkcsCertificateProfile struct { AndroidDeviceOwnerCertificateProfileBase } -// NewAndroidDeviceOwnerPkcsCertificateProfile instantiates a new AndroidDeviceOwnerPkcsCertificateProfile and sets the default values. +// NewAndroidDeviceOwnerPkcsCertificateProfile instantiates a new androidDeviceOwnerPkcsCertificateProfile and sets the default values. func NewAndroidDeviceOwnerPkcsCertificateProfile()(*AndroidDeviceOwnerPkcsCertificateProfile) { m := &AndroidDeviceOwnerPkcsCertificateProfile{ AndroidDeviceOwnerCertificateProfileBase: *NewAndroidDeviceOwnerCertificateProfileBase(), diff --git a/models/android_device_owner_scep_certificate_profile.go b/models/android_device_owner_scep_certificate_profile.go index bde52e3f2d5..94cb2ebe9a0 100644 --- a/models/android_device_owner_scep_certificate_profile.go +++ b/models/android_device_owner_scep_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerScepCertificateProfile +// AndroidDeviceOwnerScepCertificateProfile android Device Owner SCEP certificate profile type AndroidDeviceOwnerScepCertificateProfile struct { AndroidDeviceOwnerCertificateProfileBase } -// NewAndroidDeviceOwnerScepCertificateProfile instantiates a new AndroidDeviceOwnerScepCertificateProfile and sets the default values. +// NewAndroidDeviceOwnerScepCertificateProfile instantiates a new androidDeviceOwnerScepCertificateProfile and sets the default values. func NewAndroidDeviceOwnerScepCertificateProfile()(*AndroidDeviceOwnerScepCertificateProfile) { m := &AndroidDeviceOwnerScepCertificateProfile{ AndroidDeviceOwnerCertificateProfileBase: *NewAndroidDeviceOwnerCertificateProfileBase(), diff --git a/models/android_device_owner_trusted_root_certificate.go b/models/android_device_owner_trusted_root_certificate.go index 64d9afdcce7..35cb3676ff2 100644 --- a/models/android_device_owner_trusted_root_certificate.go +++ b/models/android_device_owner_trusted_root_certificate.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerTrustedRootCertificate +// AndroidDeviceOwnerTrustedRootCertificate android Device Owner Trusted Root Certificate configuration profile type AndroidDeviceOwnerTrustedRootCertificate struct { DeviceConfiguration } diff --git a/models/android_device_owner_vpn_configuration.go b/models/android_device_owner_vpn_configuration.go index 936f3f8ac5d..7246e453b9c 100644 --- a/models/android_device_owner_vpn_configuration.go +++ b/models/android_device_owner_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerVpnConfiguration +// AndroidDeviceOwnerVpnConfiguration by providing the configurations in this profile you can instruct the Android Fully Managed device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. type AndroidDeviceOwnerVpnConfiguration struct { VpnConfiguration } -// NewAndroidDeviceOwnerVpnConfiguration instantiates a new AndroidDeviceOwnerVpnConfiguration and sets the default values. +// NewAndroidDeviceOwnerVpnConfiguration instantiates a new androidDeviceOwnerVpnConfiguration and sets the default values. func NewAndroidDeviceOwnerVpnConfiguration()(*AndroidDeviceOwnerVpnConfiguration) { m := &AndroidDeviceOwnerVpnConfiguration{ VpnConfiguration: *NewVpnConfiguration(), diff --git a/models/android_device_owner_wi_fi_configuration.go b/models/android_device_owner_wi_fi_configuration.go index 476406dab0f..e69c531156b 100644 --- a/models/android_device_owner_wi_fi_configuration.go +++ b/models/android_device_owner_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidDeviceOwnerWiFiConfiguration +// AndroidDeviceOwnerWiFiConfiguration by providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile. type AndroidDeviceOwnerWiFiConfiguration struct { DeviceConfiguration } -// NewAndroidDeviceOwnerWiFiConfiguration instantiates a new AndroidDeviceOwnerWiFiConfiguration and sets the default values. +// NewAndroidDeviceOwnerWiFiConfiguration instantiates a new androidDeviceOwnerWiFiConfiguration and sets the default values. func NewAndroidDeviceOwnerWiFiConfiguration()(*AndroidDeviceOwnerWiFiConfiguration) { m := &AndroidDeviceOwnerWiFiConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_eas_email_profile_configuration.go b/models/android_eas_email_profile_configuration.go index 832d9dfc738..45775ac7af3 100644 --- a/models/android_eas_email_profile_configuration.go +++ b/models/android_eas_email_profile_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidEasEmailProfileConfiguration +// AndroidEasEmailProfileConfiguration by providing configurations in this profile you can instruct the native email client on KNOX devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. type AndroidEasEmailProfileConfiguration struct { DeviceConfiguration } -// NewAndroidEasEmailProfileConfiguration instantiates a new AndroidEasEmailProfileConfiguration and sets the default values. +// NewAndroidEasEmailProfileConfiguration instantiates a new androidEasEmailProfileConfiguration and sets the default values. func NewAndroidEasEmailProfileConfiguration()(*AndroidEasEmailProfileConfiguration) { m := &AndroidEasEmailProfileConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_enterprise_wi_fi_configuration.go b/models/android_enterprise_wi_fi_configuration.go index b90921f2bc7..b77ffee2477 100644 --- a/models/android_enterprise_wi_fi_configuration.go +++ b/models/android_enterprise_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidEnterpriseWiFiConfiguration +// AndroidEnterpriseWiFiConfiguration by providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. type AndroidEnterpriseWiFiConfiguration struct { AndroidWiFiConfiguration } -// NewAndroidEnterpriseWiFiConfiguration instantiates a new AndroidEnterpriseWiFiConfiguration and sets the default values. +// NewAndroidEnterpriseWiFiConfiguration instantiates a new androidEnterpriseWiFiConfiguration and sets the default values. func NewAndroidEnterpriseWiFiConfiguration()(*AndroidEnterpriseWiFiConfiguration) { m := &AndroidEnterpriseWiFiConfiguration{ AndroidWiFiConfiguration: *NewAndroidWiFiConfiguration(), diff --git a/models/android_for_work_app.go b/models/android_for_work_app.go index a03b3e20dae..c7dd03b8e53 100644 --- a/models/android_for_work_app.go +++ b/models/android_for_work_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkApp +// AndroidForWorkApp contains properties and inherited properties for Android for Work (AFW) Apps. type AndroidForWorkApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewAndroidForWorkApp instantiates a new AndroidForWorkApp and sets the default values. +// NewAndroidForWorkApp instantiates a new androidForWorkApp and sets the default values. func NewAndroidForWorkApp()(*AndroidForWorkApp) { m := &AndroidForWorkApp{ MobileApp: *NewMobileApp(), diff --git a/models/android_for_work_app_configuration_schema.go b/models/android_for_work_app_configuration_schema.go index 98a6feda15f..1a039e870f5 100644 --- a/models/android_for_work_app_configuration_schema.go +++ b/models/android_for_work_app_configuration_schema.go @@ -43,6 +43,16 @@ func (m *AndroidForWorkAppConfigurationSchema) GetFieldDeserializers()(map[strin } 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["schemaItems"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateAndroidForWorkAppConfigurationSchemaItemFromDiscriminatorValue) if err != nil { @@ -61,6 +71,17 @@ func (m *AndroidForWorkAppConfigurationSchema) GetFieldDeserializers()(map[strin } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AndroidForWorkAppConfigurationSchema) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSchemaItems gets the schemaItems property value. Collection of items each representing a named configuration option in the schema func (m *AndroidForWorkAppConfigurationSchema) GetSchemaItems()([]AndroidForWorkAppConfigurationSchemaItemable) { val, err := m.GetBackingStore().Get("schemaItems") @@ -84,6 +105,12 @@ func (m *AndroidForWorkAppConfigurationSchema) Serialize(writer i878a80d2330e89d return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetSchemaItems() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSchemaItems())) for i, v := range m.GetSchemaItems() { @@ -105,6 +132,13 @@ func (m *AndroidForWorkAppConfigurationSchema) SetExampleJson(value []byte)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AndroidForWorkAppConfigurationSchema) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSchemaItems sets the schemaItems property value. Collection of items each representing a named configuration option in the schema func (m *AndroidForWorkAppConfigurationSchema) SetSchemaItems(value []AndroidForWorkAppConfigurationSchemaItemable)() { err := m.GetBackingStore().Set("schemaItems", value) @@ -117,7 +151,9 @@ type AndroidForWorkAppConfigurationSchemaable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetExampleJson()([]byte) + GetOdataType()(*string) GetSchemaItems()([]AndroidForWorkAppConfigurationSchemaItemable) SetExampleJson(value []byte)() + SetOdataType(value *string)() SetSchemaItems(value []AndroidForWorkAppConfigurationSchemaItemable)() } diff --git a/models/android_for_work_app_configuration_schema_collection_response.go b/models/android_for_work_app_configuration_schema_collection_response.go index 77b68ee121f..8128650c05b 100644 --- a/models/android_for_work_app_configuration_schema_collection_response.go +++ b/models/android_for_work_app_configuration_schema_collection_response.go @@ -8,7 +8,7 @@ import ( type AndroidForWorkAppConfigurationSchemaCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAndroidForWorkAppConfigurationSchemaCollectionResponse instantiates a new AndroidForWorkAppConfigurationSchemaCollectionResponse and sets the default values. +// NewAndroidForWorkAppConfigurationSchemaCollectionResponse instantiates a new androidForWorkAppConfigurationSchemaCollectionResponse and sets the default values. func NewAndroidForWorkAppConfigurationSchemaCollectionResponse()(*AndroidForWorkAppConfigurationSchemaCollectionResponse) { m := &AndroidForWorkAppConfigurationSchemaCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/android_for_work_certificate_profile_base.go b/models/android_for_work_certificate_profile_base.go index 644793aa0d8..d10e2369bbe 100644 --- a/models/android_for_work_certificate_profile_base.go +++ b/models/android_for_work_certificate_profile_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkCertificateProfileBase +// AndroidForWorkCertificateProfileBase android For Work certificate profile base. type AndroidForWorkCertificateProfileBase struct { DeviceConfiguration } -// NewAndroidForWorkCertificateProfileBase instantiates a new AndroidForWorkCertificateProfileBase and sets the default values. +// NewAndroidForWorkCertificateProfileBase instantiates a new androidForWorkCertificateProfileBase and sets the default values. func NewAndroidForWorkCertificateProfileBase()(*AndroidForWorkCertificateProfileBase) { m := &AndroidForWorkCertificateProfileBase{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_for_work_compliance_policy.go b/models/android_for_work_compliance_policy.go index 42d2ab0564a..276554ab909 100644 --- a/models/android_for_work_compliance_policy.go +++ b/models/android_for_work_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkCompliancePolicy +// AndroidForWorkCompliancePolicy this class contains compliance settings for Android for Work. type AndroidForWorkCompliancePolicy struct { DeviceCompliancePolicy } -// NewAndroidForWorkCompliancePolicy instantiates a new AndroidForWorkCompliancePolicy and sets the default values. +// NewAndroidForWorkCompliancePolicy instantiates a new androidForWorkCompliancePolicy and sets the default values. func NewAndroidForWorkCompliancePolicy()(*AndroidForWorkCompliancePolicy) { m := &AndroidForWorkCompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/android_for_work_custom_configuration.go b/models/android_for_work_custom_configuration.go index 5714947b645..f912dcf49a3 100644 --- a/models/android_for_work_custom_configuration.go +++ b/models/android_for_work_custom_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkCustomConfiguration +// AndroidForWorkCustomConfiguration android For Work custom configuration type AndroidForWorkCustomConfiguration struct { DeviceConfiguration } -// NewAndroidForWorkCustomConfiguration instantiates a new AndroidForWorkCustomConfiguration and sets the default values. +// NewAndroidForWorkCustomConfiguration instantiates a new androidForWorkCustomConfiguration and sets the default values. func NewAndroidForWorkCustomConfiguration()(*AndroidForWorkCustomConfiguration) { m := &AndroidForWorkCustomConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_for_work_eas_email_profile_base.go b/models/android_for_work_eas_email_profile_base.go index 45d1f210270..84f3c4478c5 100644 --- a/models/android_for_work_eas_email_profile_base.go +++ b/models/android_for_work_eas_email_profile_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkEasEmailProfileBase +// AndroidForWorkEasEmailProfileBase base for Android For Work EAS Email profiles type AndroidForWorkEasEmailProfileBase struct { DeviceConfiguration } -// NewAndroidForWorkEasEmailProfileBase instantiates a new AndroidForWorkEasEmailProfileBase and sets the default values. +// NewAndroidForWorkEasEmailProfileBase instantiates a new androidForWorkEasEmailProfileBase and sets the default values. func NewAndroidForWorkEasEmailProfileBase()(*AndroidForWorkEasEmailProfileBase) { m := &AndroidForWorkEasEmailProfileBase{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_for_work_enrollment_profile.go b/models/android_for_work_enrollment_profile.go index eee40034f73..9e82d882aef 100644 --- a/models/android_for_work_enrollment_profile.go +++ b/models/android_for_work_enrollment_profile.go @@ -8,6 +8,8 @@ import ( // AndroidForWorkEnrollmentProfile enrollment Profile used to enroll COSU devices using Google's Cloud Management. type AndroidForWorkEnrollmentProfile struct { Entity + // The OdataType property + OdataType *string } // NewAndroidForWorkEnrollmentProfile instantiates a new androidForWorkEnrollmentProfile and sets the default values. func NewAndroidForWorkEnrollmentProfile()(*AndroidForWorkEnrollmentProfile) { diff --git a/models/android_for_work_enrollment_profile_collection_response.go b/models/android_for_work_enrollment_profile_collection_response.go index da448eeacd5..28ff1f66ec0 100644 --- a/models/android_for_work_enrollment_profile_collection_response.go +++ b/models/android_for_work_enrollment_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type AndroidForWorkEnrollmentProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAndroidForWorkEnrollmentProfileCollectionResponse instantiates a new AndroidForWorkEnrollmentProfileCollectionResponse and sets the default values. +// NewAndroidForWorkEnrollmentProfileCollectionResponse instantiates a new androidForWorkEnrollmentProfileCollectionResponse and sets the default values. func NewAndroidForWorkEnrollmentProfileCollectionResponse()(*AndroidForWorkEnrollmentProfileCollectionResponse) { m := &AndroidForWorkEnrollmentProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/android_for_work_enterprise_wi_fi_configuration.go b/models/android_for_work_enterprise_wi_fi_configuration.go index c1e03975c2b..25fbc0fc544 100644 --- a/models/android_for_work_enterprise_wi_fi_configuration.go +++ b/models/android_for_work_enterprise_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkEnterpriseWiFiConfiguration +// AndroidForWorkEnterpriseWiFiConfiguration by providing the configurations in this profile you can instruct the Android for Work device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. type AndroidForWorkEnterpriseWiFiConfiguration struct { AndroidForWorkWiFiConfiguration } -// NewAndroidForWorkEnterpriseWiFiConfiguration instantiates a new AndroidForWorkEnterpriseWiFiConfiguration and sets the default values. +// NewAndroidForWorkEnterpriseWiFiConfiguration instantiates a new androidForWorkEnterpriseWiFiConfiguration and sets the default values. func NewAndroidForWorkEnterpriseWiFiConfiguration()(*AndroidForWorkEnterpriseWiFiConfiguration) { m := &AndroidForWorkEnterpriseWiFiConfiguration{ AndroidForWorkWiFiConfiguration: *NewAndroidForWorkWiFiConfiguration(), diff --git a/models/android_for_work_general_device_configuration.go b/models/android_for_work_general_device_configuration.go index 5ab7919c581..94ba71ab088 100644 --- a/models/android_for_work_general_device_configuration.go +++ b/models/android_for_work_general_device_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkGeneralDeviceConfiguration +// AndroidForWorkGeneralDeviceConfiguration android For Work general device configuration. type AndroidForWorkGeneralDeviceConfiguration struct { DeviceConfiguration } -// NewAndroidForWorkGeneralDeviceConfiguration instantiates a new AndroidForWorkGeneralDeviceConfiguration and sets the default values. +// NewAndroidForWorkGeneralDeviceConfiguration instantiates a new androidForWorkGeneralDeviceConfiguration and sets the default values. func NewAndroidForWorkGeneralDeviceConfiguration()(*AndroidForWorkGeneralDeviceConfiguration) { m := &AndroidForWorkGeneralDeviceConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_for_work_gmail_eas_configuration.go b/models/android_for_work_gmail_eas_configuration.go index 2c73bf5aebc..21e8be086c2 100644 --- a/models/android_for_work_gmail_eas_configuration.go +++ b/models/android_for_work_gmail_eas_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkGmailEasConfiguration +// AndroidForWorkGmailEasConfiguration by providing configurations in this profile you can instruct the Gmail email client on Android For Work devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. type AndroidForWorkGmailEasConfiguration struct { AndroidForWorkEasEmailProfileBase } -// NewAndroidForWorkGmailEasConfiguration instantiates a new AndroidForWorkGmailEasConfiguration and sets the default values. +// NewAndroidForWorkGmailEasConfiguration instantiates a new androidForWorkGmailEasConfiguration and sets the default values. func NewAndroidForWorkGmailEasConfiguration()(*AndroidForWorkGmailEasConfiguration) { m := &AndroidForWorkGmailEasConfiguration{ AndroidForWorkEasEmailProfileBase: *NewAndroidForWorkEasEmailProfileBase(), diff --git a/models/android_for_work_imported_p_f_x_certificate_profile.go b/models/android_for_work_imported_p_f_x_certificate_profile.go index a6dc7bf9b23..26be04bc1fb 100644 --- a/models/android_for_work_imported_p_f_x_certificate_profile.go +++ b/models/android_for_work_imported_p_f_x_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkImportedPFXCertificateProfile +// AndroidForWorkImportedPFXCertificateProfile android For Work PFX Import certificate profile type AndroidForWorkImportedPFXCertificateProfile struct { AndroidCertificateProfileBase } -// NewAndroidForWorkImportedPFXCertificateProfile instantiates a new AndroidForWorkImportedPFXCertificateProfile and sets the default values. +// NewAndroidForWorkImportedPFXCertificateProfile instantiates a new androidForWorkImportedPFXCertificateProfile and sets the default values. func NewAndroidForWorkImportedPFXCertificateProfile()(*AndroidForWorkImportedPFXCertificateProfile) { m := &AndroidForWorkImportedPFXCertificateProfile{ AndroidCertificateProfileBase: *NewAndroidCertificateProfileBase(), diff --git a/models/android_for_work_mobile_app_configuration.go b/models/android_for_work_mobile_app_configuration.go index 9a65be5b3e7..047109855ee 100644 --- a/models/android_for_work_mobile_app_configuration.go +++ b/models/android_for_work_mobile_app_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkMobileAppConfiguration +// AndroidForWorkMobileAppConfiguration contains properties, inherited properties and actions for AFW mobile app configurations. type AndroidForWorkMobileAppConfiguration struct { ManagedDeviceMobileAppConfiguration } -// NewAndroidForWorkMobileAppConfiguration instantiates a new AndroidForWorkMobileAppConfiguration and sets the default values. +// NewAndroidForWorkMobileAppConfiguration instantiates a new androidForWorkMobileAppConfiguration and sets the default values. func NewAndroidForWorkMobileAppConfiguration()(*AndroidForWorkMobileAppConfiguration) { m := &AndroidForWorkMobileAppConfiguration{ ManagedDeviceMobileAppConfiguration: *NewManagedDeviceMobileAppConfiguration(), diff --git a/models/android_for_work_nine_work_eas_configuration.go b/models/android_for_work_nine_work_eas_configuration.go index 2419c308254..4ab6d5b4457 100644 --- a/models/android_for_work_nine_work_eas_configuration.go +++ b/models/android_for_work_nine_work_eas_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkNineWorkEasConfiguration +// AndroidForWorkNineWorkEasConfiguration by providing configurations in this profile you can instruct the Nine Work email client on Android For Work devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. type AndroidForWorkNineWorkEasConfiguration struct { AndroidForWorkEasEmailProfileBase } -// NewAndroidForWorkNineWorkEasConfiguration instantiates a new AndroidForWorkNineWorkEasConfiguration and sets the default values. +// NewAndroidForWorkNineWorkEasConfiguration instantiates a new androidForWorkNineWorkEasConfiguration and sets the default values. func NewAndroidForWorkNineWorkEasConfiguration()(*AndroidForWorkNineWorkEasConfiguration) { m := &AndroidForWorkNineWorkEasConfiguration{ AndroidForWorkEasEmailProfileBase: *NewAndroidForWorkEasEmailProfileBase(), diff --git a/models/android_for_work_pkcs_certificate_profile.go b/models/android_for_work_pkcs_certificate_profile.go index 2931d07122f..9df38a21943 100644 --- a/models/android_for_work_pkcs_certificate_profile.go +++ b/models/android_for_work_pkcs_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkPkcsCertificateProfile +// AndroidForWorkPkcsCertificateProfile android For Work PKCS certificate profile type AndroidForWorkPkcsCertificateProfile struct { AndroidForWorkCertificateProfileBase } -// NewAndroidForWorkPkcsCertificateProfile instantiates a new AndroidForWorkPkcsCertificateProfile and sets the default values. +// NewAndroidForWorkPkcsCertificateProfile instantiates a new androidForWorkPkcsCertificateProfile and sets the default values. func NewAndroidForWorkPkcsCertificateProfile()(*AndroidForWorkPkcsCertificateProfile) { m := &AndroidForWorkPkcsCertificateProfile{ AndroidForWorkCertificateProfileBase: *NewAndroidForWorkCertificateProfileBase(), diff --git a/models/android_for_work_scep_certificate_profile.go b/models/android_for_work_scep_certificate_profile.go index 8d314445031..ca3b1d6a4e6 100644 --- a/models/android_for_work_scep_certificate_profile.go +++ b/models/android_for_work_scep_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkScepCertificateProfile +// AndroidForWorkScepCertificateProfile android For Work SCEP certificate profile type AndroidForWorkScepCertificateProfile struct { AndroidForWorkCertificateProfileBase } -// NewAndroidForWorkScepCertificateProfile instantiates a new AndroidForWorkScepCertificateProfile and sets the default values. +// NewAndroidForWorkScepCertificateProfile instantiates a new androidForWorkScepCertificateProfile and sets the default values. func NewAndroidForWorkScepCertificateProfile()(*AndroidForWorkScepCertificateProfile) { m := &AndroidForWorkScepCertificateProfile{ AndroidForWorkCertificateProfileBase: *NewAndroidForWorkCertificateProfileBase(), diff --git a/models/android_for_work_settings.go b/models/android_for_work_settings.go index a0649c0d1f1..baea316a37b 100644 --- a/models/android_for_work_settings.go +++ b/models/android_for_work_settings.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkSettings +// AndroidForWorkSettings settings for Android For Work. type AndroidForWorkSettings struct { Entity + // The OdataType property + OdataType *string } // NewAndroidForWorkSettings instantiates a new androidForWorkSettings and sets the default values. func NewAndroidForWorkSettings()(*AndroidForWorkSettings) { diff --git a/models/android_for_work_trusted_root_certificate.go b/models/android_for_work_trusted_root_certificate.go index c317de66188..fd0499b31ed 100644 --- a/models/android_for_work_trusted_root_certificate.go +++ b/models/android_for_work_trusted_root_certificate.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkTrustedRootCertificate +// AndroidForWorkTrustedRootCertificate android For Work Trusted Root Certificate configuration profile type AndroidForWorkTrustedRootCertificate struct { DeviceConfiguration } diff --git a/models/android_for_work_vpn_configuration.go b/models/android_for_work_vpn_configuration.go index cb4abd98e19..85422115ea5 100644 --- a/models/android_for_work_vpn_configuration.go +++ b/models/android_for_work_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkVpnConfiguration +// AndroidForWorkVpnConfiguration by providing the configurations in this profile you can instruct the Android device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. type AndroidForWorkVpnConfiguration struct { DeviceConfiguration } -// NewAndroidForWorkVpnConfiguration instantiates a new AndroidForWorkVpnConfiguration and sets the default values. +// NewAndroidForWorkVpnConfiguration instantiates a new androidForWorkVpnConfiguration and sets the default values. func NewAndroidForWorkVpnConfiguration()(*AndroidForWorkVpnConfiguration) { m := &AndroidForWorkVpnConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_for_work_wi_fi_configuration.go b/models/android_for_work_wi_fi_configuration.go index 60a3aa05ede..32d63d41dac 100644 --- a/models/android_for_work_wi_fi_configuration.go +++ b/models/android_for_work_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidForWorkWiFiConfiguration +// AndroidForWorkWiFiConfiguration by providing the configurations in this profile you can instruct the Android for Work device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile. type AndroidForWorkWiFiConfiguration struct { DeviceConfiguration } -// NewAndroidForWorkWiFiConfiguration instantiates a new AndroidForWorkWiFiConfiguration and sets the default values. +// NewAndroidForWorkWiFiConfiguration instantiates a new androidForWorkWiFiConfiguration and sets the default values. func NewAndroidForWorkWiFiConfiguration()(*AndroidForWorkWiFiConfiguration) { m := &AndroidForWorkWiFiConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_fota_deployment_assignment_target.go b/models/android_fota_deployment_assignment_target.go index ce4784ddf21..f8195931d28 100644 --- a/models/android_fota_deployment_assignment_target.go +++ b/models/android_fota_deployment_assignment_target.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidFotaDeploymentAssignmentTarget +// AndroidFotaDeploymentAssignmentTarget the AAD Group we are deploying firmware updates to type AndroidFotaDeploymentAssignmentTarget struct { DeviceAndAppManagementAssignmentTarget } -// NewAndroidFotaDeploymentAssignmentTarget instantiates a new AndroidFotaDeploymentAssignmentTarget and sets the default values. +// NewAndroidFotaDeploymentAssignmentTarget instantiates a new androidFotaDeploymentAssignmentTarget and sets the default values. func NewAndroidFotaDeploymentAssignmentTarget()(*AndroidFotaDeploymentAssignmentTarget) { m := &AndroidFotaDeploymentAssignmentTarget{ DeviceAndAppManagementAssignmentTarget: *NewDeviceAndAppManagementAssignmentTarget(), @@ -34,6 +34,16 @@ func (m *AndroidFotaDeploymentAssignmentTarget) GetFieldDeserializers()(map[stri } 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 } // GetGroupId gets the groupId property value. AAD Group Id. @@ -47,6 +57,17 @@ func (m *AndroidFotaDeploymentAssignmentTarget) GetGroupId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AndroidFotaDeploymentAssignmentTarget) 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 *AndroidFotaDeploymentAssignmentTarget) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceAndAppManagementAssignmentTarget.Serialize(writer) @@ -59,6 +80,12 @@ func (m *AndroidFotaDeploymentAssignmentTarget) Serialize(writer i878a80d2330e89 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetGroupId sets the groupId property value. AAD Group Id. @@ -68,10 +95,19 @@ func (m *AndroidFotaDeploymentAssignmentTarget) SetGroupId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AndroidFotaDeploymentAssignmentTarget) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AndroidFotaDeploymentAssignmentTargetable type AndroidFotaDeploymentAssignmentTargetable interface { DeviceAndAppManagementAssignmentTargetable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetGroupId()(*string) + GetOdataType()(*string) SetGroupId(value *string)() + SetOdataType(value *string)() } diff --git a/models/android_general_device_configuration.go b/models/android_general_device_configuration.go index 6c08dc26fe3..2cd0f91a588 100644 --- a/models/android_general_device_configuration.go +++ b/models/android_general_device_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidGeneralDeviceConfiguration +// AndroidGeneralDeviceConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the androidGeneralDeviceConfiguration resource. type AndroidGeneralDeviceConfiguration struct { DeviceConfiguration } -// NewAndroidGeneralDeviceConfiguration instantiates a new AndroidGeneralDeviceConfiguration and sets the default values. +// NewAndroidGeneralDeviceConfiguration instantiates a new androidGeneralDeviceConfiguration and sets the default values. func NewAndroidGeneralDeviceConfiguration()(*AndroidGeneralDeviceConfiguration) { m := &AndroidGeneralDeviceConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_imported_p_f_x_certificate_profile.go b/models/android_imported_p_f_x_certificate_profile.go index 85cd0c5596b..e1fb9bc7013 100644 --- a/models/android_imported_p_f_x_certificate_profile.go +++ b/models/android_imported_p_f_x_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidImportedPFXCertificateProfile +// AndroidImportedPFXCertificateProfile android PFX Import certificate profile type AndroidImportedPFXCertificateProfile struct { AndroidCertificateProfileBase } -// NewAndroidImportedPFXCertificateProfile instantiates a new AndroidImportedPFXCertificateProfile and sets the default values. +// NewAndroidImportedPFXCertificateProfile instantiates a new androidImportedPFXCertificateProfile and sets the default values. func NewAndroidImportedPFXCertificateProfile()(*AndroidImportedPFXCertificateProfile) { m := &AndroidImportedPFXCertificateProfile{ AndroidCertificateProfileBase: *NewAndroidCertificateProfileBase(), diff --git a/models/android_lob_app.go b/models/android_lob_app.go index c555fc079bb..54aa54b3ef1 100644 --- a/models/android_lob_app.go +++ b/models/android_lob_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidLobApp +// AndroidLobApp contains properties and inherited properties for Android Line Of Business apps. type AndroidLobApp struct { MobileLobApp } -// NewAndroidLobApp instantiates a new AndroidLobApp and sets the default values. +// NewAndroidLobApp instantiates a new androidLobApp and sets the default values. func NewAndroidLobApp()(*AndroidLobApp) { m := &AndroidLobApp{ MobileLobApp: *NewMobileLobApp(), diff --git a/models/android_managed_app_protection.go b/models/android_managed_app_protection.go index d5b5a69a6d6..9d2baf5e5fa 100644 --- a/models/android_managed_app_protection.go +++ b/models/android_managed_app_protection.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidManagedAppProtection +// AndroidManagedAppProtection policy used to configure detailed management settings targeted to specific security groups and for a specified set of apps on an Android device type AndroidManagedAppProtection struct { TargetedManagedAppProtection } -// NewAndroidManagedAppProtection instantiates a new AndroidManagedAppProtection and sets the default values. +// NewAndroidManagedAppProtection instantiates a new androidManagedAppProtection and sets the default values. func NewAndroidManagedAppProtection()(*AndroidManagedAppProtection) { m := &AndroidManagedAppProtection{ TargetedManagedAppProtection: *NewTargetedManagedAppProtection(), diff --git a/models/android_managed_app_protection_collection_response.go b/models/android_managed_app_protection_collection_response.go index 8cc70a691db..c87b267cbb0 100644 --- a/models/android_managed_app_protection_collection_response.go +++ b/models/android_managed_app_protection_collection_response.go @@ -8,7 +8,7 @@ import ( type AndroidManagedAppProtectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAndroidManagedAppProtectionCollectionResponse instantiates a new AndroidManagedAppProtectionCollectionResponse and sets the default values. +// NewAndroidManagedAppProtectionCollectionResponse instantiates a new androidManagedAppProtectionCollectionResponse and sets the default values. func NewAndroidManagedAppProtectionCollectionResponse()(*AndroidManagedAppProtectionCollectionResponse) { m := &AndroidManagedAppProtectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/android_managed_app_registration.go b/models/android_managed_app_registration.go index 2ecfa902543..2470f5cdc6d 100644 --- a/models/android_managed_app_registration.go +++ b/models/android_managed_app_registration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidManagedAppRegistration +// AndroidManagedAppRegistration represents the synchronization details of an android app, with management capabilities, for a specific user. type AndroidManagedAppRegistration struct { ManagedAppRegistration } -// NewAndroidManagedAppRegistration instantiates a new AndroidManagedAppRegistration and sets the default values. +// NewAndroidManagedAppRegistration instantiates a new androidManagedAppRegistration and sets the default values. func NewAndroidManagedAppRegistration()(*AndroidManagedAppRegistration) { m := &AndroidManagedAppRegistration{ ManagedAppRegistration: *NewManagedAppRegistration(), diff --git a/models/android_managed_store_account_enterprise_settings.go b/models/android_managed_store_account_enterprise_settings.go index 0d27a538ea8..1be32238f12 100644 --- a/models/android_managed_store_account_enterprise_settings.go +++ b/models/android_managed_store_account_enterprise_settings.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidManagedStoreAccountEnterpriseSettings +// AndroidManagedStoreAccountEnterpriseSettings enterprise settings for an Android managed store account. type AndroidManagedStoreAccountEnterpriseSettings struct { Entity + // The OdataType property + OdataType *string } // NewAndroidManagedStoreAccountEnterpriseSettings instantiates a new androidManagedStoreAccountEnterpriseSettings and sets the default values. func NewAndroidManagedStoreAccountEnterpriseSettings()(*AndroidManagedStoreAccountEnterpriseSettings) { diff --git a/models/android_managed_store_app.go b/models/android_managed_store_app.go index b38487c2bd2..5337438ffd1 100644 --- a/models/android_managed_store_app.go +++ b/models/android_managed_store_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidManagedStoreApp +// AndroidManagedStoreApp contains properties and inherited properties for Android Managed Store Apps. type AndroidManagedStoreApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewAndroidManagedStoreApp instantiates a new AndroidManagedStoreApp and sets the default values. +// NewAndroidManagedStoreApp instantiates a new androidManagedStoreApp and sets the default values. func NewAndroidManagedStoreApp()(*AndroidManagedStoreApp) { m := &AndroidManagedStoreApp{ MobileApp: *NewMobileApp(), diff --git a/models/android_managed_store_app_assignment_settings.go b/models/android_managed_store_app_assignment_settings.go index d83cc763ff3..c4cd8692424 100644 --- a/models/android_managed_store_app_assignment_settings.go +++ b/models/android_managed_store_app_assignment_settings.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidManagedStoreAppAssignmentSettings +// AndroidManagedStoreAppAssignmentSettings contains properties used to assign an Android Managed Store mobile app to a group. type AndroidManagedStoreAppAssignmentSettings struct { MobileAppAssignmentSettings } -// NewAndroidManagedStoreAppAssignmentSettings instantiates a new AndroidManagedStoreAppAssignmentSettings and sets the default values. +// NewAndroidManagedStoreAppAssignmentSettings instantiates a new androidManagedStoreAppAssignmentSettings and sets the default values. func NewAndroidManagedStoreAppAssignmentSettings()(*AndroidManagedStoreAppAssignmentSettings) { m := &AndroidManagedStoreAppAssignmentSettings{ MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), @@ -72,8 +72,29 @@ func (m *AndroidManagedStoreAppAssignmentSettings) GetFieldDeserializers()(map[s } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AndroidManagedStoreAppAssignmentSettings) 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 *AndroidManagedStoreAppAssignmentSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.MobileAppAssignmentSettings.Serialize(writer) @@ -93,6 +114,12 @@ func (m *AndroidManagedStoreAppAssignmentSettings) Serialize(writer i878a80d2330 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAndroidManagedStoreAppTrackIds sets the androidManagedStoreAppTrackIds property value. The track IDs to enable for this app assignment. @@ -109,12 +136,21 @@ func (m *AndroidManagedStoreAppAssignmentSettings) SetAutoUpdateMode(value *Andr panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AndroidManagedStoreAppAssignmentSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AndroidManagedStoreAppAssignmentSettingsable type AndroidManagedStoreAppAssignmentSettingsable interface { MobileAppAssignmentSettingsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAndroidManagedStoreAppTrackIds()([]string) GetAutoUpdateMode()(*AndroidManagedStoreAutoUpdateMode) + GetOdataType()(*string) SetAndroidManagedStoreAppTrackIds(value []string)() SetAutoUpdateMode(value *AndroidManagedStoreAutoUpdateMode)() + SetOdataType(value *string)() } diff --git a/models/android_managed_store_app_configuration.go b/models/android_managed_store_app_configuration.go index 4ea6e95f81e..dc7667698a7 100644 --- a/models/android_managed_store_app_configuration.go +++ b/models/android_managed_store_app_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidManagedStoreAppConfiguration +// AndroidManagedStoreAppConfiguration contains properties, inherited properties and actions for Android Enterprise mobile app configurations. type AndroidManagedStoreAppConfiguration struct { ManagedDeviceMobileAppConfiguration } -// NewAndroidManagedStoreAppConfiguration instantiates a new AndroidManagedStoreAppConfiguration and sets the default values. +// NewAndroidManagedStoreAppConfiguration instantiates a new androidManagedStoreAppConfiguration and sets the default values. func NewAndroidManagedStoreAppConfiguration()(*AndroidManagedStoreAppConfiguration) { m := &AndroidManagedStoreAppConfiguration{ ManagedDeviceMobileAppConfiguration: *NewManagedDeviceMobileAppConfiguration(), diff --git a/models/android_managed_store_app_configuration_schema.go b/models/android_managed_store_app_configuration_schema.go index 74e932a07a4..6a1e87a956d 100644 --- a/models/android_managed_store_app_configuration_schema.go +++ b/models/android_managed_store_app_configuration_schema.go @@ -59,6 +59,16 @@ func (m *AndroidManagedStoreAppConfigurationSchema) GetFieldDeserializers()(map[ } 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["schemaItems"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateAndroidManagedStoreAppConfigurationSchemaItemFromDiscriminatorValue) if err != nil { @@ -88,6 +98,17 @@ func (m *AndroidManagedStoreAppConfigurationSchema) GetNestedSchemaItems()([]And } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AndroidManagedStoreAppConfigurationSchema) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSchemaItems gets the schemaItems property value. Collection of items each representing a named configuration option in the schema. It only contains the root-level configuration. func (m *AndroidManagedStoreAppConfigurationSchema) GetSchemaItems()([]AndroidManagedStoreAppConfigurationSchemaItemable) { val, err := m.GetBackingStore().Get("schemaItems") @@ -123,6 +144,12 @@ func (m *AndroidManagedStoreAppConfigurationSchema) Serialize(writer i878a80d233 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetSchemaItems() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSchemaItems())) for i, v := range m.GetSchemaItems() { @@ -151,6 +178,13 @@ func (m *AndroidManagedStoreAppConfigurationSchema) SetNestedSchemaItems(value [ panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AndroidManagedStoreAppConfigurationSchema) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSchemaItems sets the schemaItems property value. Collection of items each representing a named configuration option in the schema. It only contains the root-level configuration. func (m *AndroidManagedStoreAppConfigurationSchema) SetSchemaItems(value []AndroidManagedStoreAppConfigurationSchemaItemable)() { err := m.GetBackingStore().Set("schemaItems", value) @@ -164,8 +198,10 @@ type AndroidManagedStoreAppConfigurationSchemaable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetExampleJson()([]byte) GetNestedSchemaItems()([]AndroidManagedStoreAppConfigurationSchemaItemable) + GetOdataType()(*string) GetSchemaItems()([]AndroidManagedStoreAppConfigurationSchemaItemable) SetExampleJson(value []byte)() SetNestedSchemaItems(value []AndroidManagedStoreAppConfigurationSchemaItemable)() + SetOdataType(value *string)() SetSchemaItems(value []AndroidManagedStoreAppConfigurationSchemaItemable)() } diff --git a/models/android_managed_store_app_configuration_schema_collection_response.go b/models/android_managed_store_app_configuration_schema_collection_response.go index b6a430a8114..f2df1a153af 100644 --- a/models/android_managed_store_app_configuration_schema_collection_response.go +++ b/models/android_managed_store_app_configuration_schema_collection_response.go @@ -8,7 +8,7 @@ import ( type AndroidManagedStoreAppConfigurationSchemaCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAndroidManagedStoreAppConfigurationSchemaCollectionResponse instantiates a new AndroidManagedStoreAppConfigurationSchemaCollectionResponse and sets the default values. +// NewAndroidManagedStoreAppConfigurationSchemaCollectionResponse instantiates a new androidManagedStoreAppConfigurationSchemaCollectionResponse and sets the default values. func NewAndroidManagedStoreAppConfigurationSchemaCollectionResponse()(*AndroidManagedStoreAppConfigurationSchemaCollectionResponse) { m := &AndroidManagedStoreAppConfigurationSchemaCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/android_managed_store_web_app.go b/models/android_managed_store_web_app.go index 4cc66c6fd18..8c0a36e2aa1 100644 --- a/models/android_managed_store_web_app.go +++ b/models/android_managed_store_web_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidManagedStoreWebApp +// AndroidManagedStoreWebApp contains properties and inherited properties for web apps configured to be distributed via the managed Android app store. type AndroidManagedStoreWebApp struct { AndroidManagedStoreApp } -// NewAndroidManagedStoreWebApp instantiates a new AndroidManagedStoreWebApp and sets the default values. +// NewAndroidManagedStoreWebApp instantiates a new androidManagedStoreWebApp and sets the default values. func NewAndroidManagedStoreWebApp()(*AndroidManagedStoreWebApp) { m := &AndroidManagedStoreWebApp{ AndroidManagedStoreApp: *NewAndroidManagedStoreApp(), diff --git a/models/android_mobile_app_identifier.go b/models/android_mobile_app_identifier.go index 254495528cb..7a73dfef2c8 100644 --- a/models/android_mobile_app_identifier.go +++ b/models/android_mobile_app_identifier.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidMobileAppIdentifier +// AndroidMobileAppIdentifier the identifier for an Android app. type AndroidMobileAppIdentifier struct { MobileAppIdentifier } -// NewAndroidMobileAppIdentifier instantiates a new AndroidMobileAppIdentifier and sets the default values. +// NewAndroidMobileAppIdentifier instantiates a new androidMobileAppIdentifier and sets the default values. func NewAndroidMobileAppIdentifier()(*AndroidMobileAppIdentifier) { m := &AndroidMobileAppIdentifier{ MobileAppIdentifier: *NewMobileAppIdentifier(), @@ -24,6 +24,16 @@ func CreateAndroidMobileAppIdentifierFromDiscriminatorValue(parseNode i878a80d23 // GetFieldDeserializers the deserialization information for the current model func (m *AndroidMobileAppIdentifier) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MobileAppIdentifier.GetFieldDeserializers() + 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["packageId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,6 +46,17 @@ func (m *AndroidMobileAppIdentifier) GetFieldDeserializers()(map[string]func(i87 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AndroidMobileAppIdentifier) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPackageId gets the packageId property value. The identifier for an app, as specified in the play store. func (m *AndroidMobileAppIdentifier) GetPackageId()(*string) { val, err := m.GetBackingStore().Get("packageId") @@ -53,6 +74,12 @@ func (m *AndroidMobileAppIdentifier) Serialize(writer i878a80d2330e89d26896388a3 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("packageId", m.GetPackageId()) if err != nil { @@ -61,6 +88,13 @@ func (m *AndroidMobileAppIdentifier) Serialize(writer i878a80d2330e89d26896388a3 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AndroidMobileAppIdentifier) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPackageId sets the packageId property value. The identifier for an app, as specified in the play store. func (m *AndroidMobileAppIdentifier) SetPackageId(value *string)() { err := m.GetBackingStore().Set("packageId", value) @@ -72,6 +106,8 @@ func (m *AndroidMobileAppIdentifier) SetPackageId(value *string)() { type AndroidMobileAppIdentifierable interface { MobileAppIdentifierable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetPackageId()(*string) + SetOdataType(value *string)() SetPackageId(value *string)() } diff --git a/models/android_oma_cp_configuration.go b/models/android_oma_cp_configuration.go index 11fdb4877d2..b31ffdafab4 100644 --- a/models/android_oma_cp_configuration.go +++ b/models/android_oma_cp_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidOmaCpConfiguration +// AndroidOmaCpConfiguration by providing a configuration in this profile you can configure Android devices that support OMA-CP. type AndroidOmaCpConfiguration struct { DeviceConfiguration } -// NewAndroidOmaCpConfiguration instantiates a new AndroidOmaCpConfiguration and sets the default values. +// NewAndroidOmaCpConfiguration instantiates a new androidOmaCpConfiguration and sets the default values. func NewAndroidOmaCpConfiguration()(*AndroidOmaCpConfiguration) { m := &AndroidOmaCpConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_pkcs_certificate_profile.go b/models/android_pkcs_certificate_profile.go index d8ea2ea1034..94c7443e9a9 100644 --- a/models/android_pkcs_certificate_profile.go +++ b/models/android_pkcs_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidPkcsCertificateProfile +// AndroidPkcsCertificateProfile android PKCS certificate profile type AndroidPkcsCertificateProfile struct { AndroidCertificateProfileBase } -// NewAndroidPkcsCertificateProfile instantiates a new AndroidPkcsCertificateProfile and sets the default values. +// NewAndroidPkcsCertificateProfile instantiates a new androidPkcsCertificateProfile and sets the default values. func NewAndroidPkcsCertificateProfile()(*AndroidPkcsCertificateProfile) { m := &AndroidPkcsCertificateProfile{ AndroidCertificateProfileBase: *NewAndroidCertificateProfileBase(), diff --git a/models/android_scep_certificate_profile.go b/models/android_scep_certificate_profile.go index 030bd86cc98..a9418906427 100644 --- a/models/android_scep_certificate_profile.go +++ b/models/android_scep_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidScepCertificateProfile +// AndroidScepCertificateProfile android SCEP certificate profile type AndroidScepCertificateProfile struct { AndroidCertificateProfileBase } -// NewAndroidScepCertificateProfile instantiates a new AndroidScepCertificateProfile and sets the default values. +// NewAndroidScepCertificateProfile instantiates a new androidScepCertificateProfile and sets the default values. func NewAndroidScepCertificateProfile()(*AndroidScepCertificateProfile) { m := &AndroidScepCertificateProfile{ AndroidCertificateProfileBase: *NewAndroidCertificateProfileBase(), diff --git a/models/android_store_app.go b/models/android_store_app.go index 5a75b5d1819..49c674dfc54 100644 --- a/models/android_store_app.go +++ b/models/android_store_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidStoreApp +// AndroidStoreApp contains properties and inherited properties for Android store apps. type AndroidStoreApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewAndroidStoreApp instantiates a new AndroidStoreApp and sets the default values. +// NewAndroidStoreApp instantiates a new androidStoreApp and sets the default values. func NewAndroidStoreApp()(*AndroidStoreApp) { m := &AndroidStoreApp{ MobileApp: *NewMobileApp(), diff --git a/models/android_trusted_root_certificate.go b/models/android_trusted_root_certificate.go index 9ba393aae93..e1a626c9ad1 100644 --- a/models/android_trusted_root_certificate.go +++ b/models/android_trusted_root_certificate.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidTrustedRootCertificate +// AndroidTrustedRootCertificate android Trusted Root Certificate configuration profile type AndroidTrustedRootCertificate struct { DeviceConfiguration } diff --git a/models/android_vpn_configuration.go b/models/android_vpn_configuration.go index 64d4eb0234e..451d6f2de62 100644 --- a/models/android_vpn_configuration.go +++ b/models/android_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidVpnConfiguration +// AndroidVpnConfiguration by providing the configurations in this profile you can instruct the Android device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. type AndroidVpnConfiguration struct { DeviceConfiguration } -// NewAndroidVpnConfiguration instantiates a new AndroidVpnConfiguration and sets the default values. +// NewAndroidVpnConfiguration instantiates a new androidVpnConfiguration and sets the default values. func NewAndroidVpnConfiguration()(*AndroidVpnConfiguration) { m := &AndroidVpnConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_wi_fi_configuration.go b/models/android_wi_fi_configuration.go index b531d728de8..7bfed6cf1bc 100644 --- a/models/android_wi_fi_configuration.go +++ b/models/android_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWiFiConfiguration +// AndroidWiFiConfiguration by providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile. type AndroidWiFiConfiguration struct { DeviceConfiguration } -// NewAndroidWiFiConfiguration instantiates a new AndroidWiFiConfiguration and sets the default values. +// NewAndroidWiFiConfiguration instantiates a new androidWiFiConfiguration and sets the default values. func NewAndroidWiFiConfiguration()(*AndroidWiFiConfiguration) { m := &AndroidWiFiConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_work_profile_certificate_profile_base.go b/models/android_work_profile_certificate_profile_base.go index c7b542ad65f..dd12085d654 100644 --- a/models/android_work_profile_certificate_profile_base.go +++ b/models/android_work_profile_certificate_profile_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileCertificateProfileBase +// AndroidWorkProfileCertificateProfileBase android Work Profile certificate profile base. type AndroidWorkProfileCertificateProfileBase struct { DeviceConfiguration } -// NewAndroidWorkProfileCertificateProfileBase instantiates a new AndroidWorkProfileCertificateProfileBase and sets the default values. +// NewAndroidWorkProfileCertificateProfileBase instantiates a new androidWorkProfileCertificateProfileBase and sets the default values. func NewAndroidWorkProfileCertificateProfileBase()(*AndroidWorkProfileCertificateProfileBase) { m := &AndroidWorkProfileCertificateProfileBase{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_work_profile_compliance_policy.go b/models/android_work_profile_compliance_policy.go index 39f1dc3d7f1..e2fa57eb604 100644 --- a/models/android_work_profile_compliance_policy.go +++ b/models/android_work_profile_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileCompliancePolicy +// AndroidWorkProfileCompliancePolicy this class contains compliance settings for Android Work Profile. type AndroidWorkProfileCompliancePolicy struct { DeviceCompliancePolicy } -// NewAndroidWorkProfileCompliancePolicy instantiates a new AndroidWorkProfileCompliancePolicy and sets the default values. +// NewAndroidWorkProfileCompliancePolicy instantiates a new androidWorkProfileCompliancePolicy and sets the default values. func NewAndroidWorkProfileCompliancePolicy()(*AndroidWorkProfileCompliancePolicy) { m := &AndroidWorkProfileCompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/android_work_profile_custom_configuration.go b/models/android_work_profile_custom_configuration.go index 997f21b7f06..922fd6efd62 100644 --- a/models/android_work_profile_custom_configuration.go +++ b/models/android_work_profile_custom_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileCustomConfiguration +// AndroidWorkProfileCustomConfiguration android Work Profile custom configuration type AndroidWorkProfileCustomConfiguration struct { DeviceConfiguration } -// NewAndroidWorkProfileCustomConfiguration instantiates a new AndroidWorkProfileCustomConfiguration and sets the default values. +// NewAndroidWorkProfileCustomConfiguration instantiates a new androidWorkProfileCustomConfiguration and sets the default values. func NewAndroidWorkProfileCustomConfiguration()(*AndroidWorkProfileCustomConfiguration) { m := &AndroidWorkProfileCustomConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_work_profile_eas_email_profile_base.go b/models/android_work_profile_eas_email_profile_base.go index e59eba1ebcc..6e9a662211c 100644 --- a/models/android_work_profile_eas_email_profile_base.go +++ b/models/android_work_profile_eas_email_profile_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileEasEmailProfileBase +// AndroidWorkProfileEasEmailProfileBase base for Android Work Profile EAS Email profiles type AndroidWorkProfileEasEmailProfileBase struct { DeviceConfiguration } -// NewAndroidWorkProfileEasEmailProfileBase instantiates a new AndroidWorkProfileEasEmailProfileBase and sets the default values. +// NewAndroidWorkProfileEasEmailProfileBase instantiates a new androidWorkProfileEasEmailProfileBase and sets the default values. func NewAndroidWorkProfileEasEmailProfileBase()(*AndroidWorkProfileEasEmailProfileBase) { m := &AndroidWorkProfileEasEmailProfileBase{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_work_profile_enterprise_wi_fi_configuration.go b/models/android_work_profile_enterprise_wi_fi_configuration.go index 3bbb467af88..50649da9e4e 100644 --- a/models/android_work_profile_enterprise_wi_fi_configuration.go +++ b/models/android_work_profile_enterprise_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileEnterpriseWiFiConfiguration +// AndroidWorkProfileEnterpriseWiFiConfiguration by providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. type AndroidWorkProfileEnterpriseWiFiConfiguration struct { AndroidWorkProfileWiFiConfiguration } -// NewAndroidWorkProfileEnterpriseWiFiConfiguration instantiates a new AndroidWorkProfileEnterpriseWiFiConfiguration and sets the default values. +// NewAndroidWorkProfileEnterpriseWiFiConfiguration instantiates a new androidWorkProfileEnterpriseWiFiConfiguration and sets the default values. func NewAndroidWorkProfileEnterpriseWiFiConfiguration()(*AndroidWorkProfileEnterpriseWiFiConfiguration) { m := &AndroidWorkProfileEnterpriseWiFiConfiguration{ AndroidWorkProfileWiFiConfiguration: *NewAndroidWorkProfileWiFiConfiguration(), diff --git a/models/android_work_profile_general_device_configuration.go b/models/android_work_profile_general_device_configuration.go index 2d5361e6d7a..28852e3eae6 100644 --- a/models/android_work_profile_general_device_configuration.go +++ b/models/android_work_profile_general_device_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileGeneralDeviceConfiguration +// AndroidWorkProfileGeneralDeviceConfiguration android Work Profile general device configuration. type AndroidWorkProfileGeneralDeviceConfiguration struct { DeviceConfiguration } -// NewAndroidWorkProfileGeneralDeviceConfiguration instantiates a new AndroidWorkProfileGeneralDeviceConfiguration and sets the default values. +// NewAndroidWorkProfileGeneralDeviceConfiguration instantiates a new androidWorkProfileGeneralDeviceConfiguration and sets the default values. func NewAndroidWorkProfileGeneralDeviceConfiguration()(*AndroidWorkProfileGeneralDeviceConfiguration) { m := &AndroidWorkProfileGeneralDeviceConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_work_profile_gmail_eas_configuration.go b/models/android_work_profile_gmail_eas_configuration.go index a3918539f23..663cc2e8bf5 100644 --- a/models/android_work_profile_gmail_eas_configuration.go +++ b/models/android_work_profile_gmail_eas_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileGmailEasConfiguration +// AndroidWorkProfileGmailEasConfiguration by providing configurations in this profile you can instruct the Gmail email client on Android Work Profile devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. type AndroidWorkProfileGmailEasConfiguration struct { AndroidWorkProfileEasEmailProfileBase } -// NewAndroidWorkProfileGmailEasConfiguration instantiates a new AndroidWorkProfileGmailEasConfiguration and sets the default values. +// NewAndroidWorkProfileGmailEasConfiguration instantiates a new androidWorkProfileGmailEasConfiguration and sets the default values. func NewAndroidWorkProfileGmailEasConfiguration()(*AndroidWorkProfileGmailEasConfiguration) { m := &AndroidWorkProfileGmailEasConfiguration{ AndroidWorkProfileEasEmailProfileBase: *NewAndroidWorkProfileEasEmailProfileBase(), diff --git a/models/android_work_profile_nine_work_eas_configuration.go b/models/android_work_profile_nine_work_eas_configuration.go index 9bc58243016..82cee3d044a 100644 --- a/models/android_work_profile_nine_work_eas_configuration.go +++ b/models/android_work_profile_nine_work_eas_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileNineWorkEasConfiguration +// AndroidWorkProfileNineWorkEasConfiguration by providing configurations in this profile you can instruct the Nine Work email client on Android Work Profile devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. type AndroidWorkProfileNineWorkEasConfiguration struct { AndroidWorkProfileEasEmailProfileBase } -// NewAndroidWorkProfileNineWorkEasConfiguration instantiates a new AndroidWorkProfileNineWorkEasConfiguration and sets the default values. +// NewAndroidWorkProfileNineWorkEasConfiguration instantiates a new androidWorkProfileNineWorkEasConfiguration and sets the default values. func NewAndroidWorkProfileNineWorkEasConfiguration()(*AndroidWorkProfileNineWorkEasConfiguration) { m := &AndroidWorkProfileNineWorkEasConfiguration{ AndroidWorkProfileEasEmailProfileBase: *NewAndroidWorkProfileEasEmailProfileBase(), diff --git a/models/android_work_profile_pkcs_certificate_profile.go b/models/android_work_profile_pkcs_certificate_profile.go index 831abd4967e..77ebcb614c6 100644 --- a/models/android_work_profile_pkcs_certificate_profile.go +++ b/models/android_work_profile_pkcs_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfilePkcsCertificateProfile +// AndroidWorkProfilePkcsCertificateProfile android Work Profile PKCS certificate profile type AndroidWorkProfilePkcsCertificateProfile struct { AndroidWorkProfileCertificateProfileBase } -// NewAndroidWorkProfilePkcsCertificateProfile instantiates a new AndroidWorkProfilePkcsCertificateProfile and sets the default values. +// NewAndroidWorkProfilePkcsCertificateProfile instantiates a new androidWorkProfilePkcsCertificateProfile and sets the default values. func NewAndroidWorkProfilePkcsCertificateProfile()(*AndroidWorkProfilePkcsCertificateProfile) { m := &AndroidWorkProfilePkcsCertificateProfile{ AndroidWorkProfileCertificateProfileBase: *NewAndroidWorkProfileCertificateProfileBase(), diff --git a/models/android_work_profile_scep_certificate_profile.go b/models/android_work_profile_scep_certificate_profile.go index 57061587565..ab470526100 100644 --- a/models/android_work_profile_scep_certificate_profile.go +++ b/models/android_work_profile_scep_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileScepCertificateProfile +// AndroidWorkProfileScepCertificateProfile android Work Profile SCEP certificate profile type AndroidWorkProfileScepCertificateProfile struct { AndroidWorkProfileCertificateProfileBase } -// NewAndroidWorkProfileScepCertificateProfile instantiates a new AndroidWorkProfileScepCertificateProfile and sets the default values. +// NewAndroidWorkProfileScepCertificateProfile instantiates a new androidWorkProfileScepCertificateProfile and sets the default values. func NewAndroidWorkProfileScepCertificateProfile()(*AndroidWorkProfileScepCertificateProfile) { m := &AndroidWorkProfileScepCertificateProfile{ AndroidWorkProfileCertificateProfileBase: *NewAndroidWorkProfileCertificateProfileBase(), diff --git a/models/android_work_profile_trusted_root_certificate.go b/models/android_work_profile_trusted_root_certificate.go index be80371dcb5..6a30808e2e1 100644 --- a/models/android_work_profile_trusted_root_certificate.go +++ b/models/android_work_profile_trusted_root_certificate.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileTrustedRootCertificate +// AndroidWorkProfileTrustedRootCertificate android Work Profile Trusted Root Certificate configuration profile type AndroidWorkProfileTrustedRootCertificate struct { DeviceConfiguration } diff --git a/models/android_work_profile_vpn_configuration.go b/models/android_work_profile_vpn_configuration.go index 47658fcca6d..9155fee2f53 100644 --- a/models/android_work_profile_vpn_configuration.go +++ b/models/android_work_profile_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileVpnConfiguration +// AndroidWorkProfileVpnConfiguration by providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. type AndroidWorkProfileVpnConfiguration struct { DeviceConfiguration } -// NewAndroidWorkProfileVpnConfiguration instantiates a new AndroidWorkProfileVpnConfiguration and sets the default values. +// NewAndroidWorkProfileVpnConfiguration instantiates a new androidWorkProfileVpnConfiguration and sets the default values. func NewAndroidWorkProfileVpnConfiguration()(*AndroidWorkProfileVpnConfiguration) { m := &AndroidWorkProfileVpnConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/android_work_profile_wi_fi_configuration.go b/models/android_work_profile_wi_fi_configuration.go index 8bdc0f7b945..6add9cbe8a3 100644 --- a/models/android_work_profile_wi_fi_configuration.go +++ b/models/android_work_profile_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AndroidWorkProfileWiFiConfiguration +// AndroidWorkProfileWiFiConfiguration by providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile. type AndroidWorkProfileWiFiConfiguration struct { DeviceConfiguration } -// NewAndroidWorkProfileWiFiConfiguration instantiates a new AndroidWorkProfileWiFiConfiguration and sets the default values. +// NewAndroidWorkProfileWiFiConfiguration instantiates a new androidWorkProfileWiFiConfiguration and sets the default values. func NewAndroidWorkProfileWiFiConfiguration()(*AndroidWorkProfileWiFiConfiguration) { m := &AndroidWorkProfileWiFiConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/anonymous_guest_conversation_member.go b/models/anonymous_guest_conversation_member.go index 540376010c5..6bf07ff63a0 100644 --- a/models/anonymous_guest_conversation_member.go +++ b/models/anonymous_guest_conversation_member.go @@ -8,7 +8,7 @@ import ( type AnonymousGuestConversationMember struct { ConversationMember } -// NewAnonymousGuestConversationMember instantiates a new AnonymousGuestConversationMember and sets the default values. +// NewAnonymousGuestConversationMember instantiates a new anonymousGuestConversationMember and sets the default values. func NewAnonymousGuestConversationMember()(*AnonymousGuestConversationMember) { m := &AnonymousGuestConversationMember{ ConversationMember: *NewConversationMember(), diff --git a/models/aosp_device_owner_certificate_profile_base.go b/models/aosp_device_owner_certificate_profile_base.go index 829616477a0..699c93b4c01 100644 --- a/models/aosp_device_owner_certificate_profile_base.go +++ b/models/aosp_device_owner_certificate_profile_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AospDeviceOwnerCertificateProfileBase +// AospDeviceOwnerCertificateProfileBase aOSP Device Owner certificate profile base. type AospDeviceOwnerCertificateProfileBase struct { DeviceConfiguration } -// NewAospDeviceOwnerCertificateProfileBase instantiates a new AospDeviceOwnerCertificateProfileBase and sets the default values. +// NewAospDeviceOwnerCertificateProfileBase instantiates a new aospDeviceOwnerCertificateProfileBase and sets the default values. func NewAospDeviceOwnerCertificateProfileBase()(*AospDeviceOwnerCertificateProfileBase) { m := &AospDeviceOwnerCertificateProfileBase{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/aosp_device_owner_compliance_policy.go b/models/aosp_device_owner_compliance_policy.go index 0cfbb57f0ab..c73215e4cf6 100644 --- a/models/aosp_device_owner_compliance_policy.go +++ b/models/aosp_device_owner_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AospDeviceOwnerCompliancePolicy +// AospDeviceOwnerCompliancePolicy this topic provides descriptions of the declared methods, properties and relationships exposed by the AndroidDeviceOwnerAOSPCompliancePolicy resource. type AospDeviceOwnerCompliancePolicy struct { DeviceCompliancePolicy } -// NewAospDeviceOwnerCompliancePolicy instantiates a new AospDeviceOwnerCompliancePolicy and sets the default values. +// NewAospDeviceOwnerCompliancePolicy instantiates a new aospDeviceOwnerCompliancePolicy and sets the default values. func NewAospDeviceOwnerCompliancePolicy()(*AospDeviceOwnerCompliancePolicy) { m := &AospDeviceOwnerCompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/aosp_device_owner_device_configuration.go b/models/aosp_device_owner_device_configuration.go index 3957e6739ba..452a6b4959f 100644 --- a/models/aosp_device_owner_device_configuration.go +++ b/models/aosp_device_owner_device_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AospDeviceOwnerDeviceConfiguration +// AospDeviceOwnerDeviceConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the AndroidDeviceOwnerAOSPDeviceConfiguration resource. type AospDeviceOwnerDeviceConfiguration struct { DeviceConfiguration } -// NewAospDeviceOwnerDeviceConfiguration instantiates a new AospDeviceOwnerDeviceConfiguration and sets the default values. +// NewAospDeviceOwnerDeviceConfiguration instantiates a new aospDeviceOwnerDeviceConfiguration and sets the default values. func NewAospDeviceOwnerDeviceConfiguration()(*AospDeviceOwnerDeviceConfiguration) { m := &AospDeviceOwnerDeviceConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/aosp_device_owner_enterprise_wi_fi_configuration.go b/models/aosp_device_owner_enterprise_wi_fi_configuration.go index c0892aa0394..6c60759c2b9 100644 --- a/models/aosp_device_owner_enterprise_wi_fi_configuration.go +++ b/models/aosp_device_owner_enterprise_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AospDeviceOwnerEnterpriseWiFiConfiguration +// AospDeviceOwnerEnterpriseWiFiConfiguration by providing the configurations in this profile you can instruct the AOSP Device Owner device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. type AospDeviceOwnerEnterpriseWiFiConfiguration struct { AospDeviceOwnerWiFiConfiguration } -// NewAospDeviceOwnerEnterpriseWiFiConfiguration instantiates a new AospDeviceOwnerEnterpriseWiFiConfiguration and sets the default values. +// NewAospDeviceOwnerEnterpriseWiFiConfiguration instantiates a new aospDeviceOwnerEnterpriseWiFiConfiguration and sets the default values. func NewAospDeviceOwnerEnterpriseWiFiConfiguration()(*AospDeviceOwnerEnterpriseWiFiConfiguration) { m := &AospDeviceOwnerEnterpriseWiFiConfiguration{ AospDeviceOwnerWiFiConfiguration: *NewAospDeviceOwnerWiFiConfiguration(), diff --git a/models/aosp_device_owner_pkcs_certificate_profile.go b/models/aosp_device_owner_pkcs_certificate_profile.go index a459954c2ea..626f2642ea0 100644 --- a/models/aosp_device_owner_pkcs_certificate_profile.go +++ b/models/aosp_device_owner_pkcs_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AospDeviceOwnerPkcsCertificateProfile +// AospDeviceOwnerPkcsCertificateProfile aOSP Device Owner PKCS certificate profile type AospDeviceOwnerPkcsCertificateProfile struct { AospDeviceOwnerCertificateProfileBase } -// NewAospDeviceOwnerPkcsCertificateProfile instantiates a new AospDeviceOwnerPkcsCertificateProfile and sets the default values. +// NewAospDeviceOwnerPkcsCertificateProfile instantiates a new aospDeviceOwnerPkcsCertificateProfile and sets the default values. func NewAospDeviceOwnerPkcsCertificateProfile()(*AospDeviceOwnerPkcsCertificateProfile) { m := &AospDeviceOwnerPkcsCertificateProfile{ AospDeviceOwnerCertificateProfileBase: *NewAospDeviceOwnerCertificateProfileBase(), diff --git a/models/aosp_device_owner_scep_certificate_profile.go b/models/aosp_device_owner_scep_certificate_profile.go index a47cbcfb27a..e9104e9c494 100644 --- a/models/aosp_device_owner_scep_certificate_profile.go +++ b/models/aosp_device_owner_scep_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AospDeviceOwnerScepCertificateProfile +// AospDeviceOwnerScepCertificateProfile aOSP Device Owner SCEP certificate profile type AospDeviceOwnerScepCertificateProfile struct { AospDeviceOwnerCertificateProfileBase } -// NewAospDeviceOwnerScepCertificateProfile instantiates a new AospDeviceOwnerScepCertificateProfile and sets the default values. +// NewAospDeviceOwnerScepCertificateProfile instantiates a new aospDeviceOwnerScepCertificateProfile and sets the default values. func NewAospDeviceOwnerScepCertificateProfile()(*AospDeviceOwnerScepCertificateProfile) { m := &AospDeviceOwnerScepCertificateProfile{ AospDeviceOwnerCertificateProfileBase: *NewAospDeviceOwnerCertificateProfileBase(), diff --git a/models/aosp_device_owner_trusted_root_certificate.go b/models/aosp_device_owner_trusted_root_certificate.go index c7f03bd75c8..730ed1c43fd 100644 --- a/models/aosp_device_owner_trusted_root_certificate.go +++ b/models/aosp_device_owner_trusted_root_certificate.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AospDeviceOwnerTrustedRootCertificate +// AospDeviceOwnerTrustedRootCertificate aOSP Device Owner Trusted Root Certificate configuration profile type AospDeviceOwnerTrustedRootCertificate struct { DeviceConfiguration } diff --git a/models/aosp_device_owner_wi_fi_configuration.go b/models/aosp_device_owner_wi_fi_configuration.go index 83f6a6d3e4c..cc7fc3ce61b 100644 --- a/models/aosp_device_owner_wi_fi_configuration.go +++ b/models/aosp_device_owner_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AospDeviceOwnerWiFiConfiguration +// AospDeviceOwnerWiFiConfiguration by providing the configurations in this profile you can instruct the AOSP device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile. type AospDeviceOwnerWiFiConfiguration struct { DeviceConfiguration } -// NewAospDeviceOwnerWiFiConfiguration instantiates a new AospDeviceOwnerWiFiConfiguration and sets the default values. +// NewAospDeviceOwnerWiFiConfiguration instantiates a new aospDeviceOwnerWiFiConfiguration and sets the default values. func NewAospDeviceOwnerWiFiConfiguration()(*AospDeviceOwnerWiFiConfiguration) { m := &AospDeviceOwnerWiFiConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/app_catalogs.go b/models/app_catalogs.go index 3708d1a959b..1b17164858d 100644 --- a/models/app_catalogs.go +++ b/models/app_catalogs.go @@ -10,7 +10,7 @@ type AppCatalogs struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAppCatalogs instantiates a new AppCatalogs and sets the default values. +// NewAppCatalogs instantiates a new appCatalogs and sets the default values. func NewAppCatalogs()(*AppCatalogs) { m := &AppCatalogs{ } diff --git a/models/app_consent_approval_route.go b/models/app_consent_approval_route.go index a2178dac37d..e48fd44efd6 100644 --- a/models/app_consent_approval_route.go +++ b/models/app_consent_approval_route.go @@ -7,8 +7,10 @@ import ( // AppConsentApprovalRoute type AppConsentApprovalRoute struct { Entity + // The OdataType property + OdataType *string } -// NewAppConsentApprovalRoute instantiates a new AppConsentApprovalRoute and sets the default values. +// NewAppConsentApprovalRoute instantiates a new appConsentApprovalRoute and sets the default values. func NewAppConsentApprovalRoute()(*AppConsentApprovalRoute) { m := &AppConsentApprovalRoute{ Entity: *NewEntity(), diff --git a/models/app_consent_request.go b/models/app_consent_request.go index bdbac806d1e..3d96be1bee8 100644 --- a/models/app_consent_request.go +++ b/models/app_consent_request.go @@ -7,6 +7,8 @@ import ( // AppConsentRequest type AppConsentRequest struct { Entity + // The OdataType property + OdataType *string } // NewAppConsentRequest instantiates a new appConsentRequest and sets the default values. func NewAppConsentRequest()(*AppConsentRequest) { diff --git a/models/app_consent_request_collection_response.go b/models/app_consent_request_collection_response.go index 793bab859b2..a181a19d5ae 100644 --- a/models/app_consent_request_collection_response.go +++ b/models/app_consent_request_collection_response.go @@ -8,7 +8,7 @@ import ( type AppConsentRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAppConsentRequestCollectionResponse instantiates a new AppConsentRequestCollectionResponse and sets the default values. +// NewAppConsentRequestCollectionResponse instantiates a new appConsentRequestCollectionResponse and sets the default values. func NewAppConsentRequestCollectionResponse()(*AppConsentRequestCollectionResponse) { m := &AppConsentRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/app_credential_sign_in_activity.go b/models/app_credential_sign_in_activity.go index 4a2b6c60457..262df282037 100644 --- a/models/app_credential_sign_in_activity.go +++ b/models/app_credential_sign_in_activity.go @@ -8,8 +8,10 @@ import ( // AppCredentialSignInActivity type AppCredentialSignInActivity struct { Entity + // The OdataType property + OdataType *string } -// NewAppCredentialSignInActivity instantiates a new AppCredentialSignInActivity and sets the default values. +// NewAppCredentialSignInActivity instantiates a new appCredentialSignInActivity and sets the default values. func NewAppCredentialSignInActivity()(*AppCredentialSignInActivity) { m := &AppCredentialSignInActivity{ Entity: *NewEntity(), diff --git a/models/app_credential_sign_in_activity_collection_response.go b/models/app_credential_sign_in_activity_collection_response.go index d5fcf79c5ed..9cda77ebf71 100644 --- a/models/app_credential_sign_in_activity_collection_response.go +++ b/models/app_credential_sign_in_activity_collection_response.go @@ -8,7 +8,7 @@ import ( type AppCredentialSignInActivityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAppCredentialSignInActivityCollectionResponse instantiates a new AppCredentialSignInActivityCollectionResponse and sets the default values. +// NewAppCredentialSignInActivityCollectionResponse instantiates a new appCredentialSignInActivityCollectionResponse and sets the default values. func NewAppCredentialSignInActivityCollectionResponse()(*AppCredentialSignInActivityCollectionResponse) { m := &AppCredentialSignInActivityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/app_hosted_media_config.go b/models/app_hosted_media_config.go index 4d8e3745703..c3dd2c227ee 100644 --- a/models/app_hosted_media_config.go +++ b/models/app_hosted_media_config.go @@ -8,7 +8,7 @@ import ( type AppHostedMediaConfig struct { MediaConfig } -// NewAppHostedMediaConfig instantiates a new AppHostedMediaConfig and sets the default values. +// NewAppHostedMediaConfig instantiates a new appHostedMediaConfig and sets the default values. func NewAppHostedMediaConfig()(*AppHostedMediaConfig) { m := &AppHostedMediaConfig{ MediaConfig: *NewMediaConfig(), @@ -45,8 +45,29 @@ func (m *AppHostedMediaConfig) GetFieldDeserializers()(map[string]func(i878a80d2 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AppHostedMediaConfig) 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 *AppHostedMediaConfig) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.MediaConfig.Serialize(writer) @@ -59,6 +80,12 @@ func (m *AppHostedMediaConfig) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetBlob sets the blob property value. The media configuration blob generated by smart media agent. @@ -68,10 +95,19 @@ func (m *AppHostedMediaConfig) SetBlob(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AppHostedMediaConfig) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AppHostedMediaConfigable type AppHostedMediaConfigable interface { MediaConfigable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBlob()(*string) + GetOdataType()(*string) SetBlob(value *string)() + SetOdataType(value *string)() } diff --git a/models/app_identity.go b/models/app_identity.go index e1a0fa0b0c6..1e40b5c09ce 100644 --- a/models/app_identity.go +++ b/models/app_identity.go @@ -10,7 +10,7 @@ type AppIdentity struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAppIdentity instantiates a new AppIdentity and sets the default values. +// NewAppIdentity instantiates a new appIdentity and sets the default values. func NewAppIdentity()(*AppIdentity) { m := &AppIdentity{ } diff --git a/models/app_log_collection_request.go b/models/app_log_collection_request.go index 2333ab254f7..b0256cece97 100644 --- a/models/app_log_collection_request.go +++ b/models/app_log_collection_request.go @@ -8,6 +8,8 @@ import ( // AppLogCollectionRequest entity for AppLogCollectionRequest contains all logs values. type AppLogCollectionRequest struct { Entity + // The OdataType property + OdataType *string } // NewAppLogCollectionRequest instantiates a new appLogCollectionRequest and sets the default values. func NewAppLogCollectionRequest()(*AppLogCollectionRequest) { diff --git a/models/app_log_collection_request_collection_response.go b/models/app_log_collection_request_collection_response.go index f058b3e4bd7..c3767c3ca9a 100644 --- a/models/app_log_collection_request_collection_response.go +++ b/models/app_log_collection_request_collection_response.go @@ -8,7 +8,7 @@ import ( type AppLogCollectionRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAppLogCollectionRequestCollectionResponse instantiates a new AppLogCollectionRequestCollectionResponse and sets the default values. +// NewAppLogCollectionRequestCollectionResponse instantiates a new appLogCollectionRequestCollectionResponse and sets the default values. func NewAppLogCollectionRequestCollectionResponse()(*AppLogCollectionRequestCollectionResponse) { m := &AppLogCollectionRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/app_management_policy.go b/models/app_management_policy.go index 42b240070e7..d1e6ec22119 100644 --- a/models/app_management_policy.go +++ b/models/app_management_policy.go @@ -8,7 +8,7 @@ import ( type AppManagementPolicy struct { PolicyBase } -// NewAppManagementPolicy instantiates a new AppManagementPolicy and sets the default values. +// NewAppManagementPolicy instantiates a new appManagementPolicy and sets the default values. func NewAppManagementPolicy()(*AppManagementPolicy) { m := &AppManagementPolicy{ PolicyBase: *NewPolicyBase(), diff --git a/models/app_management_policy_collection_response.go b/models/app_management_policy_collection_response.go index 2f7f7a8e5c7..3249d128141 100644 --- a/models/app_management_policy_collection_response.go +++ b/models/app_management_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type AppManagementPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAppManagementPolicyCollectionResponse instantiates a new AppManagementPolicyCollectionResponse and sets the default values. +// NewAppManagementPolicyCollectionResponse instantiates a new appManagementPolicyCollectionResponse and sets the default values. func NewAppManagementPolicyCollectionResponse()(*AppManagementPolicyCollectionResponse) { m := &AppManagementPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/app_role.go b/models/app_role.go index 15d6bf904cb..437c588a704 100644 --- a/models/app_role.go +++ b/models/app_role.go @@ -11,7 +11,7 @@ type AppRole struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAppRole instantiates a new AppRole and sets the default values. +// NewAppRole instantiates a new appRole and sets the default values. func NewAppRole()(*AppRole) { m := &AppRole{ } diff --git a/models/app_role_assignment.go b/models/app_role_assignment.go index 4f2243faefe..2a0b000523a 100644 --- a/models/app_role_assignment.go +++ b/models/app_role_assignment.go @@ -66,6 +66,16 @@ func (m *AppRoleAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330 } 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["principalDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -118,6 +128,17 @@ func (m *AppRoleAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AppRoleAssignment) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPrincipalDisplayName gets the principalDisplayName property value. The display name of the user, group, or service principal that was granted the app role assignment. Read-only. Supports $filter (eq and startswith). func (m *AppRoleAssignment) GetPrincipalDisplayName()(*string) { val, err := m.GetBackingStore().Get("principalDisplayName") @@ -191,6 +212,12 @@ func (m *AppRoleAssignment) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("principalDisplayName", m.GetPrincipalDisplayName()) if err != nil { @@ -237,6 +264,13 @@ func (m *AppRoleAssignment) SetCreationTimestamp(value *i336074805fc853987abe6f7 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AppRoleAssignment) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPrincipalDisplayName sets the principalDisplayName property value. The display name of the user, group, or service principal that was granted the app role assignment. Read-only. Supports $filter (eq and startswith). func (m *AppRoleAssignment) SetPrincipalDisplayName(value *string)() { err := m.GetBackingStore().Set("principalDisplayName", value) @@ -278,6 +312,7 @@ type AppRoleAssignmentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAppRoleId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) GetCreationTimestamp()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetPrincipalDisplayName()(*string) GetPrincipalId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) GetPrincipalType()(*string) @@ -285,6 +320,7 @@ type AppRoleAssignmentable interface { GetResourceId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) SetAppRoleId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() SetCreationTimestamp(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetPrincipalDisplayName(value *string)() SetPrincipalId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() SetPrincipalType(value *string)() diff --git a/models/app_role_assignment_collection_response.go b/models/app_role_assignment_collection_response.go index 3e30c293667..c555f55bb9e 100644 --- a/models/app_role_assignment_collection_response.go +++ b/models/app_role_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type AppRoleAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAppRoleAssignmentCollectionResponse instantiates a new AppRoleAssignmentCollectionResponse and sets the default values. +// NewAppRoleAssignmentCollectionResponse instantiates a new appRoleAssignmentCollectionResponse and sets the default values. func NewAppRoleAssignmentCollectionResponse()(*AppRoleAssignmentCollectionResponse) { m := &AppRoleAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/app_scope.go b/models/app_scope.go index 17b623a8bc4..338aaa22a73 100644 --- a/models/app_scope.go +++ b/models/app_scope.go @@ -7,6 +7,8 @@ import ( // AppScope type AppScope struct { Entity + // The OdataType property + OdataType *string } // NewAppScope instantiates a new appScope and sets the default values. func NewAppScope()(*AppScope) { diff --git a/models/app_scope_collection_response.go b/models/app_scope_collection_response.go index 6baa9f42be7..dd2b7bcbc93 100644 --- a/models/app_scope_collection_response.go +++ b/models/app_scope_collection_response.go @@ -8,7 +8,7 @@ import ( type AppScopeCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAppScopeCollectionResponse instantiates a new AppScopeCollectionResponse and sets the default values. +// NewAppScopeCollectionResponse instantiates a new appScopeCollectionResponse and sets the default values. func NewAppScopeCollectionResponse()(*AppScopeCollectionResponse) { m := &AppScopeCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/app_vulnerability_managed_device.go b/models/app_vulnerability_managed_device.go index 97cca15b85b..983a4731164 100644 --- a/models/app_vulnerability_managed_device.go +++ b/models/app_vulnerability_managed_device.go @@ -8,6 +8,8 @@ import ( // AppVulnerabilityManagedDevice an app vulnerability managed device. type AppVulnerabilityManagedDevice struct { Entity + // The OdataType property + OdataType *string } // NewAppVulnerabilityManagedDevice instantiates a new appVulnerabilityManagedDevice and sets the default values. func NewAppVulnerabilityManagedDevice()(*AppVulnerabilityManagedDevice) { diff --git a/models/app_vulnerability_mobile_app.go b/models/app_vulnerability_mobile_app.go index c2029cb7be1..c901174ee82 100644 --- a/models/app_vulnerability_mobile_app.go +++ b/models/app_vulnerability_mobile_app.go @@ -95,6 +95,16 @@ func (m *AppVulnerabilityMobileApp) GetFieldDeserializers()(map[string]func(i878 } 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["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -140,6 +150,17 @@ func (m *AppVulnerabilityMobileApp) GetMobileAppType()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AppVulnerabilityMobileApp) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetVersion gets the version property value. The app version. func (m *AppVulnerabilityMobileApp) GetVersion()(*string) { val, err := m.GetBackingStore().Get("version") @@ -187,6 +208,12 @@ func (m *AppVulnerabilityMobileApp) Serialize(writer i878a80d2330e89d26896388a3f return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("version", m.GetVersion()) if err != nil { @@ -230,6 +257,13 @@ func (m *AppVulnerabilityMobileApp) SetMobileAppType(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AppVulnerabilityMobileApp) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetVersion sets the version property value. The app version. func (m *AppVulnerabilityMobileApp) SetVersion(value *string)() { err := m.GetBackingStore().Set("version", value) @@ -246,11 +280,13 @@ type AppVulnerabilityMobileAppable interface { GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMobileAppId()(*string) GetMobileAppType()(*string) + GetOdataType()(*string) GetVersion()(*string) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMobileAppId(value *string)() SetMobileAppType(value *string)() + SetOdataType(value *string)() SetVersion(value *string)() } diff --git a/models/app_vulnerability_task.go b/models/app_vulnerability_task.go index 79e41325050..a724878f634 100644 --- a/models/app_vulnerability_task.go +++ b/models/app_vulnerability_task.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AppVulnerabilityTask +// AppVulnerabilityTask an app vulnerability task. type AppVulnerabilityTask struct { DeviceAppManagementTask } -// NewAppVulnerabilityTask instantiates a new AppVulnerabilityTask and sets the default values. +// NewAppVulnerabilityTask instantiates a new appVulnerabilityTask and sets the default values. func NewAppVulnerabilityTask()(*AppVulnerabilityTask) { m := &AppVulnerabilityTask{ DeviceAppManagementTask: *NewDeviceAppManagementTask(), diff --git a/models/apple_app_list_item.go b/models/apple_app_list_item.go index 06d23b8e997..54d7d79f631 100644 --- a/models/apple_app_list_item.go +++ b/models/apple_app_list_item.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AppleAppListItem +// AppleAppListItem represents an app in the list of managed Apple applications type AppleAppListItem struct { AppListItem + // The OdataType property + OdataType *string } -// NewAppleAppListItem instantiates a new AppleAppListItem and sets the default values. +// NewAppleAppListItem instantiates a new appleAppListItem and sets the default values. func NewAppleAppListItem()(*AppleAppListItem) { m := &AppleAppListItem{ AppListItem: *NewAppListItem(), diff --git a/models/apple_device_features_configuration_base.go b/models/apple_device_features_configuration_base.go index 107d535e5fe..8c6eb82baa0 100644 --- a/models/apple_device_features_configuration_base.go +++ b/models/apple_device_features_configuration_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AppleDeviceFeaturesConfigurationBase +// AppleDeviceFeaturesConfigurationBase apple device features configuration profile. type AppleDeviceFeaturesConfigurationBase struct { DeviceConfiguration } -// NewAppleDeviceFeaturesConfigurationBase instantiates a new AppleDeviceFeaturesConfigurationBase and sets the default values. +// NewAppleDeviceFeaturesConfigurationBase instantiates a new appleDeviceFeaturesConfigurationBase and sets the default values. func NewAppleDeviceFeaturesConfigurationBase()(*AppleDeviceFeaturesConfigurationBase) { m := &AppleDeviceFeaturesConfigurationBase{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/apple_enrollment_profile_assignment.go b/models/apple_enrollment_profile_assignment.go index c8a23a2effe..a836d3315cf 100644 --- a/models/apple_enrollment_profile_assignment.go +++ b/models/apple_enrollment_profile_assignment.go @@ -7,6 +7,8 @@ import ( // AppleEnrollmentProfileAssignment an assignment of an Apple profile. type AppleEnrollmentProfileAssignment struct { Entity + // The OdataType property + OdataType *string } // NewAppleEnrollmentProfileAssignment instantiates a new appleEnrollmentProfileAssignment and sets the default values. func NewAppleEnrollmentProfileAssignment()(*AppleEnrollmentProfileAssignment) { diff --git a/models/apple_enrollment_profile_assignment_collection_response.go b/models/apple_enrollment_profile_assignment_collection_response.go index 80375d03734..f6f208e1d39 100644 --- a/models/apple_enrollment_profile_assignment_collection_response.go +++ b/models/apple_enrollment_profile_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type AppleEnrollmentProfileAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAppleEnrollmentProfileAssignmentCollectionResponse instantiates a new AppleEnrollmentProfileAssignmentCollectionResponse and sets the default values. +// NewAppleEnrollmentProfileAssignmentCollectionResponse instantiates a new appleEnrollmentProfileAssignmentCollectionResponse and sets the default values. func NewAppleEnrollmentProfileAssignmentCollectionResponse()(*AppleEnrollmentProfileAssignmentCollectionResponse) { m := &AppleEnrollmentProfileAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/apple_expedited_checkin_configuration_base.go b/models/apple_expedited_checkin_configuration_base.go index 5667ceee41c..63cdb631c5a 100644 --- a/models/apple_expedited_checkin_configuration_base.go +++ b/models/apple_expedited_checkin_configuration_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AppleExpeditedCheckinConfigurationBase +// AppleExpeditedCheckinConfigurationBase experimental profile to increase the rate of device check-ins per day of iOS/macOS devices. This profile type is deprecated. type AppleExpeditedCheckinConfigurationBase struct { DeviceConfiguration } -// NewAppleExpeditedCheckinConfigurationBase instantiates a new AppleExpeditedCheckinConfigurationBase and sets the default values. +// NewAppleExpeditedCheckinConfigurationBase instantiates a new appleExpeditedCheckinConfigurationBase and sets the default values. func NewAppleExpeditedCheckinConfigurationBase()(*AppleExpeditedCheckinConfigurationBase) { m := &AppleExpeditedCheckinConfigurationBase{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/apple_managed_identity_provider.go b/models/apple_managed_identity_provider.go index b6a1c1660f6..084cbf75680 100644 --- a/models/apple_managed_identity_provider.go +++ b/models/apple_managed_identity_provider.go @@ -8,7 +8,7 @@ import ( type AppleManagedIdentityProvider struct { IdentityProviderBase } -// NewAppleManagedIdentityProvider instantiates a new AppleManagedIdentityProvider and sets the default values. +// NewAppleManagedIdentityProvider instantiates a new appleManagedIdentityProvider and sets the default values. func NewAppleManagedIdentityProvider()(*AppleManagedIdentityProvider) { m := &AppleManagedIdentityProvider{ IdentityProviderBase: *NewIdentityProviderBase(), diff --git a/models/apple_push_notification_certificate.go b/models/apple_push_notification_certificate.go index b6db459d800..fd8b910d1dc 100644 --- a/models/apple_push_notification_certificate.go +++ b/models/apple_push_notification_certificate.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ApplePushNotificationCertificate +// ApplePushNotificationCertificate apple push notification certificate. type ApplePushNotificationCertificate struct { Entity + // The OdataType property + OdataType *string } // NewApplePushNotificationCertificate instantiates a new applePushNotificationCertificate and sets the default values. func NewApplePushNotificationCertificate()(*ApplePushNotificationCertificate) { diff --git a/models/apple_user_initiated_enrollment_profile.go b/models/apple_user_initiated_enrollment_profile.go index 1da74f956d9..22df1d2c681 100644 --- a/models/apple_user_initiated_enrollment_profile.go +++ b/models/apple_user_initiated_enrollment_profile.go @@ -8,6 +8,8 @@ import ( // AppleUserInitiatedEnrollmentProfile the enrollmentProfile resource represents a collection of configurations which must be provided pre-enrollment to enable enrolling certain devices whose identities have been pre-staged. Pre-staged device identities are assigned to this type of profile to apply the profile's configurations at enrollment of the corresponding device. type AppleUserInitiatedEnrollmentProfile struct { Entity + // The OdataType property + OdataType *string } // NewAppleUserInitiatedEnrollmentProfile instantiates a new appleUserInitiatedEnrollmentProfile and sets the default values. func NewAppleUserInitiatedEnrollmentProfile()(*AppleUserInitiatedEnrollmentProfile) { diff --git a/models/apple_user_initiated_enrollment_profile_collection_response.go b/models/apple_user_initiated_enrollment_profile_collection_response.go index e6311386853..2f9fb7f6405 100644 --- a/models/apple_user_initiated_enrollment_profile_collection_response.go +++ b/models/apple_user_initiated_enrollment_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type AppleUserInitiatedEnrollmentProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAppleUserInitiatedEnrollmentProfileCollectionResponse instantiates a new AppleUserInitiatedEnrollmentProfileCollectionResponse and sets the default values. +// NewAppleUserInitiatedEnrollmentProfileCollectionResponse instantiates a new appleUserInitiatedEnrollmentProfileCollectionResponse and sets the default values. func NewAppleUserInitiatedEnrollmentProfileCollectionResponse()(*AppleUserInitiatedEnrollmentProfileCollectionResponse) { m := &AppleUserInitiatedEnrollmentProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/apple_vpn_configuration.go b/models/apple_vpn_configuration.go index 14bc1e44868..99b4145f033 100644 --- a/models/apple_vpn_configuration.go +++ b/models/apple_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AppleVpnConfiguration +// AppleVpnConfiguration apple VPN configuration profile. type AppleVpnConfiguration struct { DeviceConfiguration } -// NewAppleVpnConfiguration instantiates a new AppleVpnConfiguration and sets the default values. +// NewAppleVpnConfiguration instantiates a new appleVpnConfiguration and sets the default values. func NewAppleVpnConfiguration()(*AppleVpnConfiguration) { m := &AppleVpnConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/apple_vpp_token_troubleshooting_event.go b/models/apple_vpp_token_troubleshooting_event.go index ee6f745a378..edde8720e09 100644 --- a/models/apple_vpp_token_troubleshooting_event.go +++ b/models/apple_vpp_token_troubleshooting_event.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AppleVppTokenTroubleshootingEvent +// AppleVppTokenTroubleshootingEvent event representing an Apple Vpp Token Troubleshooting Event. type AppleVppTokenTroubleshootingEvent struct { DeviceManagementTroubleshootingEvent } -// NewAppleVppTokenTroubleshootingEvent instantiates a new AppleVppTokenTroubleshootingEvent and sets the default values. +// NewAppleVppTokenTroubleshootingEvent instantiates a new appleVppTokenTroubleshootingEvent and sets the default values. func NewAppleVppTokenTroubleshootingEvent()(*AppleVppTokenTroubleshootingEvent) { m := &AppleVppTokenTroubleshootingEvent{ DeviceManagementTroubleshootingEvent: *NewDeviceManagementTroubleshootingEvent(), diff --git a/models/application.go b/models/application.go index 2393fe903b6..5546c310c5f 100644 --- a/models/application.go +++ b/models/application.go @@ -10,7 +10,7 @@ import ( type Application struct { DirectoryObject } -// NewApplication instantiates a new Application and sets the default values. +// NewApplication instantiates a new application and sets the default values. func NewApplication()(*Application) { m := &Application{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/application_collection_response.go b/models/application_collection_response.go index 7b71b0c4130..a825394754f 100644 --- a/models/application_collection_response.go +++ b/models/application_collection_response.go @@ -8,7 +8,7 @@ import ( type ApplicationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewApplicationCollectionResponse instantiates a new ApplicationCollectionResponse and sets the default values. +// NewApplicationCollectionResponse instantiates a new applicationCollectionResponse and sets the default values. func NewApplicationCollectionResponse()(*ApplicationCollectionResponse) { m := &ApplicationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/application_enforced_restrictions_session_control.go b/models/application_enforced_restrictions_session_control.go index 39d7933114e..90435f3cd96 100644 --- a/models/application_enforced_restrictions_session_control.go +++ b/models/application_enforced_restrictions_session_control.go @@ -8,7 +8,7 @@ import ( type ApplicationEnforcedRestrictionsSessionControl struct { ConditionalAccessSessionControl } -// NewApplicationEnforcedRestrictionsSessionControl instantiates a new ApplicationEnforcedRestrictionsSessionControl and sets the default values. +// NewApplicationEnforcedRestrictionsSessionControl instantiates a new applicationEnforcedRestrictionsSessionControl and sets the default values. func NewApplicationEnforcedRestrictionsSessionControl()(*ApplicationEnforcedRestrictionsSessionControl) { m := &ApplicationEnforcedRestrictionsSessionControl{ ConditionalAccessSessionControl: *NewConditionalAccessSessionControl(), @@ -24,18 +24,54 @@ func CreateApplicationEnforcedRestrictionsSessionControlFromDiscriminatorValue(p // GetFieldDeserializers the deserialization information for the current model func (m *ApplicationEnforcedRestrictionsSessionControl) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ConditionalAccessSessionControl.GetFieldDeserializers() + 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 *ApplicationEnforcedRestrictionsSessionControl) 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 *ApplicationEnforcedRestrictionsSessionControl) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ConditionalAccessSessionControl.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ApplicationEnforcedRestrictionsSessionControl) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ApplicationEnforcedRestrictionsSessionControlable type ApplicationEnforcedRestrictionsSessionControlable interface { ConditionalAccessSessionControlable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/application_segment.go b/models/application_segment.go index 3a480131ef8..5873ae1c70b 100644 --- a/models/application_segment.go +++ b/models/application_segment.go @@ -7,6 +7,8 @@ import ( // ApplicationSegment type ApplicationSegment struct { Entity + // The OdataType property + OdataType *string } // NewApplicationSegment instantiates a new applicationSegment and sets the default values. func NewApplicationSegment()(*ApplicationSegment) { diff --git a/models/application_sign_in_detailed_summary.go b/models/application_sign_in_detailed_summary.go index 2586086541b..e0bcd1d9227 100644 --- a/models/application_sign_in_detailed_summary.go +++ b/models/application_sign_in_detailed_summary.go @@ -8,8 +8,10 @@ import ( // ApplicationSignInDetailedSummary type ApplicationSignInDetailedSummary struct { Entity + // The OdataType property + OdataType *string } -// NewApplicationSignInDetailedSummary instantiates a new ApplicationSignInDetailedSummary and sets the default values. +// NewApplicationSignInDetailedSummary instantiates a new applicationSignInDetailedSummary and sets the default values. func NewApplicationSignInDetailedSummary()(*ApplicationSignInDetailedSummary) { m := &ApplicationSignInDetailedSummary{ Entity: *NewEntity(), diff --git a/models/application_sign_in_detailed_summary_collection_response.go b/models/application_sign_in_detailed_summary_collection_response.go index e44ae520f58..fbad7299f27 100644 --- a/models/application_sign_in_detailed_summary_collection_response.go +++ b/models/application_sign_in_detailed_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type ApplicationSignInDetailedSummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewApplicationSignInDetailedSummaryCollectionResponse instantiates a new ApplicationSignInDetailedSummaryCollectionResponse and sets the default values. +// NewApplicationSignInDetailedSummaryCollectionResponse instantiates a new applicationSignInDetailedSummaryCollectionResponse and sets the default values. func NewApplicationSignInDetailedSummaryCollectionResponse()(*ApplicationSignInDetailedSummaryCollectionResponse) { m := &ApplicationSignInDetailedSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/application_sign_in_summary.go b/models/application_sign_in_summary.go index 87f342d708d..3dfb954b3ac 100644 --- a/models/application_sign_in_summary.go +++ b/models/application_sign_in_summary.go @@ -7,8 +7,10 @@ import ( // ApplicationSignInSummary type ApplicationSignInSummary struct { Entity + // The OdataType property + OdataType *string } -// NewApplicationSignInSummary instantiates a new ApplicationSignInSummary and sets the default values. +// NewApplicationSignInSummary instantiates a new applicationSignInSummary and sets the default values. func NewApplicationSignInSummary()(*ApplicationSignInSummary) { m := &ApplicationSignInSummary{ Entity: *NewEntity(), diff --git a/models/application_template.go b/models/application_template.go index bd6fa350fbf..ef15af5c391 100644 --- a/models/application_template.go +++ b/models/application_template.go @@ -7,8 +7,10 @@ import ( // ApplicationTemplate type ApplicationTemplate struct { Entity + // The OdataType property + OdataType *string } -// NewApplicationTemplate instantiates a new ApplicationTemplate and sets the default values. +// NewApplicationTemplate instantiates a new applicationTemplate and sets the default values. func NewApplicationTemplate()(*ApplicationTemplate) { m := &ApplicationTemplate{ Entity: *NewEntity(), diff --git a/models/application_template_collection_response.go b/models/application_template_collection_response.go index c5ddcdddd35..f491f48b4f5 100644 --- a/models/application_template_collection_response.go +++ b/models/application_template_collection_response.go @@ -8,7 +8,7 @@ import ( type ApplicationTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewApplicationTemplateCollectionResponse instantiates a new ApplicationTemplateCollectionResponse and sets the default values. +// NewApplicationTemplateCollectionResponse instantiates a new applicationTemplateCollectionResponse and sets the default values. func NewApplicationTemplateCollectionResponse()(*ApplicationTemplateCollectionResponse) { m := &ApplicationTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/apply_label_action.go b/models/apply_label_action.go index 0ca53491b15..2793926b18c 100644 --- a/models/apply_label_action.go +++ b/models/apply_label_action.go @@ -9,7 +9,7 @@ import ( type ApplyLabelAction struct { InformationProtectionAction } -// NewApplyLabelAction instantiates a new ApplyLabelAction and sets the default values. +// NewApplyLabelAction instantiates a new applyLabelAction and sets the default values. func NewApplyLabelAction()(*ApplyLabelAction) { m := &ApplyLabelAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -83,6 +83,16 @@ func (m *ApplyLabelAction) GetFieldDeserializers()(map[string]func(i878a80d2330e } 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["responsibleSensitiveTypeIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("uuid") if err != nil { @@ -112,6 +122,17 @@ func (m *ApplyLabelAction) GetLabel()(LabelDetailsable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ApplyLabelAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetResponsibleSensitiveTypeIds gets the responsibleSensitiveTypeIds property value. If the label was the result of an automatic classification, supply the list of sensitive info type GUIDs that resulted in the returned label. func (m *ApplyLabelAction) GetResponsibleSensitiveTypeIds()([]i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { val, err := m.GetBackingStore().Get("responsibleSensitiveTypeIds") @@ -154,6 +175,12 @@ func (m *ApplyLabelAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetResponsibleSensitiveTypeIds() != nil { err = writer.WriteCollectionOfUUIDValues("responsibleSensitiveTypeIds", m.GetResponsibleSensitiveTypeIds()) if err != nil { @@ -183,6 +210,13 @@ func (m *ApplyLabelAction) SetLabel(value LabelDetailsable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ApplyLabelAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetResponsibleSensitiveTypeIds sets the responsibleSensitiveTypeIds property value. If the label was the result of an automatic classification, supply the list of sensitive info type GUIDs that resulted in the returned label. func (m *ApplyLabelAction) SetResponsibleSensitiveTypeIds(value []i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { err := m.GetBackingStore().Set("responsibleSensitiveTypeIds", value) @@ -197,9 +231,11 @@ type ApplyLabelActionable interface { GetActions()([]InformationProtectionActionable) GetActionSource()(*ActionSource) GetLabel()(LabelDetailsable) + GetOdataType()(*string) GetResponsibleSensitiveTypeIds()([]i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) SetActions(value []InformationProtectionActionable)() SetActionSource(value *ActionSource)() SetLabel(value LabelDetailsable)() + SetOdataType(value *string)() SetResponsibleSensitiveTypeIds(value []i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() } diff --git a/models/approval.go b/models/approval.go index 2fd97946608..c1d3045e9f2 100644 --- a/models/approval.go +++ b/models/approval.go @@ -7,6 +7,8 @@ import ( // Approval type Approval struct { Entity + // The OdataType property + OdataType *string } // NewApproval instantiates a new approval and sets the default values. func NewApproval()(*Approval) { diff --git a/models/approval_collection_response.go b/models/approval_collection_response.go index 8beb75a3fb7..7c8d3313119 100644 --- a/models/approval_collection_response.go +++ b/models/approval_collection_response.go @@ -8,7 +8,7 @@ import ( type ApprovalCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewApprovalCollectionResponse instantiates a new ApprovalCollectionResponse and sets the default values. +// NewApprovalCollectionResponse instantiates a new approvalCollectionResponse and sets the default values. func NewApprovalCollectionResponse()(*ApprovalCollectionResponse) { m := &ApprovalCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/approval_step.go b/models/approval_step.go index 25afb0c44ed..ea1022d1312 100644 --- a/models/approval_step.go +++ b/models/approval_step.go @@ -8,6 +8,8 @@ import ( // ApprovalStep type ApprovalStep struct { Entity + // The OdataType property + OdataType *string } // NewApprovalStep instantiates a new approvalStep and sets the default values. func NewApprovalStep()(*ApprovalStep) { diff --git a/models/approval_step_collection_response.go b/models/approval_step_collection_response.go index a391fb5ffd4..3b03687cf68 100644 --- a/models/approval_step_collection_response.go +++ b/models/approval_step_collection_response.go @@ -8,7 +8,7 @@ import ( type ApprovalStepCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewApprovalStepCollectionResponse instantiates a new ApprovalStepCollectionResponse and sets the default values. +// NewApprovalStepCollectionResponse instantiates a new approvalStepCollectionResponse and sets the default values. func NewApprovalStepCollectionResponse()(*ApprovalStepCollectionResponse) { m := &ApprovalStepCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/approval_workflow_provider.go b/models/approval_workflow_provider.go index 9de3d1b14f5..ba88dfd213a 100644 --- a/models/approval_workflow_provider.go +++ b/models/approval_workflow_provider.go @@ -7,8 +7,10 @@ import ( // ApprovalWorkflowProvider type ApprovalWorkflowProvider struct { Entity + // The OdataType property + OdataType *string } -// NewApprovalWorkflowProvider instantiates a new ApprovalWorkflowProvider and sets the default values. +// NewApprovalWorkflowProvider instantiates a new approvalWorkflowProvider and sets the default values. func NewApprovalWorkflowProvider()(*ApprovalWorkflowProvider) { m := &ApprovalWorkflowProvider{ Entity: *NewEntity(), diff --git a/models/approval_workflow_provider_collection_response.go b/models/approval_workflow_provider_collection_response.go index a740089e090..7c6c307491c 100644 --- a/models/approval_workflow_provider_collection_response.go +++ b/models/approval_workflow_provider_collection_response.go @@ -8,7 +8,7 @@ import ( type ApprovalWorkflowProviderCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewApprovalWorkflowProviderCollectionResponse instantiates a new ApprovalWorkflowProviderCollectionResponse and sets the default values. +// NewApprovalWorkflowProviderCollectionResponse instantiates a new approvalWorkflowProviderCollectionResponse and sets the default values. func NewApprovalWorkflowProviderCollectionResponse()(*ApprovalWorkflowProviderCollectionResponse) { m := &ApprovalWorkflowProviderCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/apps_and_services_settings.go b/models/apps_and_services_settings.go index cf4ae0537c3..96069636a24 100644 --- a/models/apps_and_services_settings.go +++ b/models/apps_and_services_settings.go @@ -10,7 +10,7 @@ type AppsAndServicesSettings struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAppsAndServicesSettings instantiates a new AppsAndServicesSettings and sets the default values. +// NewAppsAndServicesSettings instantiates a new appsAndServicesSettings and sets the default values. func NewAppsAndServicesSettings()(*AppsAndServicesSettings) { m := &AppsAndServicesSettings{ } @@ -73,7 +73,7 @@ func (m *AppsAndServicesSettings) GetFieldDeserializers()(map[string]func(i878a8 } return res } -// GetIsAppAndServicesTrialEnabled gets the isAppAndServicesTrialEnabled property value. The isAppAndServicesTrialEnabled property +// GetIsAppAndServicesTrialEnabled gets the isAppAndServicesTrialEnabled property value. Controls whether users can start trial subscriptions for apps and services in your organization. func (m *AppsAndServicesSettings) GetIsAppAndServicesTrialEnabled()(*bool) { val, err := m.GetBackingStore().Get("isAppAndServicesTrialEnabled") if err != nil { @@ -84,7 +84,7 @@ func (m *AppsAndServicesSettings) GetIsAppAndServicesTrialEnabled()(*bool) { } return nil } -// GetIsOfficeStoreEnabled gets the isOfficeStoreEnabled property value. The isOfficeStoreEnabled property +// GetIsOfficeStoreEnabled gets the isOfficeStoreEnabled property value. Controls whether users can access the Microsoft Store. func (m *AppsAndServicesSettings) GetIsOfficeStoreEnabled()(*bool) { val, err := m.GetBackingStore().Get("isOfficeStoreEnabled") if err != nil { @@ -145,14 +145,14 @@ func (m *AppsAndServicesSettings) SetAdditionalData(value map[string]any)() { func (m *AppsAndServicesSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIsAppAndServicesTrialEnabled sets the isAppAndServicesTrialEnabled property value. The isAppAndServicesTrialEnabled property +// SetIsAppAndServicesTrialEnabled sets the isAppAndServicesTrialEnabled property value. Controls whether users can start trial subscriptions for apps and services in your organization. func (m *AppsAndServicesSettings) SetIsAppAndServicesTrialEnabled(value *bool)() { err := m.GetBackingStore().Set("isAppAndServicesTrialEnabled", value) if err != nil { panic(err) } } -// SetIsOfficeStoreEnabled sets the isOfficeStoreEnabled property value. The isOfficeStoreEnabled property +// SetIsOfficeStoreEnabled sets the isOfficeStoreEnabled property value. Controls whether users can access the Microsoft Store. func (m *AppsAndServicesSettings) SetIsOfficeStoreEnabled(value *bool)() { err := m.GetBackingStore().Set("isOfficeStoreEnabled", value) if err != nil { diff --git a/models/assigned_license.go b/models/assigned_license.go index 1f2aa75aa97..3bfc0b08bf1 100644 --- a/models/assigned_license.go +++ b/models/assigned_license.go @@ -11,7 +11,7 @@ type AssignedLicense struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAssignedLicense instantiates a new AssignedLicense and sets the default values. +// NewAssignedLicense instantiates a new assignedLicense and sets the default values. func NewAssignedLicense()(*AssignedLicense) { m := &AssignedLicense{ } diff --git a/models/assigned_plan.go b/models/assigned_plan.go index e1df84e8f92..054d91cee31 100644 --- a/models/assigned_plan.go +++ b/models/assigned_plan.go @@ -12,7 +12,7 @@ type AssignedPlan struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAssignedPlan instantiates a new AssignedPlan and sets the default values. +// NewAssignedPlan instantiates a new assignedPlan and sets the default values. func NewAssignedPlan()(*AssignedPlan) { m := &AssignedPlan{ } diff --git a/models/assignment_filter_evaluation_status_details.go b/models/assignment_filter_evaluation_status_details.go index 54550c3545b..9abad873109 100644 --- a/models/assignment_filter_evaluation_status_details.go +++ b/models/assignment_filter_evaluation_status_details.go @@ -7,6 +7,8 @@ import ( // AssignmentFilterEvaluationStatusDetails a class containing information about the payloads on which filter has been applied. type AssignmentFilterEvaluationStatusDetails struct { Entity + // The OdataType property + OdataType *string } // NewAssignmentFilterEvaluationStatusDetails instantiates a new assignmentFilterEvaluationStatusDetails and sets the default values. func NewAssignmentFilterEvaluationStatusDetails()(*AssignmentFilterEvaluationStatusDetails) { diff --git a/models/assignment_filter_evaluation_status_details_collection_response.go b/models/assignment_filter_evaluation_status_details_collection_response.go index 623b375149a..4c35e4faf94 100644 --- a/models/assignment_filter_evaluation_status_details_collection_response.go +++ b/models/assignment_filter_evaluation_status_details_collection_response.go @@ -8,7 +8,7 @@ import ( type AssignmentFilterEvaluationStatusDetailsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAssignmentFilterEvaluationStatusDetailsCollectionResponse instantiates a new AssignmentFilterEvaluationStatusDetailsCollectionResponse and sets the default values. +// NewAssignmentFilterEvaluationStatusDetailsCollectionResponse instantiates a new assignmentFilterEvaluationStatusDetailsCollectionResponse and sets the default values. func NewAssignmentFilterEvaluationStatusDetailsCollectionResponse()(*AssignmentFilterEvaluationStatusDetailsCollectionResponse) { m := &AssignmentFilterEvaluationStatusDetailsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/assignment_filter_evaluation_summary.go b/models/assignment_filter_evaluation_summary.go index 59dd598402c..b0729d86ec6 100644 --- a/models/assignment_filter_evaluation_summary.go +++ b/models/assignment_filter_evaluation_summary.go @@ -11,7 +11,7 @@ type AssignmentFilterEvaluationSummary struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAssignmentFilterEvaluationSummary instantiates a new AssignmentFilterEvaluationSummary and sets the default values. +// NewAssignmentFilterEvaluationSummary instantiates a new assignmentFilterEvaluationSummary and sets the default values. func NewAssignmentFilterEvaluationSummary()(*AssignmentFilterEvaluationSummary) { m := &AssignmentFilterEvaluationSummary{ } diff --git a/models/associated_team_info.go b/models/associated_team_info.go index e6226c87afa..9b7890c651b 100644 --- a/models/associated_team_info.go +++ b/models/associated_team_info.go @@ -8,7 +8,7 @@ import ( type AssociatedTeamInfo struct { TeamInfo } -// NewAssociatedTeamInfo instantiates a new AssociatedTeamInfo and sets the default values. +// NewAssociatedTeamInfo instantiates a new associatedTeamInfo and sets the default values. func NewAssociatedTeamInfo()(*AssociatedTeamInfo) { m := &AssociatedTeamInfo{ TeamInfo: *NewTeamInfo(), diff --git a/models/associated_team_info_collection_response.go b/models/associated_team_info_collection_response.go index d92dff0f1a9..195cd788c10 100644 --- a/models/associated_team_info_collection_response.go +++ b/models/associated_team_info_collection_response.go @@ -8,7 +8,7 @@ import ( type AssociatedTeamInfoCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAssociatedTeamInfoCollectionResponse instantiates a new AssociatedTeamInfoCollectionResponse and sets the default values. +// NewAssociatedTeamInfoCollectionResponse instantiates a new associatedTeamInfoCollectionResponse and sets the default values. func NewAssociatedTeamInfoCollectionResponse()(*AssociatedTeamInfoCollectionResponse) { m := &AssociatedTeamInfoCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/attachment.go b/models/attachment.go index ff6bbd28d04..7bfd8247817 100644 --- a/models/attachment.go +++ b/models/attachment.go @@ -96,6 +96,16 @@ func (m *Attachment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } 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["size"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -141,6 +151,17 @@ func (m *Attachment) GetName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Attachment) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSize gets the size property value. The length of the attachment in bytes. func (m *Attachment) GetSize()(*int32) { val, err := m.GetBackingStore().Get("size") @@ -182,6 +203,12 @@ func (m *Attachment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("size", m.GetSize()) if err != nil { @@ -218,6 +245,13 @@ func (m *Attachment) SetName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Attachment) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSize sets the size property value. The length of the attachment in bytes. func (m *Attachment) SetSize(value *int32)() { err := m.GetBackingStore().Set("size", value) @@ -233,10 +267,12 @@ type Attachmentable interface { GetIsInline()(*bool) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetName()(*string) + GetOdataType()(*string) GetSize()(*int32) SetContentType(value *string)() SetIsInline(value *bool)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetName(value *string)() + SetOdataType(value *string)() SetSize(value *int32)() } diff --git a/models/attachment_base.go b/models/attachment_base.go index 32d63c77e6e..f7e791b1f2f 100644 --- a/models/attachment_base.go +++ b/models/attachment_base.go @@ -82,6 +82,16 @@ func (m *AttachmentBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } 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["size"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -116,6 +126,17 @@ func (m *AttachmentBase) GetName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AttachmentBase) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSize gets the size property value. The length of the attachment in bytes. func (m *AttachmentBase) GetSize()(*int32) { val, err := m.GetBackingStore().Get("size") @@ -151,6 +172,12 @@ func (m *AttachmentBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("size", m.GetSize()) if err != nil { @@ -180,6 +207,13 @@ func (m *AttachmentBase) SetName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AttachmentBase) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSize sets the size property value. The length of the attachment in bytes. func (m *AttachmentBase) SetSize(value *int32)() { err := m.GetBackingStore().Set("size", value) @@ -194,9 +228,11 @@ type AttachmentBaseable interface { GetContentType()(*string) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetName()(*string) + GetOdataType()(*string) GetSize()(*int32) SetContentType(value *string)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetName(value *string)() + SetOdataType(value *string)() SetSize(value *int32)() } diff --git a/models/attachment_base_collection_response.go b/models/attachment_base_collection_response.go index a4a814fa05e..49c85fc7d5a 100644 --- a/models/attachment_base_collection_response.go +++ b/models/attachment_base_collection_response.go @@ -8,7 +8,7 @@ import ( type AttachmentBaseCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAttachmentBaseCollectionResponse instantiates a new AttachmentBaseCollectionResponse and sets the default values. +// NewAttachmentBaseCollectionResponse instantiates a new attachmentBaseCollectionResponse and sets the default values. func NewAttachmentBaseCollectionResponse()(*AttachmentBaseCollectionResponse) { m := &AttachmentBaseCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/attachment_collection_response.go b/models/attachment_collection_response.go index d4f49bf8981..e1e111b1dcf 100644 --- a/models/attachment_collection_response.go +++ b/models/attachment_collection_response.go @@ -8,7 +8,7 @@ import ( type AttachmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAttachmentCollectionResponse instantiates a new AttachmentCollectionResponse and sets the default values. +// NewAttachmentCollectionResponse instantiates a new attachmentCollectionResponse and sets the default values. func NewAttachmentCollectionResponse()(*AttachmentCollectionResponse) { m := &AttachmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/attachment_content_properties.go b/models/attachment_content_properties.go index 5122aab4522..b7faa57f2e0 100644 --- a/models/attachment_content_properties.go +++ b/models/attachment_content_properties.go @@ -7,8 +7,10 @@ import ( // AttachmentContentProperties type AttachmentContentProperties struct { ContentProperties + // The OdataType property + OdataType *string } -// NewAttachmentContentProperties instantiates a new AttachmentContentProperties and sets the default values. +// NewAttachmentContentProperties instantiates a new attachmentContentProperties and sets the default values. func NewAttachmentContentProperties()(*AttachmentContentProperties) { m := &AttachmentContentProperties{ ContentProperties: *NewContentProperties(), diff --git a/models/attachment_info.go b/models/attachment_info.go index f834d359984..e7a0a506778 100644 --- a/models/attachment_info.go +++ b/models/attachment_info.go @@ -10,7 +10,7 @@ type AttachmentInfo struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAttachmentInfo instantiates a new AttachmentInfo and sets the default values. +// NewAttachmentInfo instantiates a new attachmentInfo and sets the default values. func NewAttachmentInfo()(*AttachmentInfo) { m := &AttachmentInfo{ } diff --git a/models/attachment_item.go b/models/attachment_item.go index 155b1e86f87..8cdeb725dff 100644 --- a/models/attachment_item.go +++ b/models/attachment_item.go @@ -10,7 +10,7 @@ type AttachmentItem struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAttachmentItem instantiates a new AttachmentItem and sets the default values. +// NewAttachmentItem instantiates a new attachmentItem and sets the default values. func NewAttachmentItem()(*AttachmentItem) { m := &AttachmentItem{ } diff --git a/models/attachment_session.go b/models/attachment_session.go index 0ea44abdc15..f70c75568d0 100644 --- a/models/attachment_session.go +++ b/models/attachment_session.go @@ -8,6 +8,8 @@ import ( // AttachmentSession type AttachmentSession struct { Entity + // The OdataType property + OdataType *string } // NewAttachmentSession instantiates a new attachmentSession and sets the default values. func NewAttachmentSession()(*AttachmentSession) { diff --git a/models/attachment_session_collection_response.go b/models/attachment_session_collection_response.go index a7be53e90bd..59c691a3420 100644 --- a/models/attachment_session_collection_response.go +++ b/models/attachment_session_collection_response.go @@ -8,7 +8,7 @@ import ( type AttachmentSessionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAttachmentSessionCollectionResponse instantiates a new AttachmentSessionCollectionResponse and sets the default values. +// NewAttachmentSessionCollectionResponse instantiates a new attachmentSessionCollectionResponse and sets the default values. func NewAttachmentSessionCollectionResponse()(*AttachmentSessionCollectionResponse) { m := &AttachmentSessionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/attack_simulation_operation.go b/models/attack_simulation_operation.go index 335ba6d6d2a..8d3c8bccf7b 100644 --- a/models/attack_simulation_operation.go +++ b/models/attack_simulation_operation.go @@ -8,7 +8,7 @@ import ( type AttackSimulationOperation struct { LongRunningOperation } -// NewAttackSimulationOperation instantiates a new AttackSimulationOperation and sets the default values. +// NewAttackSimulationOperation instantiates a new attackSimulationOperation and sets the default values. func NewAttackSimulationOperation()(*AttackSimulationOperation) { m := &AttackSimulationOperation{ LongRunningOperation: *NewLongRunningOperation(), diff --git a/models/attack_simulation_operation_collection_response.go b/models/attack_simulation_operation_collection_response.go index 5f66150461a..b878ba1cb21 100644 --- a/models/attack_simulation_operation_collection_response.go +++ b/models/attack_simulation_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type AttackSimulationOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAttackSimulationOperationCollectionResponse instantiates a new AttackSimulationOperationCollectionResponse and sets the default values. +// NewAttackSimulationOperationCollectionResponse instantiates a new attackSimulationOperationCollectionResponse and sets the default values. func NewAttackSimulationOperationCollectionResponse()(*AttackSimulationOperationCollectionResponse) { m := &AttackSimulationOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/attack_simulation_root.go b/models/attack_simulation_root.go index 0e8c33d40e0..c69d6ef4c05 100644 --- a/models/attack_simulation_root.go +++ b/models/attack_simulation_root.go @@ -7,8 +7,10 @@ import ( // AttackSimulationRoot type AttackSimulationRoot struct { Entity + // The OdataType property + OdataType *string } -// NewAttackSimulationRoot instantiates a new AttackSimulationRoot and sets the default values. +// NewAttackSimulationRoot instantiates a new attackSimulationRoot and sets the default values. func NewAttackSimulationRoot()(*AttackSimulationRoot) { m := &AttackSimulationRoot{ Entity: *NewEntity(), diff --git a/models/attendance_record.go b/models/attendance_record.go index 13d6fab11be..ecfc0bb43b1 100644 --- a/models/attendance_record.go +++ b/models/attendance_record.go @@ -7,6 +7,8 @@ import ( // AttendanceRecord type AttendanceRecord struct { Entity + // The OdataType property + OdataType *string } // NewAttendanceRecord instantiates a new attendanceRecord and sets the default values. func NewAttendanceRecord()(*AttendanceRecord) { diff --git a/models/attendance_record_collection_response.go b/models/attendance_record_collection_response.go index d90baf2580c..649f6d06847 100644 --- a/models/attendance_record_collection_response.go +++ b/models/attendance_record_collection_response.go @@ -8,7 +8,7 @@ import ( type AttendanceRecordCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAttendanceRecordCollectionResponse instantiates a new AttendanceRecordCollectionResponse and sets the default values. +// NewAttendanceRecordCollectionResponse instantiates a new attendanceRecordCollectionResponse and sets the default values. func NewAttendanceRecordCollectionResponse()(*AttendanceRecordCollectionResponse) { m := &AttendanceRecordCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/attendee.go b/models/attendee.go index 917003dfacf..0ea9f5e2162 100644 --- a/models/attendee.go +++ b/models/attendee.go @@ -8,7 +8,7 @@ import ( type Attendee struct { AttendeeBase } -// NewAttendee instantiates a new Attendee and sets the default values. +// NewAttendee instantiates a new attendee and sets the default values. func NewAttendee()(*Attendee) { m := &Attendee{ AttendeeBase: *NewAttendeeBase(), diff --git a/models/attendee_availability.go b/models/attendee_availability.go index 992fc8a747b..625cc30bac7 100644 --- a/models/attendee_availability.go +++ b/models/attendee_availability.go @@ -10,7 +10,7 @@ type AttendeeAvailability struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAttendeeAvailability instantiates a new AttendeeAvailability and sets the default values. +// NewAttendeeAvailability instantiates a new attendeeAvailability and sets the default values. func NewAttendeeAvailability()(*AttendeeAvailability) { m := &AttendeeAvailability{ } diff --git a/models/attendee_base.go b/models/attendee_base.go index c9738611bc1..783a75d1a42 100644 --- a/models/attendee_base.go +++ b/models/attendee_base.go @@ -7,8 +7,10 @@ import ( // AttendeeBase type AttendeeBase struct { Recipient + // The OdataType property + OdataType *string } -// NewAttendeeBase instantiates a new AttendeeBase and sets the default values. +// NewAttendeeBase instantiates a new attendeeBase and sets the default values. func NewAttendeeBase()(*AttendeeBase) { m := &AttendeeBase{ Recipient: *NewRecipient(), diff --git a/models/attribute_mapping_function_schema.go b/models/attribute_mapping_function_schema.go index 858eb4c9f53..af942a5f763 100644 --- a/models/attribute_mapping_function_schema.go +++ b/models/attribute_mapping_function_schema.go @@ -7,6 +7,8 @@ import ( // AttributeMappingFunctionSchema type AttributeMappingFunctionSchema struct { Entity + // The OdataType property + OdataType *string } // NewAttributeMappingFunctionSchema instantiates a new attributeMappingFunctionSchema and sets the default values. func NewAttributeMappingFunctionSchema()(*AttributeMappingFunctionSchema) { diff --git a/models/attribute_mapping_function_schema_collection_response.go b/models/attribute_mapping_function_schema_collection_response.go index b53d82b2777..61f8958f32d 100644 --- a/models/attribute_mapping_function_schema_collection_response.go +++ b/models/attribute_mapping_function_schema_collection_response.go @@ -8,7 +8,7 @@ import ( type AttributeMappingFunctionSchemaCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAttributeMappingFunctionSchemaCollectionResponse instantiates a new AttributeMappingFunctionSchemaCollectionResponse and sets the default values. +// NewAttributeMappingFunctionSchemaCollectionResponse instantiates a new attributeMappingFunctionSchemaCollectionResponse and sets the default values. func NewAttributeMappingFunctionSchemaCollectionResponse()(*AttributeMappingFunctionSchemaCollectionResponse) { m := &AttributeMappingFunctionSchemaCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/attribute_set.go b/models/attribute_set.go index a9cb369c1fb..57a886f3ffe 100644 --- a/models/attribute_set.go +++ b/models/attribute_set.go @@ -53,6 +53,16 @@ func (m *AttributeSet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } 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 } // GetMaxAttributesPerSet gets the maxAttributesPerSet property value. Maximum number of custom security attributes that can be defined in this attribute set. Default value is null. If not specified, the administrator can add up to the maximum of 500 active attributes per tenant. Can be changed later. @@ -66,6 +76,17 @@ func (m *AttributeSet) GetMaxAttributesPerSet()(*int32) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AttributeSet) 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 *AttributeSet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -84,6 +105,12 @@ func (m *AttributeSet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDescription sets the description property value. Description of the attribute set. Can be up to 128 characters long and include Unicode characters. Can be changed later. @@ -100,12 +127,21 @@ func (m *AttributeSet) SetMaxAttributesPerSet(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AttributeSet) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AttributeSetable type AttributeSetable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDescription()(*string) GetMaxAttributesPerSet()(*int32) + GetOdataType()(*string) SetDescription(value *string)() SetMaxAttributesPerSet(value *int32)() + SetOdataType(value *string)() } diff --git a/models/attribute_set_collection_response.go b/models/attribute_set_collection_response.go index a24d4be0201..b8b81e3be6b 100644 --- a/models/attribute_set_collection_response.go +++ b/models/attribute_set_collection_response.go @@ -8,7 +8,7 @@ import ( type AttributeSetCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAttributeSetCollectionResponse instantiates a new AttributeSetCollectionResponse and sets the default values. +// NewAttributeSetCollectionResponse instantiates a new attributeSetCollectionResponse and sets the default values. func NewAttributeSetCollectionResponse()(*AttributeSetCollectionResponse) { m := &AttributeSetCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/audio_routing_group.go b/models/audio_routing_group.go index cdaef17e99e..3fc25f90059 100644 --- a/models/audio_routing_group.go +++ b/models/audio_routing_group.go @@ -7,6 +7,8 @@ import ( // AudioRoutingGroup type AudioRoutingGroup struct { Entity + // The OdataType property + OdataType *string } // NewAudioRoutingGroup instantiates a new audioRoutingGroup and sets the default values. func NewAudioRoutingGroup()(*AudioRoutingGroup) { diff --git a/models/audio_routing_group_collection_response.go b/models/audio_routing_group_collection_response.go index 033236380c1..b126e3af7cb 100644 --- a/models/audio_routing_group_collection_response.go +++ b/models/audio_routing_group_collection_response.go @@ -8,7 +8,7 @@ import ( type AudioRoutingGroupCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAudioRoutingGroupCollectionResponse instantiates a new AudioRoutingGroupCollectionResponse and sets the default values. +// NewAudioRoutingGroupCollectionResponse instantiates a new audioRoutingGroupCollectionResponse and sets the default values. func NewAudioRoutingGroupCollectionResponse()(*AudioRoutingGroupCollectionResponse) { m := &AudioRoutingGroupCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/audit_activity_initiator.go b/models/audit_activity_initiator.go index a265d77ca6d..6b267b6c6c9 100644 --- a/models/audit_activity_initiator.go +++ b/models/audit_activity_initiator.go @@ -10,7 +10,7 @@ type AuditActivityInitiator struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAuditActivityInitiator instantiates a new AuditActivityInitiator and sets the default values. +// NewAuditActivityInitiator instantiates a new auditActivityInitiator and sets the default values. func NewAuditActivityInitiator()(*AuditActivityInitiator) { m := &AuditActivityInitiator{ } diff --git a/models/audit_event.go b/models/audit_event.go index cf04afb24c3..6f53d42b469 100644 --- a/models/audit_event.go +++ b/models/audit_event.go @@ -9,6 +9,8 @@ import ( // AuditEvent a class containing the properties for Audit Event. type AuditEvent struct { Entity + // The OdataType property + OdataType *string } // NewAuditEvent instantiates a new auditEvent and sets the default values. func NewAuditEvent()(*AuditEvent) { diff --git a/models/audit_event_collection_response.go b/models/audit_event_collection_response.go index 2ed11f44546..b39161d9193 100644 --- a/models/audit_event_collection_response.go +++ b/models/audit_event_collection_response.go @@ -8,7 +8,7 @@ import ( type AuditEventCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAuditEventCollectionResponse instantiates a new AuditEventCollectionResponse and sets the default values. +// NewAuditEventCollectionResponse instantiates a new auditEventCollectionResponse and sets the default values. func NewAuditEventCollectionResponse()(*AuditEventCollectionResponse) { m := &AuditEventCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/audit_log_root.go b/models/audit_log_root.go index 7574d9e31e4..bbfd1de3acc 100644 --- a/models/audit_log_root.go +++ b/models/audit_log_root.go @@ -10,7 +10,7 @@ type AuditLogRoot struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAuditLogRoot instantiates a new AuditLogRoot and sets the default values. +// NewAuditLogRoot instantiates a new auditLogRoot and sets the default values. func NewAuditLogRoot()(*AuditLogRoot) { m := &AuditLogRoot{ } diff --git a/models/audit_user_identity.go b/models/audit_user_identity.go index 83a53285fa3..0db8f3b5531 100644 --- a/models/audit_user_identity.go +++ b/models/audit_user_identity.go @@ -8,7 +8,7 @@ import ( type AuditUserIdentity struct { UserIdentity } -// NewAuditUserIdentity instantiates a new AuditUserIdentity and sets the default values. +// NewAuditUserIdentity instantiates a new auditUserIdentity and sets the default values. func NewAuditUserIdentity()(*AuditUserIdentity) { m := &AuditUserIdentity{ UserIdentity: *NewUserIdentity(), diff --git a/models/authentication.go b/models/authentication.go index b5659c7fb02..df7d44b2148 100644 --- a/models/authentication.go +++ b/models/authentication.go @@ -7,6 +7,8 @@ import ( // Authentication type Authentication struct { Entity + // The OdataType property + OdataType *string } // NewAuthentication instantiates a new authentication and sets the default values. func NewAuthentication()(*Authentication) { diff --git a/models/authentication_combination_configuration.go b/models/authentication_combination_configuration.go index d5f604f5e77..175237e27bb 100644 --- a/models/authentication_combination_configuration.go +++ b/models/authentication_combination_configuration.go @@ -7,8 +7,10 @@ import ( // AuthenticationCombinationConfiguration type AuthenticationCombinationConfiguration struct { Entity + // The OdataType property + OdataType *string } -// NewAuthenticationCombinationConfiguration instantiates a new AuthenticationCombinationConfiguration and sets the default values. +// NewAuthenticationCombinationConfiguration instantiates a new authenticationCombinationConfiguration and sets the default values. func NewAuthenticationCombinationConfiguration()(*AuthenticationCombinationConfiguration) { m := &AuthenticationCombinationConfiguration{ Entity: *NewEntity(), diff --git a/models/authentication_combination_configuration_collection_response.go b/models/authentication_combination_configuration_collection_response.go index 7799aa91a83..b7bef30bb69 100644 --- a/models/authentication_combination_configuration_collection_response.go +++ b/models/authentication_combination_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type AuthenticationCombinationConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAuthenticationCombinationConfigurationCollectionResponse instantiates a new AuthenticationCombinationConfigurationCollectionResponse and sets the default values. +// NewAuthenticationCombinationConfigurationCollectionResponse instantiates a new authenticationCombinationConfigurationCollectionResponse and sets the default values. func NewAuthenticationCombinationConfigurationCollectionResponse()(*AuthenticationCombinationConfigurationCollectionResponse) { m := &AuthenticationCombinationConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/authentication_condition_application.go b/models/authentication_condition_application.go index dcbcee5ea5f..d9fc416d0f7 100644 --- a/models/authentication_condition_application.go +++ b/models/authentication_condition_application.go @@ -10,7 +10,7 @@ type AuthenticationConditionApplication struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAuthenticationConditionApplication instantiates a new AuthenticationConditionApplication and sets the default values. +// NewAuthenticationConditionApplication instantiates a new authenticationConditionApplication and sets the default values. func NewAuthenticationConditionApplication()(*AuthenticationConditionApplication) { m := &AuthenticationConditionApplication{ } diff --git a/models/authentication_context_class_reference.go b/models/authentication_context_class_reference.go index 12d86f99621..b2e8038b3ed 100644 --- a/models/authentication_context_class_reference.go +++ b/models/authentication_context_class_reference.go @@ -7,6 +7,8 @@ import ( // AuthenticationContextClassReference type AuthenticationContextClassReference struct { Entity + // The OdataType property + OdataType *string } // NewAuthenticationContextClassReference instantiates a new authenticationContextClassReference and sets the default values. func NewAuthenticationContextClassReference()(*AuthenticationContextClassReference) { diff --git a/models/authentication_context_class_reference_collection_response.go b/models/authentication_context_class_reference_collection_response.go index 8f499420398..57e8945f2d7 100644 --- a/models/authentication_context_class_reference_collection_response.go +++ b/models/authentication_context_class_reference_collection_response.go @@ -8,7 +8,7 @@ import ( type AuthenticationContextClassReferenceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAuthenticationContextClassReferenceCollectionResponse instantiates a new AuthenticationContextClassReferenceCollectionResponse and sets the default values. +// NewAuthenticationContextClassReferenceCollectionResponse instantiates a new authenticationContextClassReferenceCollectionResponse and sets the default values. func NewAuthenticationContextClassReferenceCollectionResponse()(*AuthenticationContextClassReferenceCollectionResponse) { m := &AuthenticationContextClassReferenceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/authentication_event_listener.go b/models/authentication_event_listener.go index 5af9f4b1051..1a727294837 100644 --- a/models/authentication_event_listener.go +++ b/models/authentication_event_listener.go @@ -7,8 +7,10 @@ import ( // AuthenticationEventListener type AuthenticationEventListener struct { Entity + // The OdataType property + OdataType *string } -// NewAuthenticationEventListener instantiates a new AuthenticationEventListener and sets the default values. +// NewAuthenticationEventListener instantiates a new authenticationEventListener and sets the default values. func NewAuthenticationEventListener()(*AuthenticationEventListener) { m := &AuthenticationEventListener{ Entity: *NewEntity(), diff --git a/models/authentication_event_listener_collection_response.go b/models/authentication_event_listener_collection_response.go index 85979308899..f47f10661d9 100644 --- a/models/authentication_event_listener_collection_response.go +++ b/models/authentication_event_listener_collection_response.go @@ -8,7 +8,7 @@ import ( type AuthenticationEventListenerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAuthenticationEventListenerCollectionResponse instantiates a new AuthenticationEventListenerCollectionResponse and sets the default values. +// NewAuthenticationEventListenerCollectionResponse instantiates a new authenticationEventListenerCollectionResponse and sets the default values. func NewAuthenticationEventListenerCollectionResponse()(*AuthenticationEventListenerCollectionResponse) { m := &AuthenticationEventListenerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/authentication_events_flow.go b/models/authentication_events_flow.go index 62e82428095..4c55fabde47 100644 --- a/models/authentication_events_flow.go +++ b/models/authentication_events_flow.go @@ -7,6 +7,8 @@ import ( // AuthenticationEventsFlow type AuthenticationEventsFlow struct { Entity + // The OdataType property + OdataType *string } // NewAuthenticationEventsFlow instantiates a new authenticationEventsFlow and sets the default values. func NewAuthenticationEventsFlow()(*AuthenticationEventsFlow) { diff --git a/models/authentication_events_flow_collection_response.go b/models/authentication_events_flow_collection_response.go index bfd1ad7472a..3e86371f1f6 100644 --- a/models/authentication_events_flow_collection_response.go +++ b/models/authentication_events_flow_collection_response.go @@ -8,7 +8,7 @@ import ( type AuthenticationEventsFlowCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAuthenticationEventsFlowCollectionResponse instantiates a new AuthenticationEventsFlowCollectionResponse and sets the default values. +// NewAuthenticationEventsFlowCollectionResponse instantiates a new authenticationEventsFlowCollectionResponse and sets the default values. func NewAuthenticationEventsFlowCollectionResponse()(*AuthenticationEventsFlowCollectionResponse) { m := &AuthenticationEventsFlowCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/authentication_events_policy.go b/models/authentication_events_policy.go index 12cd7475141..23db5ba1651 100644 --- a/models/authentication_events_policy.go +++ b/models/authentication_events_policy.go @@ -7,8 +7,10 @@ import ( // AuthenticationEventsPolicy type AuthenticationEventsPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewAuthenticationEventsPolicy instantiates a new AuthenticationEventsPolicy and sets the default values. +// NewAuthenticationEventsPolicy instantiates a new authenticationEventsPolicy and sets the default values. func NewAuthenticationEventsPolicy()(*AuthenticationEventsPolicy) { m := &AuthenticationEventsPolicy{ Entity: *NewEntity(), diff --git a/models/authentication_flows_policy.go b/models/authentication_flows_policy.go index 19f166c48f5..86774ee3996 100644 --- a/models/authentication_flows_policy.go +++ b/models/authentication_flows_policy.go @@ -7,8 +7,10 @@ import ( // AuthenticationFlowsPolicy type AuthenticationFlowsPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewAuthenticationFlowsPolicy instantiates a new AuthenticationFlowsPolicy and sets the default values. +// NewAuthenticationFlowsPolicy instantiates a new authenticationFlowsPolicy and sets the default values. func NewAuthenticationFlowsPolicy()(*AuthenticationFlowsPolicy) { m := &AuthenticationFlowsPolicy{ Entity: *NewEntity(), diff --git a/models/authentication_listener.go b/models/authentication_listener.go index 76642366178..03f8b4b60fa 100644 --- a/models/authentication_listener.go +++ b/models/authentication_listener.go @@ -7,6 +7,8 @@ import ( // AuthenticationListener type AuthenticationListener struct { Entity + // The OdataType property + OdataType *string } // NewAuthenticationListener instantiates a new authenticationListener and sets the default values. func NewAuthenticationListener()(*AuthenticationListener) { diff --git a/models/authentication_method.go b/models/authentication_method.go index cb10f52f312..b7c82c8e0ed 100644 --- a/models/authentication_method.go +++ b/models/authentication_method.go @@ -7,6 +7,8 @@ import ( // AuthenticationMethod type AuthenticationMethod struct { Entity + // The OdataType property + OdataType *string } // NewAuthenticationMethod instantiates a new authenticationMethod and sets the default values. func NewAuthenticationMethod()(*AuthenticationMethod) { diff --git a/models/authentication_method_collection_response.go b/models/authentication_method_collection_response.go index 93622561c63..ab78205081d 100644 --- a/models/authentication_method_collection_response.go +++ b/models/authentication_method_collection_response.go @@ -8,7 +8,7 @@ import ( type AuthenticationMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAuthenticationMethodCollectionResponse instantiates a new AuthenticationMethodCollectionResponse and sets the default values. +// NewAuthenticationMethodCollectionResponse instantiates a new authenticationMethodCollectionResponse and sets the default values. func NewAuthenticationMethodCollectionResponse()(*AuthenticationMethodCollectionResponse) { m := &AuthenticationMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/authentication_method_configuration.go b/models/authentication_method_configuration.go index fb07b5576e3..c150a847368 100644 --- a/models/authentication_method_configuration.go +++ b/models/authentication_method_configuration.go @@ -7,8 +7,10 @@ import ( // AuthenticationMethodConfiguration type AuthenticationMethodConfiguration struct { Entity + // The OdataType property + OdataType *string } -// NewAuthenticationMethodConfiguration instantiates a new AuthenticationMethodConfiguration and sets the default values. +// NewAuthenticationMethodConfiguration instantiates a new authenticationMethodConfiguration and sets the default values. func NewAuthenticationMethodConfiguration()(*AuthenticationMethodConfiguration) { m := &AuthenticationMethodConfiguration{ Entity: *NewEntity(), diff --git a/models/authentication_method_configuration_collection_response.go b/models/authentication_method_configuration_collection_response.go index f39b85852a5..24d8ed2a729 100644 --- a/models/authentication_method_configuration_collection_response.go +++ b/models/authentication_method_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type AuthenticationMethodConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAuthenticationMethodConfigurationCollectionResponse instantiates a new AuthenticationMethodConfigurationCollectionResponse and sets the default values. +// NewAuthenticationMethodConfigurationCollectionResponse instantiates a new authenticationMethodConfigurationCollectionResponse and sets the default values. func NewAuthenticationMethodConfigurationCollectionResponse()(*AuthenticationMethodConfigurationCollectionResponse) { m := &AuthenticationMethodConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/authentication_method_mode_detail.go b/models/authentication_method_mode_detail.go index fd42c495db8..95fdac83281 100644 --- a/models/authentication_method_mode_detail.go +++ b/models/authentication_method_mode_detail.go @@ -7,8 +7,10 @@ import ( // AuthenticationMethodModeDetail type AuthenticationMethodModeDetail struct { Entity + // The OdataType property + OdataType *string } -// NewAuthenticationMethodModeDetail instantiates a new AuthenticationMethodModeDetail and sets the default values. +// NewAuthenticationMethodModeDetail instantiates a new authenticationMethodModeDetail and sets the default values. func NewAuthenticationMethodModeDetail()(*AuthenticationMethodModeDetail) { m := &AuthenticationMethodModeDetail{ Entity: *NewEntity(), diff --git a/models/authentication_method_mode_detail_collection_response.go b/models/authentication_method_mode_detail_collection_response.go index 8873b6a1936..9679716dbbc 100644 --- a/models/authentication_method_mode_detail_collection_response.go +++ b/models/authentication_method_mode_detail_collection_response.go @@ -8,7 +8,7 @@ import ( type AuthenticationMethodModeDetailCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAuthenticationMethodModeDetailCollectionResponse instantiates a new AuthenticationMethodModeDetailCollectionResponse and sets the default values. +// NewAuthenticationMethodModeDetailCollectionResponse instantiates a new authenticationMethodModeDetailCollectionResponse and sets the default values. func NewAuthenticationMethodModeDetailCollectionResponse()(*AuthenticationMethodModeDetailCollectionResponse) { m := &AuthenticationMethodModeDetailCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/authentication_method_target.go b/models/authentication_method_target.go index 75c52f5b04c..b9a25b56f59 100644 --- a/models/authentication_method_target.go +++ b/models/authentication_method_target.go @@ -7,6 +7,8 @@ import ( // AuthenticationMethodTarget type AuthenticationMethodTarget struct { Entity + // The OdataType property + OdataType *string } // NewAuthenticationMethodTarget instantiates a new authenticationMethodTarget and sets the default values. func NewAuthenticationMethodTarget()(*AuthenticationMethodTarget) { diff --git a/models/authentication_methods_policy.go b/models/authentication_methods_policy.go index 6ace29f572a..f92b411c820 100644 --- a/models/authentication_methods_policy.go +++ b/models/authentication_methods_policy.go @@ -9,7 +9,7 @@ import ( type AuthenticationMethodsPolicy struct { Entity } -// NewAuthenticationMethodsPolicy instantiates a new AuthenticationMethodsPolicy and sets the default values. +// NewAuthenticationMethodsPolicy instantiates a new authenticationMethodsPolicy and sets the default values. func NewAuthenticationMethodsPolicy()(*AuthenticationMethodsPolicy) { m := &AuthenticationMethodsPolicy{ Entity: *NewEntity(), @@ -102,6 +102,16 @@ func (m *AuthenticationMethodsPolicy) GetFieldDeserializers()(map[string]func(i8 } 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["policyMigrationState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseAuthenticationMethodsPolicyMigrationState) if err != nil { @@ -175,6 +185,17 @@ func (m *AuthenticationMethodsPolicy) GetLastModifiedDateTime()(*i336074805fc853 } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AuthenticationMethodsPolicy) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + 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 authenication 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. Do not use. func (m *AuthenticationMethodsPolicy) GetPolicyMigrationState()(*AuthenticationMethodsPolicyMigrationState) { val, err := m.GetBackingStore().Get("policyMigrationState") @@ -277,6 +298,12 @@ func (m *AuthenticationMethodsPolicy) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetPolicyMigrationState() != nil { cast := (*m.GetPolicyMigrationState()).String() err = writer.WriteStringValue("policyMigrationState", &cast) @@ -344,6 +371,13 @@ func (m *AuthenticationMethodsPolicy) SetLastModifiedDateTime(value *i336074805f panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AuthenticationMethodsPolicy) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // 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 authenication 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. Do not use. func (m *AuthenticationMethodsPolicy) SetPolicyMigrationState(value *AuthenticationMethodsPolicyMigrationState)() { err := m.GetBackingStore().Set("policyMigrationState", value) @@ -394,6 +428,7 @@ type AuthenticationMethodsPolicyable interface { GetDescription()(*string) GetDisplayName()(*string) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetPolicyMigrationState()(*AuthenticationMethodsPolicyMigrationState) GetPolicyVersion()(*string) GetReconfirmationInDays()(*int32) @@ -404,6 +439,7 @@ type AuthenticationMethodsPolicyable interface { SetDescription(value *string)() SetDisplayName(value *string)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetPolicyMigrationState(value *AuthenticationMethodsPolicyMigrationState)() SetPolicyVersion(value *string)() SetReconfirmationInDays(value *int32)() diff --git a/models/authentication_methods_registration_campaign_include_target.go b/models/authentication_methods_registration_campaign_include_target.go index 7a639b6c403..ae9fb10dcbc 100644 --- a/models/authentication_methods_registration_campaign_include_target.go +++ b/models/authentication_methods_registration_campaign_include_target.go @@ -10,7 +10,7 @@ type AuthenticationMethodsRegistrationCampaignIncludeTarget struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAuthenticationMethodsRegistrationCampaignIncludeTarget instantiates a new AuthenticationMethodsRegistrationCampaignIncludeTarget and sets the default values. +// NewAuthenticationMethodsRegistrationCampaignIncludeTarget instantiates a new authenticationMethodsRegistrationCampaignIncludeTarget and sets the default values. func NewAuthenticationMethodsRegistrationCampaignIncludeTarget()(*AuthenticationMethodsRegistrationCampaignIncludeTarget) { m := &AuthenticationMethodsRegistrationCampaignIncludeTarget{ } diff --git a/models/authentication_methods_root.go b/models/authentication_methods_root.go index 1f9b2ea03b9..71eb4041772 100644 --- a/models/authentication_methods_root.go +++ b/models/authentication_methods_root.go @@ -7,8 +7,10 @@ import ( // AuthenticationMethodsRoot type AuthenticationMethodsRoot struct { Entity + // The OdataType property + OdataType *string } -// NewAuthenticationMethodsRoot instantiates a new AuthenticationMethodsRoot and sets the default values. +// NewAuthenticationMethodsRoot instantiates a new authenticationMethodsRoot and sets the default values. func NewAuthenticationMethodsRoot()(*AuthenticationMethodsRoot) { m := &AuthenticationMethodsRoot{ Entity: *NewEntity(), diff --git a/models/authentication_strength_policy.go b/models/authentication_strength_policy.go index bf12debad8d..2a26bf6382b 100644 --- a/models/authentication_strength_policy.go +++ b/models/authentication_strength_policy.go @@ -8,8 +8,10 @@ import ( // AuthenticationStrengthPolicy type AuthenticationStrengthPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewAuthenticationStrengthPolicy instantiates a new AuthenticationStrengthPolicy and sets the default values. +// NewAuthenticationStrengthPolicy instantiates a new authenticationStrengthPolicy and sets the default values. func NewAuthenticationStrengthPolicy()(*AuthenticationStrengthPolicy) { m := &AuthenticationStrengthPolicy{ Entity: *NewEntity(), diff --git a/models/authentication_strength_policy_collection_response.go b/models/authentication_strength_policy_collection_response.go index 299cf5f95cc..29d749c2c22 100644 --- a/models/authentication_strength_policy_collection_response.go +++ b/models/authentication_strength_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type AuthenticationStrengthPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAuthenticationStrengthPolicyCollectionResponse instantiates a new AuthenticationStrengthPolicyCollectionResponse and sets the default values. +// NewAuthenticationStrengthPolicyCollectionResponse instantiates a new authenticationStrengthPolicyCollectionResponse and sets the default values. func NewAuthenticationStrengthPolicyCollectionResponse()(*AuthenticationStrengthPolicyCollectionResponse) { m := &AuthenticationStrengthPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/authentication_strength_root.go b/models/authentication_strength_root.go index 6a1bb1a0e38..bad8b90379f 100644 --- a/models/authentication_strength_root.go +++ b/models/authentication_strength_root.go @@ -7,8 +7,10 @@ import ( // AuthenticationStrengthRoot type AuthenticationStrengthRoot struct { Entity + // The OdataType property + OdataType *string } -// NewAuthenticationStrengthRoot instantiates a new AuthenticationStrengthRoot and sets the default values. +// NewAuthenticationStrengthRoot instantiates a new authenticationStrengthRoot and sets the default values. func NewAuthenticationStrengthRoot()(*AuthenticationStrengthRoot) { m := &AuthenticationStrengthRoot{ Entity: *NewEntity(), diff --git a/models/authored_note.go b/models/authored_note.go index 12848093347..ec607830a34 100644 --- a/models/authored_note.go +++ b/models/authored_note.go @@ -8,8 +8,10 @@ import ( // AuthoredNote type AuthoredNote struct { Entity + // The OdataType property + OdataType *string } -// NewAuthoredNote instantiates a new AuthoredNote and sets the default values. +// NewAuthoredNote instantiates a new authoredNote and sets the default values. func NewAuthoredNote()(*AuthoredNote) { m := &AuthoredNote{ Entity: *NewEntity(), diff --git a/models/authored_note_collection_response.go b/models/authored_note_collection_response.go index c698d809015..a31c1fef744 100644 --- a/models/authored_note_collection_response.go +++ b/models/authored_note_collection_response.go @@ -8,7 +8,7 @@ import ( type AuthoredNoteCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAuthoredNoteCollectionResponse instantiates a new AuthoredNoteCollectionResponse and sets the default values. +// NewAuthoredNoteCollectionResponse instantiates a new authoredNoteCollectionResponse and sets the default values. func NewAuthoredNoteCollectionResponse()(*AuthoredNoteCollectionResponse) { m := &AuthoredNoteCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/authorization_policy.go b/models/authorization_policy.go index fb606af49ab..2c186b763b6 100644 --- a/models/authorization_policy.go +++ b/models/authorization_policy.go @@ -9,7 +9,7 @@ import ( type AuthorizationPolicy struct { PolicyBase } -// NewAuthorizationPolicy instantiates a new AuthorizationPolicy and sets the default values. +// NewAuthorizationPolicy instantiates a new authorizationPolicy and sets the default values. func NewAuthorizationPolicy()(*AuthorizationPolicy) { m := &AuthorizationPolicy{ PolicyBase: *NewPolicyBase(), diff --git a/models/authorization_policy_collection_response.go b/models/authorization_policy_collection_response.go index c7ace029a8a..892f8c307ca 100644 --- a/models/authorization_policy_collection_response.go +++ b/models/authorization_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type AuthorizationPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewAuthorizationPolicyCollectionResponse instantiates a new AuthorizationPolicyCollectionResponse and sets the default values. +// NewAuthorizationPolicyCollectionResponse instantiates a new authorizationPolicyCollectionResponse and sets the default values. func NewAuthorizationPolicyCollectionResponse()(*AuthorizationPolicyCollectionResponse) { m := &AuthorizationPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/availability_item.go b/models/availability_item.go index 260a06ed845..388bf5d7a1e 100644 --- a/models/availability_item.go +++ b/models/availability_item.go @@ -10,7 +10,7 @@ type AvailabilityItem struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewAvailabilityItem instantiates a new AvailabilityItem and sets the default values. +// NewAvailabilityItem instantiates a new availabilityItem and sets the default values. func NewAvailabilityItem()(*AvailabilityItem) { m := &AvailabilityItem{ } diff --git a/models/azure_a_d_authentication.go b/models/azure_a_d_authentication.go new file mode 100644 index 00000000000..90551cfea2a --- /dev/null +++ b/models/azure_a_d_authentication.go @@ -0,0 +1,89 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// AzureADAuthentication +type AzureADAuthentication struct { + Entity + // The OdataType property + OdataType *string +} +// NewAzureADAuthentication instantiates a new azureADAuthentication and sets the default values. +func NewAzureADAuthentication()(*AzureADAuthentication) { + m := &AzureADAuthentication{ + Entity: *NewEntity(), + } + return m +} +// CreateAzureADAuthenticationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAzureADAuthenticationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAzureADAuthentication(), nil +} +// GetAttainments gets the attainments property value. A list of monthly serviceLevelAgreementAttainment objects. +func (m *AzureADAuthentication) GetAttainments()([]ServiceLevelAgreementAttainmentable) { + val, err := m.GetBackingStore().Get("attainments") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ServiceLevelAgreementAttainmentable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AzureADAuthentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["attainments"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateServiceLevelAgreementAttainmentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ServiceLevelAgreementAttainmentable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ServiceLevelAgreementAttainmentable) + } + } + m.SetAttainments(res) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *AzureADAuthentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetAttainments() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAttainments())) + for i, v := range m.GetAttainments() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("attainments", cast) + if err != nil { + return err + } + } + return nil +} +// SetAttainments sets the attainments property value. A list of monthly serviceLevelAgreementAttainment objects. +func (m *AzureADAuthentication) SetAttainments(value []ServiceLevelAgreementAttainmentable)() { + err := m.GetBackingStore().Set("attainments", value) + if err != nil { + panic(err) + } +} +// AzureADAuthenticationable +type AzureADAuthenticationable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAttainments()([]ServiceLevelAgreementAttainmentable) + SetAttainments(value []ServiceLevelAgreementAttainmentable)() +} diff --git a/models/azure_a_d_windows_autopilot_deployment_profile.go b/models/azure_a_d_windows_autopilot_deployment_profile.go index f9c532eaf8d..201951f0c22 100644 --- a/models/azure_a_d_windows_autopilot_deployment_profile.go +++ b/models/azure_a_d_windows_autopilot_deployment_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// AzureADWindowsAutopilotDeploymentProfile +// AzureADWindowsAutopilotDeploymentProfile windows Autopilot Deployment Profile type AzureADWindowsAutopilotDeploymentProfile struct { WindowsAutopilotDeploymentProfile } -// NewAzureADWindowsAutopilotDeploymentProfile instantiates a new AzureADWindowsAutopilotDeploymentProfile and sets the default values. +// NewAzureADWindowsAutopilotDeploymentProfile instantiates a new azureADWindowsAutopilotDeploymentProfile and sets the default values. func NewAzureADWindowsAutopilotDeploymentProfile()(*AzureADWindowsAutopilotDeploymentProfile) { m := &AzureADWindowsAutopilotDeploymentProfile{ WindowsAutopilotDeploymentProfile: *NewWindowsAutopilotDeploymentProfile(), diff --git a/models/azure_active_directory_tenant.go b/models/azure_active_directory_tenant.go index 5b468af5b1c..83dec347f62 100644 --- a/models/azure_active_directory_tenant.go +++ b/models/azure_active_directory_tenant.go @@ -8,7 +8,7 @@ import ( type AzureActiveDirectoryTenant struct { IdentitySource } -// NewAzureActiveDirectoryTenant instantiates a new AzureActiveDirectoryTenant and sets the default values. +// NewAzureActiveDirectoryTenant instantiates a new azureActiveDirectoryTenant and sets the default values. func NewAzureActiveDirectoryTenant()(*AzureActiveDirectoryTenant) { m := &AzureActiveDirectoryTenant{ IdentitySource: *NewIdentitySource(), @@ -45,6 +45,16 @@ func (m *AzureActiveDirectoryTenant) GetFieldDeserializers()(map[string]func(i87 } 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["tenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -57,6 +67,17 @@ func (m *AzureActiveDirectoryTenant) GetFieldDeserializers()(map[string]func(i87 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AzureActiveDirectoryTenant) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTenantId gets the tenantId property value. The ID of the Azure Active Directory tenant. Read only. func (m *AzureActiveDirectoryTenant) GetTenantId()(*string) { val, err := m.GetBackingStore().Get("tenantId") @@ -80,6 +101,12 @@ func (m *AzureActiveDirectoryTenant) Serialize(writer i878a80d2330e89d26896388a3 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("tenantId", m.GetTenantId()) if err != nil { @@ -95,6 +122,13 @@ func (m *AzureActiveDirectoryTenant) SetDisplayName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AzureActiveDirectoryTenant) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTenantId sets the tenantId property value. The ID of the Azure Active Directory tenant. Read only. func (m *AzureActiveDirectoryTenant) SetTenantId(value *string)() { err := m.GetBackingStore().Set("tenantId", value) @@ -107,7 +141,9 @@ type AzureActiveDirectoryTenantable interface { IdentitySourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDisplayName()(*string) + GetOdataType()(*string) GetTenantId()(*string) SetDisplayName(value *string)() + SetOdataType(value *string)() SetTenantId(value *string)() } diff --git a/models/azure_ad_pop_token_authentication.go b/models/azure_ad_pop_token_authentication.go index 2f6cd2c1ee0..1e3e572d58c 100644 --- a/models/azure_ad_pop_token_authentication.go +++ b/models/azure_ad_pop_token_authentication.go @@ -8,7 +8,7 @@ import ( type AzureAdPopTokenAuthentication struct { CustomExtensionAuthenticationConfiguration } -// NewAzureAdPopTokenAuthentication instantiates a new AzureAdPopTokenAuthentication and sets the default values. +// NewAzureAdPopTokenAuthentication instantiates a new azureAdPopTokenAuthentication and sets the default values. func NewAzureAdPopTokenAuthentication()(*AzureAdPopTokenAuthentication) { m := &AzureAdPopTokenAuthentication{ CustomExtensionAuthenticationConfiguration: *NewCustomExtensionAuthenticationConfiguration(), @@ -24,18 +24,54 @@ func CreateAzureAdPopTokenAuthenticationFromDiscriminatorValue(parseNode i878a80 // GetFieldDeserializers the deserialization information for the current model func (m *AzureAdPopTokenAuthentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CustomExtensionAuthenticationConfiguration.GetFieldDeserializers() + 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 *AzureAdPopTokenAuthentication) 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 *AzureAdPopTokenAuthentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.CustomExtensionAuthenticationConfiguration.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AzureAdPopTokenAuthentication) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // AzureAdPopTokenAuthenticationable type AzureAdPopTokenAuthenticationable interface { CustomExtensionAuthenticationConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/azure_ad_token_authentication.go b/models/azure_ad_token_authentication.go index d27dbd688b2..6aac3d524ed 100644 --- a/models/azure_ad_token_authentication.go +++ b/models/azure_ad_token_authentication.go @@ -8,7 +8,7 @@ import ( type AzureAdTokenAuthentication struct { CustomExtensionAuthenticationConfiguration } -// NewAzureAdTokenAuthentication instantiates a new AzureAdTokenAuthentication and sets the default values. +// NewAzureAdTokenAuthentication instantiates a new azureAdTokenAuthentication and sets the default values. func NewAzureAdTokenAuthentication()(*AzureAdTokenAuthentication) { m := &AzureAdTokenAuthentication{ CustomExtensionAuthenticationConfiguration: *NewCustomExtensionAuthenticationConfiguration(), @@ -24,6 +24,16 @@ func CreateAzureAdTokenAuthenticationFromDiscriminatorValue(parseNode i878a80d23 // GetFieldDeserializers the deserialization information for the current model func (m *AzureAdTokenAuthentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CustomExtensionAuthenticationConfiguration.GetFieldDeserializers() + 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["resourceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,6 +46,17 @@ func (m *AzureAdTokenAuthentication) GetFieldDeserializers()(map[string]func(i87 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AzureAdTokenAuthentication) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetResourceId gets the resourceId property value. The appID of the Azure AD application to use to authenticate a logic app with a custom access package workflow extension. func (m *AzureAdTokenAuthentication) GetResourceId()(*string) { val, err := m.GetBackingStore().Get("resourceId") @@ -53,6 +74,12 @@ func (m *AzureAdTokenAuthentication) Serialize(writer i878a80d2330e89d26896388a3 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("resourceId", m.GetResourceId()) if err != nil { @@ -61,6 +88,13 @@ func (m *AzureAdTokenAuthentication) Serialize(writer i878a80d2330e89d26896388a3 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AzureAdTokenAuthentication) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetResourceId sets the resourceId property value. The appID of the Azure AD application to use to authenticate a logic app with a custom access package workflow extension. func (m *AzureAdTokenAuthentication) SetResourceId(value *string)() { err := m.GetBackingStore().Set("resourceId", value) @@ -72,6 +106,8 @@ func (m *AzureAdTokenAuthentication) SetResourceId(value *string)() { type AzureAdTokenAuthenticationable interface { CustomExtensionAuthenticationConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetResourceId()(*string) + SetOdataType(value *string)() SetResourceId(value *string)() } diff --git a/models/azure_communication_services_user_conversation_member.go b/models/azure_communication_services_user_conversation_member.go index 1e09c082c7a..ae64a33b02f 100644 --- a/models/azure_communication_services_user_conversation_member.go +++ b/models/azure_communication_services_user_conversation_member.go @@ -8,7 +8,7 @@ import ( type AzureCommunicationServicesUserConversationMember struct { ConversationMember } -// NewAzureCommunicationServicesUserConversationMember instantiates a new AzureCommunicationServicesUserConversationMember and sets the default values. +// NewAzureCommunicationServicesUserConversationMember instantiates a new azureCommunicationServicesUserConversationMember and sets the default values. func NewAzureCommunicationServicesUserConversationMember()(*AzureCommunicationServicesUserConversationMember) { m := &AzureCommunicationServicesUserConversationMember{ ConversationMember: *NewConversationMember(), diff --git a/models/azure_communication_services_user_identity.go b/models/azure_communication_services_user_identity.go index f8826125b60..e2971977944 100644 --- a/models/azure_communication_services_user_identity.go +++ b/models/azure_communication_services_user_identity.go @@ -7,8 +7,10 @@ import ( // AzureCommunicationServicesUserIdentity type AzureCommunicationServicesUserIdentity struct { Identity + // The OdataType property + OdataType *string } -// NewAzureCommunicationServicesUserIdentity instantiates a new AzureCommunicationServicesUserIdentity and sets the default values. +// NewAzureCommunicationServicesUserIdentity instantiates a new azureCommunicationServicesUserIdentity and sets the default values. func NewAzureCommunicationServicesUserIdentity()(*AzureCommunicationServicesUserIdentity) { m := &AzureCommunicationServicesUserIdentity{ Identity: *NewIdentity(), diff --git a/models/b2c_authentication_methods_policy.go b/models/b2c_authentication_methods_policy.go index 106f607cc50..522213ee0fa 100644 --- a/models/b2c_authentication_methods_policy.go +++ b/models/b2c_authentication_methods_policy.go @@ -8,7 +8,7 @@ import ( type B2cAuthenticationMethodsPolicy struct { Entity } -// NewB2cAuthenticationMethodsPolicy instantiates a new B2cAuthenticationMethodsPolicy and sets the default values. +// NewB2cAuthenticationMethodsPolicy instantiates a new b2cAuthenticationMethodsPolicy and sets the default values. func NewB2cAuthenticationMethodsPolicy()(*B2cAuthenticationMethodsPolicy) { m := &B2cAuthenticationMethodsPolicy{ Entity: *NewEntity(), @@ -52,6 +52,16 @@ func (m *B2cAuthenticationMethodsPolicy) GetFieldDeserializers()(map[string]func } 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 } // GetIsEmailPasswordAuthenticationEnabled gets the isEmailPasswordAuthenticationEnabled property value. The tenant admin can configure local accounts using email if the email and password authentication method is enabled. @@ -87,6 +97,17 @@ func (m *B2cAuthenticationMethodsPolicy) GetIsUserNameAuthenticationEnabled()(*b } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *B2cAuthenticationMethodsPolicy) 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 *B2cAuthenticationMethodsPolicy) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -111,6 +132,12 @@ func (m *B2cAuthenticationMethodsPolicy) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetIsEmailPasswordAuthenticationEnabled sets the isEmailPasswordAuthenticationEnabled property value. The tenant admin can configure local accounts using email if the email and password authentication method is enabled. @@ -134,6 +161,13 @@ func (m *B2cAuthenticationMethodsPolicy) SetIsUserNameAuthenticationEnabled(valu panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *B2cAuthenticationMethodsPolicy) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // B2cAuthenticationMethodsPolicyable type B2cAuthenticationMethodsPolicyable interface { Entityable @@ -141,7 +175,9 @@ type B2cAuthenticationMethodsPolicyable interface { GetIsEmailPasswordAuthenticationEnabled()(*bool) GetIsPhoneOneTimePasswordAuthenticationEnabled()(*bool) GetIsUserNameAuthenticationEnabled()(*bool) + GetOdataType()(*string) SetIsEmailPasswordAuthenticationEnabled(value *bool)() SetIsPhoneOneTimePasswordAuthenticationEnabled(value *bool)() SetIsUserNameAuthenticationEnabled(value *bool)() + SetOdataType(value *string)() } diff --git a/models/b2c_identity_user_flow.go b/models/b2c_identity_user_flow.go index 49bf5414b53..c9d6c679e69 100644 --- a/models/b2c_identity_user_flow.go +++ b/models/b2c_identity_user_flow.go @@ -8,7 +8,7 @@ import ( type B2cIdentityUserFlow struct { IdentityUserFlow } -// NewB2cIdentityUserFlow instantiates a new B2cIdentityUserFlow and sets the default values. +// NewB2cIdentityUserFlow instantiates a new b2cIdentityUserFlow and sets the default values. func NewB2cIdentityUserFlow()(*B2cIdentityUserFlow) { m := &B2cIdentityUserFlow{ IdentityUserFlow: *NewIdentityUserFlow(), diff --git a/models/b2c_identity_user_flow_collection_response.go b/models/b2c_identity_user_flow_collection_response.go index 86defc3165b..01d3986169d 100644 --- a/models/b2c_identity_user_flow_collection_response.go +++ b/models/b2c_identity_user_flow_collection_response.go @@ -8,7 +8,7 @@ import ( type B2cIdentityUserFlowCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewB2cIdentityUserFlowCollectionResponse instantiates a new B2cIdentityUserFlowCollectionResponse and sets the default values. +// NewB2cIdentityUserFlowCollectionResponse instantiates a new b2cIdentityUserFlowCollectionResponse and sets the default values. func NewB2cIdentityUserFlowCollectionResponse()(*B2cIdentityUserFlowCollectionResponse) { m := &B2cIdentityUserFlowCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/b2x_identity_user_flow.go b/models/b2x_identity_user_flow.go index 871a9740b53..f9edd67de9b 100644 --- a/models/b2x_identity_user_flow.go +++ b/models/b2x_identity_user_flow.go @@ -8,7 +8,7 @@ import ( type B2xIdentityUserFlow struct { IdentityUserFlow } -// NewB2xIdentityUserFlow instantiates a new B2xIdentityUserFlow and sets the default values. +// NewB2xIdentityUserFlow instantiates a new b2xIdentityUserFlow and sets the default values. func NewB2xIdentityUserFlow()(*B2xIdentityUserFlow) { m := &B2xIdentityUserFlow{ IdentityUserFlow: *NewIdentityUserFlow(), diff --git a/models/b2x_identity_user_flow_collection_response.go b/models/b2x_identity_user_flow_collection_response.go index 57ec8d807c2..3b9696079a4 100644 --- a/models/b2x_identity_user_flow_collection_response.go +++ b/models/b2x_identity_user_flow_collection_response.go @@ -8,7 +8,7 @@ import ( type B2xIdentityUserFlowCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewB2xIdentityUserFlowCollectionResponse instantiates a new B2xIdentityUserFlowCollectionResponse and sets the default values. +// NewB2xIdentityUserFlowCollectionResponse instantiates a new b2xIdentityUserFlowCollectionResponse and sets the default values. func NewB2xIdentityUserFlowCollectionResponse()(*B2xIdentityUserFlowCollectionResponse) { m := &B2xIdentityUserFlowCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/base_item.go b/models/base_item.go index 7efddecaf9e..2e9929ee9b0 100644 --- a/models/base_item.go +++ b/models/base_item.go @@ -198,6 +198,16 @@ func (m *BaseItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } 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["parentReference"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateItemReferenceFromDiscriminatorValue) if err != nil { @@ -264,6 +274,17 @@ func (m *BaseItem) GetName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *BaseItem) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetParentReference gets the parentReference property value. Parent information, if the item has a parent. Read-write. func (m *BaseItem) GetParentReference()(ItemReferenceable) { val, err := m.GetBackingStore().Get("parentReference") @@ -346,6 +367,12 @@ func (m *BaseItem) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("parentReference", m.GetParentReference()) if err != nil { @@ -423,6 +450,13 @@ func (m *BaseItem) SetName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BaseItem) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetParentReference sets the parentReference property value. Parent information, if the item has a parent. Read-write. func (m *BaseItem) SetParentReference(value ItemReferenceable)() { err := m.GetBackingStore().Set("parentReference", value) @@ -450,6 +484,7 @@ type BaseItemable interface { GetLastModifiedByUser()(Userable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetName()(*string) + GetOdataType()(*string) GetParentReference()(ItemReferenceable) GetWebUrl()(*string) SetCreatedBy(value IdentitySetable)() @@ -461,6 +496,7 @@ type BaseItemable interface { SetLastModifiedByUser(value Userable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetName(value *string)() + SetOdataType(value *string)() SetParentReference(value ItemReferenceable)() SetWebUrl(value *string)() } diff --git a/models/base_item_collection_response.go b/models/base_item_collection_response.go index fcdd5788921..473861f8a4c 100644 --- a/models/base_item_collection_response.go +++ b/models/base_item_collection_response.go @@ -8,7 +8,7 @@ import ( type BaseItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBaseItemCollectionResponse instantiates a new BaseItemCollectionResponse and sets the default values. +// NewBaseItemCollectionResponse instantiates a new baseItemCollectionResponse and sets the default values. func NewBaseItemCollectionResponse()(*BaseItemCollectionResponse) { m := &BaseItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/base_item_version.go b/models/base_item_version.go index c5490a3db1f..9ae691336b4 100644 --- a/models/base_item_version.go +++ b/models/base_item_version.go @@ -8,6 +8,8 @@ import ( // BaseItemVersion type BaseItemVersion struct { Entity + // The OdataType property + OdataType *string } // NewBaseItemVersion instantiates a new baseItemVersion and sets the default values. func NewBaseItemVersion()(*BaseItemVersion) { diff --git a/models/basic_authentication.go b/models/basic_authentication.go index 10eac64bb75..7e1db2ab41c 100644 --- a/models/basic_authentication.go +++ b/models/basic_authentication.go @@ -8,7 +8,7 @@ import ( type BasicAuthentication struct { ApiAuthenticationConfigurationBase } -// NewBasicAuthentication instantiates a new BasicAuthentication and sets the default values. +// NewBasicAuthentication instantiates a new basicAuthentication and sets the default values. func NewBasicAuthentication()(*BasicAuthentication) { m := &BasicAuthentication{ ApiAuthenticationConfigurationBase: *NewApiAuthenticationConfigurationBase(), @@ -24,6 +24,16 @@ func CreateBasicAuthenticationFromDiscriminatorValue(parseNode i878a80d2330e89d2 // GetFieldDeserializers the deserialization information for the current model func (m *BasicAuthentication) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ApiAuthenticationConfigurationBase.GetFieldDeserializers() + 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["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -46,6 +56,17 @@ func (m *BasicAuthentication) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *BasicAuthentication) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPassword gets the password property value. The password. It is not returned in the responses. func (m *BasicAuthentication) GetPassword()(*string) { val, err := m.GetBackingStore().Get("password") @@ -74,6 +95,12 @@ func (m *BasicAuthentication) Serialize(writer i878a80d2330e89d26896388a3f487eef if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("password", m.GetPassword()) if err != nil { @@ -88,6 +115,13 @@ func (m *BasicAuthentication) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BasicAuthentication) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPassword sets the password property value. The password. It is not returned in the responses. func (m *BasicAuthentication) SetPassword(value *string)() { err := m.GetBackingStore().Set("password", value) @@ -106,8 +140,10 @@ func (m *BasicAuthentication) SetUsername(value *string)() { type BasicAuthenticationable interface { ApiAuthenticationConfigurationBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetPassword()(*string) GetUsername()(*string) + SetOdataType(value *string)() SetPassword(value *string)() SetUsername(value *string)() } diff --git a/models/bitlocker.go b/models/bitlocker.go index 04006e4abe3..f1fb7072864 100644 --- a/models/bitlocker.go +++ b/models/bitlocker.go @@ -7,6 +7,8 @@ import ( // Bitlocker type Bitlocker struct { Entity + // The OdataType property + OdataType *string } // NewBitlocker instantiates a new bitlocker and sets the default values. func NewBitlocker()(*Bitlocker) { diff --git a/models/bitlocker_recovery_key.go b/models/bitlocker_recovery_key.go index 7424cbee424..db5869920d2 100644 --- a/models/bitlocker_recovery_key.go +++ b/models/bitlocker_recovery_key.go @@ -8,6 +8,8 @@ import ( // BitlockerRecoveryKey type BitlockerRecoveryKey struct { Entity + // The OdataType property + OdataType *string } // NewBitlockerRecoveryKey instantiates a new bitlockerRecoveryKey and sets the default values. func NewBitlockerRecoveryKey()(*BitlockerRecoveryKey) { diff --git a/models/bitlocker_recovery_key_collection_response.go b/models/bitlocker_recovery_key_collection_response.go index 1ded3db2ac1..ea007fcd824 100644 --- a/models/bitlocker_recovery_key_collection_response.go +++ b/models/bitlocker_recovery_key_collection_response.go @@ -8,7 +8,7 @@ import ( type BitlockerRecoveryKeyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBitlockerRecoveryKeyCollectionResponse instantiates a new BitlockerRecoveryKeyCollectionResponse and sets the default values. +// NewBitlockerRecoveryKeyCollectionResponse instantiates a new bitlockerRecoveryKeyCollectionResponse and sets the default values. func NewBitlockerRecoveryKeyCollectionResponse()(*BitlockerRecoveryKeyCollectionResponse) { m := &BitlockerRecoveryKeyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/block_access_action.go b/models/block_access_action.go index b1e6a27c3de..0e1e642287d 100644 --- a/models/block_access_action.go +++ b/models/block_access_action.go @@ -8,7 +8,7 @@ import ( type BlockAccessAction struct { DlpActionInfo } -// NewBlockAccessAction instantiates a new BlockAccessAction and sets the default values. +// NewBlockAccessAction instantiates a new blockAccessAction and sets the default values. func NewBlockAccessAction()(*BlockAccessAction) { m := &BlockAccessAction{ DlpActionInfo: *NewDlpActionInfo(), @@ -22,18 +22,54 @@ func CreateBlockAccessActionFromDiscriminatorValue(parseNode i878a80d2330e89d268 // GetFieldDeserializers the deserialization information for the current model func (m *BlockAccessAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DlpActionInfo.GetFieldDeserializers() + 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 *BlockAccessAction) 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 *BlockAccessAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DlpActionInfo.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BlockAccessAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // BlockAccessActionable type BlockAccessActionable interface { DlpActionInfoable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/booking_appointment.go b/models/booking_appointment.go index 7c82ea73b3d..8da6b40df6f 100644 --- a/models/booking_appointment.go +++ b/models/booking_appointment.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// BookingAppointment +// BookingAppointment represents a booked appointment of a service by a customer in a business. type BookingAppointment struct { Entity + // The OdataType property + OdataType *string } -// NewBookingAppointment instantiates a new BookingAppointment and sets the default values. +// NewBookingAppointment instantiates a new bookingAppointment and sets the default values. func NewBookingAppointment()(*BookingAppointment) { m := &BookingAppointment{ Entity: *NewEntity(), diff --git a/models/booking_appointment_collection_response.go b/models/booking_appointment_collection_response.go index 58b56836006..d9cdf90d802 100644 --- a/models/booking_appointment_collection_response.go +++ b/models/booking_appointment_collection_response.go @@ -8,7 +8,7 @@ import ( type BookingAppointmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBookingAppointmentCollectionResponse instantiates a new BookingAppointmentCollectionResponse and sets the default values. +// NewBookingAppointmentCollectionResponse instantiates a new bookingAppointmentCollectionResponse and sets the default values. func NewBookingAppointmentCollectionResponse()(*BookingAppointmentCollectionResponse) { m := &BookingAppointmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/booking_business.go b/models/booking_business.go index 2a828ff5d02..6c4582aced0 100644 --- a/models/booking_business.go +++ b/models/booking_business.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// BookingBusiness +// BookingBusiness represents a Microsot Bookings Business. type BookingBusiness struct { BookingNamedEntity + // The OdataType property + OdataType *string } -// NewBookingBusiness instantiates a new BookingBusiness and sets the default values. +// NewBookingBusiness instantiates a new bookingBusiness and sets the default values. func NewBookingBusiness()(*BookingBusiness) { m := &BookingBusiness{ BookingNamedEntity: *NewBookingNamedEntity(), diff --git a/models/booking_business_collection_response.go b/models/booking_business_collection_response.go index 0543e4c4217..5fe4bad9e66 100644 --- a/models/booking_business_collection_response.go +++ b/models/booking_business_collection_response.go @@ -8,7 +8,7 @@ import ( type BookingBusinessCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBookingBusinessCollectionResponse instantiates a new BookingBusinessCollectionResponse and sets the default values. +// NewBookingBusinessCollectionResponse instantiates a new bookingBusinessCollectionResponse and sets the default values. func NewBookingBusinessCollectionResponse()(*BookingBusinessCollectionResponse) { m := &BookingBusinessCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/booking_currency.go b/models/booking_currency.go index c17f14a7528..ce2b9d30941 100644 --- a/models/booking_currency.go +++ b/models/booking_currency.go @@ -7,8 +7,10 @@ import ( // BookingCurrency type BookingCurrency struct { Entity + // The OdataType property + OdataType *string } -// NewBookingCurrency instantiates a new BookingCurrency and sets the default values. +// NewBookingCurrency instantiates a new bookingCurrency and sets the default values. func NewBookingCurrency()(*BookingCurrency) { m := &BookingCurrency{ Entity: *NewEntity(), diff --git a/models/booking_currency_collection_response.go b/models/booking_currency_collection_response.go index 3a04effa634..9cf7e13f35f 100644 --- a/models/booking_currency_collection_response.go +++ b/models/booking_currency_collection_response.go @@ -8,7 +8,7 @@ import ( type BookingCurrencyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBookingCurrencyCollectionResponse instantiates a new BookingCurrencyCollectionResponse and sets the default values. +// NewBookingCurrencyCollectionResponse instantiates a new bookingCurrencyCollectionResponse and sets the default values. func NewBookingCurrencyCollectionResponse()(*BookingCurrencyCollectionResponse) { m := &BookingCurrencyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/booking_custom_question.go b/models/booking_custom_question.go index df02ae7d002..9859ea038ee 100644 --- a/models/booking_custom_question.go +++ b/models/booking_custom_question.go @@ -7,6 +7,8 @@ import ( // BookingCustomQuestion represents a custom question of the business. type BookingCustomQuestion struct { Entity + // The OdataType property + OdataType *string } // NewBookingCustomQuestion instantiates a new bookingCustomQuestion and sets the default values. func NewBookingCustomQuestion()(*BookingCustomQuestion) { diff --git a/models/booking_custom_question_collection_response.go b/models/booking_custom_question_collection_response.go index 07bb839140c..99423bfe8bb 100644 --- a/models/booking_custom_question_collection_response.go +++ b/models/booking_custom_question_collection_response.go @@ -8,7 +8,7 @@ import ( type BookingCustomQuestionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBookingCustomQuestionCollectionResponse instantiates a new BookingCustomQuestionCollectionResponse and sets the default values. +// NewBookingCustomQuestionCollectionResponse instantiates a new bookingCustomQuestionCollectionResponse and sets the default values. func NewBookingCustomQuestionCollectionResponse()(*BookingCustomQuestionCollectionResponse) { m := &BookingCustomQuestionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/booking_customer.go b/models/booking_customer.go index 60a1d9c4b05..18a9e70ba43 100644 --- a/models/booking_customer.go +++ b/models/booking_customer.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// BookingCustomer +// BookingCustomer represents a customer of the business. type BookingCustomer struct { BookingPerson } -// NewBookingCustomer instantiates a new BookingCustomer and sets the default values. +// NewBookingCustomer instantiates a new bookingCustomer and sets the default values. func NewBookingCustomer()(*BookingCustomer) { m := &BookingCustomer{ BookingPerson: *NewBookingPerson(), diff --git a/models/booking_customer_collection_response.go b/models/booking_customer_collection_response.go index fe203a95a34..ebfa04badda 100644 --- a/models/booking_customer_collection_response.go +++ b/models/booking_customer_collection_response.go @@ -8,7 +8,7 @@ import ( type BookingCustomerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBookingCustomerCollectionResponse instantiates a new BookingCustomerCollectionResponse and sets the default values. +// NewBookingCustomerCollectionResponse instantiates a new bookingCustomerCollectionResponse and sets the default values. func NewBookingCustomerCollectionResponse()(*BookingCustomerCollectionResponse) { m := &BookingCustomerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/booking_customer_information.go b/models/booking_customer_information.go index 0287edbc879..407dbb3f579 100644 --- a/models/booking_customer_information.go +++ b/models/booking_customer_information.go @@ -8,7 +8,7 @@ import ( type BookingCustomerInformation struct { BookingCustomerInformationBase } -// NewBookingCustomerInformation instantiates a new BookingCustomerInformation and sets the default values. +// NewBookingCustomerInformation instantiates a new bookingCustomerInformation and sets the default values. func NewBookingCustomerInformation()(*BookingCustomerInformation) { m := &BookingCustomerInformation{ BookingCustomerInformationBase: *NewBookingCustomerInformationBase(), @@ -123,6 +123,16 @@ func (m *BookingCustomerInformation) GetFieldDeserializers()(map[string]func(i87 } 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["phone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -188,6 +198,17 @@ func (m *BookingCustomerInformation) GetNotes()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *BookingCustomerInformation) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPhone gets the phone property value. The customer's phone number. func (m *BookingCustomerInformation) GetPhone()(*string) { val, err := m.GetBackingStore().Get("phone") @@ -269,6 +290,12 @@ func (m *BookingCustomerInformation) Serialize(writer i878a80d2330e89d26896388a3 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("phone", m.GetPhone()) if err != nil { @@ -331,6 +358,13 @@ func (m *BookingCustomerInformation) SetNotes(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BookingCustomerInformation) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPhone sets the phone property value. The customer's phone number. func (m *BookingCustomerInformation) SetPhone(value *string)() { err := m.GetBackingStore().Set("phone", value) @@ -362,6 +396,7 @@ type BookingCustomerInformationable interface { GetLocation()(Locationable) GetName()(*string) GetNotes()(*string) + GetOdataType()(*string) GetPhone()(*string) GetSmsNotificationsEnabled()(*bool) GetTimeZone()(*string) @@ -371,6 +406,7 @@ type BookingCustomerInformationable interface { SetLocation(value Locationable)() SetName(value *string)() SetNotes(value *string)() + SetOdataType(value *string)() SetPhone(value *string)() SetSmsNotificationsEnabled(value *bool)() SetTimeZone(value *string)() diff --git a/models/booking_customer_information_base.go b/models/booking_customer_information_base.go index 2ee39cb7064..7c002fc1a10 100644 --- a/models/booking_customer_information_base.go +++ b/models/booking_customer_information_base.go @@ -10,7 +10,7 @@ type BookingCustomerInformationBase struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewBookingCustomerInformationBase instantiates a new BookingCustomerInformationBase and sets the default values. +// NewBookingCustomerInformationBase instantiates a new bookingCustomerInformationBase and sets the default values. func NewBookingCustomerInformationBase()(*BookingCustomerInformationBase) { m := &BookingCustomerInformationBase{ } diff --git a/models/booking_named_entity.go b/models/booking_named_entity.go index a9a414cd252..b451b6920fb 100644 --- a/models/booking_named_entity.go +++ b/models/booking_named_entity.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// BookingNamedEntity +// BookingNamedEntity booking entities that provide a display name. type BookingNamedEntity struct { Entity } -// NewBookingNamedEntity instantiates a new BookingNamedEntity and sets the default values. +// NewBookingNamedEntity instantiates a new bookingNamedEntity and sets the default values. func NewBookingNamedEntity()(*BookingNamedEntity) { m := &BookingNamedEntity{ Entity: *NewEntity(), @@ -69,8 +69,29 @@ func (m *BookingNamedEntity) GetFieldDeserializers()(map[string]func(i878a80d233 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *BookingNamedEntity) 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 *BookingNamedEntity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -83,6 +104,12 @@ func (m *BookingNamedEntity) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDisplayName sets the displayName property value. A name for the derived entity, which interfaces with customers. @@ -92,10 +119,19 @@ func (m *BookingNamedEntity) SetDisplayName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BookingNamedEntity) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // BookingNamedEntityable type BookingNamedEntityable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDisplayName()(*string) + GetOdataType()(*string) SetDisplayName(value *string)() + SetOdataType(value *string)() } diff --git a/models/booking_person.go b/models/booking_person.go index 36bc8654803..81827602574 100644 --- a/models/booking_person.go +++ b/models/booking_person.go @@ -7,6 +7,8 @@ import ( // BookingPerson represents a booking customer or staff member. type BookingPerson struct { BookingNamedEntity + // The OdataType property + OdataType *string } // NewBookingPerson instantiates a new bookingPerson and sets the default values. func NewBookingPerson()(*BookingPerson) { diff --git a/models/booking_service.go b/models/booking_service.go index d2195390cb7..4a3192e1b80 100644 --- a/models/booking_service.go +++ b/models/booking_service.go @@ -7,6 +7,8 @@ import ( // BookingService represents a particular service offered by a booking business. type BookingService struct { BookingNamedEntity + // The OdataType property + OdataType *string } // NewBookingService instantiates a new bookingService and sets the default values. func NewBookingService()(*BookingService) { diff --git a/models/booking_service_collection_response.go b/models/booking_service_collection_response.go index 644e6dbc550..529013cc13c 100644 --- a/models/booking_service_collection_response.go +++ b/models/booking_service_collection_response.go @@ -8,7 +8,7 @@ import ( type BookingServiceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBookingServiceCollectionResponse instantiates a new BookingServiceCollectionResponse and sets the default values. +// NewBookingServiceCollectionResponse instantiates a new bookingServiceCollectionResponse and sets the default values. func NewBookingServiceCollectionResponse()(*BookingServiceCollectionResponse) { m := &BookingServiceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/booking_staff_member.go b/models/booking_staff_member.go index 53a8f9966e8..a092e9e7d30 100644 --- a/models/booking_staff_member.go +++ b/models/booking_staff_member.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// BookingStaffMember +// BookingStaffMember represents a staff member who provides services in a business. type BookingStaffMember struct { BookingPerson } -// NewBookingStaffMember instantiates a new BookingStaffMember and sets the default values. +// NewBookingStaffMember instantiates a new bookingStaffMember and sets the default values. func NewBookingStaffMember()(*BookingStaffMember) { m := &BookingStaffMember{ BookingPerson: *NewBookingPerson(), diff --git a/models/booking_staff_member_collection_response.go b/models/booking_staff_member_collection_response.go index f0698ed86c6..695e6783269 100644 --- a/models/booking_staff_member_collection_response.go +++ b/models/booking_staff_member_collection_response.go @@ -8,7 +8,7 @@ import ( type BookingStaffMemberCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBookingStaffMemberCollectionResponse instantiates a new BookingStaffMemberCollectionResponse and sets the default values. +// NewBookingStaffMemberCollectionResponse instantiates a new bookingStaffMemberCollectionResponse and sets the default values. func NewBookingStaffMemberCollectionResponse()(*BookingStaffMemberCollectionResponse) { m := &BookingStaffMemberCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/browser_shared_cookie.go b/models/browser_shared_cookie.go index 2971ae26588..b1e6843cefb 100644 --- a/models/browser_shared_cookie.go +++ b/models/browser_shared_cookie.go @@ -8,6 +8,8 @@ import ( // BrowserSharedCookie type BrowserSharedCookie struct { Entity + // The OdataType property + OdataType *string } // NewBrowserSharedCookie instantiates a new browserSharedCookie and sets the default values. func NewBrowserSharedCookie()(*BrowserSharedCookie) { diff --git a/models/browser_shared_cookie_collection_response.go b/models/browser_shared_cookie_collection_response.go index 759b501e346..1d78f87495c 100644 --- a/models/browser_shared_cookie_collection_response.go +++ b/models/browser_shared_cookie_collection_response.go @@ -8,7 +8,7 @@ import ( type BrowserSharedCookieCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBrowserSharedCookieCollectionResponse instantiates a new BrowserSharedCookieCollectionResponse and sets the default values. +// NewBrowserSharedCookieCollectionResponse instantiates a new browserSharedCookieCollectionResponse and sets the default values. func NewBrowserSharedCookieCollectionResponse()(*BrowserSharedCookieCollectionResponse) { m := &BrowserSharedCookieCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/browser_shared_cookie_history.go b/models/browser_shared_cookie_history.go index 460ad57bb82..7d2f32fe94b 100644 --- a/models/browser_shared_cookie_history.go +++ b/models/browser_shared_cookie_history.go @@ -11,7 +11,7 @@ type BrowserSharedCookieHistory struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewBrowserSharedCookieHistory instantiates a new BrowserSharedCookieHistory and sets the default values. +// NewBrowserSharedCookieHistory instantiates a new browserSharedCookieHistory and sets the default values. func NewBrowserSharedCookieHistory()(*BrowserSharedCookieHistory) { m := &BrowserSharedCookieHistory{ } diff --git a/models/browser_site.go b/models/browser_site.go index 5e49cbcbd57..1ed6bf21d78 100644 --- a/models/browser_site.go +++ b/models/browser_site.go @@ -174,6 +174,16 @@ func (m *BrowserSite) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } 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["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseBrowserSiteStatus) if err != nil { @@ -250,6 +260,17 @@ func (m *BrowserSite) GetMergeType()(*BrowserSiteMergeType) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *BrowserSite) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetStatus gets the status property value. The status property func (m *BrowserSite) GetStatus()(*BrowserSiteStatus) { val, err := m.GetBackingStore().Get("status") @@ -351,6 +372,12 @@ func (m *BrowserSite) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetStatus() != nil { cast := (*m.GetStatus()).String() err = writer.WriteStringValue("status", &cast) @@ -436,6 +463,13 @@ func (m *BrowserSite) SetMergeType(value *BrowserSiteMergeType)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BrowserSite) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetStatus sets the status property value. The status property func (m *BrowserSite) SetStatus(value *BrowserSiteStatus)() { err := m.GetBackingStore().Set("status", value) @@ -470,6 +504,7 @@ type BrowserSiteable interface { GetLastModifiedBy()(IdentitySetable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMergeType()(*BrowserSiteMergeType) + GetOdataType()(*string) GetStatus()(*BrowserSiteStatus) GetTargetEnvironment()(*BrowserSiteTargetEnvironment) GetWebUrl()(*string) @@ -482,6 +517,7 @@ type BrowserSiteable interface { SetLastModifiedBy(value IdentitySetable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMergeType(value *BrowserSiteMergeType)() + SetOdataType(value *string)() SetStatus(value *BrowserSiteStatus)() SetTargetEnvironment(value *BrowserSiteTargetEnvironment)() SetWebUrl(value *string)() diff --git a/models/browser_site_collection_response.go b/models/browser_site_collection_response.go index d6e146762e5..f30a7bb95b1 100644 --- a/models/browser_site_collection_response.go +++ b/models/browser_site_collection_response.go @@ -8,7 +8,7 @@ import ( type BrowserSiteCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBrowserSiteCollectionResponse instantiates a new BrowserSiteCollectionResponse and sets the default values. +// NewBrowserSiteCollectionResponse instantiates a new browserSiteCollectionResponse and sets the default values. func NewBrowserSiteCollectionResponse()(*BrowserSiteCollectionResponse) { m := &BrowserSiteCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/browser_site_history.go b/models/browser_site_history.go index abb6fc90f0b..aea07cfc394 100644 --- a/models/browser_site_history.go +++ b/models/browser_site_history.go @@ -11,7 +11,7 @@ type BrowserSiteHistory struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewBrowserSiteHistory instantiates a new BrowserSiteHistory and sets the default values. +// NewBrowserSiteHistory instantiates a new browserSiteHistory and sets the default values. func NewBrowserSiteHistory()(*BrowserSiteHistory) { m := &BrowserSiteHistory{ } diff --git a/models/browser_site_list.go b/models/browser_site_list.go index e3f6c7b952a..e620476e77c 100644 --- a/models/browser_site_list.go +++ b/models/browser_site_list.go @@ -8,6 +8,8 @@ import ( // BrowserSiteList a singleton entity which is used to specify IE mode site list metadata type BrowserSiteList struct { Entity + // The OdataType property + OdataType *string } // NewBrowserSiteList instantiates a new browserSiteList and sets the default values. func NewBrowserSiteList()(*BrowserSiteList) { diff --git a/models/browser_site_list_collection_response.go b/models/browser_site_list_collection_response.go index 023c5e948e7..3adbd8712c6 100644 --- a/models/browser_site_list_collection_response.go +++ b/models/browser_site_list_collection_response.go @@ -8,7 +8,7 @@ import ( type BrowserSiteListCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBrowserSiteListCollectionResponse instantiates a new BrowserSiteListCollectionResponse and sets the default values. +// NewBrowserSiteListCollectionResponse instantiates a new browserSiteListCollectionResponse and sets the default values. func NewBrowserSiteListCollectionResponse()(*BrowserSiteListCollectionResponse) { m := &BrowserSiteListCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/bucket_aggregation_definition.go b/models/bucket_aggregation_definition.go index 1764aaf5565..78a80f1846b 100644 --- a/models/bucket_aggregation_definition.go +++ b/models/bucket_aggregation_definition.go @@ -10,7 +10,7 @@ type BucketAggregationDefinition struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewBucketAggregationDefinition instantiates a new BucketAggregationDefinition and sets the default values. +// NewBucketAggregationDefinition instantiates a new bucketAggregationDefinition and sets the default values. func NewBucketAggregationDefinition()(*BucketAggregationDefinition) { m := &BucketAggregationDefinition{ } diff --git a/models/bucket_aggregation_range.go b/models/bucket_aggregation_range.go index e0616b1b683..1e48f8141f4 100644 --- a/models/bucket_aggregation_range.go +++ b/models/bucket_aggregation_range.go @@ -10,7 +10,7 @@ type BucketAggregationRange struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewBucketAggregationRange instantiates a new BucketAggregationRange and sets the default values. +// NewBucketAggregationRange instantiates a new bucketAggregationRange and sets the default values. func NewBucketAggregationRange()(*BucketAggregationRange) { m := &BucketAggregationRange{ } diff --git a/models/built_in_identity_provider.go b/models/built_in_identity_provider.go index ae1ee5106da..51db2fcb77f 100644 --- a/models/built_in_identity_provider.go +++ b/models/built_in_identity_provider.go @@ -8,7 +8,7 @@ import ( type BuiltInIdentityProvider struct { IdentityProviderBase } -// NewBuiltInIdentityProvider instantiates a new BuiltInIdentityProvider and sets the default values. +// NewBuiltInIdentityProvider instantiates a new builtInIdentityProvider and sets the default values. func NewBuiltInIdentityProvider()(*BuiltInIdentityProvider) { m := &BuiltInIdentityProvider{ IdentityProviderBase: *NewIdentityProviderBase(), diff --git a/models/bulk_upload.go b/models/bulk_upload.go new file mode 100644 index 00000000000..80cc919f24e --- /dev/null +++ b/models/bulk_upload.go @@ -0,0 +1,41 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// BulkUpload +type BulkUpload struct { + Entity + // The OdataType property + OdataType *string +} +// NewBulkUpload instantiates a new bulkUpload and sets the default values. +func NewBulkUpload()(*BulkUpload) { + m := &BulkUpload{ + Entity: *NewEntity(), + } + return m +} +// CreateBulkUploadFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateBulkUploadFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewBulkUpload(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *BulkUpload) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *BulkUpload) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + return nil +} +// BulkUploadable +type BulkUploadable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/business_flow.go b/models/business_flow.go index 0efdfe05ee6..3a584e99412 100644 --- a/models/business_flow.go +++ b/models/business_flow.go @@ -7,6 +7,8 @@ import ( // BusinessFlow type BusinessFlow struct { Entity + // The OdataType property + OdataType *string } // NewBusinessFlow instantiates a new businessFlow and sets the default values. func NewBusinessFlow()(*BusinessFlow) { diff --git a/models/business_flow_collection_response.go b/models/business_flow_collection_response.go index 2c86eee67b9..361fd3e1617 100644 --- a/models/business_flow_collection_response.go +++ b/models/business_flow_collection_response.go @@ -8,7 +8,7 @@ import ( type BusinessFlowCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBusinessFlowCollectionResponse instantiates a new BusinessFlowCollectionResponse and sets the default values. +// NewBusinessFlowCollectionResponse instantiates a new businessFlowCollectionResponse and sets the default values. func NewBusinessFlowCollectionResponse()(*BusinessFlowCollectionResponse) { m := &BusinessFlowCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/business_flow_settings.go b/models/business_flow_settings.go index 93272df3bb5..50eba0c2c20 100644 --- a/models/business_flow_settings.go +++ b/models/business_flow_settings.go @@ -8,7 +8,7 @@ import ( type BusinessFlowSettings struct { AccessReviewSettings } -// NewBusinessFlowSettings instantiates a new BusinessFlowSettings and sets the default values. +// NewBusinessFlowSettings instantiates a new businessFlowSettings and sets the default values. func NewBusinessFlowSettings()(*BusinessFlowSettings) { m := &BusinessFlowSettings{ AccessReviewSettings: *NewAccessReviewSettings(), @@ -45,8 +45,29 @@ func (m *BusinessFlowSettings) GetFieldDeserializers()(map[string]func(i878a80d2 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *BusinessFlowSettings) 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 *BusinessFlowSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AccessReviewSettings.Serialize(writer) @@ -59,6 +80,12 @@ func (m *BusinessFlowSettings) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDurationInDays sets the durationInDays property value. The durationInDays property @@ -68,10 +95,19 @@ func (m *BusinessFlowSettings) SetDurationInDays(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BusinessFlowSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // BusinessFlowSettingsable type BusinessFlowSettingsable interface { AccessReviewSettingsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDurationInDays()(*int32) + GetOdataType()(*string) SetDurationInDays(value *int32)() + SetOdataType(value *string)() } diff --git a/models/business_flow_template.go b/models/business_flow_template.go index 3c6de2ee33a..cb0de2d7847 100644 --- a/models/business_flow_template.go +++ b/models/business_flow_template.go @@ -7,8 +7,10 @@ import ( // BusinessFlowTemplate type BusinessFlowTemplate struct { Entity + // The OdataType property + OdataType *string } -// NewBusinessFlowTemplate instantiates a new BusinessFlowTemplate and sets the default values. +// NewBusinessFlowTemplate instantiates a new businessFlowTemplate and sets the default values. func NewBusinessFlowTemplate()(*BusinessFlowTemplate) { m := &BusinessFlowTemplate{ Entity: *NewEntity(), diff --git a/models/business_flow_template_collection_response.go b/models/business_flow_template_collection_response.go index 9e2a4359c6d..8b9252997ac 100644 --- a/models/business_flow_template_collection_response.go +++ b/models/business_flow_template_collection_response.go @@ -8,7 +8,7 @@ import ( type BusinessFlowTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBusinessFlowTemplateCollectionResponse instantiates a new BusinessFlowTemplateCollectionResponse and sets the default values. +// NewBusinessFlowTemplateCollectionResponse instantiates a new businessFlowTemplateCollectionResponse and sets the default values. func NewBusinessFlowTemplateCollectionResponse()(*BusinessFlowTemplateCollectionResponse) { m := &BusinessFlowTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/business_scenario.go b/models/business_scenario.go index 4075a0ade7f..0ee59a457e5 100644 --- a/models/business_scenario.go +++ b/models/business_scenario.go @@ -8,8 +8,10 @@ import ( // BusinessScenario type BusinessScenario struct { Entity + // The OdataType property + OdataType *string } -// NewBusinessScenario instantiates a new BusinessScenario and sets the default values. +// NewBusinessScenario instantiates a new businessScenario and sets the default values. func NewBusinessScenario()(*BusinessScenario) { m := &BusinessScenario{ Entity: *NewEntity(), diff --git a/models/business_scenario_collection_response.go b/models/business_scenario_collection_response.go index 910a46895eb..75544983701 100644 --- a/models/business_scenario_collection_response.go +++ b/models/business_scenario_collection_response.go @@ -8,7 +8,7 @@ import ( type BusinessScenarioCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBusinessScenarioCollectionResponse instantiates a new BusinessScenarioCollectionResponse and sets the default values. +// NewBusinessScenarioCollectionResponse instantiates a new businessScenarioCollectionResponse and sets the default values. func NewBusinessScenarioCollectionResponse()(*BusinessScenarioCollectionResponse) { m := &BusinessScenarioCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/business_scenario_group_target.go b/models/business_scenario_group_target.go index 0db8b4d52d9..0b2516f7cb8 100644 --- a/models/business_scenario_group_target.go +++ b/models/business_scenario_group_target.go @@ -8,7 +8,7 @@ import ( type BusinessScenarioGroupTarget struct { BusinessScenarioTaskTargetBase } -// NewBusinessScenarioGroupTarget instantiates a new BusinessScenarioGroupTarget and sets the default values. +// NewBusinessScenarioGroupTarget instantiates a new businessScenarioGroupTarget and sets the default values. func NewBusinessScenarioGroupTarget()(*BusinessScenarioGroupTarget) { m := &BusinessScenarioGroupTarget{ BusinessScenarioTaskTargetBase: *NewBusinessScenarioTaskTargetBase(), @@ -34,6 +34,16 @@ func (m *BusinessScenarioGroupTarget) GetFieldDeserializers()(map[string]func(i8 } 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 } // GetGroupId gets the groupId property value. The unique identifier for the group. @@ -47,6 +57,17 @@ func (m *BusinessScenarioGroupTarget) GetGroupId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *BusinessScenarioGroupTarget) 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 *BusinessScenarioGroupTarget) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.BusinessScenarioTaskTargetBase.Serialize(writer) @@ -59,6 +80,12 @@ func (m *BusinessScenarioGroupTarget) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetGroupId sets the groupId property value. The unique identifier for the group. @@ -68,10 +95,19 @@ func (m *BusinessScenarioGroupTarget) SetGroupId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BusinessScenarioGroupTarget) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // BusinessScenarioGroupTargetable type BusinessScenarioGroupTargetable interface { BusinessScenarioTaskTargetBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetGroupId()(*string) + GetOdataType()(*string) SetGroupId(value *string)() + SetOdataType(value *string)() } diff --git a/models/business_scenario_plan_reference.go b/models/business_scenario_plan_reference.go index 77e7c8ca2e8..2449a1db209 100644 --- a/models/business_scenario_plan_reference.go +++ b/models/business_scenario_plan_reference.go @@ -7,8 +7,10 @@ import ( // BusinessScenarioPlanReference type BusinessScenarioPlanReference struct { Entity + // The OdataType property + OdataType *string } -// NewBusinessScenarioPlanReference instantiates a new BusinessScenarioPlanReference and sets the default values. +// NewBusinessScenarioPlanReference instantiates a new businessScenarioPlanReference and sets the default values. func NewBusinessScenarioPlanReference()(*BusinessScenarioPlanReference) { m := &BusinessScenarioPlanReference{ Entity: *NewEntity(), diff --git a/models/business_scenario_planner.go b/models/business_scenario_planner.go index 2cdecc388c5..ee1afb5d785 100644 --- a/models/business_scenario_planner.go +++ b/models/business_scenario_planner.go @@ -7,6 +7,8 @@ import ( // BusinessScenarioPlanner type BusinessScenarioPlanner struct { Entity + // The OdataType property + OdataType *string } // NewBusinessScenarioPlanner instantiates a new businessScenarioPlanner and sets the default values. func NewBusinessScenarioPlanner()(*BusinessScenarioPlanner) { diff --git a/models/business_scenario_task.go b/models/business_scenario_task.go index d6c63e69076..ae9d560287f 100644 --- a/models/business_scenario_task.go +++ b/models/business_scenario_task.go @@ -8,7 +8,7 @@ import ( type BusinessScenarioTask struct { PlannerTask } -// NewBusinessScenarioTask instantiates a new BusinessScenarioTask and sets the default values. +// NewBusinessScenarioTask instantiates a new businessScenarioTask and sets the default values. func NewBusinessScenarioTask()(*BusinessScenarioTask) { m := &BusinessScenarioTask{ PlannerTask: *NewPlannerTask(), diff --git a/models/business_scenario_task_collection_response.go b/models/business_scenario_task_collection_response.go index e8c71868a37..5bd3d646ecc 100644 --- a/models/business_scenario_task_collection_response.go +++ b/models/business_scenario_task_collection_response.go @@ -8,7 +8,7 @@ import ( type BusinessScenarioTaskCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewBusinessScenarioTaskCollectionResponse instantiates a new BusinessScenarioTaskCollectionResponse and sets the default values. +// NewBusinessScenarioTaskCollectionResponse instantiates a new businessScenarioTaskCollectionResponse and sets the default values. func NewBusinessScenarioTaskCollectionResponse()(*BusinessScenarioTaskCollectionResponse) { m := &BusinessScenarioTaskCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/calendar.go b/models/calendar.go index 76e66d74d26..d3fd9b93b83 100644 --- a/models/calendar.go +++ b/models/calendar.go @@ -363,6 +363,16 @@ func (m *Calendar) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } 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["owner"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateEmailAddressFromDiscriminatorValue) if err != nil { @@ -479,6 +489,17 @@ func (m *Calendar) GetName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Calendar) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOwner gets the owner property value. If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user. Read-only. func (m *Calendar) GetOwner()(EmailAddressable) { val, err := m.GetBackingStore().Get("owner") @@ -647,6 +668,12 @@ func (m *Calendar) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("owner", m.GetOwner()) if err != nil { @@ -800,6 +827,13 @@ func (m *Calendar) SetName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Calendar) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOwner sets the owner property value. If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user. Read-only. func (m *Calendar) SetOwner(value EmailAddressable)() { err := m.GetBackingStore().Set("owner", value) @@ -837,6 +871,7 @@ type Calendarable interface { GetIsTallyingResponses()(*bool) GetMultiValueExtendedProperties()([]MultiValueLegacyExtendedPropertyable) GetName()(*string) + GetOdataType()(*string) GetOwner()(EmailAddressable) GetSingleValueExtendedProperties()([]SingleValueLegacyExtendedPropertyable) SetAllowedOnlineMeetingProviders(value []OnlineMeetingProviderType)() @@ -858,6 +893,7 @@ type Calendarable interface { SetIsTallyingResponses(value *bool)() SetMultiValueExtendedProperties(value []MultiValueLegacyExtendedPropertyable)() SetName(value *string)() + SetOdataType(value *string)() SetOwner(value EmailAddressable)() SetSingleValueExtendedProperties(value []SingleValueLegacyExtendedPropertyable)() } diff --git a/models/calendar_collection_response.go b/models/calendar_collection_response.go index ae55fe59efe..585b255f9b2 100644 --- a/models/calendar_collection_response.go +++ b/models/calendar_collection_response.go @@ -8,7 +8,7 @@ import ( type CalendarCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCalendarCollectionResponse instantiates a new CalendarCollectionResponse and sets the default values. +// NewCalendarCollectionResponse instantiates a new calendarCollectionResponse and sets the default values. func NewCalendarCollectionResponse()(*CalendarCollectionResponse) { m := &CalendarCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/calendar_group.go b/models/calendar_group.go index 0ba35d418d2..e5bdd32eee7 100644 --- a/models/calendar_group.go +++ b/models/calendar_group.go @@ -8,6 +8,8 @@ import ( // CalendarGroup type CalendarGroup struct { Entity + // The OdataType property + OdataType *string } // NewCalendarGroup instantiates a new calendarGroup and sets the default values. func NewCalendarGroup()(*CalendarGroup) { diff --git a/models/calendar_group_collection_response.go b/models/calendar_group_collection_response.go index 8b078ba9ce9..bda8df60265 100644 --- a/models/calendar_group_collection_response.go +++ b/models/calendar_group_collection_response.go @@ -8,7 +8,7 @@ import ( type CalendarGroupCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCalendarGroupCollectionResponse instantiates a new CalendarGroupCollectionResponse and sets the default values. +// NewCalendarGroupCollectionResponse instantiates a new calendarGroupCollectionResponse and sets the default values. func NewCalendarGroupCollectionResponse()(*CalendarGroupCollectionResponse) { m := &CalendarGroupCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/calendar_permission.go b/models/calendar_permission.go index dc20c027636..08ccc1e4e4f 100644 --- a/models/calendar_permission.go +++ b/models/calendar_permission.go @@ -7,6 +7,8 @@ import ( // CalendarPermission type CalendarPermission struct { Entity + // The OdataType property + OdataType *string } // NewCalendarPermission instantiates a new calendarPermission and sets the default values. func NewCalendarPermission()(*CalendarPermission) { diff --git a/models/calendar_permission_collection_response.go b/models/calendar_permission_collection_response.go index 7c89faef241..6cb15c498a8 100644 --- a/models/calendar_permission_collection_response.go +++ b/models/calendar_permission_collection_response.go @@ -8,7 +8,7 @@ import ( type CalendarPermissionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCalendarPermissionCollectionResponse instantiates a new CalendarPermissionCollectionResponse and sets the default values. +// NewCalendarPermissionCollectionResponse instantiates a new calendarPermissionCollectionResponse and sets the default values. func NewCalendarPermissionCollectionResponse()(*CalendarPermissionCollectionResponse) { m := &CalendarPermissionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/calendar_sharing_message.go b/models/calendar_sharing_message.go index 9b2c538829e..8a2b4aee668 100644 --- a/models/calendar_sharing_message.go +++ b/models/calendar_sharing_message.go @@ -8,7 +8,7 @@ import ( type CalendarSharingMessage struct { Message } -// NewCalendarSharingMessage instantiates a new CalendarSharingMessage and sets the default values. +// NewCalendarSharingMessage instantiates a new calendarSharingMessage and sets the default values. func NewCalendarSharingMessage()(*CalendarSharingMessage) { m := &CalendarSharingMessage{ Message: *NewMessage(), diff --git a/models/call.go b/models/call.go index fb74df4f131..709fb95df46 100644 --- a/models/call.go +++ b/models/call.go @@ -7,8 +7,10 @@ import ( // Call type Call struct { Entity + // The OdataType property + OdataType *string } -// NewCall instantiates a new Call and sets the default values. +// NewCall instantiates a new call and sets the default values. func NewCall()(*Call) { m := &Call{ Entity: *NewEntity(), diff --git a/models/call_activity_statistics.go b/models/call_activity_statistics.go index ad839deba76..bf37544deb1 100644 --- a/models/call_activity_statistics.go +++ b/models/call_activity_statistics.go @@ -8,7 +8,7 @@ import ( type CallActivityStatistics struct { ActivityStatistics } -// NewCallActivityStatistics instantiates a new CallActivityStatistics and sets the default values. +// NewCallActivityStatistics instantiates a new callActivityStatistics and sets the default values. func NewCallActivityStatistics()(*CallActivityStatistics) { m := &CallActivityStatistics{ ActivityStatistics: *NewActivityStatistics(), @@ -45,8 +45,29 @@ func (m *CallActivityStatistics) GetFieldDeserializers()(map[string]func(i878a80 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CallActivityStatistics) 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 *CallActivityStatistics) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ActivityStatistics.Serialize(writer) @@ -59,6 +80,12 @@ func (m *CallActivityStatistics) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAfterHours sets the afterHours property value. Time spent on calls outside of working hours, which is based on the user's Outlook calendar setting for work hours. The value is represented in ISO 8601 format for durations. @@ -68,10 +95,19 @@ func (m *CallActivityStatistics) SetAfterHours(value *i878a80d2330e89d26896388a3 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CallActivityStatistics) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // CallActivityStatisticsable type CallActivityStatisticsable interface { ActivityStatisticsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAfterHours()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) + GetOdataType()(*string) SetAfterHours(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() + SetOdataType(value *string)() } diff --git a/models/call_collection_response.go b/models/call_collection_response.go index 03da89f7ead..4b874e246f1 100644 --- a/models/call_collection_response.go +++ b/models/call_collection_response.go @@ -8,7 +8,7 @@ import ( type CallCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCallCollectionResponse instantiates a new CallCollectionResponse and sets the default values. +// NewCallCollectionResponse instantiates a new callCollectionResponse and sets the default values. func NewCallCollectionResponse()(*CallCollectionResponse) { m := &CallCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/call_ended_event_message_detail.go b/models/call_ended_event_message_detail.go index adf388c585e..795bb847438 100644 --- a/models/call_ended_event_message_detail.go +++ b/models/call_ended_event_message_detail.go @@ -8,7 +8,7 @@ import ( type CallEndedEventMessageDetail struct { EventMessageDetail } -// NewCallEndedEventMessageDetail instantiates a new CallEndedEventMessageDetail and sets the default values. +// NewCallEndedEventMessageDetail instantiates a new callEndedEventMessageDetail and sets the default values. func NewCallEndedEventMessageDetail()(*CallEndedEventMessageDetail) { m := &CallEndedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -124,6 +124,16 @@ func (m *CallEndedEventMessageDetail) GetFieldDeserializers()(map[string]func(i8 } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -137,6 +147,17 @@ func (m *CallEndedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CallEndedEventMessageDetail) 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 *CallEndedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -180,6 +201,12 @@ func (m *CallEndedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetCallDuration sets the callDuration property value. Duration of the call. @@ -217,6 +244,13 @@ func (m *CallEndedEventMessageDetail) SetInitiator(value IdentitySetable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CallEndedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // CallEndedEventMessageDetailable type CallEndedEventMessageDetailable interface { EventMessageDetailable @@ -226,9 +260,11 @@ type CallEndedEventMessageDetailable interface { GetCallId()(*string) GetCallParticipants()([]CallParticipantInfoable) GetInitiator()(IdentitySetable) + GetOdataType()(*string) SetCallDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetCallEventType(value *TeamworkCallEventType)() SetCallId(value *string)() SetCallParticipants(value []CallParticipantInfoable)() SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/call_recording.go b/models/call_recording.go index cb62095d82f..a1fd0be7ae4 100644 --- a/models/call_recording.go +++ b/models/call_recording.go @@ -8,6 +8,8 @@ import ( // CallRecording type CallRecording struct { Entity + // The OdataType property + OdataType *string } // NewCallRecording instantiates a new callRecording and sets the default values. func NewCallRecording()(*CallRecording) { diff --git a/models/call_recording_collection_response.go b/models/call_recording_collection_response.go index 1f75a44a921..03c06ea421d 100644 --- a/models/call_recording_collection_response.go +++ b/models/call_recording_collection_response.go @@ -8,7 +8,7 @@ import ( type CallRecordingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCallRecordingCollectionResponse instantiates a new CallRecordingCollectionResponse and sets the default values. +// NewCallRecordingCollectionResponse instantiates a new callRecordingCollectionResponse and sets the default values. func NewCallRecordingCollectionResponse()(*CallRecordingCollectionResponse) { m := &CallRecordingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/call_recording_event_message_detail.go b/models/call_recording_event_message_detail.go index 95d5769af4f..53066d1ecdf 100644 --- a/models/call_recording_event_message_detail.go +++ b/models/call_recording_event_message_detail.go @@ -8,7 +8,7 @@ import ( type CallRecordingEventMessageDetail struct { EventMessageDetail } -// NewCallRecordingEventMessageDetail instantiates a new CallRecordingEventMessageDetail and sets the default values. +// NewCallRecordingEventMessageDetail instantiates a new callRecordingEventMessageDetail and sets the default values. func NewCallRecordingEventMessageDetail()(*CallRecordingEventMessageDetail) { m := &CallRecordingEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -149,6 +149,16 @@ func (m *CallRecordingEventMessageDetail) GetFieldDeserializers()(map[string]fun } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -173,6 +183,17 @@ func (m *CallRecordingEventMessageDetail) GetMeetingOrganizer()(IdentitySetable) } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CallRecordingEventMessageDetail) 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 *CallRecordingEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -222,6 +243,12 @@ func (m *CallRecordingEventMessageDetail) Serialize(writer i878a80d2330e89d26896 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetCallId sets the callId property value. Unique identifier of the call. @@ -273,6 +300,13 @@ func (m *CallRecordingEventMessageDetail) SetMeetingOrganizer(value IdentitySeta panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CallRecordingEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // CallRecordingEventMessageDetailable type CallRecordingEventMessageDetailable interface { EventMessageDetailable @@ -284,6 +318,7 @@ type CallRecordingEventMessageDetailable interface { GetCallRecordingUrl()(*string) GetInitiator()(IdentitySetable) GetMeetingOrganizer()(IdentitySetable) + GetOdataType()(*string) SetCallId(value *string)() SetCallRecordingDisplayName(value *string)() SetCallRecordingDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() @@ -291,4 +326,5 @@ type CallRecordingEventMessageDetailable interface { SetCallRecordingUrl(value *string)() SetInitiator(value IdentitySetable)() SetMeetingOrganizer(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/call_started_event_message_detail.go b/models/call_started_event_message_detail.go index e4214876e13..c65888717ac 100644 --- a/models/call_started_event_message_detail.go +++ b/models/call_started_event_message_detail.go @@ -8,7 +8,7 @@ import ( type CallStartedEventMessageDetail struct { EventMessageDetail } -// NewCallStartedEventMessageDetail instantiates a new CallStartedEventMessageDetail and sets the default values. +// NewCallStartedEventMessageDetail instantiates a new callStartedEventMessageDetail and sets the default values. func NewCallStartedEventMessageDetail()(*CallStartedEventMessageDetail) { m := &CallStartedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -76,6 +76,16 @@ func (m *CallStartedEventMessageDetail) GetFieldDeserializers()(map[string]func( } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -89,6 +99,17 @@ func (m *CallStartedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CallStartedEventMessageDetail) 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 *CallStartedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -114,6 +135,12 @@ func (m *CallStartedEventMessageDetail) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetCallEventType sets the callEventType property value. Represents the call event type. Possible values are: call, meeting, screenShare, unknownFutureValue. @@ -137,6 +164,13 @@ func (m *CallStartedEventMessageDetail) SetInitiator(value IdentitySetable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CallStartedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // CallStartedEventMessageDetailable type CallStartedEventMessageDetailable interface { EventMessageDetailable @@ -144,7 +178,9 @@ type CallStartedEventMessageDetailable interface { GetCallEventType()(*TeamworkCallEventType) GetCallId()(*string) GetInitiator()(IdentitySetable) + GetOdataType()(*string) SetCallEventType(value *TeamworkCallEventType)() SetCallId(value *string)() SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/call_transcript.go b/models/call_transcript.go index 93d78da6f65..faefa509646 100644 --- a/models/call_transcript.go +++ b/models/call_transcript.go @@ -8,6 +8,8 @@ import ( // CallTranscript type CallTranscript struct { Entity + // The OdataType property + OdataType *string } // NewCallTranscript instantiates a new callTranscript and sets the default values. func NewCallTranscript()(*CallTranscript) { diff --git a/models/call_transcript_collection_response.go b/models/call_transcript_collection_response.go index 87b2cc05651..de337747be1 100644 --- a/models/call_transcript_collection_response.go +++ b/models/call_transcript_collection_response.go @@ -8,7 +8,7 @@ import ( type CallTranscriptCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCallTranscriptCollectionResponse instantiates a new CallTranscriptCollectionResponse and sets the default values. +// NewCallTranscriptCollectionResponse instantiates a new callTranscriptCollectionResponse and sets the default values. func NewCallTranscriptCollectionResponse()(*CallTranscriptCollectionResponse) { m := &CallTranscriptCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/call_transcript_event_message_detail.go b/models/call_transcript_event_message_detail.go index 5e567d288b9..796c4d95be7 100644 --- a/models/call_transcript_event_message_detail.go +++ b/models/call_transcript_event_message_detail.go @@ -8,7 +8,7 @@ import ( type CallTranscriptEventMessageDetail struct { EventMessageDetail } -// NewCallTranscriptEventMessageDetail instantiates a new CallTranscriptEventMessageDetail and sets the default values. +// NewCallTranscriptEventMessageDetail instantiates a new callTranscriptEventMessageDetail and sets the default values. func NewCallTranscriptEventMessageDetail()(*CallTranscriptEventMessageDetail) { m := &CallTranscriptEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -76,6 +76,16 @@ func (m *CallTranscriptEventMessageDetail) GetFieldDeserializers()(map[string]fu } 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 } // GetMeetingOrganizer gets the meetingOrganizer property value. The organizer of the meeting. @@ -89,6 +99,17 @@ func (m *CallTranscriptEventMessageDetail) GetMeetingOrganizer()(IdentitySetable } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CallTranscriptEventMessageDetail) 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 *CallTranscriptEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -113,6 +134,12 @@ func (m *CallTranscriptEventMessageDetail) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetCallId sets the callId property value. Unique identifier of the call. @@ -136,6 +163,13 @@ func (m *CallTranscriptEventMessageDetail) SetMeetingOrganizer(value IdentitySet panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CallTranscriptEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // CallTranscriptEventMessageDetailable type CallTranscriptEventMessageDetailable interface { EventMessageDetailable @@ -143,7 +177,9 @@ type CallTranscriptEventMessageDetailable interface { GetCallId()(*string) GetCallTranscriptICalUid()(*string) GetMeetingOrganizer()(IdentitySetable) + GetOdataType()(*string) SetCallId(value *string)() SetCallTranscriptICalUid(value *string)() SetMeetingOrganizer(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/callrecords/call_record.go b/models/callrecords/call_record.go index 5e31a0d2ece..60467b53099 100644 --- a/models/callrecords/call_record.go +++ b/models/callrecords/call_record.go @@ -9,8 +9,10 @@ import ( // CallRecord type CallRecord struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewCallRecord instantiates a new CallRecord and sets the default values. +// NewCallRecord instantiates a new callRecord and sets the default values. func NewCallRecord()(*CallRecord) { m := &CallRecord{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/callrecords/call_record_collection_response.go b/models/callrecords/call_record_collection_response.go index 0f900c94288..8c84030c94d 100644 --- a/models/callrecords/call_record_collection_response.go +++ b/models/callrecords/call_record_collection_response.go @@ -9,7 +9,7 @@ import ( type CallRecordCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCallRecordCollectionResponse instantiates a new CallRecordCollectionResponse and sets the default values. +// NewCallRecordCollectionResponse instantiates a new callRecordCollectionResponse and sets the default values. func NewCallRecordCollectionResponse()(*CallRecordCollectionResponse) { m := &CallRecordCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/callrecords/client_user_agent.go b/models/callrecords/client_user_agent.go index aa0e13393a3..da17f8fbb6c 100644 --- a/models/callrecords/client_user_agent.go +++ b/models/callrecords/client_user_agent.go @@ -8,7 +8,7 @@ import ( type ClientUserAgent struct { UserAgent } -// NewClientUserAgent instantiates a new ClientUserAgent and sets the default values. +// NewClientUserAgent instantiates a new clientUserAgent and sets the default values. func NewClientUserAgent()(*ClientUserAgent) { m := &ClientUserAgent{ UserAgent: *NewUserAgent(), @@ -66,6 +66,16 @@ func (m *ClientUserAgent) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } 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["platform"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseClientPlatform) if err != nil { @@ -88,6 +98,17 @@ func (m *ClientUserAgent) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ClientUserAgent) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPlatform gets the platform property value. The platform property func (m *ClientUserAgent) GetPlatform()(*ClientPlatform) { val, err := m.GetBackingStore().Get("platform") @@ -128,6 +149,12 @@ func (m *ClientUserAgent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetPlatform() != nil { cast := (*m.GetPlatform()).String() err = writer.WriteStringValue("platform", &cast) @@ -158,6 +185,13 @@ func (m *ClientUserAgent) SetCommunicationServiceId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ClientUserAgent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPlatform sets the platform property value. The platform property func (m *ClientUserAgent) SetPlatform(value *ClientPlatform)() { err := m.GetBackingStore().Set("platform", value) @@ -178,10 +212,12 @@ type ClientUserAgentable interface { UserAgentable GetAzureADAppId()(*string) GetCommunicationServiceId()(*string) + GetOdataType()(*string) GetPlatform()(*ClientPlatform) GetProductFamily()(*ProductFamily) SetAzureADAppId(value *string)() SetCommunicationServiceId(value *string)() + SetOdataType(value *string)() SetPlatform(value *ClientPlatform)() SetProductFamily(value *ProductFamily)() } diff --git a/models/callrecords/participant_endpoint.go b/models/callrecords/participant_endpoint.go index 7d85a2944f2..6e7b223aa1e 100644 --- a/models/callrecords/participant_endpoint.go +++ b/models/callrecords/participant_endpoint.go @@ -9,7 +9,7 @@ import ( type ParticipantEndpoint struct { Endpoint } -// NewParticipantEndpoint instantiates a new ParticipantEndpoint and sets the default values. +// NewParticipantEndpoint instantiates a new participantEndpoint and sets the default values. func NewParticipantEndpoint()(*ParticipantEndpoint) { m := &ParticipantEndpoint{ Endpoint: *NewEndpoint(), @@ -129,6 +129,16 @@ func (m *ParticipantEndpoint) GetFieldDeserializers()(map[string]func(i878a80d23 } 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 } // GetIdentity gets the identity property value. Identity associated with the endpoint. @@ -153,6 +163,17 @@ func (m *ParticipantEndpoint) GetName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ParticipantEndpoint) 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 *ParticipantEndpoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Endpoint.Serialize(writer) @@ -195,6 +216,12 @@ func (m *ParticipantEndpoint) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetCpuCoresCount sets the cpuCoresCount property value. CPU number of cores used by the media endpoint. @@ -239,6 +266,13 @@ func (m *ParticipantEndpoint) SetName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ParticipantEndpoint) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ParticipantEndpointable type ParticipantEndpointable interface { Endpointable @@ -249,10 +283,12 @@ type ParticipantEndpointable interface { GetFeedback()(UserFeedbackable) GetIdentity()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) GetName()(*string) + GetOdataType()(*string) SetCpuCoresCount(value *int32)() SetCpuName(value *string)() SetCpuProcessorSpeedInMhz(value *int32)() SetFeedback(value UserFeedbackable)() SetIdentity(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() SetName(value *string)() + SetOdataType(value *string)() } diff --git a/models/callrecords/segment.go b/models/callrecords/segment.go index e65620eccdc..95e184aef5b 100644 --- a/models/callrecords/segment.go +++ b/models/callrecords/segment.go @@ -9,6 +9,8 @@ import ( // Segment type Segment struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSegment instantiates a new segment and sets the default values. func NewSegment()(*Segment) { diff --git a/models/callrecords/segment_collection_response.go b/models/callrecords/segment_collection_response.go index 70ed7188ff4..bdf08767ed5 100644 --- a/models/callrecords/segment_collection_response.go +++ b/models/callrecords/segment_collection_response.go @@ -9,7 +9,7 @@ import ( type SegmentCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewSegmentCollectionResponse instantiates a new SegmentCollectionResponse and sets the default values. +// NewSegmentCollectionResponse instantiates a new segmentCollectionResponse and sets the default values. func NewSegmentCollectionResponse()(*SegmentCollectionResponse) { m := &SegmentCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/callrecords/service_endpoint.go b/models/callrecords/service_endpoint.go index 1f95a12de12..9114d5920ed 100644 --- a/models/callrecords/service_endpoint.go +++ b/models/callrecords/service_endpoint.go @@ -8,7 +8,7 @@ import ( type ServiceEndpoint struct { Endpoint } -// NewServiceEndpoint instantiates a new ServiceEndpoint and sets the default values. +// NewServiceEndpoint instantiates a new serviceEndpoint and sets the default values. func NewServiceEndpoint()(*ServiceEndpoint) { m := &ServiceEndpoint{ Endpoint: *NewEndpoint(), @@ -24,18 +24,54 @@ func CreateServiceEndpointFromDiscriminatorValue(parseNode i878a80d2330e89d26896 // GetFieldDeserializers the deserialization information for the current model func (m *ServiceEndpoint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Endpoint.GetFieldDeserializers() + 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 *ServiceEndpoint) 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 *ServiceEndpoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Endpoint.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ServiceEndpoint) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ServiceEndpointable type ServiceEndpointable interface { Endpointable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/callrecords/service_user_agent.go b/models/callrecords/service_user_agent.go index a204e02c7e9..194ab472102 100644 --- a/models/callrecords/service_user_agent.go +++ b/models/callrecords/service_user_agent.go @@ -8,7 +8,7 @@ import ( type ServiceUserAgent struct { UserAgent } -// NewServiceUserAgent instantiates a new ServiceUserAgent and sets the default values. +// NewServiceUserAgent instantiates a new serviceUserAgent and sets the default values. func NewServiceUserAgent()(*ServiceUserAgent) { m := &ServiceUserAgent{ UserAgent: *NewUserAgent(), @@ -24,6 +24,16 @@ func CreateServiceUserAgentFromDiscriminatorValue(parseNode i878a80d2330e89d2689 // GetFieldDeserializers the deserialization information for the current model func (m *ServiceUserAgent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.UserAgent.GetFieldDeserializers() + 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["role"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseServiceRole) if err != nil { @@ -36,6 +46,17 @@ func (m *ServiceUserAgent) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ServiceUserAgent) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRole gets the role property value. The role property func (m *ServiceUserAgent) GetRole()(*ServiceRole) { val, err := m.GetBackingStore().Get("role") @@ -53,6 +74,12 @@ func (m *ServiceUserAgent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetRole() != nil { cast := (*m.GetRole()).String() err = writer.WriteStringValue("role", &cast) @@ -62,6 +89,13 @@ func (m *ServiceUserAgent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ServiceUserAgent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRole sets the role property value. The role property func (m *ServiceUserAgent) SetRole(value *ServiceRole)() { err := m.GetBackingStore().Set("role", value) @@ -73,6 +107,8 @@ func (m *ServiceUserAgent) SetRole(value *ServiceRole)() { type ServiceUserAgentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable UserAgentable + GetOdataType()(*string) GetRole()(*ServiceRole) + SetOdataType(value *string)() SetRole(value *ServiceRole)() } diff --git a/models/callrecords/session.go b/models/callrecords/session.go index fbfca1afbf8..0736f182bb7 100644 --- a/models/callrecords/session.go +++ b/models/callrecords/session.go @@ -9,6 +9,8 @@ import ( // Session type Session struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSession instantiates a new session and sets the default values. func NewSession()(*Session) { diff --git a/models/callrecords/session_collection_response.go b/models/callrecords/session_collection_response.go index 9744ac220a4..02736c9f893 100644 --- a/models/callrecords/session_collection_response.go +++ b/models/callrecords/session_collection_response.go @@ -9,7 +9,7 @@ import ( type SessionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewSessionCollectionResponse instantiates a new SessionCollectionResponse and sets the default values. +// NewSessionCollectionResponse instantiates a new sessionCollectionResponse and sets the default values. func NewSessionCollectionResponse()(*SessionCollectionResponse) { m := &SessionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/callrecords/trace_route_hop.go b/models/callrecords/trace_route_hop.go index 2cab940b296..91b62c6c233 100644 --- a/models/callrecords/trace_route_hop.go +++ b/models/callrecords/trace_route_hop.go @@ -10,7 +10,7 @@ type TraceRouteHop struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTraceRouteHop instantiates a new TraceRouteHop and sets the default values. +// NewTraceRouteHop instantiates a new traceRouteHop and sets the default values. func NewTraceRouteHop()(*TraceRouteHop) { m := &TraceRouteHop{ } diff --git a/models/cancel_media_processing_operation.go b/models/cancel_media_processing_operation.go index 69a566d5d1e..351c8867dc0 100644 --- a/models/cancel_media_processing_operation.go +++ b/models/cancel_media_processing_operation.go @@ -8,7 +8,7 @@ import ( type CancelMediaProcessingOperation struct { CommsOperation } -// NewCancelMediaProcessingOperation instantiates a new CancelMediaProcessingOperation and sets the default values. +// NewCancelMediaProcessingOperation instantiates a new cancelMediaProcessingOperation and sets the default values. func NewCancelMediaProcessingOperation()(*CancelMediaProcessingOperation) { m := &CancelMediaProcessingOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/canvas_layout.go b/models/canvas_layout.go index 7b8e39f863f..c488c4fbbde 100644 --- a/models/canvas_layout.go +++ b/models/canvas_layout.go @@ -7,6 +7,8 @@ import ( // CanvasLayout type CanvasLayout struct { Entity + // The OdataType property + OdataType *string } // NewCanvasLayout instantiates a new canvasLayout and sets the default values. func NewCanvasLayout()(*CanvasLayout) { diff --git a/models/cart_to_class_association.go b/models/cart_to_class_association.go index b3926d088a4..1dfd374d5a5 100644 --- a/models/cart_to_class_association.go +++ b/models/cart_to_class_association.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// CartToClassAssociation +// CartToClassAssociation cartToClassAssociation for associating device carts with classrooms. type CartToClassAssociation struct { Entity + // The OdataType property + OdataType *string } -// NewCartToClassAssociation instantiates a new CartToClassAssociation and sets the default values. +// NewCartToClassAssociation instantiates a new cartToClassAssociation and sets the default values. func NewCartToClassAssociation()(*CartToClassAssociation) { m := &CartToClassAssociation{ Entity: *NewEntity(), diff --git a/models/cart_to_class_association_collection_response.go b/models/cart_to_class_association_collection_response.go index 07415b6f411..5fb43f4178e 100644 --- a/models/cart_to_class_association_collection_response.go +++ b/models/cart_to_class_association_collection_response.go @@ -8,7 +8,7 @@ import ( type CartToClassAssociationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCartToClassAssociationCollectionResponse instantiates a new CartToClassAssociationCollectionResponse and sets the default values. +// NewCartToClassAssociationCollectionResponse instantiates a new cartToClassAssociationCollectionResponse and sets the default values. func NewCartToClassAssociationCollectionResponse()(*CartToClassAssociationCollectionResponse) { m := &CartToClassAssociationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/certificate_authority.go b/models/certificate_authority.go index 11daf74520a..96eb17112e4 100644 --- a/models/certificate_authority.go +++ b/models/certificate_authority.go @@ -10,7 +10,7 @@ type CertificateAuthority struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCertificateAuthority instantiates a new CertificateAuthority and sets the default values. +// NewCertificateAuthority instantiates a new certificateAuthority and sets the default values. func NewCertificateAuthority()(*CertificateAuthority) { m := &CertificateAuthority{ } diff --git a/models/certificate_authority_as_entity.go b/models/certificate_authority_as_entity.go index 64dff15aa9e..1edcd0ace19 100644 --- a/models/certificate_authority_as_entity.go +++ b/models/certificate_authority_as_entity.go @@ -7,6 +7,8 @@ import ( // CertificateAuthorityAsEntity type CertificateAuthorityAsEntity struct { Entity + // The OdataType property + OdataType *string } // NewCertificateAuthorityAsEntity instantiates a new certificateAuthorityAsEntity and sets the default values. func NewCertificateAuthorityAsEntity()(*CertificateAuthorityAsEntity) { diff --git a/models/certificate_authority_as_entity_collection_response.go b/models/certificate_authority_as_entity_collection_response.go index 1114517b38c..4acb993c50a 100644 --- a/models/certificate_authority_as_entity_collection_response.go +++ b/models/certificate_authority_as_entity_collection_response.go @@ -8,7 +8,7 @@ import ( type CertificateAuthorityAsEntityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCertificateAuthorityAsEntityCollectionResponse instantiates a new CertificateAuthorityAsEntityCollectionResponse and sets the default values. +// NewCertificateAuthorityAsEntityCollectionResponse instantiates a new certificateAuthorityAsEntityCollectionResponse and sets the default values. func NewCertificateAuthorityAsEntityCollectionResponse()(*CertificateAuthorityAsEntityCollectionResponse) { m := &CertificateAuthorityAsEntityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/certificate_authority_path.go b/models/certificate_authority_path.go index fab5d7c7bd5..31b782b425d 100644 --- a/models/certificate_authority_path.go +++ b/models/certificate_authority_path.go @@ -49,8 +49,29 @@ func (m *CertificateAuthorityPath) GetFieldDeserializers()(map[string]func(i878a } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CertificateAuthorityPath) 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 *CertificateAuthorityPath) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -69,6 +90,12 @@ func (m *CertificateAuthorityPath) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetCertificateBasedApplicationConfigurations sets the certificateBasedApplicationConfigurations property value. The certificateBasedApplicationConfigurations property @@ -78,10 +105,19 @@ func (m *CertificateAuthorityPath) SetCertificateBasedApplicationConfigurations( panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CertificateAuthorityPath) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // CertificateAuthorityPathable type CertificateAuthorityPathable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCertificateBasedApplicationConfigurations()([]CertificateBasedApplicationConfigurationable) + GetOdataType()(*string) SetCertificateBasedApplicationConfigurations(value []CertificateBasedApplicationConfigurationable)() + SetOdataType(value *string)() } diff --git a/models/certificate_based_application_configuration.go b/models/certificate_based_application_configuration.go index c614d296f84..54074ad32a1 100644 --- a/models/certificate_based_application_configuration.go +++ b/models/certificate_based_application_configuration.go @@ -8,7 +8,7 @@ import ( type CertificateBasedApplicationConfiguration struct { TrustedCertificateAuthorityAsEntityBase } -// NewCertificateBasedApplicationConfiguration instantiates a new CertificateBasedApplicationConfiguration and sets the default values. +// NewCertificateBasedApplicationConfiguration instantiates a new certificateBasedApplicationConfiguration and sets the default values. func NewCertificateBasedApplicationConfiguration()(*CertificateBasedApplicationConfiguration) { m := &CertificateBasedApplicationConfiguration{ TrustedCertificateAuthorityAsEntityBase: *NewTrustedCertificateAuthorityAsEntityBase(), diff --git a/models/certificate_based_application_configuration_collection_response.go b/models/certificate_based_application_configuration_collection_response.go index 8b8172031d3..56465bb4705 100644 --- a/models/certificate_based_application_configuration_collection_response.go +++ b/models/certificate_based_application_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type CertificateBasedApplicationConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCertificateBasedApplicationConfigurationCollectionResponse instantiates a new CertificateBasedApplicationConfigurationCollectionResponse and sets the default values. +// NewCertificateBasedApplicationConfigurationCollectionResponse instantiates a new certificateBasedApplicationConfigurationCollectionResponse and sets the default values. func NewCertificateBasedApplicationConfigurationCollectionResponse()(*CertificateBasedApplicationConfigurationCollectionResponse) { m := &CertificateBasedApplicationConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/certificate_based_auth_configuration.go b/models/certificate_based_auth_configuration.go index 767dd88bacb..779959c8cef 100644 --- a/models/certificate_based_auth_configuration.go +++ b/models/certificate_based_auth_configuration.go @@ -7,6 +7,8 @@ import ( // CertificateBasedAuthConfiguration type CertificateBasedAuthConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewCertificateBasedAuthConfiguration instantiates a new certificateBasedAuthConfiguration and sets the default values. func NewCertificateBasedAuthConfiguration()(*CertificateBasedAuthConfiguration) { diff --git a/models/certificate_based_auth_configuration_collection_response.go b/models/certificate_based_auth_configuration_collection_response.go index 1a74c1f1a65..dbb6dc7aa90 100644 --- a/models/certificate_based_auth_configuration_collection_response.go +++ b/models/certificate_based_auth_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type CertificateBasedAuthConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCertificateBasedAuthConfigurationCollectionResponse instantiates a new CertificateBasedAuthConfigurationCollectionResponse and sets the default values. +// NewCertificateBasedAuthConfigurationCollectionResponse instantiates a new certificateBasedAuthConfigurationCollectionResponse and sets the default values. func NewCertificateBasedAuthConfigurationCollectionResponse()(*CertificateBasedAuthConfigurationCollectionResponse) { m := &CertificateBasedAuthConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/certificate_connector_details.go b/models/certificate_connector_details.go index f0b0dcc185c..2b431fb65bb 100644 --- a/models/certificate_connector_details.go +++ b/models/certificate_connector_details.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// CertificateConnectorDetails +// CertificateConnectorDetails entity used to retrieve information about Intune Certificate Connectors. type CertificateConnectorDetails struct { Entity + // The OdataType property + OdataType *string } -// NewCertificateConnectorDetails instantiates a new CertificateConnectorDetails and sets the default values. +// NewCertificateConnectorDetails instantiates a new certificateConnectorDetails and sets the default values. func NewCertificateConnectorDetails()(*CertificateConnectorDetails) { m := &CertificateConnectorDetails{ Entity: *NewEntity(), diff --git a/models/certificate_connector_details_collection_response.go b/models/certificate_connector_details_collection_response.go index 24dbf3ce3a0..d5c10b511ac 100644 --- a/models/certificate_connector_details_collection_response.go +++ b/models/certificate_connector_details_collection_response.go @@ -8,7 +8,7 @@ import ( type CertificateConnectorDetailsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCertificateConnectorDetailsCollectionResponse instantiates a new CertificateConnectorDetailsCollectionResponse and sets the default values. +// NewCertificateConnectorDetailsCollectionResponse instantiates a new certificateConnectorDetailsCollectionResponse and sets the default values. func NewCertificateConnectorDetailsCollectionResponse()(*CertificateConnectorDetailsCollectionResponse) { m := &CertificateConnectorDetailsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/change_tracked_entity.go b/models/change_tracked_entity.go index 09cbe99cf61..546d5914582 100644 --- a/models/change_tracked_entity.go +++ b/models/change_tracked_entity.go @@ -8,6 +8,8 @@ import ( // ChangeTrackedEntity type ChangeTrackedEntity struct { Entity + // The OdataType property + OdataType *string } // NewChangeTrackedEntity instantiates a new changeTrackedEntity and sets the default values. func NewChangeTrackedEntity()(*ChangeTrackedEntity) { diff --git a/models/channel.go b/models/channel.go index 161076cdfa0..7cd02339fc8 100644 --- a/models/channel.go +++ b/models/channel.go @@ -8,6 +8,8 @@ import ( // Channel type Channel struct { Entity + // The OdataType property + OdataType *string } // NewChannel instantiates a new channel and sets the default values. func NewChannel()(*Channel) { diff --git a/models/channel_added_event_message_detail.go b/models/channel_added_event_message_detail.go index 79b0f542454..ed6ec5aba86 100644 --- a/models/channel_added_event_message_detail.go +++ b/models/channel_added_event_message_detail.go @@ -7,8 +7,10 @@ import ( // ChannelAddedEventMessageDetail type ChannelAddedEventMessageDetail struct { EventMessageDetail + // The OdataType property + OdataType *string } -// NewChannelAddedEventMessageDetail instantiates a new ChannelAddedEventMessageDetail and sets the default values. +// NewChannelAddedEventMessageDetail instantiates a new channelAddedEventMessageDetail and sets the default values. func NewChannelAddedEventMessageDetail()(*ChannelAddedEventMessageDetail) { m := &ChannelAddedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), diff --git a/models/channel_collection_response.go b/models/channel_collection_response.go index 0151b9a9fe2..787080f3e63 100644 --- a/models/channel_collection_response.go +++ b/models/channel_collection_response.go @@ -8,7 +8,7 @@ import ( type ChannelCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewChannelCollectionResponse instantiates a new ChannelCollectionResponse and sets the default values. +// NewChannelCollectionResponse instantiates a new channelCollectionResponse and sets the default values. func NewChannelCollectionResponse()(*ChannelCollectionResponse) { m := &ChannelCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/channel_deleted_event_message_detail.go b/models/channel_deleted_event_message_detail.go index 6756faa35e8..144120da026 100644 --- a/models/channel_deleted_event_message_detail.go +++ b/models/channel_deleted_event_message_detail.go @@ -8,7 +8,7 @@ import ( type ChannelDeletedEventMessageDetail struct { EventMessageDetail } -// NewChannelDeletedEventMessageDetail instantiates a new ChannelDeletedEventMessageDetail and sets the default values. +// NewChannelDeletedEventMessageDetail instantiates a new channelDeletedEventMessageDetail and sets the default values. func NewChannelDeletedEventMessageDetail()(*ChannelDeletedEventMessageDetail) { m := &ChannelDeletedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -76,6 +76,16 @@ func (m *ChannelDeletedEventMessageDetail) GetFieldDeserializers()(map[string]fu } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -89,6 +99,17 @@ func (m *ChannelDeletedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ChannelDeletedEventMessageDetail) 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 *ChannelDeletedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -113,6 +134,12 @@ func (m *ChannelDeletedEventMessageDetail) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetChannelDisplayName sets the channelDisplayName property value. Display name of the channel. @@ -136,6 +163,13 @@ func (m *ChannelDeletedEventMessageDetail) SetInitiator(value IdentitySetable)() panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ChannelDeletedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ChannelDeletedEventMessageDetailable type ChannelDeletedEventMessageDetailable interface { EventMessageDetailable @@ -143,7 +177,9 @@ type ChannelDeletedEventMessageDetailable interface { GetChannelDisplayName()(*string) GetChannelId()(*string) GetInitiator()(IdentitySetable) + GetOdataType()(*string) SetChannelDisplayName(value *string)() SetChannelId(value *string)() SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/channel_description_updated_event_message_detail.go b/models/channel_description_updated_event_message_detail.go index fc50b137073..794514f21ca 100644 --- a/models/channel_description_updated_event_message_detail.go +++ b/models/channel_description_updated_event_message_detail.go @@ -7,8 +7,10 @@ import ( // ChannelDescriptionUpdatedEventMessageDetail type ChannelDescriptionUpdatedEventMessageDetail struct { EventMessageDetail + // The OdataType property + OdataType *string } -// NewChannelDescriptionUpdatedEventMessageDetail instantiates a new ChannelDescriptionUpdatedEventMessageDetail and sets the default values. +// NewChannelDescriptionUpdatedEventMessageDetail instantiates a new channelDescriptionUpdatedEventMessageDetail and sets the default values. func NewChannelDescriptionUpdatedEventMessageDetail()(*ChannelDescriptionUpdatedEventMessageDetail) { m := &ChannelDescriptionUpdatedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), diff --git a/models/channel_members_notification_recipient.go b/models/channel_members_notification_recipient.go index 892cd1c3d71..a9e81aee075 100644 --- a/models/channel_members_notification_recipient.go +++ b/models/channel_members_notification_recipient.go @@ -7,8 +7,10 @@ import ( // ChannelMembersNotificationRecipient type ChannelMembersNotificationRecipient struct { TeamworkNotificationRecipient + // The OdataType property + OdataType *string } -// NewChannelMembersNotificationRecipient instantiates a new ChannelMembersNotificationRecipient and sets the default values. +// NewChannelMembersNotificationRecipient instantiates a new channelMembersNotificationRecipient and sets the default values. func NewChannelMembersNotificationRecipient()(*ChannelMembersNotificationRecipient) { m := &ChannelMembersNotificationRecipient{ TeamworkNotificationRecipient: *NewTeamworkNotificationRecipient(), diff --git a/models/channel_renamed_event_message_detail.go b/models/channel_renamed_event_message_detail.go index 3760521d75d..0042dd27117 100644 --- a/models/channel_renamed_event_message_detail.go +++ b/models/channel_renamed_event_message_detail.go @@ -8,7 +8,7 @@ import ( type ChannelRenamedEventMessageDetail struct { EventMessageDetail } -// NewChannelRenamedEventMessageDetail instantiates a new ChannelRenamedEventMessageDetail and sets the default values. +// NewChannelRenamedEventMessageDetail instantiates a new channelRenamedEventMessageDetail and sets the default values. func NewChannelRenamedEventMessageDetail()(*ChannelRenamedEventMessageDetail) { m := &ChannelRenamedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -76,6 +76,16 @@ func (m *ChannelRenamedEventMessageDetail) GetFieldDeserializers()(map[string]fu } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -89,6 +99,17 @@ func (m *ChannelRenamedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ChannelRenamedEventMessageDetail) 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 *ChannelRenamedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -113,6 +134,12 @@ func (m *ChannelRenamedEventMessageDetail) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetChannelDisplayName sets the channelDisplayName property value. The updated name of the channel. @@ -136,6 +163,13 @@ func (m *ChannelRenamedEventMessageDetail) SetInitiator(value IdentitySetable)() panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ChannelRenamedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ChannelRenamedEventMessageDetailable type ChannelRenamedEventMessageDetailable interface { EventMessageDetailable @@ -143,7 +177,9 @@ type ChannelRenamedEventMessageDetailable interface { GetChannelDisplayName()(*string) GetChannelId()(*string) GetInitiator()(IdentitySetable) + GetOdataType()(*string) SetChannelDisplayName(value *string)() SetChannelId(value *string)() SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/channel_set_as_favorite_by_default_event_message_detail.go b/models/channel_set_as_favorite_by_default_event_message_detail.go index 875280046f0..538c81bf628 100644 --- a/models/channel_set_as_favorite_by_default_event_message_detail.go +++ b/models/channel_set_as_favorite_by_default_event_message_detail.go @@ -8,7 +8,7 @@ import ( type ChannelSetAsFavoriteByDefaultEventMessageDetail struct { EventMessageDetail } -// NewChannelSetAsFavoriteByDefaultEventMessageDetail instantiates a new ChannelSetAsFavoriteByDefaultEventMessageDetail and sets the default values. +// NewChannelSetAsFavoriteByDefaultEventMessageDetail instantiates a new channelSetAsFavoriteByDefaultEventMessageDetail and sets the default values. func NewChannelSetAsFavoriteByDefaultEventMessageDetail()(*ChannelSetAsFavoriteByDefaultEventMessageDetail) { m := &ChannelSetAsFavoriteByDefaultEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -55,6 +55,16 @@ func (m *ChannelSetAsFavoriteByDefaultEventMessageDetail) GetFieldDeserializers( } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -68,6 +78,17 @@ func (m *ChannelSetAsFavoriteByDefaultEventMessageDetail) GetInitiator()(Identit } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ChannelSetAsFavoriteByDefaultEventMessageDetail) 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 *ChannelSetAsFavoriteByDefaultEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -86,6 +107,12 @@ func (m *ChannelSetAsFavoriteByDefaultEventMessageDetail) Serialize(writer i878a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetChannelId sets the channelId property value. Unique identifier of the channel. @@ -102,12 +129,21 @@ func (m *ChannelSetAsFavoriteByDefaultEventMessageDetail) SetInitiator(value Ide panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ChannelSetAsFavoriteByDefaultEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ChannelSetAsFavoriteByDefaultEventMessageDetailable type ChannelSetAsFavoriteByDefaultEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetChannelId()(*string) GetInitiator()(IdentitySetable) + GetOdataType()(*string) SetChannelId(value *string)() SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/channel_unset_as_favorite_by_default_event_message_detail.go b/models/channel_unset_as_favorite_by_default_event_message_detail.go index 99783f3a0d9..894f785491a 100644 --- a/models/channel_unset_as_favorite_by_default_event_message_detail.go +++ b/models/channel_unset_as_favorite_by_default_event_message_detail.go @@ -8,7 +8,7 @@ import ( type ChannelUnsetAsFavoriteByDefaultEventMessageDetail struct { EventMessageDetail } -// NewChannelUnsetAsFavoriteByDefaultEventMessageDetail instantiates a new ChannelUnsetAsFavoriteByDefaultEventMessageDetail and sets the default values. +// NewChannelUnsetAsFavoriteByDefaultEventMessageDetail instantiates a new channelUnsetAsFavoriteByDefaultEventMessageDetail and sets the default values. func NewChannelUnsetAsFavoriteByDefaultEventMessageDetail()(*ChannelUnsetAsFavoriteByDefaultEventMessageDetail) { m := &ChannelUnsetAsFavoriteByDefaultEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -55,6 +55,16 @@ func (m *ChannelUnsetAsFavoriteByDefaultEventMessageDetail) GetFieldDeserializer } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -68,6 +78,17 @@ func (m *ChannelUnsetAsFavoriteByDefaultEventMessageDetail) GetInitiator()(Ident } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ChannelUnsetAsFavoriteByDefaultEventMessageDetail) 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 *ChannelUnsetAsFavoriteByDefaultEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -86,6 +107,12 @@ func (m *ChannelUnsetAsFavoriteByDefaultEventMessageDetail) Serialize(writer i87 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetChannelId sets the channelId property value. Unique identifier of the channel. @@ -102,12 +129,21 @@ func (m *ChannelUnsetAsFavoriteByDefaultEventMessageDetail) SetInitiator(value I panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ChannelUnsetAsFavoriteByDefaultEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ChannelUnsetAsFavoriteByDefaultEventMessageDetailable type ChannelUnsetAsFavoriteByDefaultEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetChannelId()(*string) GetInitiator()(IdentitySetable) + GetOdataType()(*string) SetChannelId(value *string)() SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/chat.go b/models/chat.go index e38f5fb893a..e5aea820a9e 100644 --- a/models/chat.go +++ b/models/chat.go @@ -8,6 +8,8 @@ import ( // Chat type Chat struct { Entity + // The OdataType property + OdataType *string } // NewChat instantiates a new chat and sets the default values. func NewChat()(*Chat) { diff --git a/models/chat_activity_statistics.go b/models/chat_activity_statistics.go index 846f943342b..d82cc637480 100644 --- a/models/chat_activity_statistics.go +++ b/models/chat_activity_statistics.go @@ -8,7 +8,7 @@ import ( type ChatActivityStatistics struct { ActivityStatistics } -// NewChatActivityStatistics instantiates a new ChatActivityStatistics and sets the default values. +// NewChatActivityStatistics instantiates a new chatActivityStatistics and sets the default values. func NewChatActivityStatistics()(*ChatActivityStatistics) { m := &ChatActivityStatistics{ ActivityStatistics: *NewActivityStatistics(), @@ -45,8 +45,29 @@ func (m *ChatActivityStatistics) GetFieldDeserializers()(map[string]func(i878a80 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ChatActivityStatistics) 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 *ChatActivityStatistics) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ActivityStatistics.Serialize(writer) @@ -59,6 +80,12 @@ func (m *ChatActivityStatistics) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAfterHours sets the afterHours property value. Time spent on chats outside of working hours, which is based on the user's Microsoft Outlook calendar setting for work hours. The value is represented in ISO 8601 format for durations. @@ -68,10 +95,19 @@ func (m *ChatActivityStatistics) SetAfterHours(value *i878a80d2330e89d26896388a3 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ChatActivityStatistics) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ChatActivityStatisticsable type ChatActivityStatisticsable interface { ActivityStatisticsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAfterHours()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) + GetOdataType()(*string) SetAfterHours(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() + SetOdataType(value *string)() } diff --git a/models/chat_collection_response.go b/models/chat_collection_response.go index 724f98c7eaa..373730f07f2 100644 --- a/models/chat_collection_response.go +++ b/models/chat_collection_response.go @@ -8,7 +8,7 @@ import ( type ChatCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewChatCollectionResponse instantiates a new ChatCollectionResponse and sets the default values. +// NewChatCollectionResponse instantiates a new chatCollectionResponse and sets the default values. func NewChatCollectionResponse()(*ChatCollectionResponse) { m := &ChatCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/chat_members_notification_recipient.go b/models/chat_members_notification_recipient.go index 5f6a23b5ef3..4a527eb3737 100644 --- a/models/chat_members_notification_recipient.go +++ b/models/chat_members_notification_recipient.go @@ -7,8 +7,10 @@ import ( // ChatMembersNotificationRecipient type ChatMembersNotificationRecipient struct { TeamworkNotificationRecipient + // The OdataType property + OdataType *string } -// NewChatMembersNotificationRecipient instantiates a new ChatMembersNotificationRecipient and sets the default values. +// NewChatMembersNotificationRecipient instantiates a new chatMembersNotificationRecipient and sets the default values. func NewChatMembersNotificationRecipient()(*ChatMembersNotificationRecipient) { m := &ChatMembersNotificationRecipient{ TeamworkNotificationRecipient: *NewTeamworkNotificationRecipient(), diff --git a/models/chat_message.go b/models/chat_message.go index 7f49168194a..bddbdd9177d 100644 --- a/models/chat_message.go +++ b/models/chat_message.go @@ -8,6 +8,8 @@ import ( // ChatMessage type ChatMessage struct { Entity + // The OdataType property + OdataType *string } // NewChatMessage instantiates a new chatMessage and sets the default values. func NewChatMessage()(*ChatMessage) { diff --git a/models/chat_message_collection_response.go b/models/chat_message_collection_response.go index 6c3916c4ffe..47175c1ce4a 100644 --- a/models/chat_message_collection_response.go +++ b/models/chat_message_collection_response.go @@ -8,7 +8,7 @@ import ( type ChatMessageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewChatMessageCollectionResponse instantiates a new ChatMessageCollectionResponse and sets the default values. +// NewChatMessageCollectionResponse instantiates a new chatMessageCollectionResponse and sets the default values. func NewChatMessageCollectionResponse()(*ChatMessageCollectionResponse) { m := &ChatMessageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/chat_message_from_identity_set.go b/models/chat_message_from_identity_set.go index 12af65f4245..1f46ac8311c 100644 --- a/models/chat_message_from_identity_set.go +++ b/models/chat_message_from_identity_set.go @@ -8,7 +8,7 @@ import ( type ChatMessageFromIdentitySet struct { IdentitySet } -// NewChatMessageFromIdentitySet instantiates a new ChatMessageFromIdentitySet and sets the default values. +// NewChatMessageFromIdentitySet instantiates a new chatMessageFromIdentitySet and sets the default values. func NewChatMessageFromIdentitySet()(*ChatMessageFromIdentitySet) { m := &ChatMessageFromIdentitySet{ IdentitySet: *NewIdentitySet(), @@ -24,18 +24,54 @@ func CreateChatMessageFromIdentitySetFromDiscriminatorValue(parseNode i878a80d23 // GetFieldDeserializers the deserialization information for the current model func (m *ChatMessageFromIdentitySet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.IdentitySet.GetFieldDeserializers() + 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 *ChatMessageFromIdentitySet) 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 *ChatMessageFromIdentitySet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.IdentitySet.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ChatMessageFromIdentitySet) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ChatMessageFromIdentitySetable type ChatMessageFromIdentitySetable interface { IdentitySetable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/chat_message_hosted_content.go b/models/chat_message_hosted_content.go index 281d40bc5c9..416bbe7093d 100644 --- a/models/chat_message_hosted_content.go +++ b/models/chat_message_hosted_content.go @@ -8,7 +8,7 @@ import ( type ChatMessageHostedContent struct { TeamworkHostedContent } -// NewChatMessageHostedContent instantiates a new ChatMessageHostedContent and sets the default values. +// NewChatMessageHostedContent instantiates a new chatMessageHostedContent and sets the default values. func NewChatMessageHostedContent()(*ChatMessageHostedContent) { m := &ChatMessageHostedContent{ TeamworkHostedContent: *NewTeamworkHostedContent(), diff --git a/models/chat_message_hosted_content_collection_response.go b/models/chat_message_hosted_content_collection_response.go index c730668e591..bf6363a94ef 100644 --- a/models/chat_message_hosted_content_collection_response.go +++ b/models/chat_message_hosted_content_collection_response.go @@ -8,7 +8,7 @@ import ( type ChatMessageHostedContentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewChatMessageHostedContentCollectionResponse instantiates a new ChatMessageHostedContentCollectionResponse and sets the default values. +// NewChatMessageHostedContentCollectionResponse instantiates a new chatMessageHostedContentCollectionResponse and sets the default values. func NewChatMessageHostedContentCollectionResponse()(*ChatMessageHostedContentCollectionResponse) { m := &ChatMessageHostedContentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/chat_message_info.go b/models/chat_message_info.go index 3b9f7da09c2..37781af45f1 100644 --- a/models/chat_message_info.go +++ b/models/chat_message_info.go @@ -8,6 +8,8 @@ import ( // ChatMessageInfo type ChatMessageInfo struct { Entity + // The OdataType property + OdataType *string } // NewChatMessageInfo instantiates a new chatMessageInfo and sets the default values. func NewChatMessageInfo()(*ChatMessageInfo) { diff --git a/models/chat_message_mentioned_identity_set.go b/models/chat_message_mentioned_identity_set.go index 4aad062db82..8e33b61affa 100644 --- a/models/chat_message_mentioned_identity_set.go +++ b/models/chat_message_mentioned_identity_set.go @@ -8,7 +8,7 @@ import ( type ChatMessageMentionedIdentitySet struct { IdentitySet } -// NewChatMessageMentionedIdentitySet instantiates a new ChatMessageMentionedIdentitySet and sets the default values. +// NewChatMessageMentionedIdentitySet instantiates a new chatMessageMentionedIdentitySet and sets the default values. func NewChatMessageMentionedIdentitySet()(*ChatMessageMentionedIdentitySet) { m := &ChatMessageMentionedIdentitySet{ IdentitySet: *NewIdentitySet(), @@ -45,6 +45,16 @@ func (m *ChatMessageMentionedIdentitySet) GetFieldDeserializers()(map[string]fun } 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["tag"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateTeamworkTagIdentityFromDiscriminatorValue) if err != nil { @@ -57,6 +67,17 @@ func (m *ChatMessageMentionedIdentitySet) GetFieldDeserializers()(map[string]fun } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ChatMessageMentionedIdentitySet) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTag gets the tag property value. If present, represents a tag @mentioned in a team message. func (m *ChatMessageMentionedIdentitySet) GetTag()(TeamworkTagIdentityable) { val, err := m.GetBackingStore().Get("tag") @@ -80,6 +101,12 @@ func (m *ChatMessageMentionedIdentitySet) Serialize(writer i878a80d2330e89d26896 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("tag", m.GetTag()) if err != nil { @@ -95,6 +122,13 @@ func (m *ChatMessageMentionedIdentitySet) SetConversation(value TeamworkConversa panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ChatMessageMentionedIdentitySet) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTag sets the tag property value. If present, represents a tag @mentioned in a team message. func (m *ChatMessageMentionedIdentitySet) SetTag(value TeamworkTagIdentityable)() { err := m.GetBackingStore().Set("tag", value) @@ -107,7 +141,9 @@ type ChatMessageMentionedIdentitySetable interface { IdentitySetable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetConversation()(TeamworkConversationIdentityable) + GetOdataType()(*string) GetTag()(TeamworkTagIdentityable) SetConversation(value TeamworkConversationIdentityable)() + SetOdataType(value *string)() SetTag(value TeamworkTagIdentityable)() } diff --git a/models/chat_message_reaction_identity_set.go b/models/chat_message_reaction_identity_set.go index bedcf415cdd..7cabbbbe92b 100644 --- a/models/chat_message_reaction_identity_set.go +++ b/models/chat_message_reaction_identity_set.go @@ -8,7 +8,7 @@ import ( type ChatMessageReactionIdentitySet struct { IdentitySet } -// NewChatMessageReactionIdentitySet instantiates a new ChatMessageReactionIdentitySet and sets the default values. +// NewChatMessageReactionIdentitySet instantiates a new chatMessageReactionIdentitySet and sets the default values. func NewChatMessageReactionIdentitySet()(*ChatMessageReactionIdentitySet) { m := &ChatMessageReactionIdentitySet{ IdentitySet: *NewIdentitySet(), @@ -24,18 +24,54 @@ func CreateChatMessageReactionIdentitySetFromDiscriminatorValue(parseNode i878a8 // GetFieldDeserializers the deserialization information for the current model func (m *ChatMessageReactionIdentitySet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.IdentitySet.GetFieldDeserializers() + 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 *ChatMessageReactionIdentitySet) 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 *ChatMessageReactionIdentitySet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.IdentitySet.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ChatMessageReactionIdentitySet) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ChatMessageReactionIdentitySetable type ChatMessageReactionIdentitySetable interface { IdentitySetable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/chat_renamed_event_message_detail.go b/models/chat_renamed_event_message_detail.go index 7913ff265a5..5eea0fb2b13 100644 --- a/models/chat_renamed_event_message_detail.go +++ b/models/chat_renamed_event_message_detail.go @@ -8,7 +8,7 @@ import ( type ChatRenamedEventMessageDetail struct { EventMessageDetail } -// NewChatRenamedEventMessageDetail instantiates a new ChatRenamedEventMessageDetail and sets the default values. +// NewChatRenamedEventMessageDetail instantiates a new chatRenamedEventMessageDetail and sets the default values. func NewChatRenamedEventMessageDetail()(*ChatRenamedEventMessageDetail) { m := &ChatRenamedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -76,6 +76,16 @@ func (m *ChatRenamedEventMessageDetail) GetFieldDeserializers()(map[string]func( } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -89,6 +99,17 @@ func (m *ChatRenamedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ChatRenamedEventMessageDetail) 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 *ChatRenamedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -113,6 +134,12 @@ func (m *ChatRenamedEventMessageDetail) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetChatDisplayName sets the chatDisplayName property value. The updated name of the chat. @@ -136,6 +163,13 @@ func (m *ChatRenamedEventMessageDetail) SetInitiator(value IdentitySetable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ChatRenamedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ChatRenamedEventMessageDetailable type ChatRenamedEventMessageDetailable interface { EventMessageDetailable @@ -143,7 +177,9 @@ type ChatRenamedEventMessageDetailable interface { GetChatDisplayName()(*string) GetChatId()(*string) GetInitiator()(IdentitySetable) + GetOdataType()(*string) SetChatDisplayName(value *string)() SetChatId(value *string)() SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/checklist_item.go b/models/checklist_item.go index 9ce6291cf60..cf3d86a9b87 100644 --- a/models/checklist_item.go +++ b/models/checklist_item.go @@ -8,6 +8,8 @@ import ( // ChecklistItem type ChecklistItem struct { Entity + // The OdataType property + OdataType *string } // NewChecklistItem instantiates a new checklistItem and sets the default values. func NewChecklistItem()(*ChecklistItem) { diff --git a/models/checklist_item_collection_response.go b/models/checklist_item_collection_response.go index 5bee08e9fcf..85654fc4662 100644 --- a/models/checklist_item_collection_response.go +++ b/models/checklist_item_collection_response.go @@ -8,7 +8,7 @@ import ( type ChecklistItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewChecklistItemCollectionResponse instantiates a new ChecklistItemCollectionResponse and sets the default values. +// NewChecklistItemCollectionResponse instantiates a new checklistItemCollectionResponse and sets the default values. func NewChecklistItemCollectionResponse()(*ChecklistItemCollectionResponse) { m := &ChecklistItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/chrome_o_s_onboarding_settings.go b/models/chrome_o_s_onboarding_settings.go index 1a018461961..eebbc079e7d 100644 --- a/models/chrome_o_s_onboarding_settings.go +++ b/models/chrome_o_s_onboarding_settings.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ChromeOSOnboardingSettings +// ChromeOSOnboardingSettings entity that represents a Chromebook tenant settings type ChromeOSOnboardingSettings struct { Entity + // The OdataType property + OdataType *string } -// NewChromeOSOnboardingSettings instantiates a new ChromeOSOnboardingSettings and sets the default values. +// NewChromeOSOnboardingSettings instantiates a new chromeOSOnboardingSettings and sets the default values. func NewChromeOSOnboardingSettings()(*ChromeOSOnboardingSettings) { m := &ChromeOSOnboardingSettings{ Entity: *NewEntity(), diff --git a/models/chrome_o_s_onboarding_settings_collection_response.go b/models/chrome_o_s_onboarding_settings_collection_response.go index d0b51de1a00..152ffd04bf7 100644 --- a/models/chrome_o_s_onboarding_settings_collection_response.go +++ b/models/chrome_o_s_onboarding_settings_collection_response.go @@ -8,7 +8,7 @@ import ( type ChromeOSOnboardingSettingsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewChromeOSOnboardingSettingsCollectionResponse instantiates a new ChromeOSOnboardingSettingsCollectionResponse and sets the default values. +// NewChromeOSOnboardingSettingsCollectionResponse instantiates a new chromeOSOnboardingSettingsCollectionResponse and sets the default values. func NewChromeOSOnboardingSettingsCollectionResponse()(*ChromeOSOnboardingSettingsCollectionResponse) { m := &ChromeOSOnboardingSettingsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/claims_mapping_policy.go b/models/claims_mapping_policy.go index be2d084a857..698ad0e0c37 100644 --- a/models/claims_mapping_policy.go +++ b/models/claims_mapping_policy.go @@ -8,7 +8,7 @@ import ( type ClaimsMappingPolicy struct { StsPolicy } -// NewClaimsMappingPolicy instantiates a new ClaimsMappingPolicy and sets the default values. +// NewClaimsMappingPolicy instantiates a new claimsMappingPolicy and sets the default values. func NewClaimsMappingPolicy()(*ClaimsMappingPolicy) { m := &ClaimsMappingPolicy{ StsPolicy: *NewStsPolicy(), diff --git a/models/claims_mapping_policy_collection_response.go b/models/claims_mapping_policy_collection_response.go index f4ec7383a40..7d79a2ef0e3 100644 --- a/models/claims_mapping_policy_collection_response.go +++ b/models/claims_mapping_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type ClaimsMappingPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewClaimsMappingPolicyCollectionResponse instantiates a new ClaimsMappingPolicyCollectionResponse and sets the default values. +// NewClaimsMappingPolicyCollectionResponse instantiates a new claimsMappingPolicyCollectionResponse and sets the default values. func NewClaimsMappingPolicyCollectionResponse()(*ClaimsMappingPolicyCollectionResponse) { m := &ClaimsMappingPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/classification_error.go b/models/classification_error.go index 1576d799454..b6475038bae 100644 --- a/models/classification_error.go +++ b/models/classification_error.go @@ -8,7 +8,7 @@ import ( type ClassificationError struct { ClassifcationErrorBase } -// NewClassificationError instantiates a new ClassificationError and sets the default values. +// NewClassificationError instantiates a new classificationError and sets the default values. func NewClassificationError()(*ClassificationError) { m := &ClassificationError{ ClassifcationErrorBase: *NewClassifcationErrorBase(), @@ -49,8 +49,29 @@ func (m *ClassificationError) GetFieldDeserializers()(map[string]func(i878a80d23 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ClassificationError) 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 *ClassificationError) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ClassifcationErrorBase.Serialize(writer) @@ -69,6 +90,12 @@ func (m *ClassificationError) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDetails sets the details property value. The details property @@ -78,10 +105,19 @@ func (m *ClassificationError) SetDetails(value []ClassifcationErrorBaseable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ClassificationError) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ClassificationErrorable type ClassificationErrorable interface { ClassifcationErrorBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDetails()([]ClassifcationErrorBaseable) + GetOdataType()(*string) SetDetails(value []ClassifcationErrorBaseable)() + SetOdataType(value *string)() } diff --git a/models/classification_job_response.go b/models/classification_job_response.go index f2a6c73fca9..bd13c090bea 100644 --- a/models/classification_job_response.go +++ b/models/classification_job_response.go @@ -8,7 +8,7 @@ import ( type ClassificationJobResponse struct { JobResponseBase } -// NewClassificationJobResponse instantiates a new ClassificationJobResponse and sets the default values. +// NewClassificationJobResponse instantiates a new classificationJobResponse and sets the default values. func NewClassificationJobResponse()(*ClassificationJobResponse) { m := &ClassificationJobResponse{ JobResponseBase: *NewJobResponseBase(), diff --git a/models/classification_result.go b/models/classification_result.go index def235e57ea..7d78e9ecc65 100644 --- a/models/classification_result.go +++ b/models/classification_result.go @@ -10,7 +10,7 @@ type ClassificationResult struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewClassificationResult instantiates a new ClassificationResult and sets the default values. +// NewClassificationResult instantiates a new classificationResult and sets the default values. func NewClassificationResult()(*ClassificationResult) { m := &ClassificationResult{ } diff --git a/models/client_certificate_authentication.go b/models/client_certificate_authentication.go index 67baadf59d4..0a4ea9581ee 100644 --- a/models/client_certificate_authentication.go +++ b/models/client_certificate_authentication.go @@ -7,8 +7,10 @@ import ( // ClientCertificateAuthentication type ClientCertificateAuthentication struct { ApiAuthenticationConfigurationBase + // The OdataType property + OdataType *string } -// NewClientCertificateAuthentication instantiates a new ClientCertificateAuthentication and sets the default values. +// NewClientCertificateAuthentication instantiates a new clientCertificateAuthentication and sets the default values. func NewClientCertificateAuthentication()(*ClientCertificateAuthentication) { m := &ClientCertificateAuthentication{ ApiAuthenticationConfigurationBase: *NewApiAuthenticationConfigurationBase(), diff --git a/models/cloud_app_security_profile.go b/models/cloud_app_security_profile.go index ed6f7beac1c..2f4d14c53bb 100644 --- a/models/cloud_app_security_profile.go +++ b/models/cloud_app_security_profile.go @@ -8,8 +8,10 @@ import ( // CloudAppSecurityProfile type CloudAppSecurityProfile struct { Entity + // The OdataType property + OdataType *string } -// NewCloudAppSecurityProfile instantiates a new CloudAppSecurityProfile and sets the default values. +// NewCloudAppSecurityProfile instantiates a new cloudAppSecurityProfile and sets the default values. func NewCloudAppSecurityProfile()(*CloudAppSecurityProfile) { m := &CloudAppSecurityProfile{ Entity: *NewEntity(), diff --git a/models/cloud_app_security_profile_collection_response.go b/models/cloud_app_security_profile_collection_response.go index 4a840bb3758..777f2216f09 100644 --- a/models/cloud_app_security_profile_collection_response.go +++ b/models/cloud_app_security_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudAppSecurityProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudAppSecurityProfileCollectionResponse instantiates a new CloudAppSecurityProfileCollectionResponse and sets the default values. +// NewCloudAppSecurityProfileCollectionResponse instantiates a new cloudAppSecurityProfileCollectionResponse and sets the default values. func NewCloudAppSecurityProfileCollectionResponse()(*CloudAppSecurityProfileCollectionResponse) { m := &CloudAppSecurityProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_app_security_session_control.go b/models/cloud_app_security_session_control.go index 348944c3fb8..d07ac212c7e 100644 --- a/models/cloud_app_security_session_control.go +++ b/models/cloud_app_security_session_control.go @@ -8,7 +8,7 @@ import ( type CloudAppSecuritySessionControl struct { ConditionalAccessSessionControl } -// NewCloudAppSecuritySessionControl instantiates a new CloudAppSecuritySessionControl and sets the default values. +// NewCloudAppSecuritySessionControl instantiates a new cloudAppSecuritySessionControl and sets the default values. func NewCloudAppSecuritySessionControl()(*CloudAppSecuritySessionControl) { m := &CloudAppSecuritySessionControl{ ConditionalAccessSessionControl: *NewConditionalAccessSessionControl(), @@ -45,8 +45,29 @@ func (m *CloudAppSecuritySessionControl) GetFieldDeserializers()(map[string]func } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CloudAppSecuritySessionControl) 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 *CloudAppSecuritySessionControl) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ConditionalAccessSessionControl.Serialize(writer) @@ -60,6 +81,12 @@ func (m *CloudAppSecuritySessionControl) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } 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. @@ -69,10 +96,19 @@ func (m *CloudAppSecuritySessionControl) SetCloudAppSecurityType(value *CloudApp panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CloudAppSecuritySessionControl) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // CloudAppSecuritySessionControlable type CloudAppSecuritySessionControlable interface { ConditionalAccessSessionControlable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCloudAppSecurityType()(*CloudAppSecuritySessionControlType) + GetOdataType()(*string) SetCloudAppSecurityType(value *CloudAppSecuritySessionControlType)() + SetOdataType(value *string)() } diff --git a/models/cloud_app_security_state.go b/models/cloud_app_security_state.go index 4902baf258f..ca0bf3de9ad 100644 --- a/models/cloud_app_security_state.go +++ b/models/cloud_app_security_state.go @@ -10,7 +10,7 @@ type CloudAppSecurityState struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCloudAppSecurityState instantiates a new CloudAppSecurityState and sets the default values. +// NewCloudAppSecurityState instantiates a new cloudAppSecurityState and sets the default values. func NewCloudAppSecurityState()(*CloudAppSecurityState) { m := &CloudAppSecurityState{ } diff --git a/models/cloud_communications.go b/models/cloud_communications.go index 67619790e5c..3f314d3cc7d 100644 --- a/models/cloud_communications.go +++ b/models/cloud_communications.go @@ -10,7 +10,7 @@ type CloudCommunications struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCloudCommunications instantiates a new CloudCommunications and sets the default values. +// NewCloudCommunications instantiates a new cloudCommunications and sets the default values. func NewCloudCommunications()(*CloudCommunications) { m := &CloudCommunications{ } diff --git a/models/cloud_p_c.go b/models/cloud_p_c.go index 2e72d51ddc2..454aec0db48 100644 --- a/models/cloud_p_c.go +++ b/models/cloud_p_c.go @@ -8,6 +8,8 @@ import ( // CloudPC type CloudPC struct { Entity + // The OdataType property + OdataType *string } // NewCloudPC instantiates a new cloudPC and sets the default values. func NewCloudPC()(*CloudPC) { diff --git a/models/cloud_p_c_collection_response.go b/models/cloud_p_c_collection_response.go index aad5993dd73..d1ed9dc0cab 100644 --- a/models/cloud_p_c_collection_response.go +++ b/models/cloud_p_c_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPCCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPCCollectionResponse instantiates a new CloudPCCollectionResponse and sets the default values. +// NewCloudPCCollectionResponse instantiates a new cloudPCCollectionResponse and sets the default values. func NewCloudPCCollectionResponse()(*CloudPCCollectionResponse) { m := &CloudPCCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_p_c_connectivity_issue.go b/models/cloud_p_c_connectivity_issue.go index 1191757e477..075b885c0c3 100644 --- a/models/cloud_p_c_connectivity_issue.go +++ b/models/cloud_p_c_connectivity_issue.go @@ -8,6 +8,8 @@ import ( // CloudPCConnectivityIssue the user experience analyte connectivity issue entity. type CloudPCConnectivityIssue struct { Entity + // The OdataType property + OdataType *string } // NewCloudPCConnectivityIssue instantiates a new cloudPCConnectivityIssue and sets the default values. func NewCloudPCConnectivityIssue()(*CloudPCConnectivityIssue) { diff --git a/models/cloud_p_c_connectivity_issue_collection_response.go b/models/cloud_p_c_connectivity_issue_collection_response.go index 895e0a7a53e..f91438b3d2c 100644 --- a/models/cloud_p_c_connectivity_issue_collection_response.go +++ b/models/cloud_p_c_connectivity_issue_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPCConnectivityIssueCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPCConnectivityIssueCollectionResponse instantiates a new CloudPCConnectivityIssueCollectionResponse and sets the default values. +// NewCloudPCConnectivityIssueCollectionResponse instantiates a new cloudPCConnectivityIssueCollectionResponse and sets the default values. func NewCloudPCConnectivityIssueCollectionResponse()(*CloudPCConnectivityIssueCollectionResponse) { m := &CloudPCConnectivityIssueCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_audit_actor.go b/models/cloud_pc_audit_actor.go index e4fcc6c5f93..ea84fa404ad 100644 --- a/models/cloud_pc_audit_actor.go +++ b/models/cloud_pc_audit_actor.go @@ -10,7 +10,7 @@ type CloudPcAuditActor struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCloudPcAuditActor instantiates a new CloudPcAuditActor and sets the default values. +// NewCloudPcAuditActor instantiates a new cloudPcAuditActor and sets the default values. func NewCloudPcAuditActor()(*CloudPcAuditActor) { m := &CloudPcAuditActor{ } diff --git a/models/cloud_pc_audit_event.go b/models/cloud_pc_audit_event.go index 6d90b55a515..e493552b178 100644 --- a/models/cloud_pc_audit_event.go +++ b/models/cloud_pc_audit_event.go @@ -9,7 +9,7 @@ import ( type CloudPcAuditEvent struct { Entity } -// NewCloudPcAuditEvent instantiates a new CloudPcAuditEvent and sets the default values. +// NewCloudPcAuditEvent instantiates a new cloudPcAuditEvent and sets the default values. func NewCloudPcAuditEvent()(*CloudPcAuditEvent) { m := &CloudPcAuditEvent{ Entity: *NewEntity(), @@ -233,6 +233,16 @@ func (m *CloudPcAuditEvent) GetFieldDeserializers()(map[string]func(i878a80d2330 } 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["resources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateCloudPcAuditResourceFromDiscriminatorValue) if err != nil { @@ -251,6 +261,17 @@ func (m *CloudPcAuditEvent) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CloudPcAuditEvent) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetResources gets the resources property value. List of cloudPcAuditResource objects. Read-only. func (m *CloudPcAuditEvent) GetResources()([]CloudPcAuditResourceable) { val, err := m.GetBackingStore().Get("resources") @@ -331,6 +352,12 @@ func (m *CloudPcAuditEvent) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetResources() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetResources())) for i, v := range m.GetResources() { @@ -415,6 +442,13 @@ func (m *CloudPcAuditEvent) SetDisplayName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CloudPcAuditEvent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetResources sets the resources property value. List of cloudPcAuditResource objects. Read-only. func (m *CloudPcAuditEvent) SetResources(value []CloudPcAuditResourceable)() { err := m.GetBackingStore().Set("resources", value) @@ -436,6 +470,7 @@ type CloudPcAuditEventable interface { GetComponentName()(*string) GetCorrelationId()(*string) GetDisplayName()(*string) + GetOdataType()(*string) GetResources()([]CloudPcAuditResourceable) SetActivity(value *string)() SetActivityDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -447,5 +482,6 @@ type CloudPcAuditEventable interface { SetComponentName(value *string)() SetCorrelationId(value *string)() SetDisplayName(value *string)() + SetOdataType(value *string)() SetResources(value []CloudPcAuditResourceable)() } diff --git a/models/cloud_pc_audit_event_collection_response.go b/models/cloud_pc_audit_event_collection_response.go index 6ac07b7760f..268b416af77 100644 --- a/models/cloud_pc_audit_event_collection_response.go +++ b/models/cloud_pc_audit_event_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcAuditEventCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcAuditEventCollectionResponse instantiates a new CloudPcAuditEventCollectionResponse and sets the default values. +// NewCloudPcAuditEventCollectionResponse instantiates a new cloudPcAuditEventCollectionResponse and sets the default values. func NewCloudPcAuditEventCollectionResponse()(*CloudPcAuditEventCollectionResponse) { m := &CloudPcAuditEventCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_audit_property.go b/models/cloud_pc_audit_property.go index 72bb9699e5e..9fbd45c16cd 100644 --- a/models/cloud_pc_audit_property.go +++ b/models/cloud_pc_audit_property.go @@ -10,7 +10,7 @@ type CloudPcAuditProperty struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCloudPcAuditProperty instantiates a new CloudPcAuditProperty and sets the default values. +// NewCloudPcAuditProperty instantiates a new cloudPcAuditProperty and sets the default values. func NewCloudPcAuditProperty()(*CloudPcAuditProperty) { m := &CloudPcAuditProperty{ } diff --git a/models/cloud_pc_audit_resource.go b/models/cloud_pc_audit_resource.go index d43ca75bcef..307a655b4e6 100644 --- a/models/cloud_pc_audit_resource.go +++ b/models/cloud_pc_audit_resource.go @@ -10,7 +10,7 @@ type CloudPcAuditResource struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCloudPcAuditResource instantiates a new CloudPcAuditResource and sets the default values. +// NewCloudPcAuditResource instantiates a new cloudPcAuditResource and sets the default values. func NewCloudPcAuditResource()(*CloudPcAuditResource) { m := &CloudPcAuditResource{ } diff --git a/models/cloud_pc_bulk_action.go b/models/cloud_pc_bulk_action.go index ae87224e834..a025e0f71dd 100644 --- a/models/cloud_pc_bulk_action.go +++ b/models/cloud_pc_bulk_action.go @@ -8,8 +8,10 @@ import ( // CloudPcBulkAction type CloudPcBulkAction struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcBulkAction instantiates a new CloudPcBulkAction and sets the default values. +// NewCloudPcBulkAction instantiates a new cloudPcBulkAction and sets the default values. func NewCloudPcBulkAction()(*CloudPcBulkAction) { m := &CloudPcBulkAction{ Entity: *NewEntity(), diff --git a/models/cloud_pc_bulk_action_collection_response.go b/models/cloud_pc_bulk_action_collection_response.go index d28d223d258..db7a99194e3 100644 --- a/models/cloud_pc_bulk_action_collection_response.go +++ b/models/cloud_pc_bulk_action_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcBulkActionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcBulkActionCollectionResponse instantiates a new CloudPcBulkActionCollectionResponse and sets the default values. +// NewCloudPcBulkActionCollectionResponse instantiates a new cloudPcBulkActionCollectionResponse and sets the default values. func NewCloudPcBulkActionCollectionResponse()(*CloudPcBulkActionCollectionResponse) { m := &CloudPcBulkActionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_bulk_power_off.go b/models/cloud_pc_bulk_power_off.go index f84cac42182..0a90fce086b 100644 --- a/models/cloud_pc_bulk_power_off.go +++ b/models/cloud_pc_bulk_power_off.go @@ -8,7 +8,7 @@ import ( type CloudPcBulkPowerOff struct { CloudPcBulkAction } -// NewCloudPcBulkPowerOff instantiates a new CloudPcBulkPowerOff and sets the default values. +// NewCloudPcBulkPowerOff instantiates a new cloudPcBulkPowerOff and sets the default values. func NewCloudPcBulkPowerOff()(*CloudPcBulkPowerOff) { m := &CloudPcBulkPowerOff{ CloudPcBulkAction: *NewCloudPcBulkAction(), diff --git a/models/cloud_pc_bulk_power_on.go b/models/cloud_pc_bulk_power_on.go index 3462ae05fc8..5930e4c5476 100644 --- a/models/cloud_pc_bulk_power_on.go +++ b/models/cloud_pc_bulk_power_on.go @@ -8,7 +8,7 @@ import ( type CloudPcBulkPowerOn struct { CloudPcBulkAction } -// NewCloudPcBulkPowerOn instantiates a new CloudPcBulkPowerOn and sets the default values. +// NewCloudPcBulkPowerOn instantiates a new cloudPcBulkPowerOn and sets the default values. func NewCloudPcBulkPowerOn()(*CloudPcBulkPowerOn) { m := &CloudPcBulkPowerOn{ CloudPcBulkAction: *NewCloudPcBulkAction(), diff --git a/models/cloud_pc_cross_cloud_government_organization_mapping.go b/models/cloud_pc_cross_cloud_government_organization_mapping.go index b413e8ca415..c5046c66b48 100644 --- a/models/cloud_pc_cross_cloud_government_organization_mapping.go +++ b/models/cloud_pc_cross_cloud_government_organization_mapping.go @@ -7,8 +7,10 @@ import ( // CloudPcCrossCloudGovernmentOrganizationMapping type CloudPcCrossCloudGovernmentOrganizationMapping struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcCrossCloudGovernmentOrganizationMapping instantiates a new CloudPcCrossCloudGovernmentOrganizationMapping and sets the default values. +// NewCloudPcCrossCloudGovernmentOrganizationMapping instantiates a new cloudPcCrossCloudGovernmentOrganizationMapping and sets the default values. func NewCloudPcCrossCloudGovernmentOrganizationMapping()(*CloudPcCrossCloudGovernmentOrganizationMapping) { m := &CloudPcCrossCloudGovernmentOrganizationMapping{ Entity: *NewEntity(), diff --git a/models/cloud_pc_device_image.go b/models/cloud_pc_device_image.go index c7cb4d6fc32..9fa9643b919 100644 --- a/models/cloud_pc_device_image.go +++ b/models/cloud_pc_device_image.go @@ -8,8 +8,10 @@ import ( // CloudPcDeviceImage type CloudPcDeviceImage struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcDeviceImage instantiates a new CloudPcDeviceImage and sets the default values. +// NewCloudPcDeviceImage instantiates a new cloudPcDeviceImage and sets the default values. func NewCloudPcDeviceImage()(*CloudPcDeviceImage) { m := &CloudPcDeviceImage{ Entity: *NewEntity(), diff --git a/models/cloud_pc_device_image_collection_response.go b/models/cloud_pc_device_image_collection_response.go index b2326e81f37..e05ae651ee2 100644 --- a/models/cloud_pc_device_image_collection_response.go +++ b/models/cloud_pc_device_image_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcDeviceImageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcDeviceImageCollectionResponse instantiates a new CloudPcDeviceImageCollectionResponse and sets the default values. +// NewCloudPcDeviceImageCollectionResponse instantiates a new cloudPcDeviceImageCollectionResponse and sets the default values. func NewCloudPcDeviceImageCollectionResponse()(*CloudPcDeviceImageCollectionResponse) { m := &CloudPcDeviceImageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_export_job.go b/models/cloud_pc_export_job.go index 0c9ecf30cc2..ef7893dcfff 100644 --- a/models/cloud_pc_export_job.go +++ b/models/cloud_pc_export_job.go @@ -8,8 +8,10 @@ import ( // CloudPcExportJob type CloudPcExportJob struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcExportJob instantiates a new CloudPcExportJob and sets the default values. +// NewCloudPcExportJob instantiates a new cloudPcExportJob and sets the default values. func NewCloudPcExportJob()(*CloudPcExportJob) { m := &CloudPcExportJob{ Entity: *NewEntity(), diff --git a/models/cloud_pc_export_job_collection_response.go b/models/cloud_pc_export_job_collection_response.go index f60bc9fe4cb..43da0ef51b8 100644 --- a/models/cloud_pc_export_job_collection_response.go +++ b/models/cloud_pc_export_job_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcExportJobCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcExportJobCollectionResponse instantiates a new CloudPcExportJobCollectionResponse and sets the default values. +// NewCloudPcExportJobCollectionResponse instantiates a new cloudPcExportJobCollectionResponse and sets the default values. func NewCloudPcExportJobCollectionResponse()(*CloudPcExportJobCollectionResponse) { m := &CloudPcExportJobCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_external_partner_setting.go b/models/cloud_pc_external_partner_setting.go index 89fe435b570..3c744150c25 100644 --- a/models/cloud_pc_external_partner_setting.go +++ b/models/cloud_pc_external_partner_setting.go @@ -8,8 +8,10 @@ import ( // CloudPcExternalPartnerSetting type CloudPcExternalPartnerSetting struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcExternalPartnerSetting instantiates a new CloudPcExternalPartnerSetting and sets the default values. +// NewCloudPcExternalPartnerSetting instantiates a new cloudPcExternalPartnerSetting and sets the default values. func NewCloudPcExternalPartnerSetting()(*CloudPcExternalPartnerSetting) { m := &CloudPcExternalPartnerSetting{ Entity: *NewEntity(), diff --git a/models/cloud_pc_external_partner_setting_collection_response.go b/models/cloud_pc_external_partner_setting_collection_response.go index 2892c27092c..732fd73598f 100644 --- a/models/cloud_pc_external_partner_setting_collection_response.go +++ b/models/cloud_pc_external_partner_setting_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcExternalPartnerSettingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcExternalPartnerSettingCollectionResponse instantiates a new CloudPcExternalPartnerSettingCollectionResponse and sets the default values. +// NewCloudPcExternalPartnerSettingCollectionResponse instantiates a new cloudPcExternalPartnerSettingCollectionResponse and sets the default values. func NewCloudPcExternalPartnerSettingCollectionResponse()(*CloudPcExternalPartnerSettingCollectionResponse) { m := &CloudPcExternalPartnerSettingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_forensic_storage_account.go b/models/cloud_pc_forensic_storage_account.go index 36fbb3f92bb..c205321b926 100644 --- a/models/cloud_pc_forensic_storage_account.go +++ b/models/cloud_pc_forensic_storage_account.go @@ -7,6 +7,8 @@ import ( // CloudPcForensicStorageAccount type CloudPcForensicStorageAccount struct { Entity + // The OdataType property + OdataType *string } // NewCloudPcForensicStorageAccount instantiates a new cloudPcForensicStorageAccount and sets the default values. func NewCloudPcForensicStorageAccount()(*CloudPcForensicStorageAccount) { diff --git a/models/cloud_pc_gallery_image.go b/models/cloud_pc_gallery_image.go index e4e0521f5f0..27152539f7d 100644 --- a/models/cloud_pc_gallery_image.go +++ b/models/cloud_pc_gallery_image.go @@ -7,8 +7,10 @@ import ( // CloudPcGalleryImage type CloudPcGalleryImage struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcGalleryImage instantiates a new CloudPcGalleryImage and sets the default values. +// NewCloudPcGalleryImage instantiates a new cloudPcGalleryImage and sets the default values. func NewCloudPcGalleryImage()(*CloudPcGalleryImage) { m := &CloudPcGalleryImage{ Entity: *NewEntity(), diff --git a/models/cloud_pc_gallery_image_collection_response.go b/models/cloud_pc_gallery_image_collection_response.go index fdfe03b6797..f463313886e 100644 --- a/models/cloud_pc_gallery_image_collection_response.go +++ b/models/cloud_pc_gallery_image_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcGalleryImageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcGalleryImageCollectionResponse instantiates a new CloudPcGalleryImageCollectionResponse and sets the default values. +// NewCloudPcGalleryImageCollectionResponse instantiates a new cloudPcGalleryImageCollectionResponse and sets the default values. func NewCloudPcGalleryImageCollectionResponse()(*CloudPcGalleryImageCollectionResponse) { m := &CloudPcGalleryImageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_management_group_assignment_target.go b/models/cloud_pc_management_group_assignment_target.go index edee2bcf82e..d4454c52e53 100644 --- a/models/cloud_pc_management_group_assignment_target.go +++ b/models/cloud_pc_management_group_assignment_target.go @@ -8,7 +8,7 @@ import ( type CloudPcManagementGroupAssignmentTarget struct { CloudPcManagementAssignmentTarget } -// NewCloudPcManagementGroupAssignmentTarget instantiates a new CloudPcManagementGroupAssignmentTarget and sets the default values. +// NewCloudPcManagementGroupAssignmentTarget instantiates a new cloudPcManagementGroupAssignmentTarget and sets the default values. func NewCloudPcManagementGroupAssignmentTarget()(*CloudPcManagementGroupAssignmentTarget) { m := &CloudPcManagementGroupAssignmentTarget{ CloudPcManagementAssignmentTarget: *NewCloudPcManagementAssignmentTarget(), @@ -34,6 +34,16 @@ func (m *CloudPcManagementGroupAssignmentTarget) GetFieldDeserializers()(map[str } 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["servicePlanId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -57,6 +67,17 @@ func (m *CloudPcManagementGroupAssignmentTarget) GetGroupId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CloudPcManagementGroupAssignmentTarget) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetServicePlanId gets the servicePlanId property value. The unique identifier for the service plan that indicates which size of the Cloud PC to provision for the user. Use a null value, when the provisioningType is dedicated. func (m *CloudPcManagementGroupAssignmentTarget) GetServicePlanId()(*string) { val, err := m.GetBackingStore().Get("servicePlanId") @@ -80,6 +101,12 @@ func (m *CloudPcManagementGroupAssignmentTarget) Serialize(writer i878a80d2330e8 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("servicePlanId", m.GetServicePlanId()) if err != nil { @@ -95,6 +122,13 @@ func (m *CloudPcManagementGroupAssignmentTarget) SetGroupId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CloudPcManagementGroupAssignmentTarget) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetServicePlanId sets the servicePlanId property value. The unique identifier for the service plan that indicates which size of the Cloud PC to provision for the user. Use a null value, when the provisioningType is dedicated. func (m *CloudPcManagementGroupAssignmentTarget) SetServicePlanId(value *string)() { err := m.GetBackingStore().Set("servicePlanId", value) @@ -107,7 +141,9 @@ type CloudPcManagementGroupAssignmentTargetable interface { CloudPcManagementAssignmentTargetable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetGroupId()(*string) + GetOdataType()(*string) GetServicePlanId()(*string) SetGroupId(value *string)() + SetOdataType(value *string)() SetServicePlanId(value *string)() } diff --git a/models/cloud_pc_on_premises_connection.go b/models/cloud_pc_on_premises_connection.go index f04160d9f3d..accbafd4d38 100644 --- a/models/cloud_pc_on_premises_connection.go +++ b/models/cloud_pc_on_premises_connection.go @@ -8,7 +8,7 @@ import ( type CloudPcOnPremisesConnection struct { Entity } -// NewCloudPcOnPremisesConnection instantiates a new CloudPcOnPremisesConnection and sets the default values. +// NewCloudPcOnPremisesConnection instantiates a new cloudPcOnPremisesConnection and sets the default values. func NewCloudPcOnPremisesConnection()(*CloudPcOnPremisesConnection) { m := &CloudPcOnPremisesConnection{ Entity: *NewEntity(), @@ -167,6 +167,16 @@ func (m *CloudPcOnPremisesConnection) GetFieldDeserializers()(map[string]func(i8 } 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["organizationalUnit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -293,6 +303,17 @@ func (m *CloudPcOnPremisesConnection) GetManagedBy()(*CloudPcManagementService) } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CloudPcOnPremisesConnection) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOrganizationalUnit gets the organizationalUnit property value. The organizational unit (OU) in which the computer account is created. If left null, the OU that’s configured as the default (a well-known computer object container) in your Active Directory domain (OU) is used. Optional. func (m *CloudPcOnPremisesConnection) GetOrganizationalUnit()(*string) { val, err := m.GetBackingStore().Get("organizationalUnit") @@ -443,6 +464,12 @@ func (m *CloudPcOnPremisesConnection) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("organizationalUnit", m.GetOrganizationalUnit()) if err != nil { @@ -557,6 +584,13 @@ func (m *CloudPcOnPremisesConnection) SetManagedBy(value *CloudPcManagementServi panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CloudPcOnPremisesConnection) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOrganizationalUnit sets the organizationalUnit property value. The organizational unit (OU) in which the computer account is created. If left null, the OU that’s configured as the default (a well-known computer object container) in your Active Directory domain (OU) is used. Optional. func (m *CloudPcOnPremisesConnection) SetOrganizationalUnit(value *string)() { err := m.GetBackingStore().Set("organizationalUnit", value) @@ -626,6 +660,7 @@ type CloudPcOnPremisesConnectionable interface { GetHealthCheckStatusDetails()(CloudPcOnPremisesConnectionStatusDetailsable) GetInUse()(*bool) GetManagedBy()(*CloudPcManagementService) + GetOdataType()(*string) GetOrganizationalUnit()(*string) GetResourceGroupId()(*string) GetSubnetId()(*string) @@ -643,6 +678,7 @@ type CloudPcOnPremisesConnectionable interface { SetHealthCheckStatusDetails(value CloudPcOnPremisesConnectionStatusDetailsable)() SetInUse(value *bool)() SetManagedBy(value *CloudPcManagementService)() + SetOdataType(value *string)() SetOrganizationalUnit(value *string)() SetResourceGroupId(value *string)() SetSubnetId(value *string)() diff --git a/models/cloud_pc_on_premises_connection_collection_response.go b/models/cloud_pc_on_premises_connection_collection_response.go index b3342f7cd2c..0ec0f947760 100644 --- a/models/cloud_pc_on_premises_connection_collection_response.go +++ b/models/cloud_pc_on_premises_connection_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcOnPremisesConnectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcOnPremisesConnectionCollectionResponse instantiates a new CloudPcOnPremisesConnectionCollectionResponse and sets the default values. +// NewCloudPcOnPremisesConnectionCollectionResponse instantiates a new cloudPcOnPremisesConnectionCollectionResponse and sets the default values. func NewCloudPcOnPremisesConnectionCollectionResponse()(*CloudPcOnPremisesConnectionCollectionResponse) { m := &CloudPcOnPremisesConnectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_organization_settings.go b/models/cloud_pc_organization_settings.go index 12c6fd8b094..4c51e254a67 100644 --- a/models/cloud_pc_organization_settings.go +++ b/models/cloud_pc_organization_settings.go @@ -7,8 +7,10 @@ import ( // CloudPcOrganizationSettings type CloudPcOrganizationSettings struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcOrganizationSettings instantiates a new CloudPcOrganizationSettings and sets the default values. +// NewCloudPcOrganizationSettings instantiates a new cloudPcOrganizationSettings and sets the default values. func NewCloudPcOrganizationSettings()(*CloudPcOrganizationSettings) { m := &CloudPcOrganizationSettings{ Entity: *NewEntity(), diff --git a/models/cloud_pc_provisioning_policy.go b/models/cloud_pc_provisioning_policy.go index ba8e44e4667..74740cca7a9 100644 --- a/models/cloud_pc_provisioning_policy.go +++ b/models/cloud_pc_provisioning_policy.go @@ -7,8 +7,10 @@ import ( // CloudPcProvisioningPolicy type CloudPcProvisioningPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcProvisioningPolicy instantiates a new CloudPcProvisioningPolicy and sets the default values. +// NewCloudPcProvisioningPolicy instantiates a new cloudPcProvisioningPolicy and sets the default values. func NewCloudPcProvisioningPolicy()(*CloudPcProvisioningPolicy) { m := &CloudPcProvisioningPolicy{ Entity: *NewEntity(), diff --git a/models/cloud_pc_provisioning_policy_assignment.go b/models/cloud_pc_provisioning_policy_assignment.go index 41f03e82280..df89fa49460 100644 --- a/models/cloud_pc_provisioning_policy_assignment.go +++ b/models/cloud_pc_provisioning_policy_assignment.go @@ -7,6 +7,8 @@ import ( // CloudPcProvisioningPolicyAssignment type CloudPcProvisioningPolicyAssignment struct { Entity + // The OdataType property + OdataType *string } // NewCloudPcProvisioningPolicyAssignment instantiates a new cloudPcProvisioningPolicyAssignment and sets the default values. func NewCloudPcProvisioningPolicyAssignment()(*CloudPcProvisioningPolicyAssignment) { diff --git a/models/cloud_pc_provisioning_policy_assignment_collection_response.go b/models/cloud_pc_provisioning_policy_assignment_collection_response.go index b3bfc2d8f01..e4f926f8c9c 100644 --- a/models/cloud_pc_provisioning_policy_assignment_collection_response.go +++ b/models/cloud_pc_provisioning_policy_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcProvisioningPolicyAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcProvisioningPolicyAssignmentCollectionResponse instantiates a new CloudPcProvisioningPolicyAssignmentCollectionResponse and sets the default values. +// NewCloudPcProvisioningPolicyAssignmentCollectionResponse instantiates a new cloudPcProvisioningPolicyAssignmentCollectionResponse and sets the default values. func NewCloudPcProvisioningPolicyAssignmentCollectionResponse()(*CloudPcProvisioningPolicyAssignmentCollectionResponse) { m := &CloudPcProvisioningPolicyAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_provisioning_policy_collection_response.go b/models/cloud_pc_provisioning_policy_collection_response.go index e5f745c895d..c42559b3717 100644 --- a/models/cloud_pc_provisioning_policy_collection_response.go +++ b/models/cloud_pc_provisioning_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcProvisioningPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcProvisioningPolicyCollectionResponse instantiates a new CloudPcProvisioningPolicyCollectionResponse and sets the default values. +// NewCloudPcProvisioningPolicyCollectionResponse instantiates a new cloudPcProvisioningPolicyCollectionResponse and sets the default values. func NewCloudPcProvisioningPolicyCollectionResponse()(*CloudPcProvisioningPolicyCollectionResponse) { m := &CloudPcProvisioningPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_reports.go b/models/cloud_pc_reports.go index ac934423dcd..d6a18554b57 100644 --- a/models/cloud_pc_reports.go +++ b/models/cloud_pc_reports.go @@ -7,8 +7,10 @@ import ( // CloudPcReports type CloudPcReports struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcReports instantiates a new CloudPcReports and sets the default values. +// NewCloudPcReports instantiates a new cloudPcReports and sets the default values. func NewCloudPcReports()(*CloudPcReports) { m := &CloudPcReports{ Entity: *NewEntity(), diff --git a/models/cloud_pc_service_plan.go b/models/cloud_pc_service_plan.go index 2915d357651..d123078da90 100644 --- a/models/cloud_pc_service_plan.go +++ b/models/cloud_pc_service_plan.go @@ -8,7 +8,7 @@ import ( type CloudPcServicePlan struct { Entity } -// NewCloudPcServicePlan instantiates a new CloudPcServicePlan and sets the default values. +// NewCloudPcServicePlan instantiates a new cloudPcServicePlan and sets the default values. func NewCloudPcServicePlan()(*CloudPcServicePlan) { m := &CloudPcServicePlan{ Entity: *NewEntity(), @@ -43,6 +43,16 @@ func (m *CloudPcServicePlan) GetFieldDeserializers()(map[string]func(i878a80d233 } 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["provisioningType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseCloudPcProvisioningType) if err != nil { @@ -115,6 +125,17 @@ func (m *CloudPcServicePlan) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CloudPcServicePlan) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // 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) { val, err := m.GetBackingStore().Get("provisioningType") @@ -204,6 +225,12 @@ func (m *CloudPcServicePlan) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetProvisioningType() != nil { cast := (*m.GetProvisioningType()).String() err = writer.WriteStringValue("provisioningType", &cast) @@ -258,6 +285,13 @@ func (m *CloudPcServicePlan) SetDisplayName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CloudPcServicePlan) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // 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)() { err := m.GetBackingStore().Set("provisioningType", value) @@ -312,6 +346,7 @@ type CloudPcServicePlanable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDisplayName()(*string) + GetOdataType()(*string) GetProvisioningType()(*CloudPcProvisioningType) GetRamInGB()(*int32) GetStorageInGB()(*int32) @@ -320,6 +355,7 @@ type CloudPcServicePlanable interface { GetUserProfileInGB()(*int32) GetVCpuCount()(*int32) SetDisplayName(value *string)() + SetOdataType(value *string)() SetProvisioningType(value *CloudPcProvisioningType)() SetRamInGB(value *int32)() SetStorageInGB(value *int32)() diff --git a/models/cloud_pc_service_plan_collection_response.go b/models/cloud_pc_service_plan_collection_response.go index c519a22f956..04bba657a52 100644 --- a/models/cloud_pc_service_plan_collection_response.go +++ b/models/cloud_pc_service_plan_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcServicePlanCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcServicePlanCollectionResponse instantiates a new CloudPcServicePlanCollectionResponse and sets the default values. +// NewCloudPcServicePlanCollectionResponse instantiates a new cloudPcServicePlanCollectionResponse and sets the default values. func NewCloudPcServicePlanCollectionResponse()(*CloudPcServicePlanCollectionResponse) { m := &CloudPcServicePlanCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_shared_use_service_plan.go b/models/cloud_pc_shared_use_service_plan.go index e8074935942..e4e8d29b755 100644 --- a/models/cloud_pc_shared_use_service_plan.go +++ b/models/cloud_pc_shared_use_service_plan.go @@ -7,8 +7,10 @@ import ( // CloudPcSharedUseServicePlan type CloudPcSharedUseServicePlan struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcSharedUseServicePlan instantiates a new CloudPcSharedUseServicePlan and sets the default values. +// NewCloudPcSharedUseServicePlan instantiates a new cloudPcSharedUseServicePlan and sets the default values. func NewCloudPcSharedUseServicePlan()(*CloudPcSharedUseServicePlan) { m := &CloudPcSharedUseServicePlan{ Entity: *NewEntity(), diff --git a/models/cloud_pc_shared_use_service_plan_collection_response.go b/models/cloud_pc_shared_use_service_plan_collection_response.go index f6d480fa9bd..5031e3578f2 100644 --- a/models/cloud_pc_shared_use_service_plan_collection_response.go +++ b/models/cloud_pc_shared_use_service_plan_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcSharedUseServicePlanCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcSharedUseServicePlanCollectionResponse instantiates a new CloudPcSharedUseServicePlanCollectionResponse and sets the default values. +// NewCloudPcSharedUseServicePlanCollectionResponse instantiates a new cloudPcSharedUseServicePlanCollectionResponse and sets the default values. func NewCloudPcSharedUseServicePlanCollectionResponse()(*CloudPcSharedUseServicePlanCollectionResponse) { m := &CloudPcSharedUseServicePlanCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_snapshot.go b/models/cloud_pc_snapshot.go index 01ee3e26e07..6778fa7415e 100644 --- a/models/cloud_pc_snapshot.go +++ b/models/cloud_pc_snapshot.go @@ -8,8 +8,10 @@ import ( // CloudPcSnapshot type CloudPcSnapshot struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcSnapshot instantiates a new CloudPcSnapshot and sets the default values. +// NewCloudPcSnapshot instantiates a new cloudPcSnapshot and sets the default values. func NewCloudPcSnapshot()(*CloudPcSnapshot) { m := &CloudPcSnapshot{ Entity: *NewEntity(), diff --git a/models/cloud_pc_snapshot_collection_response.go b/models/cloud_pc_snapshot_collection_response.go index e0bc6d5258a..22a1639052a 100644 --- a/models/cloud_pc_snapshot_collection_response.go +++ b/models/cloud_pc_snapshot_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcSnapshotCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcSnapshotCollectionResponse instantiates a new CloudPcSnapshotCollectionResponse and sets the default values. +// NewCloudPcSnapshotCollectionResponse instantiates a new cloudPcSnapshotCollectionResponse and sets the default values. func NewCloudPcSnapshotCollectionResponse()(*CloudPcSnapshotCollectionResponse) { m := &CloudPcSnapshotCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_subscription.go b/models/cloud_pc_subscription.go index 46f9587d194..76e13c24a1f 100644 --- a/models/cloud_pc_subscription.go +++ b/models/cloud_pc_subscription.go @@ -7,6 +7,8 @@ import ( // CloudPcSubscription type CloudPcSubscription struct { Entity + // The OdataType property + OdataType *string } // NewCloudPcSubscription instantiates a new cloudPcSubscription and sets the default values. func NewCloudPcSubscription()(*CloudPcSubscription) { diff --git a/models/cloud_pc_supported_region.go b/models/cloud_pc_supported_region.go index 705b353b232..92a1fe8d89b 100644 --- a/models/cloud_pc_supported_region.go +++ b/models/cloud_pc_supported_region.go @@ -7,8 +7,10 @@ import ( // CloudPcSupportedRegion type CloudPcSupportedRegion struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcSupportedRegion instantiates a new CloudPcSupportedRegion and sets the default values. +// NewCloudPcSupportedRegion instantiates a new cloudPcSupportedRegion and sets the default values. func NewCloudPcSupportedRegion()(*CloudPcSupportedRegion) { m := &CloudPcSupportedRegion{ Entity: *NewEntity(), diff --git a/models/cloud_pc_supported_region_collection_response.go b/models/cloud_pc_supported_region_collection_response.go index ae55510fa64..20b62fdfcf9 100644 --- a/models/cloud_pc_supported_region_collection_response.go +++ b/models/cloud_pc_supported_region_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcSupportedRegionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcSupportedRegionCollectionResponse instantiates a new CloudPcSupportedRegionCollectionResponse and sets the default values. +// NewCloudPcSupportedRegionCollectionResponse instantiates a new cloudPcSupportedRegionCollectionResponse and sets the default values. func NewCloudPcSupportedRegionCollectionResponse()(*CloudPcSupportedRegionCollectionResponse) { m := &CloudPcSupportedRegionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_user_setting.go b/models/cloud_pc_user_setting.go index 8b252bbdbb1..cf014c92f3a 100644 --- a/models/cloud_pc_user_setting.go +++ b/models/cloud_pc_user_setting.go @@ -8,8 +8,10 @@ import ( // CloudPcUserSetting type CloudPcUserSetting struct { Entity + // The OdataType property + OdataType *string } -// NewCloudPcUserSetting instantiates a new CloudPcUserSetting and sets the default values. +// NewCloudPcUserSetting instantiates a new cloudPcUserSetting and sets the default values. func NewCloudPcUserSetting()(*CloudPcUserSetting) { m := &CloudPcUserSetting{ Entity: *NewEntity(), diff --git a/models/cloud_pc_user_setting_assignment.go b/models/cloud_pc_user_setting_assignment.go index e2afa29501e..0f51cfdffc7 100644 --- a/models/cloud_pc_user_setting_assignment.go +++ b/models/cloud_pc_user_setting_assignment.go @@ -8,6 +8,8 @@ import ( // CloudPcUserSettingAssignment type CloudPcUserSettingAssignment struct { Entity + // The OdataType property + OdataType *string } // NewCloudPcUserSettingAssignment instantiates a new cloudPcUserSettingAssignment and sets the default values. func NewCloudPcUserSettingAssignment()(*CloudPcUserSettingAssignment) { diff --git a/models/cloud_pc_user_setting_assignment_collection_response.go b/models/cloud_pc_user_setting_assignment_collection_response.go index 669c8eb5c0c..c33fe48277a 100644 --- a/models/cloud_pc_user_setting_assignment_collection_response.go +++ b/models/cloud_pc_user_setting_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcUserSettingAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcUserSettingAssignmentCollectionResponse instantiates a new CloudPcUserSettingAssignmentCollectionResponse and sets the default values. +// NewCloudPcUserSettingAssignmentCollectionResponse instantiates a new cloudPcUserSettingAssignmentCollectionResponse and sets the default values. func NewCloudPcUserSettingAssignmentCollectionResponse()(*CloudPcUserSettingAssignmentCollectionResponse) { m := &CloudPcUserSettingAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cloud_pc_user_setting_collection_response.go b/models/cloud_pc_user_setting_collection_response.go index 769b321ad23..9c386b78c79 100644 --- a/models/cloud_pc_user_setting_collection_response.go +++ b/models/cloud_pc_user_setting_collection_response.go @@ -8,7 +8,7 @@ import ( type CloudPcUserSettingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCloudPcUserSettingCollectionResponse instantiates a new CloudPcUserSettingCollectionResponse and sets the default values. +// NewCloudPcUserSettingCollectionResponse instantiates a new cloudPcUserSettingCollectionResponse and sets the default values. func NewCloudPcUserSettingCollectionResponse()(*CloudPcUserSettingCollectionResponse) { m := &CloudPcUserSettingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/collapse_property.go b/models/collapse_property.go index 5881963a84a..e787d07a3b3 100644 --- a/models/collapse_property.go +++ b/models/collapse_property.go @@ -10,7 +10,7 @@ type CollapseProperty struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCollapseProperty instantiates a new CollapseProperty and sets the default values. +// NewCollapseProperty instantiates a new collapseProperty and sets the default values. func NewCollapseProperty()(*CollapseProperty) { m := &CollapseProperty{ } diff --git a/models/column_definition.go b/models/column_definition.go index 876df2420a3..00d9fc55e10 100644 --- a/models/column_definition.go +++ b/models/column_definition.go @@ -7,6 +7,8 @@ import ( // ColumnDefinition type ColumnDefinition struct { Entity + // The OdataType property + OdataType *string } // NewColumnDefinition instantiates a new columnDefinition and sets the default values. func NewColumnDefinition()(*ColumnDefinition) { diff --git a/models/column_definition_collection_response.go b/models/column_definition_collection_response.go index 5c3f1548a40..ed217ba4745 100644 --- a/models/column_definition_collection_response.go +++ b/models/column_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type ColumnDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewColumnDefinitionCollectionResponse instantiates a new ColumnDefinitionCollectionResponse and sets the default values. +// NewColumnDefinitionCollectionResponse instantiates a new columnDefinitionCollectionResponse and sets the default values. func NewColumnDefinitionCollectionResponse()(*ColumnDefinitionCollectionResponse) { m := &ColumnDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/column_link.go b/models/column_link.go index ecca7699475..39e7aa6546e 100644 --- a/models/column_link.go +++ b/models/column_link.go @@ -32,6 +32,16 @@ func (m *ColumnLink) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } 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 } // GetName gets the name property value. The name of the column in this content type. @@ -45,6 +55,17 @@ func (m *ColumnLink) GetName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ColumnLink) 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 *ColumnLink) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -57,6 +78,12 @@ func (m *ColumnLink) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetName sets the name property value. The name of the column in this content type. @@ -66,10 +93,19 @@ func (m *ColumnLink) SetName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ColumnLink) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ColumnLinkable type ColumnLinkable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetName()(*string) + GetOdataType()(*string) SetName(value *string)() + SetOdataType(value *string)() } diff --git a/models/column_link_collection_response.go b/models/column_link_collection_response.go index 1b663e2a687..562f1054c30 100644 --- a/models/column_link_collection_response.go +++ b/models/column_link_collection_response.go @@ -8,7 +8,7 @@ import ( type ColumnLinkCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewColumnLinkCollectionResponse instantiates a new ColumnLinkCollectionResponse and sets the default values. +// NewColumnLinkCollectionResponse instantiates a new columnLinkCollectionResponse and sets the default values. func NewColumnLinkCollectionResponse()(*ColumnLinkCollectionResponse) { m := &ColumnLinkCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/comanagement_eligible_device.go b/models/comanagement_eligible_device.go index 82409a79944..c4e58ccc694 100644 --- a/models/comanagement_eligible_device.go +++ b/models/comanagement_eligible_device.go @@ -156,6 +156,16 @@ func (m *ComanagementEligibleDevice) GetFieldDeserializers()(map[string]func(i87 } 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["osDescription"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -313,6 +323,17 @@ func (m *ComanagementEligibleDevice) GetModel()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ComanagementEligibleDevice) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOsDescription gets the osDescription property value. OSDescription func (m *ComanagementEligibleDevice) GetOsDescription()(*string) { val, err := m.GetBackingStore().Get("osDescription") @@ -487,6 +508,12 @@ func (m *ComanagementEligibleDevice) Serialize(writer i878a80d2330e89d26896388a3 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("osDescription", m.GetOsDescription()) if err != nil { @@ -614,6 +641,13 @@ func (m *ComanagementEligibleDevice) SetModel(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ComanagementEligibleDevice) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOsDescription sets the osDescription property value. OSDescription func (m *ComanagementEligibleDevice) SetOsDescription(value *string)() { err := m.GetBackingStore().Set("osDescription", value) @@ -697,6 +731,7 @@ type ComanagementEligibleDeviceable interface { GetManufacturer()(*string) GetMdmStatus()(*string) GetModel()(*string) + GetOdataType()(*string) GetOsDescription()(*string) GetOsVersion()(*string) GetOwnerType()(*OwnerType) @@ -716,6 +751,7 @@ type ComanagementEligibleDeviceable interface { SetManufacturer(value *string)() SetMdmStatus(value *string)() SetModel(value *string)() + SetOdataType(value *string)() SetOsDescription(value *string)() SetOsVersion(value *string)() SetOwnerType(value *OwnerType)() diff --git a/models/comanagement_eligible_device_collection_response.go b/models/comanagement_eligible_device_collection_response.go index 5a9761fde9e..25334428c92 100644 --- a/models/comanagement_eligible_device_collection_response.go +++ b/models/comanagement_eligible_device_collection_response.go @@ -8,7 +8,7 @@ import ( type ComanagementEligibleDeviceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewComanagementEligibleDeviceCollectionResponse instantiates a new ComanagementEligibleDeviceCollectionResponse and sets the default values. +// NewComanagementEligibleDeviceCollectionResponse instantiates a new comanagementEligibleDeviceCollectionResponse and sets the default values. func NewComanagementEligibleDeviceCollectionResponse()(*ComanagementEligibleDeviceCollectionResponse) { m := &ComanagementEligibleDeviceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/command.go b/models/command.go index d5194ffee2c..48854839fd3 100644 --- a/models/command.go +++ b/models/command.go @@ -7,6 +7,8 @@ import ( // Command type Command struct { Entity + // The OdataType property + OdataType *string } // NewCommand instantiates a new command and sets the default values. func NewCommand()(*Command) { diff --git a/models/command_collection_response.go b/models/command_collection_response.go index bee5194ca9c..1ff4c2cae2c 100644 --- a/models/command_collection_response.go +++ b/models/command_collection_response.go @@ -8,7 +8,7 @@ import ( type CommandCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCommandCollectionResponse instantiates a new CommandCollectionResponse and sets the default values. +// NewCommandCollectionResponse instantiates a new commandCollectionResponse and sets the default values. func NewCommandCollectionResponse()(*CommandCollectionResponse) { m := &CommandCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/comms_application.go b/models/comms_application.go index 85fbc2cb68e..21f2da2a063 100644 --- a/models/comms_application.go +++ b/models/comms_application.go @@ -10,7 +10,7 @@ type CommsApplication struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCommsApplication instantiates a new CommsApplication and sets the default values. +// NewCommsApplication instantiates a new commsApplication and sets the default values. func NewCommsApplication()(*CommsApplication) { m := &CommsApplication{ } diff --git a/models/comms_operation.go b/models/comms_operation.go index 5a4cd84b80b..66d2b4d0ff6 100644 --- a/models/comms_operation.go +++ b/models/comms_operation.go @@ -7,6 +7,8 @@ import ( // CommsOperation type CommsOperation struct { Entity + // The OdataType property + OdataType *string } // NewCommsOperation instantiates a new commsOperation and sets the default values. func NewCommsOperation()(*CommsOperation) { diff --git a/models/comms_operation_collection_response.go b/models/comms_operation_collection_response.go index 1dcd284a404..34528be1cd6 100644 --- a/models/comms_operation_collection_response.go +++ b/models/comms_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type CommsOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCommsOperationCollectionResponse instantiates a new CommsOperationCollectionResponse and sets the default values. +// NewCommsOperationCollectionResponse instantiates a new commsOperationCollectionResponse and sets the default values. func NewCommsOperationCollectionResponse()(*CommsOperationCollectionResponse) { m := &CommsOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/communications_application_identity.go b/models/communications_application_identity.go index 6f10ca7132c..fa5a00c9122 100644 --- a/models/communications_application_identity.go +++ b/models/communications_application_identity.go @@ -7,8 +7,10 @@ import ( // CommunicationsApplicationIdentity type CommunicationsApplicationIdentity struct { Identity + // The OdataType property + OdataType *string } -// NewCommunicationsApplicationIdentity instantiates a new CommunicationsApplicationIdentity and sets the default values. +// NewCommunicationsApplicationIdentity instantiates a new communicationsApplicationIdentity and sets the default values. func NewCommunicationsApplicationIdentity()(*CommunicationsApplicationIdentity) { m := &CommunicationsApplicationIdentity{ Identity: *NewIdentity(), diff --git a/models/communications_application_instance_identity.go b/models/communications_application_instance_identity.go index 415609ff889..b127e62941a 100644 --- a/models/communications_application_instance_identity.go +++ b/models/communications_application_instance_identity.go @@ -7,8 +7,10 @@ import ( // CommunicationsApplicationInstanceIdentity type CommunicationsApplicationInstanceIdentity struct { Identity + // The OdataType property + OdataType *string } -// NewCommunicationsApplicationInstanceIdentity instantiates a new CommunicationsApplicationInstanceIdentity and sets the default values. +// NewCommunicationsApplicationInstanceIdentity instantiates a new communicationsApplicationInstanceIdentity and sets the default values. func NewCommunicationsApplicationInstanceIdentity()(*CommunicationsApplicationInstanceIdentity) { m := &CommunicationsApplicationInstanceIdentity{ Identity: *NewIdentity(), diff --git a/models/communications_encrypted_identity.go b/models/communications_encrypted_identity.go index 1efbec8ca43..55bfef3b4e5 100644 --- a/models/communications_encrypted_identity.go +++ b/models/communications_encrypted_identity.go @@ -7,8 +7,10 @@ import ( // CommunicationsEncryptedIdentity type CommunicationsEncryptedIdentity struct { Identity + // The OdataType property + OdataType *string } -// NewCommunicationsEncryptedIdentity instantiates a new CommunicationsEncryptedIdentity and sets the default values. +// NewCommunicationsEncryptedIdentity instantiates a new communicationsEncryptedIdentity and sets the default values. func NewCommunicationsEncryptedIdentity()(*CommunicationsEncryptedIdentity) { m := &CommunicationsEncryptedIdentity{ Identity: *NewIdentity(), diff --git a/models/communications_guest_identity.go b/models/communications_guest_identity.go index 08fd3754f4d..0d7b0782d05 100644 --- a/models/communications_guest_identity.go +++ b/models/communications_guest_identity.go @@ -7,8 +7,10 @@ import ( // CommunicationsGuestIdentity type CommunicationsGuestIdentity struct { Identity + // The OdataType property + OdataType *string } -// NewCommunicationsGuestIdentity instantiates a new CommunicationsGuestIdentity and sets the default values. +// NewCommunicationsGuestIdentity instantiates a new communicationsGuestIdentity and sets the default values. func NewCommunicationsGuestIdentity()(*CommunicationsGuestIdentity) { m := &CommunicationsGuestIdentity{ Identity: *NewIdentity(), diff --git a/models/communications_identity_set.go b/models/communications_identity_set.go index fcb1d8302a1..501a1c224b3 100644 --- a/models/communications_identity_set.go +++ b/models/communications_identity_set.go @@ -8,7 +8,7 @@ import ( type CommunicationsIdentitySet struct { IdentitySet } -// NewCommunicationsIdentitySet instantiates a new CommunicationsIdentitySet and sets the default values. +// NewCommunicationsIdentitySet instantiates a new communicationsIdentitySet and sets the default values. func NewCommunicationsIdentitySet()(*CommunicationsIdentitySet) { m := &CommunicationsIdentitySet{ IdentitySet: *NewIdentitySet(), @@ -139,6 +139,16 @@ func (m *CommunicationsIdentitySet) GetFieldDeserializers()(map[string]func(i878 } 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["onPremises"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateIdentityFromDiscriminatorValue) if err != nil { @@ -172,6 +182,17 @@ func (m *CommunicationsIdentitySet) GetGuest()(Identityable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CommunicationsIdentitySet) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOnPremises gets the onPremises property value. The Skype for Business On-Premises user associated with this action. func (m *CommunicationsIdentitySet) GetOnPremises()(Identityable) { val, err := m.GetBackingStore().Get("onPremises") @@ -237,6 +258,12 @@ func (m *CommunicationsIdentitySet) Serialize(writer i878a80d2330e89d26896388a3f return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("onPremises", m.GetOnPremises()) if err != nil { @@ -293,6 +320,13 @@ func (m *CommunicationsIdentitySet) SetGuest(value Identityable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CommunicationsIdentitySet) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOnPremises sets the onPremises property value. The Skype for Business On-Premises user associated with this action. func (m *CommunicationsIdentitySet) SetOnPremises(value Identityable)() { err := m.GetBackingStore().Set("onPremises", value) @@ -317,6 +351,7 @@ type CommunicationsIdentitySetable interface { GetEncrypted()(Identityable) GetEndpointType()(*EndpointType) GetGuest()(Identityable) + GetOdataType()(*string) GetOnPremises()(Identityable) GetPhone()(Identityable) SetApplicationInstance(value Identityable)() @@ -325,6 +360,7 @@ type CommunicationsIdentitySetable interface { SetEncrypted(value Identityable)() SetEndpointType(value *EndpointType)() SetGuest(value Identityable)() + SetOdataType(value *string)() SetOnPremises(value Identityable)() SetPhone(value Identityable)() } diff --git a/models/communications_phone_identity.go b/models/communications_phone_identity.go index 33627e6abd4..fa9dcc9a361 100644 --- a/models/communications_phone_identity.go +++ b/models/communications_phone_identity.go @@ -8,7 +8,7 @@ import ( type CommunicationsPhoneIdentity struct { Identity } -// NewCommunicationsPhoneIdentity instantiates a new CommunicationsPhoneIdentity and sets the default values. +// NewCommunicationsPhoneIdentity instantiates a new communicationsPhoneIdentity and sets the default values. func NewCommunicationsPhoneIdentity()(*CommunicationsPhoneIdentity) { m := &CommunicationsPhoneIdentity{ Identity: *NewIdentity(), @@ -24,18 +24,54 @@ func CreateCommunicationsPhoneIdentityFromDiscriminatorValue(parseNode i878a80d2 // GetFieldDeserializers the deserialization information for the current model func (m *CommunicationsPhoneIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Identity.GetFieldDeserializers() + 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 *CommunicationsPhoneIdentity) 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 *CommunicationsPhoneIdentity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Identity.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CommunicationsPhoneIdentity) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // CommunicationsPhoneIdentityable type CommunicationsPhoneIdentityable interface { Identityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/communications_user_identity.go b/models/communications_user_identity.go index 95e09b3c603..083e03e1e47 100644 --- a/models/communications_user_identity.go +++ b/models/communications_user_identity.go @@ -7,8 +7,10 @@ import ( // CommunicationsUserIdentity type CommunicationsUserIdentity struct { Identity + // The OdataType property + OdataType *string } -// NewCommunicationsUserIdentity instantiates a new CommunicationsUserIdentity and sets the default values. +// NewCommunicationsUserIdentity instantiates a new communicationsUserIdentity and sets the default values. func NewCommunicationsUserIdentity()(*CommunicationsUserIdentity) { m := &CommunicationsUserIdentity{ Identity: *NewIdentity(), diff --git a/models/company.go b/models/company.go index d5038dec294..079389c6c25 100644 --- a/models/company.go +++ b/models/company.go @@ -11,7 +11,7 @@ type Company struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCompany instantiates a new Company and sets the default values. +// NewCompany instantiates a new company and sets the default values. func NewCompany()(*Company) { m := &Company{ } diff --git a/models/company_collection_response.go b/models/company_collection_response.go index 6a7187dc4f3..261a4e70a54 100644 --- a/models/company_collection_response.go +++ b/models/company_collection_response.go @@ -8,7 +8,7 @@ import ( type CompanyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCompanyCollectionResponse instantiates a new CompanyCollectionResponse and sets the default values. +// NewCompanyCollectionResponse instantiates a new companyCollectionResponse and sets the default values. func NewCompanyCollectionResponse()(*CompanyCollectionResponse) { m := &CompanyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/company_information.go b/models/company_information.go index 7c87b17300d..267946e4748 100644 --- a/models/company_information.go +++ b/models/company_information.go @@ -12,7 +12,7 @@ type CompanyInformation struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCompanyInformation instantiates a new CompanyInformation and sets the default values. +// NewCompanyInformation instantiates a new companyInformation and sets the default values. func NewCompanyInformation()(*CompanyInformation) { m := &CompanyInformation{ } diff --git a/models/company_information_collection_response.go b/models/company_information_collection_response.go index 7eda5fcd897..ffa53a71222 100644 --- a/models/company_information_collection_response.go +++ b/models/company_information_collection_response.go @@ -8,7 +8,7 @@ import ( type CompanyInformationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCompanyInformationCollectionResponse instantiates a new CompanyInformationCollectionResponse and sets the default values. +// NewCompanyInformationCollectionResponse instantiates a new companyInformationCollectionResponse and sets the default values. func NewCompanyInformationCollectionResponse()(*CompanyInformationCollectionResponse) { m := &CompanyInformationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/company_subscription.go b/models/company_subscription.go index 5e8f12b40ad..96859d995c5 100644 --- a/models/company_subscription.go +++ b/models/company_subscription.go @@ -8,8 +8,10 @@ import ( // CompanySubscription type CompanySubscription struct { Entity + // The OdataType property + OdataType *string } -// NewCompanySubscription instantiates a new CompanySubscription and sets the default values. +// NewCompanySubscription instantiates a new companySubscription and sets the default values. func NewCompanySubscription()(*CompanySubscription) { m := &CompanySubscription{ Entity: *NewEntity(), diff --git a/models/company_subscription_collection_response.go b/models/company_subscription_collection_response.go index ca3e7b8d373..d36777189ef 100644 --- a/models/company_subscription_collection_response.go +++ b/models/company_subscription_collection_response.go @@ -8,7 +8,7 @@ import ( type CompanySubscriptionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCompanySubscriptionCollectionResponse instantiates a new CompanySubscriptionCollectionResponse and sets the default values. +// NewCompanySubscriptionCollectionResponse instantiates a new companySubscriptionCollectionResponse and sets the default values. func NewCompanySubscriptionCollectionResponse()(*CompanySubscriptionCollectionResponse) { m := &CompanySubscriptionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/compliance.go b/models/compliance.go index 761b5d91f73..f1fa902e43d 100644 --- a/models/compliance.go +++ b/models/compliance.go @@ -10,7 +10,7 @@ type Compliance struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCompliance instantiates a new Compliance and sets the default values. +// NewCompliance instantiates a new compliance and sets the default values. func NewCompliance()(*Compliance) { m := &Compliance{ } diff --git a/models/compliance_management_partner.go b/models/compliance_management_partner.go index 4076272f83b..44dd88f9b51 100644 --- a/models/compliance_management_partner.go +++ b/models/compliance_management_partner.go @@ -8,6 +8,8 @@ import ( // ComplianceManagementPartner compliance management partner for all platforms type ComplianceManagementPartner struct { Entity + // The OdataType property + OdataType *string } // NewComplianceManagementPartner instantiates a new complianceManagementPartner and sets the default values. func NewComplianceManagementPartner()(*ComplianceManagementPartner) { diff --git a/models/compliance_management_partner_collection_response.go b/models/compliance_management_partner_collection_response.go index f266cbefadc..5fd76569832 100644 --- a/models/compliance_management_partner_collection_response.go +++ b/models/compliance_management_partner_collection_response.go @@ -8,7 +8,7 @@ import ( type ComplianceManagementPartnerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewComplianceManagementPartnerCollectionResponse instantiates a new ComplianceManagementPartnerCollectionResponse and sets the default values. +// NewComplianceManagementPartnerCollectionResponse instantiates a new complianceManagementPartnerCollectionResponse and sets the default values. func NewComplianceManagementPartnerCollectionResponse()(*ComplianceManagementPartnerCollectionResponse) { m := &ComplianceManagementPartnerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/conditional_access_all_external_tenants.go b/models/conditional_access_all_external_tenants.go index 4d1636005cf..df41c9250a9 100644 --- a/models/conditional_access_all_external_tenants.go +++ b/models/conditional_access_all_external_tenants.go @@ -7,8 +7,10 @@ import ( // ConditionalAccessAllExternalTenants type ConditionalAccessAllExternalTenants struct { ConditionalAccessExternalTenants + // The OdataType property + OdataType *string } -// NewConditionalAccessAllExternalTenants instantiates a new ConditionalAccessAllExternalTenants and sets the default values. +// NewConditionalAccessAllExternalTenants instantiates a new conditionalAccessAllExternalTenants and sets the default values. func NewConditionalAccessAllExternalTenants()(*ConditionalAccessAllExternalTenants) { m := &ConditionalAccessAllExternalTenants{ ConditionalAccessExternalTenants: *NewConditionalAccessExternalTenants(), diff --git a/models/conditional_access_condition_set.go b/models/conditional_access_condition_set.go index 35c6ed7f690..d0d38e0f5cf 100644 --- a/models/conditional_access_condition_set.go +++ b/models/conditional_access_condition_set.go @@ -10,7 +10,7 @@ type ConditionalAccessConditionSet struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewConditionalAccessConditionSet instantiates a new ConditionalAccessConditionSet and sets the default values. +// NewConditionalAccessConditionSet instantiates a new conditionalAccessConditionSet and sets the default values. func NewConditionalAccessConditionSet()(*ConditionalAccessConditionSet) { m := &ConditionalAccessConditionSet{ } diff --git a/models/conditional_access_enumerated_external_tenants.go b/models/conditional_access_enumerated_external_tenants.go index 9e8c6cc8fb0..b421c14f3a7 100644 --- a/models/conditional_access_enumerated_external_tenants.go +++ b/models/conditional_access_enumerated_external_tenants.go @@ -7,8 +7,10 @@ import ( // ConditionalAccessEnumeratedExternalTenants type ConditionalAccessEnumeratedExternalTenants struct { ConditionalAccessExternalTenants + // The OdataType property + OdataType *string } -// NewConditionalAccessEnumeratedExternalTenants instantiates a new ConditionalAccessEnumeratedExternalTenants and sets the default values. +// NewConditionalAccessEnumeratedExternalTenants instantiates a new conditionalAccessEnumeratedExternalTenants and sets the default values. func NewConditionalAccessEnumeratedExternalTenants()(*ConditionalAccessEnumeratedExternalTenants) { m := &ConditionalAccessEnumeratedExternalTenants{ ConditionalAccessExternalTenants: *NewConditionalAccessExternalTenants(), diff --git a/models/conditional_access_policy.go b/models/conditional_access_policy.go index 735c8c49aba..bcec2aa294c 100644 --- a/models/conditional_access_policy.go +++ b/models/conditional_access_policy.go @@ -8,6 +8,8 @@ import ( // ConditionalAccessPolicy type ConditionalAccessPolicy struct { Entity + // The OdataType property + OdataType *string } // NewConditionalAccessPolicy instantiates a new conditionalAccessPolicy and sets the default values. func NewConditionalAccessPolicy()(*ConditionalAccessPolicy) { diff --git a/models/conditional_access_policy_collection_response.go b/models/conditional_access_policy_collection_response.go index d91065dd4d7..edad31738d8 100644 --- a/models/conditional_access_policy_collection_response.go +++ b/models/conditional_access_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type ConditionalAccessPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewConditionalAccessPolicyCollectionResponse instantiates a new ConditionalAccessPolicyCollectionResponse and sets the default values. +// NewConditionalAccessPolicyCollectionResponse instantiates a new conditionalAccessPolicyCollectionResponse and sets the default values. func NewConditionalAccessPolicyCollectionResponse()(*ConditionalAccessPolicyCollectionResponse) { m := &ConditionalAccessPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/conditional_access_policy_detail.go b/models/conditional_access_policy_detail.go index 2a70c69579c..740eca9569c 100644 --- a/models/conditional_access_policy_detail.go +++ b/models/conditional_access_policy_detail.go @@ -10,7 +10,7 @@ type ConditionalAccessPolicyDetail struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewConditionalAccessPolicyDetail instantiates a new ConditionalAccessPolicyDetail and sets the default values. +// NewConditionalAccessPolicyDetail instantiates a new conditionalAccessPolicyDetail and sets the default values. func NewConditionalAccessPolicyDetail()(*ConditionalAccessPolicyDetail) { m := &ConditionalAccessPolicyDetail{ } diff --git a/models/conditional_access_root.go b/models/conditional_access_root.go index 06b9efe8d6f..5ecf876eb65 100644 --- a/models/conditional_access_root.go +++ b/models/conditional_access_root.go @@ -7,8 +7,10 @@ import ( // ConditionalAccessRoot type ConditionalAccessRoot struct { Entity + // The OdataType property + OdataType *string } -// NewConditionalAccessRoot instantiates a new ConditionalAccessRoot and sets the default values. +// NewConditionalAccessRoot instantiates a new conditionalAccessRoot and sets the default values. func NewConditionalAccessRoot()(*ConditionalAccessRoot) { m := &ConditionalAccessRoot{ Entity: *NewEntity(), diff --git a/models/conditional_access_template.go b/models/conditional_access_template.go index 430b9dea935..151eeaf7db9 100644 --- a/models/conditional_access_template.go +++ b/models/conditional_access_template.go @@ -7,6 +7,8 @@ import ( // ConditionalAccessTemplate type ConditionalAccessTemplate struct { Entity + // The OdataType property + OdataType *string } // NewConditionalAccessTemplate instantiates a new conditionalAccessTemplate and sets the default values. func NewConditionalAccessTemplate()(*ConditionalAccessTemplate) { diff --git a/models/conditional_access_template_collection_response.go b/models/conditional_access_template_collection_response.go index 89d14761881..07623eb327e 100644 --- a/models/conditional_access_template_collection_response.go +++ b/models/conditional_access_template_collection_response.go @@ -8,7 +8,7 @@ import ( type ConditionalAccessTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewConditionalAccessTemplateCollectionResponse instantiates a new ConditionalAccessTemplateCollectionResponse and sets the default values. +// NewConditionalAccessTemplateCollectionResponse instantiates a new conditionalAccessTemplateCollectionResponse and sets the default values. func NewConditionalAccessTemplateCollectionResponse()(*ConditionalAccessTemplateCollectionResponse) { m := &ConditionalAccessTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/config_manager_collection.go b/models/config_manager_collection.go index 26772e6c971..88c3168c1cf 100644 --- a/models/config_manager_collection.go +++ b/models/config_manager_collection.go @@ -8,6 +8,8 @@ import ( // ConfigManagerCollection a ConfigManager defined collection of devices or users. type ConfigManagerCollection struct { Entity + // The OdataType property + OdataType *string } // NewConfigManagerCollection instantiates a new configManagerCollection and sets the default values. func NewConfigManagerCollection()(*ConfigManagerCollection) { diff --git a/models/config_manager_collection_collection_response.go b/models/config_manager_collection_collection_response.go index 8f42191034a..da5a9bde0bd 100644 --- a/models/config_manager_collection_collection_response.go +++ b/models/config_manager_collection_collection_response.go @@ -8,7 +8,7 @@ import ( type ConfigManagerCollectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewConfigManagerCollectionCollectionResponse instantiates a new ConfigManagerCollectionCollectionResponse and sets the default values. +// NewConfigManagerCollectionCollectionResponse instantiates a new configManagerCollectionCollectionResponse and sets the default values. func NewConfigManagerCollectionCollectionResponse()(*ConfigManagerCollectionCollectionResponse) { m := &ConfigManagerCollectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/configuration_manager_action.go b/models/configuration_manager_action.go index 0fe14d3f731..b0237e84854 100644 --- a/models/configuration_manager_action.go +++ b/models/configuration_manager_action.go @@ -10,7 +10,7 @@ type ConfigurationManagerAction struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewConfigurationManagerAction instantiates a new ConfigurationManagerAction and sets the default values. +// NewConfigurationManagerAction instantiates a new configurationManagerAction and sets the default values. func NewConfigurationManagerAction()(*ConfigurationManagerAction) { m := &ConfigurationManagerAction{ } diff --git a/models/configuration_manager_action_result.go b/models/configuration_manager_action_result.go index e8c66598b1e..fdacfab5bd5 100644 --- a/models/configuration_manager_action_result.go +++ b/models/configuration_manager_action_result.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ConfigurationManagerActionResult +// ConfigurationManagerActionResult result of the ConfigurationManager action type ConfigurationManagerActionResult struct { DeviceActionResult + // The OdataType property + OdataType *string } -// NewConfigurationManagerActionResult instantiates a new ConfigurationManagerActionResult and sets the default values. +// NewConfigurationManagerActionResult instantiates a new configurationManagerActionResult and sets the default values. func NewConfigurationManagerActionResult()(*ConfigurationManagerActionResult) { m := &ConfigurationManagerActionResult{ DeviceActionResult: *NewDeviceActionResult(), diff --git a/models/configuration_manager_collection_assignment_target.go b/models/configuration_manager_collection_assignment_target.go index d1608bc219d..5e966887682 100644 --- a/models/configuration_manager_collection_assignment_target.go +++ b/models/configuration_manager_collection_assignment_target.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ConfigurationManagerCollectionAssignmentTarget +// ConfigurationManagerCollectionAssignmentTarget represents an assignment to a Configuration Manager Collection. type ConfigurationManagerCollectionAssignmentTarget struct { DeviceAndAppManagementAssignmentTarget + // The OdataType property + OdataType *string } -// NewConfigurationManagerCollectionAssignmentTarget instantiates a new ConfigurationManagerCollectionAssignmentTarget and sets the default values. +// NewConfigurationManagerCollectionAssignmentTarget instantiates a new configurationManagerCollectionAssignmentTarget and sets the default values. func NewConfigurationManagerCollectionAssignmentTarget()(*ConfigurationManagerCollectionAssignmentTarget) { m := &ConfigurationManagerCollectionAssignmentTarget{ DeviceAndAppManagementAssignmentTarget: *NewDeviceAndAppManagementAssignmentTarget(), diff --git a/models/connected_organization.go b/models/connected_organization.go index 53bec8bab30..94fe77fabdd 100644 --- a/models/connected_organization.go +++ b/models/connected_organization.go @@ -8,6 +8,8 @@ import ( // ConnectedOrganization type ConnectedOrganization struct { Entity + // The OdataType property + OdataType *string } // NewConnectedOrganization instantiates a new connectedOrganization and sets the default values. func NewConnectedOrganization()(*ConnectedOrganization) { diff --git a/models/connected_organization_collection_response.go b/models/connected_organization_collection_response.go index 1602cb18822..5a2cff34327 100644 --- a/models/connected_organization_collection_response.go +++ b/models/connected_organization_collection_response.go @@ -8,7 +8,7 @@ import ( type ConnectedOrganizationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewConnectedOrganizationCollectionResponse instantiates a new ConnectedOrganizationCollectionResponse and sets the default values. +// NewConnectedOrganizationCollectionResponse instantiates a new connectedOrganizationCollectionResponse and sets the default values. func NewConnectedOrganizationCollectionResponse()(*ConnectedOrganizationCollectionResponse) { m := &ConnectedOrganizationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/connected_organization_members.go b/models/connected_organization_members.go index 73baa68ffba..80cfae748e6 100644 --- a/models/connected_organization_members.go +++ b/models/connected_organization_members.go @@ -8,7 +8,7 @@ import ( type ConnectedOrganizationMembers struct { UserSet } -// NewConnectedOrganizationMembers instantiates a new ConnectedOrganizationMembers and sets the default values. +// NewConnectedOrganizationMembers instantiates a new connectedOrganizationMembers and sets the default values. func NewConnectedOrganizationMembers()(*ConnectedOrganizationMembers) { m := &ConnectedOrganizationMembers{ UserSet: *NewUserSet(), @@ -55,6 +55,16 @@ func (m *ConnectedOrganizationMembers) GetFieldDeserializers()(map[string]func(i } 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 } // GetId gets the id property value. The ID of the connected organization in entitlement management. @@ -68,6 +78,17 @@ func (m *ConnectedOrganizationMembers) GetId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ConnectedOrganizationMembers) 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 *ConnectedOrganizationMembers) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.UserSet.Serialize(writer) @@ -86,6 +107,12 @@ func (m *ConnectedOrganizationMembers) Serialize(writer i878a80d2330e89d26896388 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDescription sets the description property value. The name of the connected organization. Read only. @@ -102,12 +129,21 @@ func (m *ConnectedOrganizationMembers) SetId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ConnectedOrganizationMembers) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ConnectedOrganizationMembersable type ConnectedOrganizationMembersable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable UserSetable GetDescription()(*string) GetId()(*string) + GetOdataType()(*string) SetDescription(value *string)() SetId(value *string)() + SetOdataType(value *string)() } diff --git a/models/connection_operation.go b/models/connection_operation.go index 838df178361..22030091882 100644 --- a/models/connection_operation.go +++ b/models/connection_operation.go @@ -7,6 +7,8 @@ import ( // ConnectionOperation type ConnectionOperation struct { Entity + // The OdataType property + OdataType *string } // NewConnectionOperation instantiates a new connectionOperation and sets the default values. func NewConnectionOperation()(*ConnectionOperation) { diff --git a/models/connector.go b/models/connector.go index 2f442432fd2..7f888fae2f3 100644 --- a/models/connector.go +++ b/models/connector.go @@ -7,6 +7,8 @@ import ( // Connector type Connector struct { Entity + // The OdataType property + OdataType *string } // NewConnector instantiates a new connector and sets the default values. func NewConnector()(*Connector) { diff --git a/models/connector_collection_response.go b/models/connector_collection_response.go index 38266cfe357..89ebbce7c4e 100644 --- a/models/connector_collection_response.go +++ b/models/connector_collection_response.go @@ -8,7 +8,7 @@ import ( type ConnectorCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewConnectorCollectionResponse instantiates a new ConnectorCollectionResponse and sets the default values. +// NewConnectorCollectionResponse instantiates a new connectorCollectionResponse and sets the default values. func NewConnectorCollectionResponse()(*ConnectorCollectionResponse) { m := &ConnectorCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/connector_group.go b/models/connector_group.go index feb5ea04245..9aa7d32e415 100644 --- a/models/connector_group.go +++ b/models/connector_group.go @@ -7,6 +7,8 @@ import ( // ConnectorGroup type ConnectorGroup struct { Entity + // The OdataType property + OdataType *string } // NewConnectorGroup instantiates a new connectorGroup and sets the default values. func NewConnectorGroup()(*ConnectorGroup) { diff --git a/models/connector_group_collection_response.go b/models/connector_group_collection_response.go index da5fe1149a5..904dcc1ee5c 100644 --- a/models/connector_group_collection_response.go +++ b/models/connector_group_collection_response.go @@ -8,7 +8,7 @@ import ( type ConnectorGroupCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewConnectorGroupCollectionResponse instantiates a new ConnectorGroupCollectionResponse and sets the default values. +// NewConnectorGroupCollectionResponse instantiates a new connectorGroupCollectionResponse and sets the default values. func NewConnectorGroupCollectionResponse()(*ConnectorGroupCollectionResponse) { m := &ConnectorGroupCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/contact.go b/models/contact.go index e05521fdcbc..8c2067699c5 100644 --- a/models/contact.go +++ b/models/contact.go @@ -9,7 +9,7 @@ import ( type Contact struct { OutlookItem } -// NewContact instantiates a new Contact and sets the default values. +// NewContact instantiates a new contact and sets the default values. func NewContact()(*Contact) { m := &Contact{ OutlookItem: *NewOutlookItem(), diff --git a/models/contact_collection_response.go b/models/contact_collection_response.go index ce8d1674c89..78a0949921d 100644 --- a/models/contact_collection_response.go +++ b/models/contact_collection_response.go @@ -8,7 +8,7 @@ import ( type ContactCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewContactCollectionResponse instantiates a new ContactCollectionResponse and sets the default values. +// NewContactCollectionResponse instantiates a new contactCollectionResponse and sets the default values. func NewContactCollectionResponse()(*ContactCollectionResponse) { m := &ContactCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/contact_folder.go b/models/contact_folder.go index 181bb00281e..1bef25242b0 100644 --- a/models/contact_folder.go +++ b/models/contact_folder.go @@ -7,6 +7,8 @@ import ( // ContactFolder type ContactFolder struct { Entity + // The OdataType property + OdataType *string } // NewContactFolder instantiates a new contactFolder and sets the default values. func NewContactFolder()(*ContactFolder) { diff --git a/models/contact_folder_collection_response.go b/models/contact_folder_collection_response.go index c19eeb43992..eb856ce4990 100644 --- a/models/contact_folder_collection_response.go +++ b/models/contact_folder_collection_response.go @@ -8,7 +8,7 @@ import ( type ContactFolderCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewContactFolderCollectionResponse instantiates a new ContactFolderCollectionResponse and sets the default values. +// NewContactFolderCollectionResponse instantiates a new contactFolderCollectionResponse and sets the default values. func NewContactFolderCollectionResponse()(*ContactFolderCollectionResponse) { m := &ContactFolderCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/contact_merge_suggestions.go b/models/contact_merge_suggestions.go index aa9a09bbc01..d2fd66dbcca 100644 --- a/models/contact_merge_suggestions.go +++ b/models/contact_merge_suggestions.go @@ -7,6 +7,8 @@ import ( // ContactMergeSuggestions type ContactMergeSuggestions struct { Entity + // The OdataType property + OdataType *string } // NewContactMergeSuggestions instantiates a new contactMergeSuggestions and sets the default values. func NewContactMergeSuggestions()(*ContactMergeSuggestions) { diff --git a/models/content_classification.go b/models/content_classification.go index 6716c06e613..95e47adb1e4 100644 --- a/models/content_classification.go +++ b/models/content_classification.go @@ -10,7 +10,7 @@ type ContentClassification struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewContentClassification instantiates a new ContentClassification and sets the default values. +// NewContentClassification instantiates a new contentClassification and sets the default values. func NewContentClassification()(*ContentClassification) { m := &ContentClassification{ } diff --git a/models/content_info.go b/models/content_info.go index 58264cdeb7b..ff1a4874f2c 100644 --- a/models/content_info.go +++ b/models/content_info.go @@ -10,7 +10,7 @@ type ContentInfo struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewContentInfo instantiates a new ContentInfo and sets the default values. +// NewContentInfo instantiates a new contentInfo and sets the default values. func NewContentInfo()(*ContentInfo) { m := &ContentInfo{ } diff --git a/models/content_sharing_session.go b/models/content_sharing_session.go index b53d87b84f2..c95b9e98c99 100644 --- a/models/content_sharing_session.go +++ b/models/content_sharing_session.go @@ -7,6 +7,8 @@ import ( // ContentSharingSession type ContentSharingSession struct { Entity + // The OdataType property + OdataType *string } // NewContentSharingSession instantiates a new contentSharingSession and sets the default values. func NewContentSharingSession()(*ContentSharingSession) { diff --git a/models/content_sharing_session_collection_response.go b/models/content_sharing_session_collection_response.go index cc4e66a384e..9e648c8f823 100644 --- a/models/content_sharing_session_collection_response.go +++ b/models/content_sharing_session_collection_response.go @@ -8,7 +8,7 @@ import ( type ContentSharingSessionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewContentSharingSessionCollectionResponse instantiates a new ContentSharingSessionCollectionResponse and sets the default values. +// NewContentSharingSessionCollectionResponse instantiates a new contentSharingSessionCollectionResponse and sets the default values. func NewContentSharingSessionCollectionResponse()(*ContentSharingSessionCollectionResponse) { m := &ContentSharingSessionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/content_type.go b/models/content_type.go index c7b31d25fe2..ce6d5f8e9bc 100644 --- a/models/content_type.go +++ b/models/content_type.go @@ -7,6 +7,8 @@ import ( // ContentType type ContentType struct { Entity + // The OdataType property + OdataType *string } // NewContentType instantiates a new contentType and sets the default values. func NewContentType()(*ContentType) { diff --git a/models/content_type_collection_response.go b/models/content_type_collection_response.go index 3880924eba1..939112484ba 100644 --- a/models/content_type_collection_response.go +++ b/models/content_type_collection_response.go @@ -8,7 +8,7 @@ import ( type ContentTypeCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewContentTypeCollectionResponse instantiates a new ContentTypeCollectionResponse and sets the default values. +// NewContentTypeCollectionResponse instantiates a new contentTypeCollectionResponse and sets the default values. func NewContentTypeCollectionResponse()(*ContentTypeCollectionResponse) { m := &ContentTypeCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/continuous_access_evaluation_policy.go b/models/continuous_access_evaluation_policy.go index 0ca0f9cafd9..2a242c17df0 100644 --- a/models/continuous_access_evaluation_policy.go +++ b/models/continuous_access_evaluation_policy.go @@ -8,7 +8,7 @@ import ( type ContinuousAccessEvaluationPolicy struct { Entity } -// NewContinuousAccessEvaluationPolicy instantiates a new ContinuousAccessEvaluationPolicy and sets the default values. +// NewContinuousAccessEvaluationPolicy instantiates a new continuousAccessEvaluationPolicy and sets the default values. func NewContinuousAccessEvaluationPolicy()(*ContinuousAccessEvaluationPolicy) { m := &ContinuousAccessEvaluationPolicy{ Entity: *NewEntity(), @@ -100,6 +100,16 @@ func (m *ContinuousAccessEvaluationPolicy) GetFieldDeserializers()(map[string]fu } 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["users"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -151,6 +161,17 @@ func (m *ContinuousAccessEvaluationPolicy) GetMigrate()(*bool) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ContinuousAccessEvaluationPolicy) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUsers gets the users property value. The collection of user identifiers in scope for evaluation. All users are in scope when the collection is empty. Read-only. func (m *ContinuousAccessEvaluationPolicy) GetUsers()([]string) { val, err := m.GetBackingStore().Get("users") @@ -198,6 +219,12 @@ func (m *ContinuousAccessEvaluationPolicy) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetUsers() != nil { err = writer.WriteCollectionOfStringValues("users", m.GetUsers()) if err != nil { @@ -241,6 +268,13 @@ func (m *ContinuousAccessEvaluationPolicy) SetMigrate(value *bool)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ContinuousAccessEvaluationPolicy) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUsers sets the users property value. The collection of user identifiers in scope for evaluation. All users are in scope when the collection is empty. Read-only. func (m *ContinuousAccessEvaluationPolicy) SetUsers(value []string)() { err := m.GetBackingStore().Set("users", value) @@ -257,11 +291,13 @@ type ContinuousAccessEvaluationPolicyable interface { GetGroups()([]string) GetIsEnabled()(*bool) GetMigrate()(*bool) + GetOdataType()(*string) GetUsers()([]string) SetDescription(value *string)() SetDisplayName(value *string)() SetGroups(value []string)() SetIsEnabled(value *bool)() SetMigrate(value *bool)() + SetOdataType(value *string)() SetUsers(value []string)() } diff --git a/models/contract.go b/models/contract.go index 18e9118417e..f38351bc70f 100644 --- a/models/contract.go +++ b/models/contract.go @@ -9,7 +9,7 @@ import ( type Contract struct { DirectoryObject } -// NewContract instantiates a new Contract and sets the default values. +// NewContract instantiates a new contract and sets the default values. func NewContract()(*Contract) { m := &Contract{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/contract_collection_response.go b/models/contract_collection_response.go index a5861deefb0..3e6fbbc2ef1 100644 --- a/models/contract_collection_response.go +++ b/models/contract_collection_response.go @@ -8,7 +8,7 @@ import ( type ContractCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewContractCollectionResponse instantiates a new ContractCollectionResponse and sets the default values. +// NewContractCollectionResponse instantiates a new contractCollectionResponse and sets the default values. func NewContractCollectionResponse()(*ContractCollectionResponse) { m := &ContractCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/conversation.go b/models/conversation.go index 613a88a9e07..6117d2de66a 100644 --- a/models/conversation.go +++ b/models/conversation.go @@ -8,6 +8,8 @@ import ( // Conversation type Conversation struct { Entity + // The OdataType property + OdataType *string } // NewConversation instantiates a new conversation and sets the default values. func NewConversation()(*Conversation) { diff --git a/models/conversation_collection_response.go b/models/conversation_collection_response.go index 0e34a782dfb..1134632ddf3 100644 --- a/models/conversation_collection_response.go +++ b/models/conversation_collection_response.go @@ -8,7 +8,7 @@ import ( type ConversationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewConversationCollectionResponse instantiates a new ConversationCollectionResponse and sets the default values. +// NewConversationCollectionResponse instantiates a new conversationCollectionResponse and sets the default values. func NewConversationCollectionResponse()(*ConversationCollectionResponse) { m := &ConversationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/conversation_member.go b/models/conversation_member.go index 02d9f449240..b5caf4484c6 100644 --- a/models/conversation_member.go +++ b/models/conversation_member.go @@ -8,6 +8,8 @@ import ( // ConversationMember type ConversationMember struct { Entity + // The OdataType property + OdataType *string } // NewConversationMember instantiates a new conversationMember and sets the default values. func NewConversationMember()(*ConversationMember) { diff --git a/models/conversation_member_collection_response.go b/models/conversation_member_collection_response.go index d02d985e8d8..c3e2f00b08b 100644 --- a/models/conversation_member_collection_response.go +++ b/models/conversation_member_collection_response.go @@ -8,7 +8,7 @@ import ( type ConversationMemberCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewConversationMemberCollectionResponse instantiates a new ConversationMemberCollectionResponse and sets the default values. +// NewConversationMemberCollectionResponse instantiates a new conversationMemberCollectionResponse and sets the default values. func NewConversationMemberCollectionResponse()(*ConversationMemberCollectionResponse) { m := &ConversationMemberCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/conversation_member_role_updated_event_message_detail.go b/models/conversation_member_role_updated_event_message_detail.go index 2f9ec275ce9..4992d584d11 100644 --- a/models/conversation_member_role_updated_event_message_detail.go +++ b/models/conversation_member_role_updated_event_message_detail.go @@ -8,7 +8,7 @@ import ( type ConversationMemberRoleUpdatedEventMessageDetail struct { EventMessageDetail } -// NewConversationMemberRoleUpdatedEventMessageDetail instantiates a new ConversationMemberRoleUpdatedEventMessageDetail and sets the default values. +// NewConversationMemberRoleUpdatedEventMessageDetail instantiates a new conversationMemberRoleUpdatedEventMessageDetail and sets the default values. func NewConversationMemberRoleUpdatedEventMessageDetail()(*ConversationMemberRoleUpdatedEventMessageDetail) { m := &ConversationMemberRoleUpdatedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -82,6 +82,16 @@ func (m *ConversationMemberRoleUpdatedEventMessageDetail) GetFieldDeserializers( } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -95,6 +105,17 @@ func (m *ConversationMemberRoleUpdatedEventMessageDetail) GetInitiator()(Identit } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ConversationMemberRoleUpdatedEventMessageDetail) 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 *ConversationMemberRoleUpdatedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -119,6 +140,12 @@ func (m *ConversationMemberRoleUpdatedEventMessageDetail) Serialize(writer i878a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetConversationMemberRoles sets the conversationMemberRoles property value. Roles for the coversation member user. @@ -142,6 +169,13 @@ func (m *ConversationMemberRoleUpdatedEventMessageDetail) SetInitiator(value Ide panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ConversationMemberRoleUpdatedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ConversationMemberRoleUpdatedEventMessageDetailable type ConversationMemberRoleUpdatedEventMessageDetailable interface { EventMessageDetailable @@ -149,7 +183,9 @@ type ConversationMemberRoleUpdatedEventMessageDetailable interface { GetConversationMemberRoles()([]string) GetConversationMemberUser()(TeamworkUserIdentityable) GetInitiator()(IdentitySetable) + GetOdataType()(*string) SetConversationMemberRoles(value []string)() SetConversationMemberUser(value TeamworkUserIdentityable)() SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/conversation_thread.go b/models/conversation_thread.go index ede9e581185..fe61853b206 100644 --- a/models/conversation_thread.go +++ b/models/conversation_thread.go @@ -8,6 +8,8 @@ import ( // ConversationThread type ConversationThread struct { Entity + // The OdataType property + OdataType *string } // NewConversationThread instantiates a new conversationThread and sets the default values. func NewConversationThread()(*ConversationThread) { diff --git a/models/conversation_thread_collection_response.go b/models/conversation_thread_collection_response.go index 89e53769e13..78b1ee89f74 100644 --- a/models/conversation_thread_collection_response.go +++ b/models/conversation_thread_collection_response.go @@ -8,7 +8,7 @@ import ( type ConversationThreadCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewConversationThreadCollectionResponse instantiates a new ConversationThreadCollectionResponse and sets the default values. +// NewConversationThreadCollectionResponse instantiates a new conversationThreadCollectionResponse and sets the default values. func NewConversationThreadCollectionResponse()(*ConversationThreadCollectionResponse) { m := &ConversationThreadCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/convert_id_result.go b/models/convert_id_result.go index a7d0f63f56a..730ca57c7ed 100644 --- a/models/convert_id_result.go +++ b/models/convert_id_result.go @@ -10,7 +10,7 @@ type ConvertIdResult struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewConvertIdResult instantiates a new ConvertIdResult and sets the default values. +// NewConvertIdResult instantiates a new convertIdResult and sets the default values. func NewConvertIdResult()(*ConvertIdResult) { m := &ConvertIdResult{ } diff --git a/models/cors_configuration_v2.go b/models/cors_configuration_v2.go index c44e4c573d2..8cbae550440 100644 --- a/models/cors_configuration_v2.go +++ b/models/cors_configuration_v2.go @@ -7,6 +7,8 @@ import ( // CorsConfiguration_v2 type CorsConfiguration_v2 struct { Entity + // The OdataType property + OdataType *string } // NewCorsConfiguration_v2 instantiates a new corsConfiguration_v2 and sets the default values. func NewCorsConfiguration_v2()(*CorsConfiguration_v2) { diff --git a/models/country_named_location.go b/models/country_named_location.go index addc2a09f09..5a4a929b6f6 100644 --- a/models/country_named_location.go +++ b/models/country_named_location.go @@ -8,7 +8,7 @@ import ( type CountryNamedLocation struct { NamedLocation } -// NewCountryNamedLocation instantiates a new CountryNamedLocation and sets the default values. +// NewCountryNamedLocation instantiates a new countryNamedLocation and sets the default values. func NewCountryNamedLocation()(*CountryNamedLocation) { m := &CountryNamedLocation{ NamedLocation: *NewNamedLocation(), diff --git a/models/country_region.go b/models/country_region.go index 0609d74feae..0881ed9c7f9 100644 --- a/models/country_region.go +++ b/models/country_region.go @@ -12,7 +12,7 @@ type CountryRegion struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCountryRegion instantiates a new CountryRegion and sets the default values. +// NewCountryRegion instantiates a new countryRegion and sets the default values. func NewCountryRegion()(*CountryRegion) { m := &CountryRegion{ } diff --git a/models/country_region_collection_response.go b/models/country_region_collection_response.go index b8f0fce524c..0493f970eb7 100644 --- a/models/country_region_collection_response.go +++ b/models/country_region_collection_response.go @@ -8,7 +8,7 @@ import ( type CountryRegionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCountryRegionCollectionResponse instantiates a new CountryRegionCollectionResponse and sets the default values. +// NewCountryRegionCollectionResponse instantiates a new countryRegionCollectionResponse and sets the default values. func NewCountryRegionCollectionResponse()(*CountryRegionCollectionResponse) { m := &CountryRegionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/credential.go b/models/credential.go index e019890aed1..b70efd180bf 100644 --- a/models/credential.go +++ b/models/credential.go @@ -10,7 +10,7 @@ type Credential struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCredential instantiates a new Credential and sets the default values. +// NewCredential instantiates a new credential and sets the default values. func NewCredential()(*Credential) { m := &Credential{ } diff --git a/models/credential_single_sign_on_extension.go b/models/credential_single_sign_on_extension.go index e7a500c274f..6600de821f2 100644 --- a/models/credential_single_sign_on_extension.go +++ b/models/credential_single_sign_on_extension.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// CredentialSingleSignOnExtension +// CredentialSingleSignOnExtension represents a Credential-type Single Sign-On extension profile. type CredentialSingleSignOnExtension struct { SingleSignOnExtension + // The OdataType property + OdataType *string } -// NewCredentialSingleSignOnExtension instantiates a new CredentialSingleSignOnExtension and sets the default values. +// NewCredentialSingleSignOnExtension instantiates a new credentialSingleSignOnExtension and sets the default values. func NewCredentialSingleSignOnExtension()(*CredentialSingleSignOnExtension) { m := &CredentialSingleSignOnExtension{ SingleSignOnExtension: *NewSingleSignOnExtension(), diff --git a/models/credential_usage_summary.go b/models/credential_usage_summary.go index badbac0cbac..499d7caf205 100644 --- a/models/credential_usage_summary.go +++ b/models/credential_usage_summary.go @@ -7,8 +7,10 @@ import ( // CredentialUsageSummary type CredentialUsageSummary struct { Entity + // The OdataType property + OdataType *string } -// NewCredentialUsageSummary instantiates a new CredentialUsageSummary and sets the default values. +// NewCredentialUsageSummary instantiates a new credentialUsageSummary and sets the default values. func NewCredentialUsageSummary()(*CredentialUsageSummary) { m := &CredentialUsageSummary{ Entity: *NewEntity(), diff --git a/models/credential_user_registration_count.go b/models/credential_user_registration_count.go index 96e73c2e6ab..efbb318cb6c 100644 --- a/models/credential_user_registration_count.go +++ b/models/credential_user_registration_count.go @@ -7,8 +7,10 @@ import ( // CredentialUserRegistrationCount type CredentialUserRegistrationCount struct { Entity + // The OdataType property + OdataType *string } -// NewCredentialUserRegistrationCount instantiates a new CredentialUserRegistrationCount and sets the default values. +// NewCredentialUserRegistrationCount instantiates a new credentialUserRegistrationCount and sets the default values. func NewCredentialUserRegistrationCount()(*CredentialUserRegistrationCount) { m := &CredentialUserRegistrationCount{ Entity: *NewEntity(), diff --git a/models/credential_user_registration_details.go b/models/credential_user_registration_details.go index c5b1c97f0a4..2187b7e113c 100644 --- a/models/credential_user_registration_details.go +++ b/models/credential_user_registration_details.go @@ -7,8 +7,10 @@ import ( // CredentialUserRegistrationDetails type CredentialUserRegistrationDetails struct { Entity + // The OdataType property + OdataType *string } -// NewCredentialUserRegistrationDetails instantiates a new CredentialUserRegistrationDetails and sets the default values. +// NewCredentialUserRegistrationDetails instantiates a new credentialUserRegistrationDetails and sets the default values. func NewCredentialUserRegistrationDetails()(*CredentialUserRegistrationDetails) { m := &CredentialUserRegistrationDetails{ Entity: *NewEntity(), diff --git a/models/credential_user_registration_details_collection_response.go b/models/credential_user_registration_details_collection_response.go index 97536a3865d..6bf39e16f0e 100644 --- a/models/credential_user_registration_details_collection_response.go +++ b/models/credential_user_registration_details_collection_response.go @@ -8,7 +8,7 @@ import ( type CredentialUserRegistrationDetailsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCredentialUserRegistrationDetailsCollectionResponse instantiates a new CredentialUserRegistrationDetailsCollectionResponse and sets the default values. +// NewCredentialUserRegistrationDetailsCollectionResponse instantiates a new credentialUserRegistrationDetailsCollectionResponse and sets the default values. func NewCredentialUserRegistrationDetailsCollectionResponse()(*CredentialUserRegistrationDetailsCollectionResponse) { m := &CredentialUserRegistrationDetailsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cross_cloud_azure_active_directory_tenant.go b/models/cross_cloud_azure_active_directory_tenant.go index 79d656ad32c..b95e9cf4fd1 100644 --- a/models/cross_cloud_azure_active_directory_tenant.go +++ b/models/cross_cloud_azure_active_directory_tenant.go @@ -8,7 +8,7 @@ import ( type CrossCloudAzureActiveDirectoryTenant struct { IdentitySource } -// NewCrossCloudAzureActiveDirectoryTenant instantiates a new CrossCloudAzureActiveDirectoryTenant and sets the default values. +// NewCrossCloudAzureActiveDirectoryTenant instantiates a new crossCloudAzureActiveDirectoryTenant and sets the default values. func NewCrossCloudAzureActiveDirectoryTenant()(*CrossCloudAzureActiveDirectoryTenant) { m := &CrossCloudAzureActiveDirectoryTenant{ IdentitySource: *NewIdentitySource(), @@ -66,6 +66,16 @@ func (m *CrossCloudAzureActiveDirectoryTenant) GetFieldDeserializers()(map[strin } 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["tenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -78,6 +88,17 @@ func (m *CrossCloudAzureActiveDirectoryTenant) GetFieldDeserializers()(map[strin } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CrossCloudAzureActiveDirectoryTenant) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTenantId gets the tenantId property value. The ID of the Azure Active Directory tenant. Read only. func (m *CrossCloudAzureActiveDirectoryTenant) GetTenantId()(*string) { val, err := m.GetBackingStore().Get("tenantId") @@ -107,6 +128,12 @@ func (m *CrossCloudAzureActiveDirectoryTenant) Serialize(writer i878a80d2330e89d return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("tenantId", m.GetTenantId()) if err != nil { @@ -129,6 +156,13 @@ func (m *CrossCloudAzureActiveDirectoryTenant) SetDisplayName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CrossCloudAzureActiveDirectoryTenant) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTenantId sets the tenantId property value. The ID of the Azure Active Directory tenant. Read only. func (m *CrossCloudAzureActiveDirectoryTenant) SetTenantId(value *string)() { err := m.GetBackingStore().Set("tenantId", value) @@ -142,8 +176,10 @@ type CrossCloudAzureActiveDirectoryTenantable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCloudInstance()(*string) GetDisplayName()(*string) + GetOdataType()(*string) GetTenantId()(*string) SetCloudInstance(value *string)() SetDisplayName(value *string)() + SetOdataType(value *string)() SetTenantId(value *string)() } diff --git a/models/cross_tenant_access_policy.go b/models/cross_tenant_access_policy.go index aeac24b1014..94117aacc23 100644 --- a/models/cross_tenant_access_policy.go +++ b/models/cross_tenant_access_policy.go @@ -8,7 +8,7 @@ import ( type CrossTenantAccessPolicy struct { TenantRelationshipAccessPolicyBase } -// NewCrossTenantAccessPolicy instantiates a new CrossTenantAccessPolicy and sets the default values. +// NewCrossTenantAccessPolicy instantiates a new crossTenantAccessPolicy and sets the default values. func NewCrossTenantAccessPolicy()(*CrossTenantAccessPolicy) { m := &CrossTenantAccessPolicy{ TenantRelationshipAccessPolicyBase: *NewTenantRelationshipAccessPolicyBase(), diff --git a/models/cross_tenant_access_policy_configuration_default.go b/models/cross_tenant_access_policy_configuration_default.go index e8e7241467f..195039d0275 100644 --- a/models/cross_tenant_access_policy_configuration_default.go +++ b/models/cross_tenant_access_policy_configuration_default.go @@ -7,6 +7,8 @@ import ( // CrossTenantAccessPolicyConfigurationDefault type CrossTenantAccessPolicyConfigurationDefault struct { Entity + // The OdataType property + OdataType *string } // NewCrossTenantAccessPolicyConfigurationDefault instantiates a new crossTenantAccessPolicyConfigurationDefault and sets the default values. func NewCrossTenantAccessPolicyConfigurationDefault()(*CrossTenantAccessPolicyConfigurationDefault) { diff --git a/models/cross_tenant_access_policy_configuration_partner.go b/models/cross_tenant_access_policy_configuration_partner.go index d2d3b9d3617..481445f8782 100644 --- a/models/cross_tenant_access_policy_configuration_partner.go +++ b/models/cross_tenant_access_policy_configuration_partner.go @@ -10,7 +10,7 @@ type CrossTenantAccessPolicyConfigurationPartner struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCrossTenantAccessPolicyConfigurationPartner instantiates a new CrossTenantAccessPolicyConfigurationPartner and sets the default values. +// NewCrossTenantAccessPolicyConfigurationPartner instantiates a new crossTenantAccessPolicyConfigurationPartner and sets the default values. func NewCrossTenantAccessPolicyConfigurationPartner()(*CrossTenantAccessPolicyConfigurationPartner) { m := &CrossTenantAccessPolicyConfigurationPartner{ } diff --git a/models/cross_tenant_access_policy_configuration_partner_collection_response.go b/models/cross_tenant_access_policy_configuration_partner_collection_response.go index a6379cff82b..0e2c9c5fe25 100644 --- a/models/cross_tenant_access_policy_configuration_partner_collection_response.go +++ b/models/cross_tenant_access_policy_configuration_partner_collection_response.go @@ -8,7 +8,7 @@ import ( type CrossTenantAccessPolicyConfigurationPartnerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCrossTenantAccessPolicyConfigurationPartnerCollectionResponse instantiates a new CrossTenantAccessPolicyConfigurationPartnerCollectionResponse and sets the default values. +// NewCrossTenantAccessPolicyConfigurationPartnerCollectionResponse instantiates a new crossTenantAccessPolicyConfigurationPartnerCollectionResponse and sets the default values. func NewCrossTenantAccessPolicyConfigurationPartnerCollectionResponse()(*CrossTenantAccessPolicyConfigurationPartnerCollectionResponse) { m := &CrossTenantAccessPolicyConfigurationPartnerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/cross_tenant_access_policy_tenant_restrictions.go b/models/cross_tenant_access_policy_tenant_restrictions.go index 098444f3643..466095b1763 100644 --- a/models/cross_tenant_access_policy_tenant_restrictions.go +++ b/models/cross_tenant_access_policy_tenant_restrictions.go @@ -7,8 +7,10 @@ import ( // CrossTenantAccessPolicyTenantRestrictions type CrossTenantAccessPolicyTenantRestrictions struct { CrossTenantAccessPolicyB2BSetting + // The OdataType property + OdataType *string } -// NewCrossTenantAccessPolicyTenantRestrictions instantiates a new CrossTenantAccessPolicyTenantRestrictions and sets the default values. +// NewCrossTenantAccessPolicyTenantRestrictions instantiates a new crossTenantAccessPolicyTenantRestrictions and sets the default values. func NewCrossTenantAccessPolicyTenantRestrictions()(*CrossTenantAccessPolicyTenantRestrictions) { m := &CrossTenantAccessPolicyTenantRestrictions{ CrossTenantAccessPolicyB2BSetting: *NewCrossTenantAccessPolicyB2BSetting(), diff --git a/models/currency_collection_response.go b/models/currency_collection_response.go index 01ad57b5b1d..8e4fc428305 100644 --- a/models/currency_collection_response.go +++ b/models/currency_collection_response.go @@ -8,7 +8,7 @@ import ( type CurrencyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCurrencyCollectionResponse instantiates a new CurrencyCollectionResponse and sets the default values. +// NewCurrencyCollectionResponse instantiates a new currencyCollectionResponse and sets the default values. func NewCurrencyCollectionResponse()(*CurrencyCollectionResponse) { m := &CurrencyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/custom_access_package_workflow_extension.go b/models/custom_access_package_workflow_extension.go index ab1c70fff6f..b1707e66473 100644 --- a/models/custom_access_package_workflow_extension.go +++ b/models/custom_access_package_workflow_extension.go @@ -9,7 +9,7 @@ import ( type CustomAccessPackageWorkflowExtension struct { CustomCalloutExtension } -// NewCustomAccessPackageWorkflowExtension instantiates a new CustomAccessPackageWorkflowExtension and sets the default values. +// NewCustomAccessPackageWorkflowExtension instantiates a new customAccessPackageWorkflowExtension and sets the default values. func NewCustomAccessPackageWorkflowExtension()(*CustomAccessPackageWorkflowExtension) { m := &CustomAccessPackageWorkflowExtension{ CustomCalloutExtension: *NewCustomCalloutExtension(), diff --git a/models/custom_access_package_workflow_extension_collection_response.go b/models/custom_access_package_workflow_extension_collection_response.go index d2daecd1025..f1013a548ef 100644 --- a/models/custom_access_package_workflow_extension_collection_response.go +++ b/models/custom_access_package_workflow_extension_collection_response.go @@ -8,7 +8,7 @@ import ( type CustomAccessPackageWorkflowExtensionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCustomAccessPackageWorkflowExtensionCollectionResponse instantiates a new CustomAccessPackageWorkflowExtensionCollectionResponse and sets the default values. +// NewCustomAccessPackageWorkflowExtensionCollectionResponse instantiates a new customAccessPackageWorkflowExtensionCollectionResponse and sets the default values. func NewCustomAccessPackageWorkflowExtensionCollectionResponse()(*CustomAccessPackageWorkflowExtensionCollectionResponse) { m := &CustomAccessPackageWorkflowExtensionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/custom_action.go b/models/custom_action.go index 90bceee641b..b2981ee8562 100644 --- a/models/custom_action.go +++ b/models/custom_action.go @@ -8,7 +8,7 @@ import ( type CustomAction struct { InformationProtectionAction } -// NewCustomAction instantiates a new CustomAction and sets the default values. +// NewCustomAction instantiates a new customAction and sets the default values. func NewCustomAction()(*CustomAction) { m := &CustomAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -34,6 +34,16 @@ func (m *CustomAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } 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["properties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateKeyValuePairFromDiscriminatorValue) if err != nil { @@ -63,6 +73,17 @@ func (m *CustomAction) GetName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CustomAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetProperties gets the properties property value. Properties, in key value pair format, of the action. func (m *CustomAction) GetProperties()([]KeyValuePairable) { val, err := m.GetBackingStore().Get("properties") @@ -86,6 +107,12 @@ func (m *CustomAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetProperties() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetProperties())) for i, v := range m.GetProperties() { @@ -107,6 +134,13 @@ func (m *CustomAction) SetName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CustomAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetProperties sets the properties property value. Properties, in key value pair format, of the action. func (m *CustomAction) SetProperties(value []KeyValuePairable)() { err := m.GetBackingStore().Set("properties", value) @@ -119,7 +153,9 @@ type CustomActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetName()(*string) + GetOdataType()(*string) GetProperties()([]KeyValuePairable) SetName(value *string)() + SetOdataType(value *string)() SetProperties(value []KeyValuePairable)() } diff --git a/models/custom_app_scope.go b/models/custom_app_scope.go index a7f35f4ea21..b85acdbb906 100644 --- a/models/custom_app_scope.go +++ b/models/custom_app_scope.go @@ -8,7 +8,7 @@ import ( type CustomAppScope struct { AppScope } -// NewCustomAppScope instantiates a new CustomAppScope and sets the default values. +// NewCustomAppScope instantiates a new customAppScope and sets the default values. func NewCustomAppScope()(*CustomAppScope) { m := &CustomAppScope{ AppScope: *NewAppScope(), diff --git a/models/custom_app_scope_attributes_dictionary.go b/models/custom_app_scope_attributes_dictionary.go index 9893ce81c70..c7ebf97da7c 100644 --- a/models/custom_app_scope_attributes_dictionary.go +++ b/models/custom_app_scope_attributes_dictionary.go @@ -8,7 +8,7 @@ import ( type CustomAppScopeAttributesDictionary struct { Dictionary } -// NewCustomAppScopeAttributesDictionary instantiates a new CustomAppScopeAttributesDictionary and sets the default values. +// NewCustomAppScopeAttributesDictionary instantiates a new customAppScopeAttributesDictionary and sets the default values. func NewCustomAppScopeAttributesDictionary()(*CustomAppScopeAttributesDictionary) { m := &CustomAppScopeAttributesDictionary{ Dictionary: *NewDictionary(), @@ -22,18 +22,54 @@ func CreateCustomAppScopeAttributesDictionaryFromDiscriminatorValue(parseNode i8 // GetFieldDeserializers the deserialization information for the current model func (m *CustomAppScopeAttributesDictionary) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Dictionary.GetFieldDeserializers() + 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 *CustomAppScopeAttributesDictionary) 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 *CustomAppScopeAttributesDictionary) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Dictionary.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CustomAppScopeAttributesDictionary) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // CustomAppScopeAttributesDictionaryable type CustomAppScopeAttributesDictionaryable interface { Dictionaryable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/custom_app_scope_collection_response.go b/models/custom_app_scope_collection_response.go index d9ded396bc1..47df3e4c664 100644 --- a/models/custom_app_scope_collection_response.go +++ b/models/custom_app_scope_collection_response.go @@ -8,7 +8,7 @@ import ( type CustomAppScopeCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCustomAppScopeCollectionResponse instantiates a new CustomAppScopeCollectionResponse and sets the default values. +// NewCustomAppScopeCollectionResponse instantiates a new customAppScopeCollectionResponse and sets the default values. func NewCustomAppScopeCollectionResponse()(*CustomAppScopeCollectionResponse) { m := &CustomAppScopeCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/custom_authentication_extension.go b/models/custom_authentication_extension.go index e668144f1f7..eb35d076e83 100644 --- a/models/custom_authentication_extension.go +++ b/models/custom_authentication_extension.go @@ -8,7 +8,7 @@ import ( type CustomAuthenticationExtension struct { CustomCalloutExtension } -// NewCustomAuthenticationExtension instantiates a new CustomAuthenticationExtension and sets the default values. +// NewCustomAuthenticationExtension instantiates a new customAuthenticationExtension and sets the default values. func NewCustomAuthenticationExtension()(*CustomAuthenticationExtension) { m := &CustomAuthenticationExtension{ CustomCalloutExtension: *NewCustomCalloutExtension(), diff --git a/models/custom_authentication_extension_collection_response.go b/models/custom_authentication_extension_collection_response.go index c9694ea41bd..558bb512a6f 100644 --- a/models/custom_authentication_extension_collection_response.go +++ b/models/custom_authentication_extension_collection_response.go @@ -8,7 +8,7 @@ import ( type CustomAuthenticationExtensionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCustomAuthenticationExtensionCollectionResponse instantiates a new CustomAuthenticationExtensionCollectionResponse and sets the default values. +// NewCustomAuthenticationExtensionCollectionResponse instantiates a new customAuthenticationExtensionCollectionResponse and sets the default values. func NewCustomAuthenticationExtensionCollectionResponse()(*CustomAuthenticationExtensionCollectionResponse) { m := &CustomAuthenticationExtensionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/custom_callout_extension.go b/models/custom_callout_extension.go index 2636dd6a895..0920eb52da7 100644 --- a/models/custom_callout_extension.go +++ b/models/custom_callout_extension.go @@ -7,6 +7,8 @@ import ( // CustomCalloutExtension type CustomCalloutExtension struct { Entity + // The OdataType property + OdataType *string } // NewCustomCalloutExtension instantiates a new customCalloutExtension and sets the default values. func NewCustomCalloutExtension()(*CustomCalloutExtension) { diff --git a/models/custom_callout_extension_collection_response.go b/models/custom_callout_extension_collection_response.go index 8902bedc3c7..74962124838 100644 --- a/models/custom_callout_extension_collection_response.go +++ b/models/custom_callout_extension_collection_response.go @@ -8,7 +8,7 @@ import ( type CustomCalloutExtensionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCustomCalloutExtensionCollectionResponse instantiates a new CustomCalloutExtensionCollectionResponse and sets the default values. +// NewCustomCalloutExtensionCollectionResponse instantiates a new customCalloutExtensionCollectionResponse and sets the default values. func NewCustomCalloutExtensionCollectionResponse()(*CustomCalloutExtensionCollectionResponse) { m := &CustomCalloutExtensionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/custom_extension_callout_result.go b/models/custom_extension_callout_result.go index c5df6202fe7..57690f52317 100644 --- a/models/custom_extension_callout_result.go +++ b/models/custom_extension_callout_result.go @@ -8,8 +8,10 @@ import ( // CustomExtensionCalloutResult type CustomExtensionCalloutResult struct { AuthenticationEventHandlerResult + // The OdataType property + OdataType *string } -// NewCustomExtensionCalloutResult instantiates a new CustomExtensionCalloutResult and sets the default values. +// NewCustomExtensionCalloutResult instantiates a new customExtensionCalloutResult and sets the default values. func NewCustomExtensionCalloutResult()(*CustomExtensionCalloutResult) { m := &CustomExtensionCalloutResult{ AuthenticationEventHandlerResult: *NewAuthenticationEventHandlerResult(), diff --git a/models/custom_extension_handler.go b/models/custom_extension_handler.go index 5b7586879fd..3ef04c3d3de 100644 --- a/models/custom_extension_handler.go +++ b/models/custom_extension_handler.go @@ -7,6 +7,8 @@ import ( // CustomExtensionHandler type CustomExtensionHandler struct { Entity + // The OdataType property + OdataType *string } // NewCustomExtensionHandler instantiates a new customExtensionHandler and sets the default values. func NewCustomExtensionHandler()(*CustomExtensionHandler) { diff --git a/models/custom_extension_handler_collection_response.go b/models/custom_extension_handler_collection_response.go index e23c7b7b5a1..e985ca9e4b4 100644 --- a/models/custom_extension_handler_collection_response.go +++ b/models/custom_extension_handler_collection_response.go @@ -8,7 +8,7 @@ import ( type CustomExtensionHandlerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCustomExtensionHandlerCollectionResponse instantiates a new CustomExtensionHandlerCollectionResponse and sets the default values. +// NewCustomExtensionHandlerCollectionResponse instantiates a new customExtensionHandlerCollectionResponse and sets the default values. func NewCustomExtensionHandlerCollectionResponse()(*CustomExtensionHandlerCollectionResponse) { m := &CustomExtensionHandlerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/custom_extension_stage_setting.go b/models/custom_extension_stage_setting.go index 671c195d460..fdb301b67aa 100644 --- a/models/custom_extension_stage_setting.go +++ b/models/custom_extension_stage_setting.go @@ -7,6 +7,8 @@ import ( // CustomExtensionStageSetting type CustomExtensionStageSetting struct { Entity + // The OdataType property + OdataType *string } // NewCustomExtensionStageSetting instantiates a new customExtensionStageSetting and sets the default values. func NewCustomExtensionStageSetting()(*CustomExtensionStageSetting) { diff --git a/models/custom_extension_stage_setting_collection_response.go b/models/custom_extension_stage_setting_collection_response.go index a22721a6b02..41b9671c0fc 100644 --- a/models/custom_extension_stage_setting_collection_response.go +++ b/models/custom_extension_stage_setting_collection_response.go @@ -8,7 +8,7 @@ import ( type CustomExtensionStageSettingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCustomExtensionStageSettingCollectionResponse instantiates a new CustomExtensionStageSettingCollectionResponse and sets the default values. +// NewCustomExtensionStageSettingCollectionResponse instantiates a new customExtensionStageSettingCollectionResponse and sets the default values. func NewCustomExtensionStageSettingCollectionResponse()(*CustomExtensionStageSettingCollectionResponse) { m := &CustomExtensionStageSettingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/custom_security_attribute_audit.go b/models/custom_security_attribute_audit.go index 4767ebe7f59..a3e276ab0dd 100644 --- a/models/custom_security_attribute_audit.go +++ b/models/custom_security_attribute_audit.go @@ -8,8 +8,10 @@ import ( // CustomSecurityAttributeAudit type CustomSecurityAttributeAudit struct { Entity + // The OdataType property + OdataType *string } -// NewCustomSecurityAttributeAudit instantiates a new CustomSecurityAttributeAudit and sets the default values. +// NewCustomSecurityAttributeAudit instantiates a new customSecurityAttributeAudit and sets the default values. func NewCustomSecurityAttributeAudit()(*CustomSecurityAttributeAudit) { m := &CustomSecurityAttributeAudit{ Entity: *NewEntity(), diff --git a/models/custom_security_attribute_audit_collection_response.go b/models/custom_security_attribute_audit_collection_response.go index 10e9551043d..776cae647b5 100644 --- a/models/custom_security_attribute_audit_collection_response.go +++ b/models/custom_security_attribute_audit_collection_response.go @@ -8,7 +8,7 @@ import ( type CustomSecurityAttributeAuditCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCustomSecurityAttributeAuditCollectionResponse instantiates a new CustomSecurityAttributeAuditCollectionResponse and sets the default values. +// NewCustomSecurityAttributeAuditCollectionResponse instantiates a new customSecurityAttributeAuditCollectionResponse and sets the default values. func NewCustomSecurityAttributeAuditCollectionResponse()(*CustomSecurityAttributeAuditCollectionResponse) { m := &CustomSecurityAttributeAuditCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/custom_security_attribute_definition.go b/models/custom_security_attribute_definition.go index e66cb5e0195..3bd9ed913ab 100644 --- a/models/custom_security_attribute_definition.go +++ b/models/custom_security_attribute_definition.go @@ -7,6 +7,8 @@ import ( // CustomSecurityAttributeDefinition type CustomSecurityAttributeDefinition struct { Entity + // The OdataType property + OdataType *string } // NewCustomSecurityAttributeDefinition instantiates a new customSecurityAttributeDefinition and sets the default values. func NewCustomSecurityAttributeDefinition()(*CustomSecurityAttributeDefinition) { diff --git a/models/custom_security_attribute_definition_collection_response.go b/models/custom_security_attribute_definition_collection_response.go index 27985309ca0..d5bbfc33d84 100644 --- a/models/custom_security_attribute_definition_collection_response.go +++ b/models/custom_security_attribute_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type CustomSecurityAttributeDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCustomSecurityAttributeDefinitionCollectionResponse instantiates a new CustomSecurityAttributeDefinitionCollectionResponse and sets the default values. +// NewCustomSecurityAttributeDefinitionCollectionResponse instantiates a new customSecurityAttributeDefinitionCollectionResponse and sets the default values. func NewCustomSecurityAttributeDefinitionCollectionResponse()(*CustomSecurityAttributeDefinitionCollectionResponse) { m := &CustomSecurityAttributeDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/custom_time_zone.go b/models/custom_time_zone.go index 5c9c7174421..037deb8a25e 100644 --- a/models/custom_time_zone.go +++ b/models/custom_time_zone.go @@ -7,8 +7,10 @@ import ( // CustomTimeZone type CustomTimeZone struct { TimeZoneBase + // The OdataType property + OdataType *string } -// NewCustomTimeZone instantiates a new CustomTimeZone and sets the default values. +// NewCustomTimeZone instantiates a new customTimeZone and sets the default values. func NewCustomTimeZone()(*CustomTimeZone) { m := &CustomTimeZone{ TimeZoneBase: *NewTimeZoneBase(), diff --git a/models/custom_training_setting.go b/models/custom_training_setting.go index 6df66ff5bdd..c9826fbb37b 100644 --- a/models/custom_training_setting.go +++ b/models/custom_training_setting.go @@ -8,7 +8,7 @@ import ( type CustomTrainingSetting struct { TrainingSetting } -// NewCustomTrainingSetting instantiates a new CustomTrainingSetting and sets the default values. +// NewCustomTrainingSetting instantiates a new customTrainingSetting and sets the default values. func NewCustomTrainingSetting()(*CustomTrainingSetting) { m := &CustomTrainingSetting{ TrainingSetting: *NewTrainingSetting(), @@ -114,6 +114,16 @@ func (m *CustomTrainingSetting) GetFieldDeserializers()(map[string]func(i878a80d } 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["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -126,6 +136,17 @@ func (m *CustomTrainingSetting) GetFieldDeserializers()(map[string]func(i878a80d } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CustomTrainingSetting) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUrl gets the url property value. The url property func (m *CustomTrainingSetting) GetUrl()(*string) { val, err := m.GetBackingStore().Get("url") @@ -167,6 +188,12 @@ func (m *CustomTrainingSetting) Serialize(writer i878a80d2330e89d26896388a3f487e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("url", m.GetUrl()) if err != nil { @@ -203,6 +230,13 @@ func (m *CustomTrainingSetting) SetDurationInMinutes(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CustomTrainingSetting) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUrl sets the url property value. The url property func (m *CustomTrainingSetting) SetUrl(value *string)() { err := m.GetBackingStore().Set("url", value) @@ -218,10 +252,12 @@ type CustomTrainingSettingable interface { GetDescription()(*string) GetDisplayName()(*string) GetDurationInMinutes()(*string) + GetOdataType()(*string) GetUrl()(*string) SetAssignedTo(value []TrainingAssignedTo)() SetDescription(value *string)() SetDisplayName(value *string)() SetDurationInMinutes(value *string)() + SetOdataType(value *string)() SetUrl(value *string)() } diff --git a/models/customer_collection_response.go b/models/customer_collection_response.go index 6167bc68f5b..28371b80f19 100644 --- a/models/customer_collection_response.go +++ b/models/customer_collection_response.go @@ -8,7 +8,7 @@ import ( type CustomerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCustomerCollectionResponse instantiates a new CustomerCollectionResponse and sets the default values. +// NewCustomerCollectionResponse instantiates a new customerCollectionResponse and sets the default values. func NewCustomerCollectionResponse()(*CustomerCollectionResponse) { m := &CustomerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/customer_payment.go b/models/customer_payment.go index cefa57fd0d6..a567d29caaf 100644 --- a/models/customer_payment.go +++ b/models/customer_payment.go @@ -12,7 +12,7 @@ type CustomerPayment struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCustomerPayment instantiates a new CustomerPayment and sets the default values. +// NewCustomerPayment instantiates a new customerPayment and sets the default values. func NewCustomerPayment()(*CustomerPayment) { m := &CustomerPayment{ } diff --git a/models/customer_payment_collection_response.go b/models/customer_payment_collection_response.go index 480ce4602e6..c80651e22ce 100644 --- a/models/customer_payment_collection_response.go +++ b/models/customer_payment_collection_response.go @@ -8,7 +8,7 @@ import ( type CustomerPaymentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCustomerPaymentCollectionResponse instantiates a new CustomerPaymentCollectionResponse and sets the default values. +// NewCustomerPaymentCollectionResponse instantiates a new customerPaymentCollectionResponse and sets the default values. func NewCustomerPaymentCollectionResponse()(*CustomerPaymentCollectionResponse) { m := &CustomerPaymentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/customer_payment_journal.go b/models/customer_payment_journal.go index c06e48b84b4..d5c73538a3f 100644 --- a/models/customer_payment_journal.go +++ b/models/customer_payment_journal.go @@ -12,7 +12,7 @@ type CustomerPaymentJournal struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCustomerPaymentJournal instantiates a new CustomerPaymentJournal and sets the default values. +// NewCustomerPaymentJournal instantiates a new customerPaymentJournal and sets the default values. func NewCustomerPaymentJournal()(*CustomerPaymentJournal) { m := &CustomerPaymentJournal{ } diff --git a/models/customer_payment_journal_collection_response.go b/models/customer_payment_journal_collection_response.go index 136095cd934..b0f4c4b8f67 100644 --- a/models/customer_payment_journal_collection_response.go +++ b/models/customer_payment_journal_collection_response.go @@ -8,7 +8,7 @@ import ( type CustomerPaymentJournalCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewCustomerPaymentJournalCollectionResponse instantiates a new CustomerPaymentJournalCollectionResponse and sets the default values. +// NewCustomerPaymentJournalCollectionResponse instantiates a new customerPaymentJournalCollectionResponse and sets the default values. func NewCustomerPaymentJournalCollectionResponse()(*CustomerPaymentJournalCollectionResponse) { m := &CustomerPaymentJournalCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/customer_voice_settings.go b/models/customer_voice_settings.go index a96618537b6..f899a4ea932 100644 --- a/models/customer_voice_settings.go +++ b/models/customer_voice_settings.go @@ -10,7 +10,7 @@ type CustomerVoiceSettings struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCustomerVoiceSettings instantiates a new CustomerVoiceSettings and sets the default values. +// NewCustomerVoiceSettings instantiates a new customerVoiceSettings and sets the default values. func NewCustomerVoiceSettings()(*CustomerVoiceSettings) { m := &CustomerVoiceSettings{ } @@ -83,7 +83,7 @@ func (m *CustomerVoiceSettings) GetFieldDeserializers()(map[string]func(i878a80d } return res } -// GetIsInOrgFormsPhishingScanEnabled gets the isInOrgFormsPhishingScanEnabled property value. The isInOrgFormsPhishingScanEnabled property +// GetIsInOrgFormsPhishingScanEnabled gets the isInOrgFormsPhishingScanEnabled property value. Controls whether phishing protection is run on forms created by users, blocking the creation of forms if common phishing questions are detected. func (m *CustomerVoiceSettings) GetIsInOrgFormsPhishingScanEnabled()(*bool) { val, err := m.GetBackingStore().Get("isInOrgFormsPhishingScanEnabled") if err != nil { @@ -94,7 +94,7 @@ func (m *CustomerVoiceSettings) GetIsInOrgFormsPhishingScanEnabled()(*bool) { } return nil } -// GetIsRecordIdentityByDefaultEnabled gets the isRecordIdentityByDefaultEnabled property value. The isRecordIdentityByDefaultEnabled property +// GetIsRecordIdentityByDefaultEnabled gets the isRecordIdentityByDefaultEnabled property value. Controls whether the names of users who fill out forms are recorded. func (m *CustomerVoiceSettings) GetIsRecordIdentityByDefaultEnabled()(*bool) { val, err := m.GetBackingStore().Get("isRecordIdentityByDefaultEnabled") if err != nil { @@ -105,7 +105,7 @@ func (m *CustomerVoiceSettings) GetIsRecordIdentityByDefaultEnabled()(*bool) { } return nil } -// GetIsRestrictedSurveyAccessEnabled gets the isRestrictedSurveyAccessEnabled property value. The isRestrictedSurveyAccessEnabled property +// GetIsRestrictedSurveyAccessEnabled gets the isRestrictedSurveyAccessEnabled property value. Controls whether only users inside your organization can submit a response. func (m *CustomerVoiceSettings) GetIsRestrictedSurveyAccessEnabled()(*bool) { val, err := m.GetBackingStore().Get("isRestrictedSurveyAccessEnabled") if err != nil { @@ -172,21 +172,21 @@ func (m *CustomerVoiceSettings) SetAdditionalData(value map[string]any)() { func (m *CustomerVoiceSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIsInOrgFormsPhishingScanEnabled sets the isInOrgFormsPhishingScanEnabled property value. The isInOrgFormsPhishingScanEnabled property +// SetIsInOrgFormsPhishingScanEnabled sets the isInOrgFormsPhishingScanEnabled property value. Controls whether phishing protection is run on forms created by users, blocking the creation of forms if common phishing questions are detected. func (m *CustomerVoiceSettings) SetIsInOrgFormsPhishingScanEnabled(value *bool)() { err := m.GetBackingStore().Set("isInOrgFormsPhishingScanEnabled", value) if err != nil { panic(err) } } -// SetIsRecordIdentityByDefaultEnabled sets the isRecordIdentityByDefaultEnabled property value. The isRecordIdentityByDefaultEnabled property +// SetIsRecordIdentityByDefaultEnabled sets the isRecordIdentityByDefaultEnabled property value. Controls whether the names of users who fill out forms are recorded. func (m *CustomerVoiceSettings) SetIsRecordIdentityByDefaultEnabled(value *bool)() { err := m.GetBackingStore().Set("isRecordIdentityByDefaultEnabled", value) if err != nil { panic(err) } } -// SetIsRestrictedSurveyAccessEnabled sets the isRestrictedSurveyAccessEnabled property value. The isRestrictedSurveyAccessEnabled property +// SetIsRestrictedSurveyAccessEnabled sets the isRestrictedSurveyAccessEnabled property value. Controls whether only users inside your organization can submit a response. func (m *CustomerVoiceSettings) SetIsRestrictedSurveyAccessEnabled(value *bool)() { err := m.GetBackingStore().Set("isRestrictedSurveyAccessEnabled", value) if err != nil { diff --git a/models/data_classification_service.go b/models/data_classification_service.go index 2ecbed35327..329241b36e2 100644 --- a/models/data_classification_service.go +++ b/models/data_classification_service.go @@ -7,8 +7,10 @@ import ( // DataClassificationService type DataClassificationService struct { Entity + // The OdataType property + OdataType *string } -// NewDataClassificationService instantiates a new DataClassificationService and sets the default values. +// NewDataClassificationService instantiates a new dataClassificationService and sets the default values. func NewDataClassificationService()(*DataClassificationService) { m := &DataClassificationService{ Entity: *NewEntity(), diff --git a/models/data_loss_prevention_policy.go b/models/data_loss_prevention_policy.go index 8195cc1cb06..6800a9f81ce 100644 --- a/models/data_loss_prevention_policy.go +++ b/models/data_loss_prevention_policy.go @@ -7,6 +7,8 @@ import ( // DataLossPreventionPolicy type DataLossPreventionPolicy struct { Entity + // The OdataType property + OdataType *string } // NewDataLossPreventionPolicy instantiates a new dataLossPreventionPolicy and sets the default values. func NewDataLossPreventionPolicy()(*DataLossPreventionPolicy) { diff --git a/models/data_loss_prevention_policy_collection_response.go b/models/data_loss_prevention_policy_collection_response.go index d8c9e343b2d..d04c775cbed 100644 --- a/models/data_loss_prevention_policy_collection_response.go +++ b/models/data_loss_prevention_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type DataLossPreventionPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDataLossPreventionPolicyCollectionResponse instantiates a new DataLossPreventionPolicyCollectionResponse and sets the default values. +// NewDataLossPreventionPolicyCollectionResponse instantiates a new dataLossPreventionPolicyCollectionResponse and sets the default values. func NewDataLossPreventionPolicyCollectionResponse()(*DataLossPreventionPolicyCollectionResponse) { m := &DataLossPreventionPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/data_policy_operation.go b/models/data_policy_operation.go index c96c108d166..847b6c10005 100644 --- a/models/data_policy_operation.go +++ b/models/data_policy_operation.go @@ -8,8 +8,10 @@ import ( // DataPolicyOperation type DataPolicyOperation struct { Entity + // The OdataType property + OdataType *string } -// NewDataPolicyOperation instantiates a new DataPolicyOperation and sets the default values. +// NewDataPolicyOperation instantiates a new dataPolicyOperation and sets the default values. func NewDataPolicyOperation()(*DataPolicyOperation) { m := &DataPolicyOperation{ Entity: *NewEntity(), diff --git a/models/data_policy_operation_collection_response.go b/models/data_policy_operation_collection_response.go index 2de8aaa6f63..aa41104fd7e 100644 --- a/models/data_policy_operation_collection_response.go +++ b/models/data_policy_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type DataPolicyOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDataPolicyOperationCollectionResponse instantiates a new DataPolicyOperationCollectionResponse and sets the default values. +// NewDataPolicyOperationCollectionResponse instantiates a new dataPolicyOperationCollectionResponse and sets the default values. func NewDataPolicyOperationCollectionResponse()(*DataPolicyOperationCollectionResponse) { m := &DataPolicyOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/data_sharing_consent.go b/models/data_sharing_consent.go index 4cd15d84f72..5af4fd601e9 100644 --- a/models/data_sharing_consent.go +++ b/models/data_sharing_consent.go @@ -8,6 +8,8 @@ import ( // DataSharingConsent data sharing consent information. type DataSharingConsent struct { Entity + // The OdataType property + OdataType *string } // NewDataSharingConsent instantiates a new dataSharingConsent and sets the default values. func NewDataSharingConsent()(*DataSharingConsent) { diff --git a/models/data_sharing_consent_collection_response.go b/models/data_sharing_consent_collection_response.go index b469df4a755..2204992aa35 100644 --- a/models/data_sharing_consent_collection_response.go +++ b/models/data_sharing_consent_collection_response.go @@ -8,7 +8,7 @@ import ( type DataSharingConsentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDataSharingConsentCollectionResponse instantiates a new DataSharingConsentCollectionResponse and sets the default values. +// NewDataSharingConsentCollectionResponse instantiates a new dataSharingConsentCollectionResponse and sets the default values. func NewDataSharingConsentCollectionResponse()(*DataSharingConsentCollectionResponse) { m := &DataSharingConsentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/daylight_time_zone_offset.go b/models/daylight_time_zone_offset.go index 9bf82d05d80..29e97954ec5 100644 --- a/models/daylight_time_zone_offset.go +++ b/models/daylight_time_zone_offset.go @@ -8,7 +8,7 @@ import ( type DaylightTimeZoneOffset struct { StandardTimeZoneOffset } -// NewDaylightTimeZoneOffset instantiates a new DaylightTimeZoneOffset and sets the default values. +// NewDaylightTimeZoneOffset instantiates a new daylightTimeZoneOffset and sets the default values. func NewDaylightTimeZoneOffset()(*DaylightTimeZoneOffset) { m := &DaylightTimeZoneOffset{ StandardTimeZoneOffset: *NewStandardTimeZoneOffset(), @@ -45,8 +45,29 @@ func (m *DaylightTimeZoneOffset) GetFieldDeserializers()(map[string]func(i878a80 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DaylightTimeZoneOffset) 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 *DaylightTimeZoneOffset) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.StandardTimeZoneOffset.Serialize(writer) @@ -59,6 +80,12 @@ func (m *DaylightTimeZoneOffset) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDaylightBias sets the daylightBias property value. The time offset from Coordinated Universal Time (UTC) for daylight saving time. This value is in minutes. @@ -68,10 +95,19 @@ func (m *DaylightTimeZoneOffset) SetDaylightBias(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DaylightTimeZoneOffset) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DaylightTimeZoneOffsetable type DaylightTimeZoneOffsetable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable StandardTimeZoneOffsetable GetDaylightBias()(*int32) + GetOdataType()(*string) SetDaylightBias(value *int32)() + SetOdataType(value *string)() } diff --git a/models/default_device_compliance_policy.go b/models/default_device_compliance_policy.go index 760ca0e235e..98428345895 100644 --- a/models/default_device_compliance_policy.go +++ b/models/default_device_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DefaultDeviceCompliancePolicy +// DefaultDeviceCompliancePolicy default device compliance policy rules that are enforced account wide. type DefaultDeviceCompliancePolicy struct { DeviceCompliancePolicy } -// NewDefaultDeviceCompliancePolicy instantiates a new DefaultDeviceCompliancePolicy and sets the default values. +// NewDefaultDeviceCompliancePolicy instantiates a new defaultDeviceCompliancePolicy and sets the default values. func NewDefaultDeviceCompliancePolicy()(*DefaultDeviceCompliancePolicy) { m := &DefaultDeviceCompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/default_managed_app_protection.go b/models/default_managed_app_protection.go index 1e42f87e69f..8e80f9b513e 100644 --- a/models/default_managed_app_protection.go +++ b/models/default_managed_app_protection.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DefaultManagedAppProtection +// DefaultManagedAppProtection policy used to configure detailed management settings for a specified set of apps for all users not targeted by a TargetedManagedAppProtection Policy type DefaultManagedAppProtection struct { ManagedAppProtection } -// NewDefaultManagedAppProtection instantiates a new DefaultManagedAppProtection and sets the default values. +// NewDefaultManagedAppProtection instantiates a new defaultManagedAppProtection and sets the default values. func NewDefaultManagedAppProtection()(*DefaultManagedAppProtection) { m := &DefaultManagedAppProtection{ ManagedAppProtection: *NewManagedAppProtection(), diff --git a/models/default_managed_app_protection_collection_response.go b/models/default_managed_app_protection_collection_response.go index a2dc08a9315..c8bc8d49f1b 100644 --- a/models/default_managed_app_protection_collection_response.go +++ b/models/default_managed_app_protection_collection_response.go @@ -8,7 +8,7 @@ import ( type DefaultManagedAppProtectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDefaultManagedAppProtectionCollectionResponse instantiates a new DefaultManagedAppProtectionCollectionResponse and sets the default values. +// NewDefaultManagedAppProtectionCollectionResponse instantiates a new defaultManagedAppProtectionCollectionResponse and sets the default values. func NewDefaultManagedAppProtectionCollectionResponse()(*DefaultManagedAppProtectionCollectionResponse) { m := &DefaultManagedAppProtectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/default_user_role_override.go b/models/default_user_role_override.go index 11c701decd1..ef6b59f8012 100644 --- a/models/default_user_role_override.go +++ b/models/default_user_role_override.go @@ -7,6 +7,8 @@ import ( // DefaultUserRoleOverride type DefaultUserRoleOverride struct { Entity + // The OdataType property + OdataType *string } // NewDefaultUserRoleOverride instantiates a new defaultUserRoleOverride and sets the default values. func NewDefaultUserRoleOverride()(*DefaultUserRoleOverride) { diff --git a/models/default_user_role_override_collection_response.go b/models/default_user_role_override_collection_response.go index c5af0bc532c..1f587ea21cd 100644 --- a/models/default_user_role_override_collection_response.go +++ b/models/default_user_role_override_collection_response.go @@ -8,7 +8,7 @@ import ( type DefaultUserRoleOverrideCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDefaultUserRoleOverrideCollectionResponse instantiates a new DefaultUserRoleOverrideCollectionResponse and sets the default values. +// NewDefaultUserRoleOverrideCollectionResponse instantiates a new defaultUserRoleOverrideCollectionResponse and sets the default values. func NewDefaultUserRoleOverrideCollectionResponse()(*DefaultUserRoleOverrideCollectionResponse) { m := &DefaultUserRoleOverrideCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/default_user_role_permissions.go b/models/default_user_role_permissions.go index 4a1f1229805..b681472bb75 100644 --- a/models/default_user_role_permissions.go +++ b/models/default_user_role_permissions.go @@ -10,7 +10,7 @@ type DefaultUserRolePermissions struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDefaultUserRolePermissions instantiates a new DefaultUserRolePermissions and sets the default values. +// NewDefaultUserRolePermissions instantiates a new defaultUserRolePermissions and sets the default values. func NewDefaultUserRolePermissions()(*DefaultUserRolePermissions) { m := &DefaultUserRolePermissions{ } diff --git a/models/delegated_admin_access_assignment.go b/models/delegated_admin_access_assignment.go index e55270d619b..72f543a88b5 100644 --- a/models/delegated_admin_access_assignment.go +++ b/models/delegated_admin_access_assignment.go @@ -8,6 +8,8 @@ import ( // DelegatedAdminAccessAssignment type DelegatedAdminAccessAssignment struct { Entity + // The OdataType property + OdataType *string } // NewDelegatedAdminAccessAssignment instantiates a new delegatedAdminAccessAssignment and sets the default values. func NewDelegatedAdminAccessAssignment()(*DelegatedAdminAccessAssignment) { diff --git a/models/delegated_admin_access_assignment_collection_response.go b/models/delegated_admin_access_assignment_collection_response.go index 3ab98af9255..2e547c7d7b6 100644 --- a/models/delegated_admin_access_assignment_collection_response.go +++ b/models/delegated_admin_access_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type DelegatedAdminAccessAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDelegatedAdminAccessAssignmentCollectionResponse instantiates a new DelegatedAdminAccessAssignmentCollectionResponse and sets the default values. +// NewDelegatedAdminAccessAssignmentCollectionResponse instantiates a new delegatedAdminAccessAssignmentCollectionResponse and sets the default values. func NewDelegatedAdminAccessAssignmentCollectionResponse()(*DelegatedAdminAccessAssignmentCollectionResponse) { m := &DelegatedAdminAccessAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/delegated_admin_access_container.go b/models/delegated_admin_access_container.go index 06934a74a12..d417f9b0986 100644 --- a/models/delegated_admin_access_container.go +++ b/models/delegated_admin_access_container.go @@ -10,7 +10,7 @@ type DelegatedAdminAccessContainer struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDelegatedAdminAccessContainer instantiates a new DelegatedAdminAccessContainer and sets the default values. +// NewDelegatedAdminAccessContainer instantiates a new delegatedAdminAccessContainer and sets the default values. func NewDelegatedAdminAccessContainer()(*DelegatedAdminAccessContainer) { m := &DelegatedAdminAccessContainer{ } diff --git a/models/delegated_admin_access_details.go b/models/delegated_admin_access_details.go index 37e33ab22b5..af2d3329c20 100644 --- a/models/delegated_admin_access_details.go +++ b/models/delegated_admin_access_details.go @@ -10,7 +10,7 @@ type DelegatedAdminAccessDetails struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDelegatedAdminAccessDetails instantiates a new DelegatedAdminAccessDetails and sets the default values. +// NewDelegatedAdminAccessDetails instantiates a new delegatedAdminAccessDetails and sets the default values. func NewDelegatedAdminAccessDetails()(*DelegatedAdminAccessDetails) { m := &DelegatedAdminAccessDetails{ } diff --git a/models/delegated_admin_customer.go b/models/delegated_admin_customer.go index 6ee9d0294c7..dfac4f9307f 100644 --- a/models/delegated_admin_customer.go +++ b/models/delegated_admin_customer.go @@ -7,8 +7,10 @@ import ( // DelegatedAdminCustomer type DelegatedAdminCustomer struct { Entity + // The OdataType property + OdataType *string } -// NewDelegatedAdminCustomer instantiates a new DelegatedAdminCustomer and sets the default values. +// NewDelegatedAdminCustomer instantiates a new delegatedAdminCustomer and sets the default values. func NewDelegatedAdminCustomer()(*DelegatedAdminCustomer) { m := &DelegatedAdminCustomer{ Entity: *NewEntity(), diff --git a/models/delegated_admin_customer_collection_response.go b/models/delegated_admin_customer_collection_response.go index 9b804b628e3..3681b9258e1 100644 --- a/models/delegated_admin_customer_collection_response.go +++ b/models/delegated_admin_customer_collection_response.go @@ -8,7 +8,7 @@ import ( type DelegatedAdminCustomerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDelegatedAdminCustomerCollectionResponse instantiates a new DelegatedAdminCustomerCollectionResponse and sets the default values. +// NewDelegatedAdminCustomerCollectionResponse instantiates a new delegatedAdminCustomerCollectionResponse and sets the default values. func NewDelegatedAdminCustomerCollectionResponse()(*DelegatedAdminCustomerCollectionResponse) { m := &DelegatedAdminCustomerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/delegated_admin_relationship.go b/models/delegated_admin_relationship.go index dae71250b81..fe71a86addd 100644 --- a/models/delegated_admin_relationship.go +++ b/models/delegated_admin_relationship.go @@ -9,7 +9,7 @@ import ( type DelegatedAdminRelationship struct { Entity } -// NewDelegatedAdminRelationship instantiates a new DelegatedAdminRelationship and sets the default values. +// NewDelegatedAdminRelationship instantiates a new delegatedAdminRelationship and sets the default values. func NewDelegatedAdminRelationship()(*DelegatedAdminRelationship) { m := &DelegatedAdminRelationship{ Entity: *NewEntity(), @@ -207,6 +207,16 @@ func (m *DelegatedAdminRelationship) GetFieldDeserializers()(map[string]func(i87 } 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["operations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateDelegatedAdminRelationshipOperationFromDiscriminatorValue) if err != nil { @@ -262,6 +272,17 @@ func (m *DelegatedAdminRelationship) GetLastModifiedDateTime()(*i336074805fc8539 } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DelegatedAdminRelationship) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOperations gets the operations property value. The long running operations associated with the delegated admin relationship. func (m *DelegatedAdminRelationship) GetOperations()([]DelegatedAdminRelationshipOperationable) { val, err := m.GetBackingStore().Get("operations") @@ -361,6 +382,12 @@ func (m *DelegatedAdminRelationship) Serialize(writer i878a80d2330e89d26896388a3 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetOperations() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOperations())) for i, v := range m.GetOperations() { @@ -457,6 +484,13 @@ func (m *DelegatedAdminRelationship) SetLastModifiedDateTime(value *i336074805fc panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DelegatedAdminRelationship) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOperations sets the operations property value. The long running operations associated with the delegated admin relationship. func (m *DelegatedAdminRelationship) SetOperations(value []DelegatedAdminRelationshipOperationable)() { err := m.GetBackingStore().Set("operations", value) @@ -491,6 +525,7 @@ type DelegatedAdminRelationshipable interface { GetDuration()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetOperations()([]DelegatedAdminRelationshipOperationable) GetRequests()([]DelegatedAdminRelationshipRequestable) GetStatus()(*DelegatedAdminRelationshipStatus) @@ -503,6 +538,7 @@ type DelegatedAdminRelationshipable interface { SetDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetOperations(value []DelegatedAdminRelationshipOperationable)() SetRequests(value []DelegatedAdminRelationshipRequestable)() SetStatus(value *DelegatedAdminRelationshipStatus)() diff --git a/models/delegated_admin_relationship_collection_response.go b/models/delegated_admin_relationship_collection_response.go index c74619bf752..15d052e73bd 100644 --- a/models/delegated_admin_relationship_collection_response.go +++ b/models/delegated_admin_relationship_collection_response.go @@ -8,7 +8,7 @@ import ( type DelegatedAdminRelationshipCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDelegatedAdminRelationshipCollectionResponse instantiates a new DelegatedAdminRelationshipCollectionResponse and sets the default values. +// NewDelegatedAdminRelationshipCollectionResponse instantiates a new delegatedAdminRelationshipCollectionResponse and sets the default values. func NewDelegatedAdminRelationshipCollectionResponse()(*DelegatedAdminRelationshipCollectionResponse) { m := &DelegatedAdminRelationshipCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/delegated_admin_relationship_operation.go b/models/delegated_admin_relationship_operation.go index 962adca6ee8..1485b65c994 100644 --- a/models/delegated_admin_relationship_operation.go +++ b/models/delegated_admin_relationship_operation.go @@ -8,6 +8,8 @@ import ( // DelegatedAdminRelationshipOperation type DelegatedAdminRelationshipOperation struct { Entity + // The OdataType property + OdataType *string } // NewDelegatedAdminRelationshipOperation instantiates a new delegatedAdminRelationshipOperation and sets the default values. func NewDelegatedAdminRelationshipOperation()(*DelegatedAdminRelationshipOperation) { diff --git a/models/delegated_admin_relationship_operation_collection_response.go b/models/delegated_admin_relationship_operation_collection_response.go index 6059430dfab..3cb7468adb0 100644 --- a/models/delegated_admin_relationship_operation_collection_response.go +++ b/models/delegated_admin_relationship_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type DelegatedAdminRelationshipOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDelegatedAdminRelationshipOperationCollectionResponse instantiates a new DelegatedAdminRelationshipOperationCollectionResponse and sets the default values. +// NewDelegatedAdminRelationshipOperationCollectionResponse instantiates a new delegatedAdminRelationshipOperationCollectionResponse and sets the default values. func NewDelegatedAdminRelationshipOperationCollectionResponse()(*DelegatedAdminRelationshipOperationCollectionResponse) { m := &DelegatedAdminRelationshipOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/delegated_admin_relationship_request.go b/models/delegated_admin_relationship_request.go index 6aa9f1c095f..0c97cc8cffa 100644 --- a/models/delegated_admin_relationship_request.go +++ b/models/delegated_admin_relationship_request.go @@ -8,6 +8,8 @@ import ( // DelegatedAdminRelationshipRequest type DelegatedAdminRelationshipRequest struct { Entity + // The OdataType property + OdataType *string } // NewDelegatedAdminRelationshipRequest instantiates a new delegatedAdminRelationshipRequest and sets the default values. func NewDelegatedAdminRelationshipRequest()(*DelegatedAdminRelationshipRequest) { diff --git a/models/delegated_admin_relationship_request_collection_response.go b/models/delegated_admin_relationship_request_collection_response.go index 588494b9869..df3435fe28f 100644 --- a/models/delegated_admin_relationship_request_collection_response.go +++ b/models/delegated_admin_relationship_request_collection_response.go @@ -8,7 +8,7 @@ import ( type DelegatedAdminRelationshipRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDelegatedAdminRelationshipRequestCollectionResponse instantiates a new DelegatedAdminRelationshipRequestCollectionResponse and sets the default values. +// NewDelegatedAdminRelationshipRequestCollectionResponse instantiates a new delegatedAdminRelationshipRequestCollectionResponse and sets the default values. func NewDelegatedAdminRelationshipRequestCollectionResponse()(*DelegatedAdminRelationshipRequestCollectionResponse) { m := &DelegatedAdminRelationshipRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/delegated_admin_service_management_detail.go b/models/delegated_admin_service_management_detail.go index 67e1b4188bd..c5f7d0a1422 100644 --- a/models/delegated_admin_service_management_detail.go +++ b/models/delegated_admin_service_management_detail.go @@ -7,6 +7,8 @@ import ( // DelegatedAdminServiceManagementDetail type DelegatedAdminServiceManagementDetail struct { Entity + // The OdataType property + OdataType *string } // NewDelegatedAdminServiceManagementDetail instantiates a new delegatedAdminServiceManagementDetail and sets the default values. func NewDelegatedAdminServiceManagementDetail()(*DelegatedAdminServiceManagementDetail) { diff --git a/models/delegated_admin_service_management_detail_collection_response.go b/models/delegated_admin_service_management_detail_collection_response.go index 48bb74766c2..1a845f8df0a 100644 --- a/models/delegated_admin_service_management_detail_collection_response.go +++ b/models/delegated_admin_service_management_detail_collection_response.go @@ -8,7 +8,7 @@ import ( type DelegatedAdminServiceManagementDetailCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDelegatedAdminServiceManagementDetailCollectionResponse instantiates a new DelegatedAdminServiceManagementDetailCollectionResponse and sets the default values. +// NewDelegatedAdminServiceManagementDetailCollectionResponse instantiates a new delegatedAdminServiceManagementDetailCollectionResponse and sets the default values. func NewDelegatedAdminServiceManagementDetailCollectionResponse()(*DelegatedAdminServiceManagementDetailCollectionResponse) { m := &DelegatedAdminServiceManagementDetailCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/delegated_permission_classification.go b/models/delegated_permission_classification.go index 4bf7a5d53fe..b0c5ca4c589 100644 --- a/models/delegated_permission_classification.go +++ b/models/delegated_permission_classification.go @@ -7,6 +7,8 @@ import ( // DelegatedPermissionClassification type DelegatedPermissionClassification struct { Entity + // The OdataType property + OdataType *string } // NewDelegatedPermissionClassification instantiates a new delegatedPermissionClassification and sets the default values. func NewDelegatedPermissionClassification()(*DelegatedPermissionClassification) { diff --git a/models/delegated_permission_classification_collection_response.go b/models/delegated_permission_classification_collection_response.go index 2c34fbb7ccb..d4dd7a2abe8 100644 --- a/models/delegated_permission_classification_collection_response.go +++ b/models/delegated_permission_classification_collection_response.go @@ -8,7 +8,7 @@ import ( type DelegatedPermissionClassificationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDelegatedPermissionClassificationCollectionResponse instantiates a new DelegatedPermissionClassificationCollectionResponse and sets the default values. +// NewDelegatedPermissionClassificationCollectionResponse instantiates a new delegatedPermissionClassificationCollectionResponse and sets the default values. func NewDelegatedPermissionClassificationCollectionResponse()(*DelegatedPermissionClassificationCollectionResponse) { m := &DelegatedPermissionClassificationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/delete_user_from_shared_apple_device_action_result.go b/models/delete_user_from_shared_apple_device_action_result.go index 67afdebd11c..4de103c30e4 100644 --- a/models/delete_user_from_shared_apple_device_action_result.go +++ b/models/delete_user_from_shared_apple_device_action_result.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeleteUserFromSharedAppleDeviceActionResult +// DeleteUserFromSharedAppleDeviceActionResult delete user from shared apple device action result type DeleteUserFromSharedAppleDeviceActionResult struct { DeviceActionResult } -// NewDeleteUserFromSharedAppleDeviceActionResult instantiates a new DeleteUserFromSharedAppleDeviceActionResult and sets the default values. +// NewDeleteUserFromSharedAppleDeviceActionResult instantiates a new deleteUserFromSharedAppleDeviceActionResult and sets the default values. func NewDeleteUserFromSharedAppleDeviceActionResult()(*DeleteUserFromSharedAppleDeviceActionResult) { m := &DeleteUserFromSharedAppleDeviceActionResult{ DeviceActionResult: *NewDeviceActionResult(), @@ -22,6 +22,16 @@ func CreateDeleteUserFromSharedAppleDeviceActionResultFromDiscriminatorValue(par // GetFieldDeserializers the deserialization information for the current model func (m *DeleteUserFromSharedAppleDeviceActionResult) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceActionResult.GetFieldDeserializers() + 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["userPrincipalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -34,6 +44,17 @@ func (m *DeleteUserFromSharedAppleDeviceActionResult) GetFieldDeserializers()(ma } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeleteUserFromSharedAppleDeviceActionResult) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUserPrincipalName gets the userPrincipalName property value. User principal name of the user to be deleted func (m *DeleteUserFromSharedAppleDeviceActionResult) GetUserPrincipalName()(*string) { val, err := m.GetBackingStore().Get("userPrincipalName") @@ -51,6 +72,12 @@ func (m *DeleteUserFromSharedAppleDeviceActionResult) Serialize(writer i878a80d2 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("userPrincipalName", m.GetUserPrincipalName()) if err != nil { @@ -59,6 +86,13 @@ func (m *DeleteUserFromSharedAppleDeviceActionResult) Serialize(writer i878a80d2 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeleteUserFromSharedAppleDeviceActionResult) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUserPrincipalName sets the userPrincipalName property value. User principal name of the user to be deleted func (m *DeleteUserFromSharedAppleDeviceActionResult) SetUserPrincipalName(value *string)() { err := m.GetBackingStore().Set("userPrincipalName", value) @@ -70,6 +104,8 @@ func (m *DeleteUserFromSharedAppleDeviceActionResult) SetUserPrincipalName(value type DeleteUserFromSharedAppleDeviceActionResultable interface { DeviceActionResultable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUserPrincipalName()(*string) + SetOdataType(value *string)() SetUserPrincipalName(value *string)() } diff --git a/models/deleted_chat.go b/models/deleted_chat.go index cec57a4abfa..60d0d7680c9 100644 --- a/models/deleted_chat.go +++ b/models/deleted_chat.go @@ -7,8 +7,10 @@ import ( // DeletedChat type DeletedChat struct { Entity + // The OdataType property + OdataType *string } -// NewDeletedChat instantiates a new DeletedChat and sets the default values. +// NewDeletedChat instantiates a new deletedChat and sets the default values. func NewDeletedChat()(*DeletedChat) { m := &DeletedChat{ Entity: *NewEntity(), diff --git a/models/deleted_chat_collection_response.go b/models/deleted_chat_collection_response.go index a158817a799..8b99ad4ce32 100644 --- a/models/deleted_chat_collection_response.go +++ b/models/deleted_chat_collection_response.go @@ -8,7 +8,7 @@ import ( type DeletedChatCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeletedChatCollectionResponse instantiates a new DeletedChatCollectionResponse and sets the default values. +// NewDeletedChatCollectionResponse instantiates a new deletedChatCollectionResponse and sets the default values. func NewDeletedChatCollectionResponse()(*DeletedChatCollectionResponse) { m := &DeletedChatCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/deleted_item_container.go b/models/deleted_item_container.go index b41cf5e8ac3..eb4fbe0fd51 100644 --- a/models/deleted_item_container.go +++ b/models/deleted_item_container.go @@ -7,8 +7,10 @@ import ( // DeletedItemContainer type DeletedItemContainer struct { Entity + // The OdataType property + OdataType *string } -// NewDeletedItemContainer instantiates a new DeletedItemContainer and sets the default values. +// NewDeletedItemContainer instantiates a new deletedItemContainer and sets the default values. func NewDeletedItemContainer()(*DeletedItemContainer) { m := &DeletedItemContainer{ Entity: *NewEntity(), diff --git a/models/deleted_team.go b/models/deleted_team.go index 4a2b9fbd780..9761ef2dfe1 100644 --- a/models/deleted_team.go +++ b/models/deleted_team.go @@ -7,8 +7,10 @@ import ( // DeletedTeam type DeletedTeam struct { Entity + // The OdataType property + OdataType *string } -// NewDeletedTeam instantiates a new DeletedTeam and sets the default values. +// NewDeletedTeam instantiates a new deletedTeam and sets the default values. func NewDeletedTeam()(*DeletedTeam) { m := &DeletedTeam{ Entity: *NewEntity(), diff --git a/models/deleted_team_collection_response.go b/models/deleted_team_collection_response.go index 637640963d6..d977d4b618a 100644 --- a/models/deleted_team_collection_response.go +++ b/models/deleted_team_collection_response.go @@ -8,7 +8,7 @@ import ( type DeletedTeamCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeletedTeamCollectionResponse instantiates a new DeletedTeamCollectionResponse and sets the default values. +// NewDeletedTeamCollectionResponse instantiates a new deletedTeamCollectionResponse and sets the default values. func NewDeletedTeamCollectionResponse()(*DeletedTeamCollectionResponse) { m := &DeletedTeamCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/delivery_optimization_bandwidth_absolute.go b/models/delivery_optimization_bandwidth_absolute.go index ff45eebfd71..69b2e9fafa1 100644 --- a/models/delivery_optimization_bandwidth_absolute.go +++ b/models/delivery_optimization_bandwidth_absolute.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeliveryOptimizationBandwidthAbsolute +// DeliveryOptimizationBandwidthAbsolute bandwidth limits in kilobytes per second. type DeliveryOptimizationBandwidthAbsolute struct { DeliveryOptimizationBandwidth } -// NewDeliveryOptimizationBandwidthAbsolute instantiates a new DeliveryOptimizationBandwidthAbsolute and sets the default values. +// NewDeliveryOptimizationBandwidthAbsolute instantiates a new deliveryOptimizationBandwidthAbsolute and sets the default values. func NewDeliveryOptimizationBandwidthAbsolute()(*DeliveryOptimizationBandwidthAbsolute) { m := &DeliveryOptimizationBandwidthAbsolute{ DeliveryOptimizationBandwidth: *NewDeliveryOptimizationBandwidth(), @@ -44,6 +44,16 @@ func (m *DeliveryOptimizationBandwidthAbsolute) GetFieldDeserializers()(map[stri } 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 } // GetMaximumDownloadBandwidthInKilobytesPerSecond gets the maximumDownloadBandwidthInKilobytesPerSecond property value. Specifies the maximum download bandwidth in KiloBytes/second that the device can use across all concurrent download activities using Delivery Optimization. Valid values 0 to 4294967295 @@ -68,6 +78,17 @@ func (m *DeliveryOptimizationBandwidthAbsolute) GetMaximumUploadBandwidthInKilob } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationBandwidthAbsolute) 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 *DeliveryOptimizationBandwidthAbsolute) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeliveryOptimizationBandwidth.Serialize(writer) @@ -86,6 +107,12 @@ func (m *DeliveryOptimizationBandwidthAbsolute) Serialize(writer i878a80d2330e89 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetMaximumDownloadBandwidthInKilobytesPerSecond sets the maximumDownloadBandwidthInKilobytesPerSecond property value. Specifies the maximum download bandwidth in KiloBytes/second that the device can use across all concurrent download activities using Delivery Optimization. Valid values 0 to 4294967295 @@ -102,12 +129,21 @@ func (m *DeliveryOptimizationBandwidthAbsolute) SetMaximumUploadBandwidthInKilob panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationBandwidthAbsolute) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeliveryOptimizationBandwidthAbsoluteable type DeliveryOptimizationBandwidthAbsoluteable interface { DeliveryOptimizationBandwidthable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetMaximumDownloadBandwidthInKilobytesPerSecond()(*int64) GetMaximumUploadBandwidthInKilobytesPerSecond()(*int64) + GetOdataType()(*string) SetMaximumDownloadBandwidthInKilobytesPerSecond(value *int64)() SetMaximumUploadBandwidthInKilobytesPerSecond(value *int64)() + SetOdataType(value *string)() } diff --git a/models/delivery_optimization_bandwidth_hours_with_percentage.go b/models/delivery_optimization_bandwidth_hours_with_percentage.go index fd27979e1ab..232ea2a86cd 100644 --- a/models/delivery_optimization_bandwidth_hours_with_percentage.go +++ b/models/delivery_optimization_bandwidth_hours_with_percentage.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeliveryOptimizationBandwidthHoursWithPercentage +// DeliveryOptimizationBandwidthHoursWithPercentage bandwidth limit as a percentage with business hours. type DeliveryOptimizationBandwidthHoursWithPercentage struct { DeliveryOptimizationBandwidth } -// NewDeliveryOptimizationBandwidthHoursWithPercentage instantiates a new DeliveryOptimizationBandwidthHoursWithPercentage and sets the default values. +// NewDeliveryOptimizationBandwidthHoursWithPercentage instantiates a new deliveryOptimizationBandwidthHoursWithPercentage and sets the default values. func NewDeliveryOptimizationBandwidthHoursWithPercentage()(*DeliveryOptimizationBandwidthHoursWithPercentage) { m := &DeliveryOptimizationBandwidthHoursWithPercentage{ DeliveryOptimizationBandwidth: *NewDeliveryOptimizationBandwidth(), @@ -66,8 +66,29 @@ func (m *DeliveryOptimizationBandwidthHoursWithPercentage) GetFieldDeserializers } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationBandwidthHoursWithPercentage) 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 *DeliveryOptimizationBandwidthHoursWithPercentage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeliveryOptimizationBandwidth.Serialize(writer) @@ -86,6 +107,12 @@ func (m *DeliveryOptimizationBandwidthHoursWithPercentage) Serialize(writer i878 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetBandwidthBackgroundPercentageHours sets the bandwidthBackgroundPercentageHours property value. Background download percentage hours. @@ -102,12 +129,21 @@ func (m *DeliveryOptimizationBandwidthHoursWithPercentage) SetBandwidthForegroun panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationBandwidthHoursWithPercentage) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeliveryOptimizationBandwidthHoursWithPercentageable type DeliveryOptimizationBandwidthHoursWithPercentageable interface { DeliveryOptimizationBandwidthable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBandwidthBackgroundPercentageHours()(DeliveryOptimizationBandwidthBusinessHoursLimitable) GetBandwidthForegroundPercentageHours()(DeliveryOptimizationBandwidthBusinessHoursLimitable) + GetOdataType()(*string) SetBandwidthBackgroundPercentageHours(value DeliveryOptimizationBandwidthBusinessHoursLimitable)() SetBandwidthForegroundPercentageHours(value DeliveryOptimizationBandwidthBusinessHoursLimitable)() + SetOdataType(value *string)() } diff --git a/models/delivery_optimization_bandwidth_percentage.go b/models/delivery_optimization_bandwidth_percentage.go index e450fdf5630..e086e057233 100644 --- a/models/delivery_optimization_bandwidth_percentage.go +++ b/models/delivery_optimization_bandwidth_percentage.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeliveryOptimizationBandwidthPercentage +// DeliveryOptimizationBandwidthPercentage bandwidth limits specified as a percentage. type DeliveryOptimizationBandwidthPercentage struct { DeliveryOptimizationBandwidth } -// NewDeliveryOptimizationBandwidthPercentage instantiates a new DeliveryOptimizationBandwidthPercentage and sets the default values. +// NewDeliveryOptimizationBandwidthPercentage instantiates a new deliveryOptimizationBandwidthPercentage and sets the default values. func NewDeliveryOptimizationBandwidthPercentage()(*DeliveryOptimizationBandwidthPercentage) { m := &DeliveryOptimizationBandwidthPercentage{ DeliveryOptimizationBandwidth: *NewDeliveryOptimizationBandwidth(), @@ -44,6 +44,16 @@ func (m *DeliveryOptimizationBandwidthPercentage) GetFieldDeserializers()(map[st } 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 } // GetMaximumBackgroundBandwidthPercentage gets the maximumBackgroundBandwidthPercentage property value. Specifies the maximum background download bandwidth that Delivery Optimization uses across all concurrent download activities as a percentage of available download bandwidth (0-100). Valid values 0 to 100 @@ -68,6 +78,17 @@ func (m *DeliveryOptimizationBandwidthPercentage) GetMaximumForegroundBandwidthP } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationBandwidthPercentage) 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 *DeliveryOptimizationBandwidthPercentage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeliveryOptimizationBandwidth.Serialize(writer) @@ -86,6 +107,12 @@ func (m *DeliveryOptimizationBandwidthPercentage) Serialize(writer i878a80d2330e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetMaximumBackgroundBandwidthPercentage sets the maximumBackgroundBandwidthPercentage property value. Specifies the maximum background download bandwidth that Delivery Optimization uses across all concurrent download activities as a percentage of available download bandwidth (0-100). Valid values 0 to 100 @@ -102,12 +129,21 @@ func (m *DeliveryOptimizationBandwidthPercentage) SetMaximumForegroundBandwidthP panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationBandwidthPercentage) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeliveryOptimizationBandwidthPercentageable type DeliveryOptimizationBandwidthPercentageable interface { DeliveryOptimizationBandwidthable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetMaximumBackgroundBandwidthPercentage()(*int32) GetMaximumForegroundBandwidthPercentage()(*int32) + GetOdataType()(*string) SetMaximumBackgroundBandwidthPercentage(value *int32)() SetMaximumForegroundBandwidthPercentage(value *int32)() + SetOdataType(value *string)() } diff --git a/models/delivery_optimization_group_id_custom.go b/models/delivery_optimization_group_id_custom.go index 68a620786f7..e868e02cf4e 100644 --- a/models/delivery_optimization_group_id_custom.go +++ b/models/delivery_optimization_group_id_custom.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeliveryOptimizationGroupIdCustom +// DeliveryOptimizationGroupIdCustom custom group id type type DeliveryOptimizationGroupIdCustom struct { DeliveryOptimizationGroupIdSource } -// NewDeliveryOptimizationGroupIdCustom instantiates a new DeliveryOptimizationGroupIdCustom and sets the default values. +// NewDeliveryOptimizationGroupIdCustom instantiates a new deliveryOptimizationGroupIdCustom and sets the default values. func NewDeliveryOptimizationGroupIdCustom()(*DeliveryOptimizationGroupIdCustom) { m := &DeliveryOptimizationGroupIdCustom{ DeliveryOptimizationGroupIdSource: *NewDeliveryOptimizationGroupIdSource(), @@ -34,6 +34,16 @@ func (m *DeliveryOptimizationGroupIdCustom) GetFieldDeserializers()(map[string]f } 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 } // GetGroupIdCustom gets the groupIdCustom property value. Specifies an arbitrary group ID that the device belongs to @@ -47,6 +57,17 @@ func (m *DeliveryOptimizationGroupIdCustom) GetGroupIdCustom()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationGroupIdCustom) 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 *DeliveryOptimizationGroupIdCustom) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeliveryOptimizationGroupIdSource.Serialize(writer) @@ -59,6 +80,12 @@ func (m *DeliveryOptimizationGroupIdCustom) Serialize(writer i878a80d2330e89d268 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetGroupIdCustom sets the groupIdCustom property value. Specifies an arbitrary group ID that the device belongs to @@ -68,10 +95,19 @@ func (m *DeliveryOptimizationGroupIdCustom) SetGroupIdCustom(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationGroupIdCustom) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeliveryOptimizationGroupIdCustomable type DeliveryOptimizationGroupIdCustomable interface { DeliveryOptimizationGroupIdSourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetGroupIdCustom()(*string) + GetOdataType()(*string) SetGroupIdCustom(value *string)() + SetOdataType(value *string)() } diff --git a/models/delivery_optimization_group_id_source_options.go b/models/delivery_optimization_group_id_source_options.go index 2b5339ee0bb..ba9f7c15013 100644 --- a/models/delivery_optimization_group_id_source_options.go +++ b/models/delivery_optimization_group_id_source_options.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeliveryOptimizationGroupIdSourceOptions +// DeliveryOptimizationGroupIdSourceOptions group id options type type DeliveryOptimizationGroupIdSourceOptions struct { DeliveryOptimizationGroupIdSource } -// NewDeliveryOptimizationGroupIdSourceOptions instantiates a new DeliveryOptimizationGroupIdSourceOptions and sets the default values. +// NewDeliveryOptimizationGroupIdSourceOptions instantiates a new deliveryOptimizationGroupIdSourceOptions and sets the default values. func NewDeliveryOptimizationGroupIdSourceOptions()(*DeliveryOptimizationGroupIdSourceOptions) { m := &DeliveryOptimizationGroupIdSourceOptions{ DeliveryOptimizationGroupIdSource: *NewDeliveryOptimizationGroupIdSource(), @@ -34,6 +34,16 @@ func (m *DeliveryOptimizationGroupIdSourceOptions) GetFieldDeserializers()(map[s } 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 } // GetGroupIdSourceOption gets the groupIdSourceOption property value. Possible values for the DeliveryOptimizationGroupIdOptionsType setting. @@ -47,6 +57,17 @@ func (m *DeliveryOptimizationGroupIdSourceOptions) GetGroupIdSourceOption()(*Del } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationGroupIdSourceOptions) 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 *DeliveryOptimizationGroupIdSourceOptions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeliveryOptimizationGroupIdSource.Serialize(writer) @@ -60,6 +81,12 @@ func (m *DeliveryOptimizationGroupIdSourceOptions) Serialize(writer i878a80d2330 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetGroupIdSourceOption sets the groupIdSourceOption property value. Possible values for the DeliveryOptimizationGroupIdOptionsType setting. @@ -69,10 +96,19 @@ func (m *DeliveryOptimizationGroupIdSourceOptions) SetGroupIdSourceOption(value panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationGroupIdSourceOptions) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeliveryOptimizationGroupIdSourceOptionsable type DeliveryOptimizationGroupIdSourceOptionsable interface { DeliveryOptimizationGroupIdSourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetGroupIdSourceOption()(*DeliveryOptimizationGroupIdOptionsType) + GetOdataType()(*string) SetGroupIdSourceOption(value *DeliveryOptimizationGroupIdOptionsType)() + SetOdataType(value *string)() } diff --git a/models/delivery_optimization_max_cache_size_absolute.go b/models/delivery_optimization_max_cache_size_absolute.go index 696094eb885..7eb52073e67 100644 --- a/models/delivery_optimization_max_cache_size_absolute.go +++ b/models/delivery_optimization_max_cache_size_absolute.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeliveryOptimizationMaxCacheSizeAbsolute +// DeliveryOptimizationMaxCacheSizeAbsolute delivery Optimization max cache size absolute type. type DeliveryOptimizationMaxCacheSizeAbsolute struct { DeliveryOptimizationMaxCacheSize } -// NewDeliveryOptimizationMaxCacheSizeAbsolute instantiates a new DeliveryOptimizationMaxCacheSizeAbsolute and sets the default values. +// NewDeliveryOptimizationMaxCacheSizeAbsolute instantiates a new deliveryOptimizationMaxCacheSizeAbsolute and sets the default values. func NewDeliveryOptimizationMaxCacheSizeAbsolute()(*DeliveryOptimizationMaxCacheSizeAbsolute) { m := &DeliveryOptimizationMaxCacheSizeAbsolute{ DeliveryOptimizationMaxCacheSize: *NewDeliveryOptimizationMaxCacheSize(), @@ -34,6 +34,16 @@ func (m *DeliveryOptimizationMaxCacheSizeAbsolute) GetFieldDeserializers()(map[s } 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 } // GetMaximumCacheSizeInGigabytes gets the maximumCacheSizeInGigabytes property value. Specifies the maximum size in GB of Delivery Optimization cache. Valid values 0 to 4294967295 @@ -47,6 +57,17 @@ func (m *DeliveryOptimizationMaxCacheSizeAbsolute) GetMaximumCacheSizeInGigabyte } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationMaxCacheSizeAbsolute) 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 *DeliveryOptimizationMaxCacheSizeAbsolute) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeliveryOptimizationMaxCacheSize.Serialize(writer) @@ -59,6 +80,12 @@ func (m *DeliveryOptimizationMaxCacheSizeAbsolute) Serialize(writer i878a80d2330 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetMaximumCacheSizeInGigabytes sets the maximumCacheSizeInGigabytes property value. Specifies the maximum size in GB of Delivery Optimization cache. Valid values 0 to 4294967295 @@ -68,10 +95,19 @@ func (m *DeliveryOptimizationMaxCacheSizeAbsolute) SetMaximumCacheSizeInGigabyte panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationMaxCacheSizeAbsolute) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeliveryOptimizationMaxCacheSizeAbsoluteable type DeliveryOptimizationMaxCacheSizeAbsoluteable interface { DeliveryOptimizationMaxCacheSizeable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetMaximumCacheSizeInGigabytes()(*int64) + GetOdataType()(*string) SetMaximumCacheSizeInGigabytes(value *int64)() + SetOdataType(value *string)() } diff --git a/models/delivery_optimization_max_cache_size_percentage.go b/models/delivery_optimization_max_cache_size_percentage.go index a631bfa77ac..31695f685f8 100644 --- a/models/delivery_optimization_max_cache_size_percentage.go +++ b/models/delivery_optimization_max_cache_size_percentage.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeliveryOptimizationMaxCacheSizePercentage +// DeliveryOptimizationMaxCacheSizePercentage delivery Optimization Max cache size percentage types. type DeliveryOptimizationMaxCacheSizePercentage struct { DeliveryOptimizationMaxCacheSize } -// NewDeliveryOptimizationMaxCacheSizePercentage instantiates a new DeliveryOptimizationMaxCacheSizePercentage and sets the default values. +// NewDeliveryOptimizationMaxCacheSizePercentage instantiates a new deliveryOptimizationMaxCacheSizePercentage and sets the default values. func NewDeliveryOptimizationMaxCacheSizePercentage()(*DeliveryOptimizationMaxCacheSizePercentage) { m := &DeliveryOptimizationMaxCacheSizePercentage{ DeliveryOptimizationMaxCacheSize: *NewDeliveryOptimizationMaxCacheSize(), @@ -34,6 +34,16 @@ func (m *DeliveryOptimizationMaxCacheSizePercentage) GetFieldDeserializers()(map } 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 } // GetMaximumCacheSizePercentage gets the maximumCacheSizePercentage property value. Specifies the maximum cache size that Delivery Optimization can utilize, as a percentage of disk size (1-100). Valid values 1 to 100 @@ -47,6 +57,17 @@ func (m *DeliveryOptimizationMaxCacheSizePercentage) GetMaximumCacheSizePercenta } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationMaxCacheSizePercentage) 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 *DeliveryOptimizationMaxCacheSizePercentage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeliveryOptimizationMaxCacheSize.Serialize(writer) @@ -59,6 +80,12 @@ func (m *DeliveryOptimizationMaxCacheSizePercentage) Serialize(writer i878a80d23 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetMaximumCacheSizePercentage sets the maximumCacheSizePercentage property value. Specifies the maximum cache size that Delivery Optimization can utilize, as a percentage of disk size (1-100). Valid values 1 to 100 @@ -68,10 +95,19 @@ func (m *DeliveryOptimizationMaxCacheSizePercentage) SetMaximumCacheSizePercenta panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeliveryOptimizationMaxCacheSizePercentage) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeliveryOptimizationMaxCacheSizePercentageable type DeliveryOptimizationMaxCacheSizePercentageable interface { DeliveryOptimizationMaxCacheSizeable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetMaximumCacheSizePercentage()(*int32) + GetOdataType()(*string) SetMaximumCacheSizePercentage(value *int32)() + SetOdataType(value *string)() } diff --git a/models/delta_participants.go b/models/delta_participants.go index b63bf4e6a9c..09bce666543 100644 --- a/models/delta_participants.go +++ b/models/delta_participants.go @@ -7,8 +7,10 @@ import ( // DeltaParticipants type DeltaParticipants struct { Entity + // The OdataType property + OdataType *string } -// NewDeltaParticipants instantiates a new DeltaParticipants and sets the default values. +// NewDeltaParticipants instantiates a new deltaParticipants and sets the default values. func NewDeltaParticipants()(*DeltaParticipants) { m := &DeltaParticipants{ Entity: *NewEntity(), diff --git a/models/dep_enrollment_base_profile.go b/models/dep_enrollment_base_profile.go index cced1e41823..317cf106468 100644 --- a/models/dep_enrollment_base_profile.go +++ b/models/dep_enrollment_base_profile.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DepEnrollmentBaseProfile +// DepEnrollmentBaseProfile the DepEnrollmentBaseProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP. type DepEnrollmentBaseProfile struct { EnrollmentProfile } -// NewDepEnrollmentBaseProfile instantiates a new DepEnrollmentBaseProfile and sets the default values. +// NewDepEnrollmentBaseProfile instantiates a new depEnrollmentBaseProfile and sets the default values. func NewDepEnrollmentBaseProfile()(*DepEnrollmentBaseProfile) { m := &DepEnrollmentBaseProfile{ EnrollmentProfile: *NewEnrollmentProfile(), diff --git a/models/dep_enrollment_profile.go b/models/dep_enrollment_profile.go index c4a82adcac1..f898469590a 100644 --- a/models/dep_enrollment_profile.go +++ b/models/dep_enrollment_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DepEnrollmentProfile +// DepEnrollmentProfile the depEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP. type DepEnrollmentProfile struct { EnrollmentProfile } -// NewDepEnrollmentProfile instantiates a new DepEnrollmentProfile and sets the default values. +// NewDepEnrollmentProfile instantiates a new depEnrollmentProfile and sets the default values. func NewDepEnrollmentProfile()(*DepEnrollmentProfile) { m := &DepEnrollmentProfile{ EnrollmentProfile: *NewEnrollmentProfile(), diff --git a/models/dep_i_o_s_enrollment_profile.go b/models/dep_i_o_s_enrollment_profile.go index d8a2a5671b5..6864c01c583 100644 --- a/models/dep_i_o_s_enrollment_profile.go +++ b/models/dep_i_o_s_enrollment_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DepIOSEnrollmentProfile +// DepIOSEnrollmentProfile the DepIOSEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile specific to iOS configuration. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP. type DepIOSEnrollmentProfile struct { DepEnrollmentBaseProfile } -// NewDepIOSEnrollmentProfile instantiates a new DepIOSEnrollmentProfile and sets the default values. +// NewDepIOSEnrollmentProfile instantiates a new depIOSEnrollmentProfile and sets the default values. func NewDepIOSEnrollmentProfile()(*DepIOSEnrollmentProfile) { m := &DepIOSEnrollmentProfile{ DepEnrollmentBaseProfile: *NewDepEnrollmentBaseProfile(), diff --git a/models/dep_mac_o_s_enrollment_profile.go b/models/dep_mac_o_s_enrollment_profile.go index 31869b760ab..378d95ff09e 100644 --- a/models/dep_mac_o_s_enrollment_profile.go +++ b/models/dep_mac_o_s_enrollment_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DepMacOSEnrollmentProfile +// DepMacOSEnrollmentProfile the DepMacOSEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile specific to macOS configuration. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP. type DepMacOSEnrollmentProfile struct { DepEnrollmentBaseProfile } -// NewDepMacOSEnrollmentProfile instantiates a new DepMacOSEnrollmentProfile and sets the default values. +// NewDepMacOSEnrollmentProfile instantiates a new depMacOSEnrollmentProfile and sets the default values. func NewDepMacOSEnrollmentProfile()(*DepMacOSEnrollmentProfile) { m := &DepMacOSEnrollmentProfile{ DepEnrollmentBaseProfile: *NewDepEnrollmentBaseProfile(), diff --git a/models/dep_onboarding_setting.go b/models/dep_onboarding_setting.go index 2d4f5772d08..bb036cca686 100644 --- a/models/dep_onboarding_setting.go +++ b/models/dep_onboarding_setting.go @@ -8,6 +8,8 @@ import ( // DepOnboardingSetting the depOnboardingSetting represents an instance of the Apple DEP service being onboarded to Intune. The onboarded service instance manages an Apple Token used to synchronize data between Apple and Intune. type DepOnboardingSetting struct { Entity + // The OdataType property + OdataType *string } // NewDepOnboardingSetting instantiates a new depOnboardingSetting and sets the default values. func NewDepOnboardingSetting()(*DepOnboardingSetting) { diff --git a/models/dep_onboarding_setting_collection_response.go b/models/dep_onboarding_setting_collection_response.go index dd4e3301b98..847cf408f94 100644 --- a/models/dep_onboarding_setting_collection_response.go +++ b/models/dep_onboarding_setting_collection_response.go @@ -8,7 +8,7 @@ import ( type DepOnboardingSettingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDepOnboardingSettingCollectionResponse instantiates a new DepOnboardingSettingCollectionResponse and sets the default values. +// NewDepOnboardingSettingCollectionResponse instantiates a new depOnboardingSettingCollectionResponse and sets the default values. func NewDepOnboardingSettingCollectionResponse()(*DepOnboardingSettingCollectionResponse) { m := &DepOnboardingSettingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/detected_app.go b/models/detected_app.go index 9975175f069..7230a0b7511 100644 --- a/models/detected_app.go +++ b/models/detected_app.go @@ -7,6 +7,8 @@ import ( // DetectedApp a managed or unmanaged app that is installed on a managed device. Unmanaged apps will only appear for devices marked as corporate owned. type DetectedApp struct { Entity + // The OdataType property + OdataType *string } // NewDetectedApp instantiates a new detectedApp and sets the default values. func NewDetectedApp()(*DetectedApp) { diff --git a/models/detected_app_collection_response.go b/models/detected_app_collection_response.go index 50680134b3d..59fe08dadd2 100644 --- a/models/detected_app_collection_response.go +++ b/models/detected_app_collection_response.go @@ -8,7 +8,7 @@ import ( type DetectedAppCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDetectedAppCollectionResponse instantiates a new DetectedAppCollectionResponse and sets the default values. +// NewDetectedAppCollectionResponse instantiates a new detectedAppCollectionResponse and sets the default values. func NewDetectedAppCollectionResponse()(*DetectedAppCollectionResponse) { m := &DetectedAppCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/detected_sensitive_content.go b/models/detected_sensitive_content.go index 118d13589af..8a896f6d914 100644 --- a/models/detected_sensitive_content.go +++ b/models/detected_sensitive_content.go @@ -8,7 +8,7 @@ import ( type DetectedSensitiveContent struct { DetectedSensitiveContentBase } -// NewDetectedSensitiveContent instantiates a new DetectedSensitiveContent and sets the default values. +// NewDetectedSensitiveContent instantiates a new detectedSensitiveContent and sets the default values. func NewDetectedSensitiveContent()(*DetectedSensitiveContent) { m := &DetectedSensitiveContent{ DetectedSensitiveContentBase: *NewDetectedSensitiveContentBase(), @@ -104,6 +104,16 @@ func (m *DetectedSensitiveContent) GetFieldDeserializers()(map[string]func(i878a } 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["scope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseSensitiveTypeScope) if err != nil { @@ -137,6 +147,17 @@ func (m *DetectedSensitiveContent) GetMatches()([]SensitiveContentLocationable) } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DetectedSensitiveContent) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetScope gets the scope property value. The scope property func (m *DetectedSensitiveContent) GetScope()(*SensitiveTypeScope) { val, err := m.GetBackingStore().Get("scope") @@ -196,6 +217,12 @@ func (m *DetectedSensitiveContent) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetScope() != nil { cast := (*m.GetScope()).String() err = writer.WriteStringValue("scope", &cast) @@ -233,6 +260,13 @@ func (m *DetectedSensitiveContent) SetMatches(value []SensitiveContentLocationab panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DetectedSensitiveContent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetScope sets the scope property value. The scope property func (m *DetectedSensitiveContent) SetScope(value *SensitiveTypeScope)() { err := m.GetBackingStore().Set("scope", value) @@ -254,11 +288,13 @@ type DetectedSensitiveContentable interface { GetClassificationAttributes()([]ClassificationAttributeable) GetClassificationMethod()(*ClassificationMethod) GetMatches()([]SensitiveContentLocationable) + GetOdataType()(*string) GetScope()(*SensitiveTypeScope) GetSensitiveTypeSource()(*SensitiveTypeSource) SetClassificationAttributes(value []ClassificationAttributeable)() SetClassificationMethod(value *ClassificationMethod)() SetMatches(value []SensitiveContentLocationable)() + SetOdataType(value *string)() SetScope(value *SensitiveTypeScope)() SetSensitiveTypeSource(value *SensitiveTypeSource)() } diff --git a/models/device.go b/models/device.go index 5314693420d..90a60002d53 100644 --- a/models/device.go +++ b/models/device.go @@ -9,7 +9,7 @@ import ( type Device struct { DirectoryObject } -// NewDevice instantiates a new Device and sets the default values. +// NewDevice instantiates a new device and sets the default values. func NewDevice()(*Device) { m := &Device{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/device_and_app_management_assignment_filter.go b/models/device_and_app_management_assignment_filter.go index fdffcf79cbc..3b5aa6e756c 100644 --- a/models/device_and_app_management_assignment_filter.go +++ b/models/device_and_app_management_assignment_filter.go @@ -8,6 +8,8 @@ import ( // DeviceAndAppManagementAssignmentFilter a class containing the properties used for Assignment Filter. type DeviceAndAppManagementAssignmentFilter struct { Entity + // The OdataType property + OdataType *string } // NewDeviceAndAppManagementAssignmentFilter instantiates a new deviceAndAppManagementAssignmentFilter and sets the default values. func NewDeviceAndAppManagementAssignmentFilter()(*DeviceAndAppManagementAssignmentFilter) { diff --git a/models/device_and_app_management_assignment_filter_collection_response.go b/models/device_and_app_management_assignment_filter_collection_response.go index 145d8450e5b..6df33620f48 100644 --- a/models/device_and_app_management_assignment_filter_collection_response.go +++ b/models/device_and_app_management_assignment_filter_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceAndAppManagementAssignmentFilterCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceAndAppManagementAssignmentFilterCollectionResponse instantiates a new DeviceAndAppManagementAssignmentFilterCollectionResponse and sets the default values. +// NewDeviceAndAppManagementAssignmentFilterCollectionResponse instantiates a new deviceAndAppManagementAssignmentFilterCollectionResponse and sets the default values. func NewDeviceAndAppManagementAssignmentFilterCollectionResponse()(*DeviceAndAppManagementAssignmentFilterCollectionResponse) { m := &DeviceAndAppManagementAssignmentFilterCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_and_app_management_role_assignment.go b/models/device_and_app_management_role_assignment.go index f171d2dad30..a8bc6580b82 100644 --- a/models/device_and_app_management_role_assignment.go +++ b/models/device_and_app_management_role_assignment.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceAndAppManagementRoleAssignment +// DeviceAndAppManagementRoleAssignment the Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles. type DeviceAndAppManagementRoleAssignment struct { RoleAssignment } -// NewDeviceAndAppManagementRoleAssignment instantiates a new DeviceAndAppManagementRoleAssignment and sets the default values. +// NewDeviceAndAppManagementRoleAssignment instantiates a new deviceAndAppManagementRoleAssignment and sets the default values. func NewDeviceAndAppManagementRoleAssignment()(*DeviceAndAppManagementRoleAssignment) { m := &DeviceAndAppManagementRoleAssignment{ RoleAssignment: *NewRoleAssignment(), diff --git a/models/device_and_app_management_role_assignment_collection_response.go b/models/device_and_app_management_role_assignment_collection_response.go index b775c2197ff..0d60a2aeaa8 100644 --- a/models/device_and_app_management_role_assignment_collection_response.go +++ b/models/device_and_app_management_role_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceAndAppManagementRoleAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceAndAppManagementRoleAssignmentCollectionResponse instantiates a new DeviceAndAppManagementRoleAssignmentCollectionResponse and sets the default values. +// NewDeviceAndAppManagementRoleAssignmentCollectionResponse instantiates a new deviceAndAppManagementRoleAssignmentCollectionResponse and sets the default values. func NewDeviceAndAppManagementRoleAssignmentCollectionResponse()(*DeviceAndAppManagementRoleAssignmentCollectionResponse) { m := &DeviceAndAppManagementRoleAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_and_app_management_role_definition.go b/models/device_and_app_management_role_definition.go index ac50328d9a4..a88d5d7de35 100644 --- a/models/device_and_app_management_role_definition.go +++ b/models/device_and_app_management_role_definition.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceAndAppManagementRoleDefinition +// DeviceAndAppManagementRoleDefinition the Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role. type DeviceAndAppManagementRoleDefinition struct { RoleDefinition } -// NewDeviceAndAppManagementRoleDefinition instantiates a new DeviceAndAppManagementRoleDefinition and sets the default values. +// NewDeviceAndAppManagementRoleDefinition instantiates a new deviceAndAppManagementRoleDefinition and sets the default values. func NewDeviceAndAppManagementRoleDefinition()(*DeviceAndAppManagementRoleDefinition) { m := &DeviceAndAppManagementRoleDefinition{ RoleDefinition: *NewRoleDefinition(), diff --git a/models/device_app_management.go b/models/device_app_management.go index 9c298410297..516b8450d04 100644 --- a/models/device_app_management.go +++ b/models/device_app_management.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceAppManagement +// DeviceAppManagement singleton entity that acts as a container for all device app management functionality. type DeviceAppManagement struct { Entity } -// NewDeviceAppManagement instantiates a new DeviceAppManagement and sets the default values. +// NewDeviceAppManagement instantiates a new deviceAppManagement and sets the default values. func NewDeviceAppManagement()(*DeviceAppManagement) { m := &DeviceAppManagement{ Entity: *NewEntity(), @@ -357,6 +357,16 @@ func (m *DeviceAppManagement) GetFieldDeserializers()(map[string]func(i878a80d23 } 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["policySets"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreatePolicySetFromDiscriminatorValue) if err != nil { @@ -683,6 +693,17 @@ func (m *DeviceAppManagement) GetMobileApps()([]MobileAppable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceAppManagement) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPolicySets gets the policySets property value. The PolicySet of Policies and Applications func (m *DeviceAppManagement) GetPolicySets()([]PolicySetable) { val, err := m.GetBackingStore().Get("policySets") @@ -1010,6 +1031,12 @@ func (m *DeviceAppManagement) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetPolicySets() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetPolicySets())) for i, v := range m.GetPolicySets() { @@ -1260,6 +1287,13 @@ func (m *DeviceAppManagement) SetMobileApps(value []MobileAppable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceAppManagement) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPolicySets sets the policySets property value. The PolicySet of Policies and Applications func (m *DeviceAppManagement) SetPolicySets(value []PolicySetable)() { err := m.GetBackingStore().Set("policySets", value) @@ -1354,6 +1388,7 @@ type DeviceAppManagementable interface { GetMobileAppCategories()([]MobileAppCategoryable) GetMobileAppConfigurations()([]ManagedDeviceMobileAppConfigurationable) GetMobileApps()([]MobileAppable) + GetOdataType()(*string) GetPolicySets()([]PolicySetable) GetSymantecCodeSigningCertificate()(SymantecCodeSigningCertificateable) GetTargetedManagedAppConfigurations()([]TargetedManagedAppConfigurationable) @@ -1384,6 +1419,7 @@ type DeviceAppManagementable interface { SetMobileAppCategories(value []MobileAppCategoryable)() SetMobileAppConfigurations(value []ManagedDeviceMobileAppConfigurationable)() SetMobileApps(value []MobileAppable)() + SetOdataType(value *string)() SetPolicySets(value []PolicySetable)() SetSymantecCodeSigningCertificate(value SymantecCodeSigningCertificateable)() SetTargetedManagedAppConfigurations(value []TargetedManagedAppConfigurationable)() diff --git a/models/device_app_management_task.go b/models/device_app_management_task.go index a020d775a45..dc44e571f5c 100644 --- a/models/device_app_management_task.go +++ b/models/device_app_management_task.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceAppManagementTask +// DeviceAppManagementTask a device app management task. type DeviceAppManagementTask struct { Entity + // The OdataType property + OdataType *string } -// NewDeviceAppManagementTask instantiates a new DeviceAppManagementTask and sets the default values. +// NewDeviceAppManagementTask instantiates a new deviceAppManagementTask and sets the default values. func NewDeviceAppManagementTask()(*DeviceAppManagementTask) { m := &DeviceAppManagementTask{ Entity: *NewEntity(), diff --git a/models/device_app_management_task_collection_response.go b/models/device_app_management_task_collection_response.go index c8e0a5b3c93..111ec758741 100644 --- a/models/device_app_management_task_collection_response.go +++ b/models/device_app_management_task_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceAppManagementTaskCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceAppManagementTaskCollectionResponse instantiates a new DeviceAppManagementTaskCollectionResponse and sets the default values. +// NewDeviceAppManagementTaskCollectionResponse instantiates a new deviceAppManagementTaskCollectionResponse and sets the default values. func NewDeviceAppManagementTaskCollectionResponse()(*DeviceAppManagementTaskCollectionResponse) { m := &DeviceAppManagementTaskCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_category.go b/models/device_category.go index 911851202b2..037d9566e3d 100644 --- a/models/device_category.go +++ b/models/device_category.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceCategory +// DeviceCategory device categories provides a way to organize your devices. Using device categories, company administrators can define their own categories that make sense to their company. These categories can then be applied to a device in the Intune Azure console or selected by a user during device enrollment. You can filter reports and create dynamic Azure Active Directory device groups based on device categories. type DeviceCategory struct { Entity } @@ -64,6 +64,16 @@ func (m *DeviceCategory) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } 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["roleScopeTagIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -82,6 +92,17 @@ func (m *DeviceCategory) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceCategory) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRoleScopeTagIds gets the roleScopeTagIds property value. Optional role scope tags for the device category. func (m *DeviceCategory) GetRoleScopeTagIds()([]string) { val, err := m.GetBackingStore().Get("roleScopeTagIds") @@ -111,6 +132,12 @@ func (m *DeviceCategory) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetRoleScopeTagIds() != nil { err = writer.WriteCollectionOfStringValues("roleScopeTagIds", m.GetRoleScopeTagIds()) if err != nil { @@ -133,6 +160,13 @@ func (m *DeviceCategory) SetDisplayName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceCategory) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRoleScopeTagIds sets the roleScopeTagIds property value. Optional role scope tags for the device category. func (m *DeviceCategory) SetRoleScopeTagIds(value []string)() { err := m.GetBackingStore().Set("roleScopeTagIds", value) @@ -146,8 +180,10 @@ type DeviceCategoryable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDescription()(*string) GetDisplayName()(*string) + GetOdataType()(*string) GetRoleScopeTagIds()([]string) SetDescription(value *string)() SetDisplayName(value *string)() + SetOdataType(value *string)() SetRoleScopeTagIds(value []string)() } diff --git a/models/device_category_collection_response.go b/models/device_category_collection_response.go index d7d1cb7ae3b..3a9d47c0f42 100644 --- a/models/device_category_collection_response.go +++ b/models/device_category_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceCategoryCollectionResponse instantiates a new DeviceCategoryCollectionResponse and sets the default values. +// NewDeviceCategoryCollectionResponse instantiates a new deviceCategoryCollectionResponse and sets the default values. func NewDeviceCategoryCollectionResponse()(*DeviceCategoryCollectionResponse) { m := &DeviceCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_collection_response.go b/models/device_collection_response.go index d7c7e8a6cf5..66e456cdd2b 100644 --- a/models/device_collection_response.go +++ b/models/device_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceCollectionResponse instantiates a new DeviceCollectionResponse and sets the default values. +// NewDeviceCollectionResponse instantiates a new deviceCollectionResponse and sets the default values. func NewDeviceCollectionResponse()(*DeviceCollectionResponse) { m := &DeviceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_comanagement_authority_configuration.go b/models/device_comanagement_authority_configuration.go index 5dbe9bc4768..a9305095245 100644 --- a/models/device_comanagement_authority_configuration.go +++ b/models/device_comanagement_authority_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceComanagementAuthorityConfiguration +// DeviceComanagementAuthorityConfiguration windows 10 Co-Management Authority Page Configuration type DeviceComanagementAuthorityConfiguration struct { DeviceEnrollmentConfiguration } -// NewDeviceComanagementAuthorityConfiguration instantiates a new DeviceComanagementAuthorityConfiguration and sets the default values. +// NewDeviceComanagementAuthorityConfiguration instantiates a new deviceComanagementAuthorityConfiguration and sets the default values. func NewDeviceComanagementAuthorityConfiguration()(*DeviceComanagementAuthorityConfiguration) { m := &DeviceComanagementAuthorityConfiguration{ DeviceEnrollmentConfiguration: *NewDeviceEnrollmentConfiguration(), diff --git a/models/device_compliance_action_item.go b/models/device_compliance_action_item.go index d835f984e4c..7334a1eedf0 100644 --- a/models/device_compliance_action_item.go +++ b/models/device_compliance_action_item.go @@ -7,6 +7,8 @@ import ( // DeviceComplianceActionItem scheduled Action Configuration type DeviceComplianceActionItem struct { Entity + // The OdataType property + OdataType *string } // NewDeviceComplianceActionItem instantiates a new deviceComplianceActionItem and sets the default values. func NewDeviceComplianceActionItem()(*DeviceComplianceActionItem) { diff --git a/models/device_compliance_action_item_collection_response.go b/models/device_compliance_action_item_collection_response.go index b9141fd2df6..c28d5c91b41 100644 --- a/models/device_compliance_action_item_collection_response.go +++ b/models/device_compliance_action_item_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceComplianceActionItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceComplianceActionItemCollectionResponse instantiates a new DeviceComplianceActionItemCollectionResponse and sets the default values. +// NewDeviceComplianceActionItemCollectionResponse instantiates a new deviceComplianceActionItemCollectionResponse and sets the default values. func NewDeviceComplianceActionItemCollectionResponse()(*DeviceComplianceActionItemCollectionResponse) { m := &DeviceComplianceActionItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_compliance_device_overview.go b/models/device_compliance_device_overview.go index 1db3e2a220d..29d7edb52e4 100644 --- a/models/device_compliance_device_overview.go +++ b/models/device_compliance_device_overview.go @@ -8,6 +8,8 @@ import ( // DeviceComplianceDeviceOverview type DeviceComplianceDeviceOverview struct { Entity + // The OdataType property + OdataType *string } // NewDeviceComplianceDeviceOverview instantiates a new deviceComplianceDeviceOverview and sets the default values. func NewDeviceComplianceDeviceOverview()(*DeviceComplianceDeviceOverview) { diff --git a/models/device_compliance_device_status.go b/models/device_compliance_device_status.go index 470b8e8cea0..beea0bf1b39 100644 --- a/models/device_compliance_device_status.go +++ b/models/device_compliance_device_status.go @@ -8,6 +8,8 @@ import ( // DeviceComplianceDeviceStatus type DeviceComplianceDeviceStatus struct { Entity + // The OdataType property + OdataType *string } // NewDeviceComplianceDeviceStatus instantiates a new deviceComplianceDeviceStatus and sets the default values. func NewDeviceComplianceDeviceStatus()(*DeviceComplianceDeviceStatus) { diff --git a/models/device_compliance_device_status_collection_response.go b/models/device_compliance_device_status_collection_response.go index b8c4d0aebc1..cbc96d4e875 100644 --- a/models/device_compliance_device_status_collection_response.go +++ b/models/device_compliance_device_status_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceComplianceDeviceStatusCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceComplianceDeviceStatusCollectionResponse instantiates a new DeviceComplianceDeviceStatusCollectionResponse and sets the default values. +// NewDeviceComplianceDeviceStatusCollectionResponse instantiates a new deviceComplianceDeviceStatusCollectionResponse and sets the default values. func NewDeviceComplianceDeviceStatusCollectionResponse()(*DeviceComplianceDeviceStatusCollectionResponse) { m := &DeviceComplianceDeviceStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_compliance_policy.go b/models/device_compliance_policy.go index c36d78f086f..753efff1329 100644 --- a/models/device_compliance_policy.go +++ b/models/device_compliance_policy.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceCompliancePolicy +// DeviceCompliancePolicy this is the base class for Compliance policy. Compliance policies are platform specific and individual per-platform compliance policies inherit from here. type DeviceCompliancePolicy struct { Entity + // The OdataType property + OdataType *string } -// NewDeviceCompliancePolicy instantiates a new DeviceCompliancePolicy and sets the default values. +// NewDeviceCompliancePolicy instantiates a new deviceCompliancePolicy and sets the default values. func NewDeviceCompliancePolicy()(*DeviceCompliancePolicy) { m := &DeviceCompliancePolicy{ Entity: *NewEntity(), diff --git a/models/device_compliance_policy_assignment.go b/models/device_compliance_policy_assignment.go index 3ea4eeb4735..2ac7b99ec54 100644 --- a/models/device_compliance_policy_assignment.go +++ b/models/device_compliance_policy_assignment.go @@ -22,6 +22,16 @@ func CreateDeviceCompliancePolicyAssignmentFromDiscriminatorValue(parseNode i878 // GetFieldDeserializers the deserialization information for the current model func (m *DeviceCompliancePolicyAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + 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["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseDeviceAndAppManagementAssignmentSource) if err != nil { @@ -54,6 +64,17 @@ func (m *DeviceCompliancePolicyAssignment) GetFieldDeserializers()(map[string]fu } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceCompliancePolicyAssignment) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSource gets the source property value. Represents source of assignment. func (m *DeviceCompliancePolicyAssignment) GetSource()(*DeviceAndAppManagementAssignmentSource) { val, err := m.GetBackingStore().Get("source") @@ -93,6 +114,12 @@ func (m *DeviceCompliancePolicyAssignment) Serialize(writer i878a80d2330e89d2689 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetSource() != nil { cast := (*m.GetSource()).String() err = writer.WriteStringValue("source", &cast) @@ -114,6 +141,13 @@ func (m *DeviceCompliancePolicyAssignment) Serialize(writer i878a80d2330e89d2689 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceCompliancePolicyAssignment) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSource sets the source property value. Represents source of assignment. func (m *DeviceCompliancePolicyAssignment) SetSource(value *DeviceAndAppManagementAssignmentSource)() { err := m.GetBackingStore().Set("source", value) @@ -139,9 +173,11 @@ func (m *DeviceCompliancePolicyAssignment) SetTarget(value DeviceAndAppManagemen type DeviceCompliancePolicyAssignmentable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetSource()(*DeviceAndAppManagementAssignmentSource) GetSourceId()(*string) GetTarget()(DeviceAndAppManagementAssignmentTargetable) + SetOdataType(value *string)() SetSource(value *DeviceAndAppManagementAssignmentSource)() SetSourceId(value *string)() SetTarget(value DeviceAndAppManagementAssignmentTargetable)() diff --git a/models/device_compliance_policy_assignment_collection_response.go b/models/device_compliance_policy_assignment_collection_response.go index 51f972d17e3..e7beeb5cc08 100644 --- a/models/device_compliance_policy_assignment_collection_response.go +++ b/models/device_compliance_policy_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceCompliancePolicyAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceCompliancePolicyAssignmentCollectionResponse instantiates a new DeviceCompliancePolicyAssignmentCollectionResponse and sets the default values. +// NewDeviceCompliancePolicyAssignmentCollectionResponse instantiates a new deviceCompliancePolicyAssignmentCollectionResponse and sets the default values. func NewDeviceCompliancePolicyAssignmentCollectionResponse()(*DeviceCompliancePolicyAssignmentCollectionResponse) { m := &DeviceCompliancePolicyAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_compliance_policy_collection_response.go b/models/device_compliance_policy_collection_response.go index 9f32a402144..3d78b081743 100644 --- a/models/device_compliance_policy_collection_response.go +++ b/models/device_compliance_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceCompliancePolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceCompliancePolicyCollectionResponse instantiates a new DeviceCompliancePolicyCollectionResponse and sets the default values. +// NewDeviceCompliancePolicyCollectionResponse instantiates a new deviceCompliancePolicyCollectionResponse and sets the default values. func NewDeviceCompliancePolicyCollectionResponse()(*DeviceCompliancePolicyCollectionResponse) { m := &DeviceCompliancePolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_compliance_policy_device_state_summary.go b/models/device_compliance_policy_device_state_summary.go index 16c416c491f..76a5edc14af 100644 --- a/models/device_compliance_policy_device_state_summary.go +++ b/models/device_compliance_policy_device_state_summary.go @@ -7,6 +7,8 @@ import ( // DeviceCompliancePolicyDeviceStateSummary type DeviceCompliancePolicyDeviceStateSummary struct { Entity + // The OdataType property + OdataType *string } // NewDeviceCompliancePolicyDeviceStateSummary instantiates a new deviceCompliancePolicyDeviceStateSummary and sets the default values. func NewDeviceCompliancePolicyDeviceStateSummary()(*DeviceCompliancePolicyDeviceStateSummary) { diff --git a/models/device_compliance_policy_group_assignment.go b/models/device_compliance_policy_group_assignment.go index e9f1fa40d8e..3a98f722929 100644 --- a/models/device_compliance_policy_group_assignment.go +++ b/models/device_compliance_policy_group_assignment.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceCompliancePolicyGroupAssignment +// DeviceCompliancePolicyGroupAssignment device compliance policy group assignment. type DeviceCompliancePolicyGroupAssignment struct { Entity + // The OdataType property + OdataType *string } -// NewDeviceCompliancePolicyGroupAssignment instantiates a new DeviceCompliancePolicyGroupAssignment and sets the default values. +// NewDeviceCompliancePolicyGroupAssignment instantiates a new deviceCompliancePolicyGroupAssignment and sets the default values. func NewDeviceCompliancePolicyGroupAssignment()(*DeviceCompliancePolicyGroupAssignment) { m := &DeviceCompliancePolicyGroupAssignment{ Entity: *NewEntity(), diff --git a/models/device_compliance_policy_policy_set_item.go b/models/device_compliance_policy_policy_set_item.go index fa01cb9dce3..f5748a567ad 100644 --- a/models/device_compliance_policy_policy_set_item.go +++ b/models/device_compliance_policy_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceCompliancePolicyPolicySetItem +// DeviceCompliancePolicyPolicySetItem a class containing the properties used for device compliance policy PolicySetItem. type DeviceCompliancePolicyPolicySetItem struct { PolicySetItem } -// NewDeviceCompliancePolicyPolicySetItem instantiates a new DeviceCompliancePolicyPolicySetItem and sets the default values. +// NewDeviceCompliancePolicyPolicySetItem instantiates a new deviceCompliancePolicyPolicySetItem and sets the default values. func NewDeviceCompliancePolicyPolicySetItem()(*DeviceCompliancePolicyPolicySetItem) { m := &DeviceCompliancePolicyPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/device_compliance_policy_setting_state_summary.go b/models/device_compliance_policy_setting_state_summary.go index e726261a532..1346769e3ec 100644 --- a/models/device_compliance_policy_setting_state_summary.go +++ b/models/device_compliance_policy_setting_state_summary.go @@ -7,6 +7,8 @@ import ( // DeviceCompliancePolicySettingStateSummary device Compilance Policy Setting State summary across the account. type DeviceCompliancePolicySettingStateSummary struct { Entity + // The OdataType property + OdataType *string } // NewDeviceCompliancePolicySettingStateSummary instantiates a new deviceCompliancePolicySettingStateSummary and sets the default values. func NewDeviceCompliancePolicySettingStateSummary()(*DeviceCompliancePolicySettingStateSummary) { diff --git a/models/device_compliance_policy_setting_state_summary_collection_response.go b/models/device_compliance_policy_setting_state_summary_collection_response.go index 98bab82c1c9..815ab42bd8b 100644 --- a/models/device_compliance_policy_setting_state_summary_collection_response.go +++ b/models/device_compliance_policy_setting_state_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceCompliancePolicySettingStateSummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceCompliancePolicySettingStateSummaryCollectionResponse instantiates a new DeviceCompliancePolicySettingStateSummaryCollectionResponse and sets the default values. +// NewDeviceCompliancePolicySettingStateSummaryCollectionResponse instantiates a new deviceCompliancePolicySettingStateSummaryCollectionResponse and sets the default values. func NewDeviceCompliancePolicySettingStateSummaryCollectionResponse()(*DeviceCompliancePolicySettingStateSummaryCollectionResponse) { m := &DeviceCompliancePolicySettingStateSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_compliance_policy_state.go b/models/device_compliance_policy_state.go index 2e3e267b913..17c64d6a886 100644 --- a/models/device_compliance_policy_state.go +++ b/models/device_compliance_policy_state.go @@ -7,6 +7,8 @@ import ( // DeviceCompliancePolicyState device Compliance Policy State for a given device. type DeviceCompliancePolicyState struct { Entity + // The OdataType property + OdataType *string } // NewDeviceCompliancePolicyState instantiates a new deviceCompliancePolicyState and sets the default values. func NewDeviceCompliancePolicyState()(*DeviceCompliancePolicyState) { diff --git a/models/device_compliance_policy_state_collection_response.go b/models/device_compliance_policy_state_collection_response.go index d54211a684a..dfdb24cbee1 100644 --- a/models/device_compliance_policy_state_collection_response.go +++ b/models/device_compliance_policy_state_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceCompliancePolicyStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceCompliancePolicyStateCollectionResponse instantiates a new DeviceCompliancePolicyStateCollectionResponse and sets the default values. +// NewDeviceCompliancePolicyStateCollectionResponse instantiates a new deviceCompliancePolicyStateCollectionResponse and sets the default values. func NewDeviceCompliancePolicyStateCollectionResponse()(*DeviceCompliancePolicyStateCollectionResponse) { m := &DeviceCompliancePolicyStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_compliance_scheduled_action_for_rule.go b/models/device_compliance_scheduled_action_for_rule.go index abf94d6db5b..0a657de04f1 100644 --- a/models/device_compliance_scheduled_action_for_rule.go +++ b/models/device_compliance_scheduled_action_for_rule.go @@ -7,6 +7,8 @@ import ( // DeviceComplianceScheduledActionForRule scheduled Action for Rule type DeviceComplianceScheduledActionForRule struct { Entity + // The OdataType property + OdataType *string } // NewDeviceComplianceScheduledActionForRule instantiates a new deviceComplianceScheduledActionForRule and sets the default values. func NewDeviceComplianceScheduledActionForRule()(*DeviceComplianceScheduledActionForRule) { diff --git a/models/device_compliance_scheduled_action_for_rule_collection_response.go b/models/device_compliance_scheduled_action_for_rule_collection_response.go index ed380f9d483..7439c43a2f9 100644 --- a/models/device_compliance_scheduled_action_for_rule_collection_response.go +++ b/models/device_compliance_scheduled_action_for_rule_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceComplianceScheduledActionForRuleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceComplianceScheduledActionForRuleCollectionResponse instantiates a new DeviceComplianceScheduledActionForRuleCollectionResponse and sets the default values. +// NewDeviceComplianceScheduledActionForRuleCollectionResponse instantiates a new deviceComplianceScheduledActionForRuleCollectionResponse and sets the default values. func NewDeviceComplianceScheduledActionForRuleCollectionResponse()(*DeviceComplianceScheduledActionForRuleCollectionResponse) { m := &DeviceComplianceScheduledActionForRuleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_compliance_script.go b/models/device_compliance_script.go index b81607a436e..5749aacc4ab 100644 --- a/models/device_compliance_script.go +++ b/models/device_compliance_script.go @@ -8,6 +8,8 @@ import ( // DeviceComplianceScript intune will provide customer the ability to run their Powershell Compliance scripts (detection) on the enrolled windows 10 Azure Active Directory joined devices. type DeviceComplianceScript struct { Entity + // The OdataType property + OdataType *string } // NewDeviceComplianceScript instantiates a new deviceComplianceScript and sets the default values. func NewDeviceComplianceScript()(*DeviceComplianceScript) { diff --git a/models/device_compliance_script_collection_response.go b/models/device_compliance_script_collection_response.go index df4222ab092..eec521fbbb4 100644 --- a/models/device_compliance_script_collection_response.go +++ b/models/device_compliance_script_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceComplianceScriptCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceComplianceScriptCollectionResponse instantiates a new DeviceComplianceScriptCollectionResponse and sets the default values. +// NewDeviceComplianceScriptCollectionResponse instantiates a new deviceComplianceScriptCollectionResponse and sets the default values. func NewDeviceComplianceScriptCollectionResponse()(*DeviceComplianceScriptCollectionResponse) { m := &DeviceComplianceScriptCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_compliance_script_device_state.go b/models/device_compliance_script_device_state.go index 34fc7958c45..4c92f182b68 100644 --- a/models/device_compliance_script_device_state.go +++ b/models/device_compliance_script_device_state.go @@ -8,6 +8,8 @@ import ( // DeviceComplianceScriptDeviceState contains properties for device run state of the device compliance script. type DeviceComplianceScriptDeviceState struct { Entity + // The OdataType property + OdataType *string } // NewDeviceComplianceScriptDeviceState instantiates a new deviceComplianceScriptDeviceState and sets the default values. func NewDeviceComplianceScriptDeviceState()(*DeviceComplianceScriptDeviceState) { diff --git a/models/device_compliance_script_device_state_collection_response.go b/models/device_compliance_script_device_state_collection_response.go index 39489300447..53a41fd2aa1 100644 --- a/models/device_compliance_script_device_state_collection_response.go +++ b/models/device_compliance_script_device_state_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceComplianceScriptDeviceStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceComplianceScriptDeviceStateCollectionResponse instantiates a new DeviceComplianceScriptDeviceStateCollectionResponse and sets the default values. +// NewDeviceComplianceScriptDeviceStateCollectionResponse instantiates a new deviceComplianceScriptDeviceStateCollectionResponse and sets the default values. func NewDeviceComplianceScriptDeviceStateCollectionResponse()(*DeviceComplianceScriptDeviceStateCollectionResponse) { m := &DeviceComplianceScriptDeviceStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_compliance_script_rule.go b/models/device_compliance_script_rule.go index c6101ede1d1..12b1b2c75e0 100644 --- a/models/device_compliance_script_rule.go +++ b/models/device_compliance_script_rule.go @@ -10,7 +10,7 @@ type DeviceComplianceScriptRule struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeviceComplianceScriptRule instantiates a new DeviceComplianceScriptRule and sets the default values. +// NewDeviceComplianceScriptRule instantiates a new deviceComplianceScriptRule and sets the default values. func NewDeviceComplianceScriptRule()(*DeviceComplianceScriptRule) { m := &DeviceComplianceScriptRule{ } diff --git a/models/device_compliance_script_rule_error.go b/models/device_compliance_script_rule_error.go index 9290fd6da20..73e3e8019d9 100644 --- a/models/device_compliance_script_rule_error.go +++ b/models/device_compliance_script_rule_error.go @@ -8,7 +8,7 @@ import ( type DeviceComplianceScriptRuleError struct { DeviceComplianceScriptError } -// NewDeviceComplianceScriptRuleError instantiates a new DeviceComplianceScriptRuleError and sets the default values. +// NewDeviceComplianceScriptRuleError instantiates a new deviceComplianceScriptRuleError and sets the default values. func NewDeviceComplianceScriptRuleError()(*DeviceComplianceScriptRuleError) { m := &DeviceComplianceScriptRuleError{ DeviceComplianceScriptError: *NewDeviceComplianceScriptError(), @@ -22,6 +22,16 @@ func CreateDeviceComplianceScriptRuleErrorFromDiscriminatorValue(parseNode i878a // GetFieldDeserializers the deserialization information for the current model func (m *DeviceComplianceScriptRuleError) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceComplianceScriptError.GetFieldDeserializers() + 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["settingName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -34,6 +44,17 @@ func (m *DeviceComplianceScriptRuleError) GetFieldDeserializers()(map[string]fun } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceComplianceScriptRuleError) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSettingName gets the settingName property value. Setting name for the rule with error. func (m *DeviceComplianceScriptRuleError) GetSettingName()(*string) { val, err := m.GetBackingStore().Get("settingName") @@ -51,6 +72,12 @@ func (m *DeviceComplianceScriptRuleError) Serialize(writer i878a80d2330e89d26896 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("settingName", m.GetSettingName()) if err != nil { @@ -59,6 +86,13 @@ func (m *DeviceComplianceScriptRuleError) Serialize(writer i878a80d2330e89d26896 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceComplianceScriptRuleError) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSettingName sets the settingName property value. Setting name for the rule with error. func (m *DeviceComplianceScriptRuleError) SetSettingName(value *string)() { err := m.GetBackingStore().Set("settingName", value) @@ -70,6 +104,8 @@ func (m *DeviceComplianceScriptRuleError) SetSettingName(value *string)() { type DeviceComplianceScriptRuleErrorable interface { DeviceComplianceScriptErrorable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetSettingName()(*string) + SetOdataType(value *string)() SetSettingName(value *string)() } diff --git a/models/device_compliance_script_run_summary.go b/models/device_compliance_script_run_summary.go index bdfa3e24ecd..f3e3c2fab5a 100644 --- a/models/device_compliance_script_run_summary.go +++ b/models/device_compliance_script_run_summary.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceComplianceScriptRunSummary +// DeviceComplianceScriptRunSummary contains properties for the run summary of a device management script. type DeviceComplianceScriptRunSummary struct { Entity + // The OdataType property + OdataType *string } // NewDeviceComplianceScriptRunSummary instantiates a new deviceComplianceScriptRunSummary and sets the default values. func NewDeviceComplianceScriptRunSummary()(*DeviceComplianceScriptRunSummary) { diff --git a/models/device_compliance_setting_state.go b/models/device_compliance_setting_state.go index 5cb0b8f039a..844533a0fa8 100644 --- a/models/device_compliance_setting_state.go +++ b/models/device_compliance_setting_state.go @@ -8,6 +8,8 @@ import ( // DeviceComplianceSettingState device compliance setting State for a given device. type DeviceComplianceSettingState struct { Entity + // The OdataType property + OdataType *string } // NewDeviceComplianceSettingState instantiates a new deviceComplianceSettingState and sets the default values. func NewDeviceComplianceSettingState()(*DeviceComplianceSettingState) { diff --git a/models/device_compliance_setting_state_collection_response.go b/models/device_compliance_setting_state_collection_response.go index dfcf2a977eb..26c52f1e5c3 100644 --- a/models/device_compliance_setting_state_collection_response.go +++ b/models/device_compliance_setting_state_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceComplianceSettingStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceComplianceSettingStateCollectionResponse instantiates a new DeviceComplianceSettingStateCollectionResponse and sets the default values. +// NewDeviceComplianceSettingStateCollectionResponse instantiates a new deviceComplianceSettingStateCollectionResponse and sets the default values. func NewDeviceComplianceSettingStateCollectionResponse()(*DeviceComplianceSettingStateCollectionResponse) { m := &DeviceComplianceSettingStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_compliance_user_overview.go b/models/device_compliance_user_overview.go index 407542289ac..c2f79c17fd8 100644 --- a/models/device_compliance_user_overview.go +++ b/models/device_compliance_user_overview.go @@ -8,6 +8,8 @@ import ( // DeviceComplianceUserOverview type DeviceComplianceUserOverview struct { Entity + // The OdataType property + OdataType *string } // NewDeviceComplianceUserOverview instantiates a new deviceComplianceUserOverview and sets the default values. func NewDeviceComplianceUserOverview()(*DeviceComplianceUserOverview) { diff --git a/models/device_compliance_user_status.go b/models/device_compliance_user_status.go index 951ef4b577f..dedbdcbfe0f 100644 --- a/models/device_compliance_user_status.go +++ b/models/device_compliance_user_status.go @@ -8,6 +8,8 @@ import ( // DeviceComplianceUserStatus type DeviceComplianceUserStatus struct { Entity + // The OdataType property + OdataType *string } // NewDeviceComplianceUserStatus instantiates a new deviceComplianceUserStatus and sets the default values. func NewDeviceComplianceUserStatus()(*DeviceComplianceUserStatus) { diff --git a/models/device_compliance_user_status_collection_response.go b/models/device_compliance_user_status_collection_response.go index 0a5296f4a46..2abce0a2f52 100644 --- a/models/device_compliance_user_status_collection_response.go +++ b/models/device_compliance_user_status_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceComplianceUserStatusCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceComplianceUserStatusCollectionResponse instantiates a new DeviceComplianceUserStatusCollectionResponse and sets the default values. +// NewDeviceComplianceUserStatusCollectionResponse instantiates a new deviceComplianceUserStatusCollectionResponse and sets the default values. func NewDeviceComplianceUserStatusCollectionResponse()(*DeviceComplianceUserStatusCollectionResponse) { m := &DeviceComplianceUserStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_configuration.go b/models/device_configuration.go index 40a2e339059..036213edf7a 100644 --- a/models/device_configuration.go +++ b/models/device_configuration.go @@ -8,6 +8,8 @@ import ( // DeviceConfiguration device Configuration. type DeviceConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewDeviceConfiguration instantiates a new deviceConfiguration and sets the default values. func NewDeviceConfiguration()(*DeviceConfiguration) { diff --git a/models/device_configuration_assignment.go b/models/device_configuration_assignment.go index 388384d63b3..600d4bfa31f 100644 --- a/models/device_configuration_assignment.go +++ b/models/device_configuration_assignment.go @@ -7,6 +7,8 @@ import ( // DeviceConfigurationAssignment the device configuration assignment entity assigns an AAD group to a specific device configuration. type DeviceConfigurationAssignment struct { Entity + // The OdataType property + OdataType *string } // NewDeviceConfigurationAssignment instantiates a new deviceConfigurationAssignment and sets the default values. func NewDeviceConfigurationAssignment()(*DeviceConfigurationAssignment) { diff --git a/models/device_configuration_assignment_collection_response.go b/models/device_configuration_assignment_collection_response.go index 4e02fa160c0..00db6404a26 100644 --- a/models/device_configuration_assignment_collection_response.go +++ b/models/device_configuration_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceConfigurationAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceConfigurationAssignmentCollectionResponse instantiates a new DeviceConfigurationAssignmentCollectionResponse and sets the default values. +// NewDeviceConfigurationAssignmentCollectionResponse instantiates a new deviceConfigurationAssignmentCollectionResponse and sets the default values. func NewDeviceConfigurationAssignmentCollectionResponse()(*DeviceConfigurationAssignmentCollectionResponse) { m := &DeviceConfigurationAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_configuration_collection_response.go b/models/device_configuration_collection_response.go index 088968e40b1..b6ce1114ce5 100644 --- a/models/device_configuration_collection_response.go +++ b/models/device_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceConfigurationCollectionResponse instantiates a new DeviceConfigurationCollectionResponse and sets the default values. +// NewDeviceConfigurationCollectionResponse instantiates a new deviceConfigurationCollectionResponse and sets the default values. func NewDeviceConfigurationCollectionResponse()(*DeviceConfigurationCollectionResponse) { m := &DeviceConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_configuration_conflict_summary.go b/models/device_configuration_conflict_summary.go index 193610c69ed..dcbfc9b1df6 100644 --- a/models/device_configuration_conflict_summary.go +++ b/models/device_configuration_conflict_summary.go @@ -7,6 +7,8 @@ import ( // DeviceConfigurationConflictSummary conflict summary for a set of device configuration policies. type DeviceConfigurationConflictSummary struct { Entity + // The OdataType property + OdataType *string } // NewDeviceConfigurationConflictSummary instantiates a new deviceConfigurationConflictSummary and sets the default values. func NewDeviceConfigurationConflictSummary()(*DeviceConfigurationConflictSummary) { diff --git a/models/device_configuration_conflict_summary_collection_response.go b/models/device_configuration_conflict_summary_collection_response.go index ac5326acce8..be537d24f58 100644 --- a/models/device_configuration_conflict_summary_collection_response.go +++ b/models/device_configuration_conflict_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceConfigurationConflictSummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceConfigurationConflictSummaryCollectionResponse instantiates a new DeviceConfigurationConflictSummaryCollectionResponse and sets the default values. +// NewDeviceConfigurationConflictSummaryCollectionResponse instantiates a new deviceConfigurationConflictSummaryCollectionResponse and sets the default values. func NewDeviceConfigurationConflictSummaryCollectionResponse()(*DeviceConfigurationConflictSummaryCollectionResponse) { m := &DeviceConfigurationConflictSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_configuration_device_overview.go b/models/device_configuration_device_overview.go index 909842a205c..f8630f82b6d 100644 --- a/models/device_configuration_device_overview.go +++ b/models/device_configuration_device_overview.go @@ -8,6 +8,8 @@ import ( // DeviceConfigurationDeviceOverview type DeviceConfigurationDeviceOverview struct { Entity + // The OdataType property + OdataType *string } // NewDeviceConfigurationDeviceOverview instantiates a new deviceConfigurationDeviceOverview and sets the default values. func NewDeviceConfigurationDeviceOverview()(*DeviceConfigurationDeviceOverview) { diff --git a/models/device_configuration_device_state_summary.go b/models/device_configuration_device_state_summary.go index 239d301defb..46ae747d6a6 100644 --- a/models/device_configuration_device_state_summary.go +++ b/models/device_configuration_device_state_summary.go @@ -7,6 +7,8 @@ import ( // DeviceConfigurationDeviceStateSummary type DeviceConfigurationDeviceStateSummary struct { Entity + // The OdataType property + OdataType *string } // NewDeviceConfigurationDeviceStateSummary instantiates a new deviceConfigurationDeviceStateSummary and sets the default values. func NewDeviceConfigurationDeviceStateSummary()(*DeviceConfigurationDeviceStateSummary) { diff --git a/models/device_configuration_device_status.go b/models/device_configuration_device_status.go index b62d2043897..97a699caf64 100644 --- a/models/device_configuration_device_status.go +++ b/models/device_configuration_device_status.go @@ -8,6 +8,8 @@ import ( // DeviceConfigurationDeviceStatus type DeviceConfigurationDeviceStatus struct { Entity + // The OdataType property + OdataType *string } // NewDeviceConfigurationDeviceStatus instantiates a new deviceConfigurationDeviceStatus and sets the default values. func NewDeviceConfigurationDeviceStatus()(*DeviceConfigurationDeviceStatus) { diff --git a/models/device_configuration_device_status_collection_response.go b/models/device_configuration_device_status_collection_response.go index 786612bb10c..24e6284b3c1 100644 --- a/models/device_configuration_device_status_collection_response.go +++ b/models/device_configuration_device_status_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceConfigurationDeviceStatusCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceConfigurationDeviceStatusCollectionResponse instantiates a new DeviceConfigurationDeviceStatusCollectionResponse and sets the default values. +// NewDeviceConfigurationDeviceStatusCollectionResponse instantiates a new deviceConfigurationDeviceStatusCollectionResponse and sets the default values. func NewDeviceConfigurationDeviceStatusCollectionResponse()(*DeviceConfigurationDeviceStatusCollectionResponse) { m := &DeviceConfigurationDeviceStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_configuration_group_assignment.go b/models/device_configuration_group_assignment.go index 6fb126a637e..d35302bb66c 100644 --- a/models/device_configuration_group_assignment.go +++ b/models/device_configuration_group_assignment.go @@ -64,6 +64,16 @@ func (m *DeviceConfigurationGroupAssignment) GetFieldDeserializers()(map[string] } 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["targetGroupId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -76,6 +86,17 @@ func (m *DeviceConfigurationGroupAssignment) GetFieldDeserializers()(map[string] } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceConfigurationGroupAssignment) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTargetGroupId gets the targetGroupId property value. The Id of the AAD group we are targeting the device configuration to. func (m *DeviceConfigurationGroupAssignment) GetTargetGroupId()(*string) { val, err := m.GetBackingStore().Get("targetGroupId") @@ -105,6 +126,12 @@ func (m *DeviceConfigurationGroupAssignment) Serialize(writer i878a80d2330e89d26 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("targetGroupId", m.GetTargetGroupId()) if err != nil { @@ -127,6 +154,13 @@ func (m *DeviceConfigurationGroupAssignment) SetExcludeGroup(value *bool)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceConfigurationGroupAssignment) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTargetGroupId sets the targetGroupId property value. The Id of the AAD group we are targeting the device configuration to. func (m *DeviceConfigurationGroupAssignment) SetTargetGroupId(value *string)() { err := m.GetBackingStore().Set("targetGroupId", value) @@ -140,8 +174,10 @@ type DeviceConfigurationGroupAssignmentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDeviceConfiguration()(DeviceConfigurationable) GetExcludeGroup()(*bool) + GetOdataType()(*string) GetTargetGroupId()(*string) SetDeviceConfiguration(value DeviceConfigurationable)() SetExcludeGroup(value *bool)() + SetOdataType(value *string)() SetTargetGroupId(value *string)() } diff --git a/models/device_configuration_group_assignment_collection_response.go b/models/device_configuration_group_assignment_collection_response.go index 4f253dad5e6..190b88206bc 100644 --- a/models/device_configuration_group_assignment_collection_response.go +++ b/models/device_configuration_group_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceConfigurationGroupAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceConfigurationGroupAssignmentCollectionResponse instantiates a new DeviceConfigurationGroupAssignmentCollectionResponse and sets the default values. +// NewDeviceConfigurationGroupAssignmentCollectionResponse instantiates a new deviceConfigurationGroupAssignmentCollectionResponse and sets the default values. func NewDeviceConfigurationGroupAssignmentCollectionResponse()(*DeviceConfigurationGroupAssignmentCollectionResponse) { m := &DeviceConfigurationGroupAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_configuration_policy_set_item.go b/models/device_configuration_policy_set_item.go index 58ea32f3e67..8caca804ca0 100644 --- a/models/device_configuration_policy_set_item.go +++ b/models/device_configuration_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceConfigurationPolicySetItem +// DeviceConfigurationPolicySetItem a class containing the properties used for device configuration PolicySetItem. type DeviceConfigurationPolicySetItem struct { PolicySetItem } -// NewDeviceConfigurationPolicySetItem instantiates a new DeviceConfigurationPolicySetItem and sets the default values. +// NewDeviceConfigurationPolicySetItem instantiates a new deviceConfigurationPolicySetItem and sets the default values. func NewDeviceConfigurationPolicySetItem()(*DeviceConfigurationPolicySetItem) { m := &DeviceConfigurationPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/device_configuration_state.go b/models/device_configuration_state.go index badfd4d2183..b06fd7a1956 100644 --- a/models/device_configuration_state.go +++ b/models/device_configuration_state.go @@ -7,6 +7,8 @@ import ( // DeviceConfigurationState device Configuration State for a given device. type DeviceConfigurationState struct { Entity + // The OdataType property + OdataType *string } // NewDeviceConfigurationState instantiates a new deviceConfigurationState and sets the default values. func NewDeviceConfigurationState()(*DeviceConfigurationState) { diff --git a/models/device_configuration_state_collection_response.go b/models/device_configuration_state_collection_response.go index 85158f3a37f..44653c617d7 100644 --- a/models/device_configuration_state_collection_response.go +++ b/models/device_configuration_state_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceConfigurationStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceConfigurationStateCollectionResponse instantiates a new DeviceConfigurationStateCollectionResponse and sets the default values. +// NewDeviceConfigurationStateCollectionResponse instantiates a new deviceConfigurationStateCollectionResponse and sets the default values. func NewDeviceConfigurationStateCollectionResponse()(*DeviceConfigurationStateCollectionResponse) { m := &DeviceConfigurationStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_configuration_user_overview.go b/models/device_configuration_user_overview.go index 95d867063ee..f91db22307e 100644 --- a/models/device_configuration_user_overview.go +++ b/models/device_configuration_user_overview.go @@ -8,6 +8,8 @@ import ( // DeviceConfigurationUserOverview type DeviceConfigurationUserOverview struct { Entity + // The OdataType property + OdataType *string } // NewDeviceConfigurationUserOverview instantiates a new deviceConfigurationUserOverview and sets the default values. func NewDeviceConfigurationUserOverview()(*DeviceConfigurationUserOverview) { diff --git a/models/device_configuration_user_state_summary.go b/models/device_configuration_user_state_summary.go index 8e7b64ae40c..a0ebace495a 100644 --- a/models/device_configuration_user_state_summary.go +++ b/models/device_configuration_user_state_summary.go @@ -7,6 +7,8 @@ import ( // DeviceConfigurationUserStateSummary type DeviceConfigurationUserStateSummary struct { Entity + // The OdataType property + OdataType *string } // NewDeviceConfigurationUserStateSummary instantiates a new deviceConfigurationUserStateSummary and sets the default values. func NewDeviceConfigurationUserStateSummary()(*DeviceConfigurationUserStateSummary) { diff --git a/models/device_configuration_user_status.go b/models/device_configuration_user_status.go index 65e803c6e88..d9bbf6cbfc7 100644 --- a/models/device_configuration_user_status.go +++ b/models/device_configuration_user_status.go @@ -8,6 +8,8 @@ import ( // DeviceConfigurationUserStatus type DeviceConfigurationUserStatus struct { Entity + // The OdataType property + OdataType *string } // NewDeviceConfigurationUserStatus instantiates a new deviceConfigurationUserStatus and sets the default values. func NewDeviceConfigurationUserStatus()(*DeviceConfigurationUserStatus) { diff --git a/models/device_configuration_user_status_collection_response.go b/models/device_configuration_user_status_collection_response.go index eaecd08e557..25ff6c6e647 100644 --- a/models/device_configuration_user_status_collection_response.go +++ b/models/device_configuration_user_status_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceConfigurationUserStatusCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceConfigurationUserStatusCollectionResponse instantiates a new DeviceConfigurationUserStatusCollectionResponse and sets the default values. +// NewDeviceConfigurationUserStatusCollectionResponse instantiates a new deviceConfigurationUserStatusCollectionResponse and sets the default values. func NewDeviceConfigurationUserStatusCollectionResponse()(*DeviceConfigurationUserStatusCollectionResponse) { m := &DeviceConfigurationUserStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_custom_attribute_shell_script.go b/models/device_custom_attribute_shell_script.go index 1629b2199fc..28686b634e2 100644 --- a/models/device_custom_attribute_shell_script.go +++ b/models/device_custom_attribute_shell_script.go @@ -218,6 +218,16 @@ func (m *DeviceCustomAttributeShellScript) GetFieldDeserializers()(map[string]fu } 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["roleScopeTagIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -315,6 +325,17 @@ func (m *DeviceCustomAttributeShellScript) GetLastModifiedDateTime()(*i336074805 } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceCustomAttributeShellScript) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRoleScopeTagIds gets the roleScopeTagIds property value. List of Scope Tag IDs for this PowerShellScript instance. func (m *DeviceCustomAttributeShellScript) GetRoleScopeTagIds()([]string) { val, err := m.GetBackingStore().Get("roleScopeTagIds") @@ -443,6 +464,12 @@ func (m *DeviceCustomAttributeShellScript) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetRoleScopeTagIds() != nil { err = writer.WriteCollectionOfStringValues("roleScopeTagIds", m.GetRoleScopeTagIds()) if err != nil { @@ -552,6 +579,13 @@ func (m *DeviceCustomAttributeShellScript) SetLastModifiedDateTime(value *i33607 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceCustomAttributeShellScript) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRoleScopeTagIds sets the roleScopeTagIds property value. List of Scope Tag IDs for this PowerShellScript instance. func (m *DeviceCustomAttributeShellScript) SetRoleScopeTagIds(value []string)() { err := m.GetBackingStore().Set("roleScopeTagIds", value) @@ -601,6 +635,7 @@ type DeviceCustomAttributeShellScriptable interface { GetFileName()(*string) GetGroupAssignments()([]DeviceManagementScriptGroupAssignmentable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetRoleScopeTagIds()([]string) GetRunAsAccount()(*RunAsAccountType) GetRunSummary()(DeviceManagementScriptRunSummaryable) @@ -616,6 +651,7 @@ type DeviceCustomAttributeShellScriptable interface { SetFileName(value *string)() SetGroupAssignments(value []DeviceManagementScriptGroupAssignmentable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetRoleScopeTagIds(value []string)() SetRunAsAccount(value *RunAsAccountType)() SetRunSummary(value DeviceManagementScriptRunSummaryable)() diff --git a/models/device_custom_attribute_shell_script_collection_response.go b/models/device_custom_attribute_shell_script_collection_response.go index ed35ac7b414..6206bc07aa5 100644 --- a/models/device_custom_attribute_shell_script_collection_response.go +++ b/models/device_custom_attribute_shell_script_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceCustomAttributeShellScriptCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceCustomAttributeShellScriptCollectionResponse instantiates a new DeviceCustomAttributeShellScriptCollectionResponse and sets the default values. +// NewDeviceCustomAttributeShellScriptCollectionResponse instantiates a new deviceCustomAttributeShellScriptCollectionResponse and sets the default values. func NewDeviceCustomAttributeShellScriptCollectionResponse()(*DeviceCustomAttributeShellScriptCollectionResponse) { m := &DeviceCustomAttributeShellScriptCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_enrollment_configuration.go b/models/device_enrollment_configuration.go index 6b6e0868bc1..d9fa1971524 100644 --- a/models/device_enrollment_configuration.go +++ b/models/device_enrollment_configuration.go @@ -8,6 +8,8 @@ import ( // DeviceEnrollmentConfiguration the Base Class of Device Enrollment Configuration type DeviceEnrollmentConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewDeviceEnrollmentConfiguration instantiates a new deviceEnrollmentConfiguration and sets the default values. func NewDeviceEnrollmentConfiguration()(*DeviceEnrollmentConfiguration) { diff --git a/models/device_enrollment_configuration_collection_response.go b/models/device_enrollment_configuration_collection_response.go index b41743dc470..486cd15d639 100644 --- a/models/device_enrollment_configuration_collection_response.go +++ b/models/device_enrollment_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceEnrollmentConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceEnrollmentConfigurationCollectionResponse instantiates a new DeviceEnrollmentConfigurationCollectionResponse and sets the default values. +// NewDeviceEnrollmentConfigurationCollectionResponse instantiates a new deviceEnrollmentConfigurationCollectionResponse and sets the default values. func NewDeviceEnrollmentConfigurationCollectionResponse()(*DeviceEnrollmentConfigurationCollectionResponse) { m := &DeviceEnrollmentConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_enrollment_limit_configuration.go b/models/device_enrollment_limit_configuration.go index c4eca694c74..4a8e4c9fa87 100644 --- a/models/device_enrollment_limit_configuration.go +++ b/models/device_enrollment_limit_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceEnrollmentLimitConfiguration +// DeviceEnrollmentLimitConfiguration device Enrollment Configuration that restricts the number of devices a user can enroll type DeviceEnrollmentLimitConfiguration struct { DeviceEnrollmentConfiguration } -// NewDeviceEnrollmentLimitConfiguration instantiates a new DeviceEnrollmentLimitConfiguration and sets the default values. +// NewDeviceEnrollmentLimitConfiguration instantiates a new deviceEnrollmentLimitConfiguration and sets the default values. func NewDeviceEnrollmentLimitConfiguration()(*DeviceEnrollmentLimitConfiguration) { m := &DeviceEnrollmentLimitConfiguration{ DeviceEnrollmentConfiguration: *NewDeviceEnrollmentConfiguration(), diff --git a/models/device_enrollment_notification_configuration.go b/models/device_enrollment_notification_configuration.go index f96e389869c..657420100db 100644 --- a/models/device_enrollment_notification_configuration.go +++ b/models/device_enrollment_notification_configuration.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceEnrollmentNotificationConfiguration +// DeviceEnrollmentNotificationConfiguration enrollment Notification Configuration which is used to send notification type DeviceEnrollmentNotificationConfiguration struct { DeviceEnrollmentConfiguration } -// NewDeviceEnrollmentNotificationConfiguration instantiates a new DeviceEnrollmentNotificationConfiguration and sets the default values. +// NewDeviceEnrollmentNotificationConfiguration instantiates a new deviceEnrollmentNotificationConfiguration and sets the default values. func NewDeviceEnrollmentNotificationConfiguration()(*DeviceEnrollmentNotificationConfiguration) { m := &DeviceEnrollmentNotificationConfiguration{ DeviceEnrollmentConfiguration: *NewDeviceEnrollmentConfiguration(), diff --git a/models/device_enrollment_platform_restriction_configuration.go b/models/device_enrollment_platform_restriction_configuration.go index a39f1f21b14..087afbe8525 100644 --- a/models/device_enrollment_platform_restriction_configuration.go +++ b/models/device_enrollment_platform_restriction_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceEnrollmentPlatformRestrictionConfiguration +// DeviceEnrollmentPlatformRestrictionConfiguration device Enrollment Configuration that restricts the types of devices a user can enroll for a single platform type DeviceEnrollmentPlatformRestrictionConfiguration struct { DeviceEnrollmentConfiguration } -// NewDeviceEnrollmentPlatformRestrictionConfiguration instantiates a new DeviceEnrollmentPlatformRestrictionConfiguration and sets the default values. +// NewDeviceEnrollmentPlatformRestrictionConfiguration instantiates a new deviceEnrollmentPlatformRestrictionConfiguration and sets the default values. func NewDeviceEnrollmentPlatformRestrictionConfiguration()(*DeviceEnrollmentPlatformRestrictionConfiguration) { m := &DeviceEnrollmentPlatformRestrictionConfiguration{ DeviceEnrollmentConfiguration: *NewDeviceEnrollmentConfiguration(), diff --git a/models/device_enrollment_platform_restrictions_configuration.go b/models/device_enrollment_platform_restrictions_configuration.go index 7bb0c73675c..8a1172d2c1a 100644 --- a/models/device_enrollment_platform_restrictions_configuration.go +++ b/models/device_enrollment_platform_restrictions_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceEnrollmentPlatformRestrictionsConfiguration +// DeviceEnrollmentPlatformRestrictionsConfiguration device Enrollment Configuration that restricts the types of devices a user can enroll type DeviceEnrollmentPlatformRestrictionsConfiguration struct { DeviceEnrollmentConfiguration } -// NewDeviceEnrollmentPlatformRestrictionsConfiguration instantiates a new DeviceEnrollmentPlatformRestrictionsConfiguration and sets the default values. +// NewDeviceEnrollmentPlatformRestrictionsConfiguration instantiates a new deviceEnrollmentPlatformRestrictionsConfiguration and sets the default values. func NewDeviceEnrollmentPlatformRestrictionsConfiguration()(*DeviceEnrollmentPlatformRestrictionsConfiguration) { m := &DeviceEnrollmentPlatformRestrictionsConfiguration{ DeviceEnrollmentConfiguration: *NewDeviceEnrollmentConfiguration(), diff --git a/models/device_enrollment_windows_hello_for_business_configuration.go b/models/device_enrollment_windows_hello_for_business_configuration.go index 97491842134..2b40be13b18 100644 --- a/models/device_enrollment_windows_hello_for_business_configuration.go +++ b/models/device_enrollment_windows_hello_for_business_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceEnrollmentWindowsHelloForBusinessConfiguration +// DeviceEnrollmentWindowsHelloForBusinessConfiguration windows Hello for Business settings lets users access their devices using a gesture, such as biometric authentication, or a PIN. Configure settings for enrolled Windows 10, Windows 10 Mobile and later. type DeviceEnrollmentWindowsHelloForBusinessConfiguration struct { DeviceEnrollmentConfiguration } -// NewDeviceEnrollmentWindowsHelloForBusinessConfiguration instantiates a new DeviceEnrollmentWindowsHelloForBusinessConfiguration and sets the default values. +// NewDeviceEnrollmentWindowsHelloForBusinessConfiguration instantiates a new deviceEnrollmentWindowsHelloForBusinessConfiguration and sets the default values. func NewDeviceEnrollmentWindowsHelloForBusinessConfiguration()(*DeviceEnrollmentWindowsHelloForBusinessConfiguration) { m := &DeviceEnrollmentWindowsHelloForBusinessConfiguration{ DeviceEnrollmentConfiguration: *NewDeviceEnrollmentConfiguration(), diff --git a/models/device_health_script.go b/models/device_health_script.go index 564782533b0..2af68a1d43f 100644 --- a/models/device_health_script.go +++ b/models/device_health_script.go @@ -260,6 +260,16 @@ func (m *DeviceHealthScript) GetFieldDeserializers()(map[string]func(i878a80d233 } 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["publisher"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -387,6 +397,17 @@ func (m *DeviceHealthScript) GetLastModifiedDateTime()(*i336074805fc853987abe6f7 } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceHealthScript) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPublisher gets the publisher property value. Name of the device health script publisher func (m *DeviceHealthScript) GetPublisher()(*string) { val, err := m.GetBackingStore().Get("publisher") @@ -560,6 +581,12 @@ func (m *DeviceHealthScript) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("publisher", m.GetPublisher()) if err != nil { @@ -701,6 +728,13 @@ func (m *DeviceHealthScript) SetLastModifiedDateTime(value *i336074805fc853987ab panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceHealthScript) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPublisher sets the publisher property value. Name of the device health script publisher func (m *DeviceHealthScript) SetPublisher(value *string)() { err := m.GetBackingStore().Set("publisher", value) @@ -773,6 +807,7 @@ type DeviceHealthScriptable interface { GetHighestAvailableVersion()(*string) GetIsGlobalScript()(*bool) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetPublisher()(*string) GetRemediationScriptContent()([]byte) GetRemediationScriptParameters()([]DeviceHealthScriptParameterable) @@ -793,6 +828,7 @@ type DeviceHealthScriptable interface { SetHighestAvailableVersion(value *string)() SetIsGlobalScript(value *bool)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetPublisher(value *string)() SetRemediationScriptContent(value []byte)() SetRemediationScriptParameters(value []DeviceHealthScriptParameterable)() diff --git a/models/device_health_script_assignment.go b/models/device_health_script_assignment.go index d4f0880b5fe..22bdeadd91c 100644 --- a/models/device_health_script_assignment.go +++ b/models/device_health_script_assignment.go @@ -7,6 +7,8 @@ import ( // DeviceHealthScriptAssignment contains properties used to assign a device management script to a group. type DeviceHealthScriptAssignment struct { Entity + // The OdataType property + OdataType *string } // NewDeviceHealthScriptAssignment instantiates a new deviceHealthScriptAssignment and sets the default values. func NewDeviceHealthScriptAssignment()(*DeviceHealthScriptAssignment) { diff --git a/models/device_health_script_assignment_collection_response.go b/models/device_health_script_assignment_collection_response.go index ca772ec4cc6..8bf1060e74e 100644 --- a/models/device_health_script_assignment_collection_response.go +++ b/models/device_health_script_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceHealthScriptAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceHealthScriptAssignmentCollectionResponse instantiates a new DeviceHealthScriptAssignmentCollectionResponse and sets the default values. +// NewDeviceHealthScriptAssignmentCollectionResponse instantiates a new deviceHealthScriptAssignmentCollectionResponse and sets the default values. func NewDeviceHealthScriptAssignmentCollectionResponse()(*DeviceHealthScriptAssignmentCollectionResponse) { m := &DeviceHealthScriptAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_health_script_boolean_parameter.go b/models/device_health_script_boolean_parameter.go index 76d66b3e9be..f1fb1426273 100644 --- a/models/device_health_script_boolean_parameter.go +++ b/models/device_health_script_boolean_parameter.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceHealthScriptBooleanParameter +// DeviceHealthScriptBooleanParameter properties of the Booolean script parameter. type DeviceHealthScriptBooleanParameter struct { DeviceHealthScriptParameter } -// NewDeviceHealthScriptBooleanParameter instantiates a new DeviceHealthScriptBooleanParameter and sets the default values. +// NewDeviceHealthScriptBooleanParameter instantiates a new deviceHealthScriptBooleanParameter and sets the default values. func NewDeviceHealthScriptBooleanParameter()(*DeviceHealthScriptBooleanParameter) { m := &DeviceHealthScriptBooleanParameter{ DeviceHealthScriptParameter: *NewDeviceHealthScriptParameter(), @@ -45,8 +45,29 @@ func (m *DeviceHealthScriptBooleanParameter) GetFieldDeserializers()(map[string] } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceHealthScriptBooleanParameter) 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 *DeviceHealthScriptBooleanParameter) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceHealthScriptParameter.Serialize(writer) @@ -59,6 +80,12 @@ func (m *DeviceHealthScriptBooleanParameter) Serialize(writer i878a80d2330e89d26 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDefaultValue sets the defaultValue property value. The default value of boolean param @@ -68,10 +95,19 @@ func (m *DeviceHealthScriptBooleanParameter) SetDefaultValue(value *bool)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceHealthScriptBooleanParameter) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceHealthScriptBooleanParameterable type DeviceHealthScriptBooleanParameterable interface { DeviceHealthScriptParameterable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDefaultValue()(*bool) + GetOdataType()(*string) SetDefaultValue(value *bool)() + SetOdataType(value *string)() } diff --git a/models/device_health_script_collection_response.go b/models/device_health_script_collection_response.go index 73a41bdb716..504f27cca59 100644 --- a/models/device_health_script_collection_response.go +++ b/models/device_health_script_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceHealthScriptCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceHealthScriptCollectionResponse instantiates a new DeviceHealthScriptCollectionResponse and sets the default values. +// NewDeviceHealthScriptCollectionResponse instantiates a new deviceHealthScriptCollectionResponse and sets the default values. func NewDeviceHealthScriptCollectionResponse()(*DeviceHealthScriptCollectionResponse) { m := &DeviceHealthScriptCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_health_script_daily_schedule.go b/models/device_health_script_daily_schedule.go index bd1257accd3..b842efb919b 100644 --- a/models/device_health_script_daily_schedule.go +++ b/models/device_health_script_daily_schedule.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceHealthScriptDailySchedule +// DeviceHealthScriptDailySchedule device health script daily schedule. type DeviceHealthScriptDailySchedule struct { DeviceHealthScriptTimeSchedule } -// NewDeviceHealthScriptDailySchedule instantiates a new DeviceHealthScriptDailySchedule and sets the default values. +// NewDeviceHealthScriptDailySchedule instantiates a new deviceHealthScriptDailySchedule and sets the default values. func NewDeviceHealthScriptDailySchedule()(*DeviceHealthScriptDailySchedule) { m := &DeviceHealthScriptDailySchedule{ DeviceHealthScriptTimeSchedule: *NewDeviceHealthScriptTimeSchedule(), @@ -24,18 +24,54 @@ func CreateDeviceHealthScriptDailyScheduleFromDiscriminatorValue(parseNode i878a // GetFieldDeserializers the deserialization information for the current model func (m *DeviceHealthScriptDailySchedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceHealthScriptTimeSchedule.GetFieldDeserializers() + 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 *DeviceHealthScriptDailySchedule) 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 *DeviceHealthScriptDailySchedule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceHealthScriptTimeSchedule.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceHealthScriptDailySchedule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceHealthScriptDailyScheduleable type DeviceHealthScriptDailyScheduleable interface { DeviceHealthScriptTimeScheduleable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/device_health_script_device_state.go b/models/device_health_script_device_state.go index 98e6f3b7c37..252413bb95c 100644 --- a/models/device_health_script_device_state.go +++ b/models/device_health_script_device_state.go @@ -8,6 +8,8 @@ import ( // DeviceHealthScriptDeviceState contains properties for device run state of the device health script. type DeviceHealthScriptDeviceState struct { Entity + // The OdataType property + OdataType *string } // NewDeviceHealthScriptDeviceState instantiates a new deviceHealthScriptDeviceState and sets the default values. func NewDeviceHealthScriptDeviceState()(*DeviceHealthScriptDeviceState) { diff --git a/models/device_health_script_device_state_collection_response.go b/models/device_health_script_device_state_collection_response.go index 6d35a762d7c..22af6724c48 100644 --- a/models/device_health_script_device_state_collection_response.go +++ b/models/device_health_script_device_state_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceHealthScriptDeviceStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceHealthScriptDeviceStateCollectionResponse instantiates a new DeviceHealthScriptDeviceStateCollectionResponse and sets the default values. +// NewDeviceHealthScriptDeviceStateCollectionResponse instantiates a new deviceHealthScriptDeviceStateCollectionResponse and sets the default values. func NewDeviceHealthScriptDeviceStateCollectionResponse()(*DeviceHealthScriptDeviceStateCollectionResponse) { m := &DeviceHealthScriptDeviceStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_health_script_hourly_schedule.go b/models/device_health_script_hourly_schedule.go index 7d3a362b8ef..8aee0b2d129 100644 --- a/models/device_health_script_hourly_schedule.go +++ b/models/device_health_script_hourly_schedule.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceHealthScriptHourlySchedule +// DeviceHealthScriptHourlySchedule type of Device health script hourly schedule. type DeviceHealthScriptHourlySchedule struct { DeviceHealthScriptRunSchedule } -// NewDeviceHealthScriptHourlySchedule instantiates a new DeviceHealthScriptHourlySchedule and sets the default values. +// NewDeviceHealthScriptHourlySchedule instantiates a new deviceHealthScriptHourlySchedule and sets the default values. func NewDeviceHealthScriptHourlySchedule()(*DeviceHealthScriptHourlySchedule) { m := &DeviceHealthScriptHourlySchedule{ DeviceHealthScriptRunSchedule: *NewDeviceHealthScriptRunSchedule(), @@ -24,18 +24,54 @@ func CreateDeviceHealthScriptHourlyScheduleFromDiscriminatorValue(parseNode i878 // GetFieldDeserializers the deserialization information for the current model func (m *DeviceHealthScriptHourlySchedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceHealthScriptRunSchedule.GetFieldDeserializers() + 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 *DeviceHealthScriptHourlySchedule) 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 *DeviceHealthScriptHourlySchedule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceHealthScriptRunSchedule.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceHealthScriptHourlySchedule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceHealthScriptHourlyScheduleable type DeviceHealthScriptHourlyScheduleable interface { DeviceHealthScriptRunScheduleable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/device_health_script_integer_parameter.go b/models/device_health_script_integer_parameter.go index 60f8117c380..760b5fff59e 100644 --- a/models/device_health_script_integer_parameter.go +++ b/models/device_health_script_integer_parameter.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceHealthScriptIntegerParameter +// DeviceHealthScriptIntegerParameter properties of the Integer script parameter. type DeviceHealthScriptIntegerParameter struct { DeviceHealthScriptParameter } -// NewDeviceHealthScriptIntegerParameter instantiates a new DeviceHealthScriptIntegerParameter and sets the default values. +// NewDeviceHealthScriptIntegerParameter instantiates a new deviceHealthScriptIntegerParameter and sets the default values. func NewDeviceHealthScriptIntegerParameter()(*DeviceHealthScriptIntegerParameter) { m := &DeviceHealthScriptIntegerParameter{ DeviceHealthScriptParameter: *NewDeviceHealthScriptParameter(), @@ -45,8 +45,29 @@ func (m *DeviceHealthScriptIntegerParameter) GetFieldDeserializers()(map[string] } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceHealthScriptIntegerParameter) 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 *DeviceHealthScriptIntegerParameter) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceHealthScriptParameter.Serialize(writer) @@ -59,6 +80,12 @@ func (m *DeviceHealthScriptIntegerParameter) Serialize(writer i878a80d2330e89d26 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDefaultValue sets the defaultValue property value. The default value of Integer param. Valid values -2147483648 to 2147483647 @@ -68,10 +95,19 @@ func (m *DeviceHealthScriptIntegerParameter) SetDefaultValue(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceHealthScriptIntegerParameter) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceHealthScriptIntegerParameterable type DeviceHealthScriptIntegerParameterable interface { DeviceHealthScriptParameterable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDefaultValue()(*int32) + GetOdataType()(*string) SetDefaultValue(value *int32)() + SetOdataType(value *string)() } diff --git a/models/device_health_script_policy_state.go b/models/device_health_script_policy_state.go index a2af27bdbc7..a84c6f84a45 100644 --- a/models/device_health_script_policy_state.go +++ b/models/device_health_script_policy_state.go @@ -11,7 +11,7 @@ type DeviceHealthScriptPolicyState struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeviceHealthScriptPolicyState instantiates a new DeviceHealthScriptPolicyState and sets the default values. +// NewDeviceHealthScriptPolicyState instantiates a new deviceHealthScriptPolicyState and sets the default values. func NewDeviceHealthScriptPolicyState()(*DeviceHealthScriptPolicyState) { m := &DeviceHealthScriptPolicyState{ } diff --git a/models/device_health_script_policy_state_collection_response.go b/models/device_health_script_policy_state_collection_response.go index 2b66241d95a..24c6be0408d 100644 --- a/models/device_health_script_policy_state_collection_response.go +++ b/models/device_health_script_policy_state_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceHealthScriptPolicyStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceHealthScriptPolicyStateCollectionResponse instantiates a new DeviceHealthScriptPolicyStateCollectionResponse and sets the default values. +// NewDeviceHealthScriptPolicyStateCollectionResponse instantiates a new deviceHealthScriptPolicyStateCollectionResponse and sets the default values. func NewDeviceHealthScriptPolicyStateCollectionResponse()(*DeviceHealthScriptPolicyStateCollectionResponse) { m := &DeviceHealthScriptPolicyStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_health_script_remediation_history_data.go b/models/device_health_script_remediation_history_data.go index e512b307902..c3f9fb79952 100644 --- a/models/device_health_script_remediation_history_data.go +++ b/models/device_health_script_remediation_history_data.go @@ -10,7 +10,7 @@ type DeviceHealthScriptRemediationHistoryData struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeviceHealthScriptRemediationHistoryData instantiates a new DeviceHealthScriptRemediationHistoryData and sets the default values. +// NewDeviceHealthScriptRemediationHistoryData instantiates a new deviceHealthScriptRemediationHistoryData and sets the default values. func NewDeviceHealthScriptRemediationHistoryData()(*DeviceHealthScriptRemediationHistoryData) { m := &DeviceHealthScriptRemediationHistoryData{ } diff --git a/models/device_health_script_run_once_schedule.go b/models/device_health_script_run_once_schedule.go index 196207bfb28..331d92d5fb8 100644 --- a/models/device_health_script_run_once_schedule.go +++ b/models/device_health_script_run_once_schedule.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceHealthScriptRunOnceSchedule +// DeviceHealthScriptRunOnceSchedule device health script run once schedule. type DeviceHealthScriptRunOnceSchedule struct { DeviceHealthScriptTimeSchedule + // The OdataType property + OdataType *string } -// NewDeviceHealthScriptRunOnceSchedule instantiates a new DeviceHealthScriptRunOnceSchedule and sets the default values. +// NewDeviceHealthScriptRunOnceSchedule instantiates a new deviceHealthScriptRunOnceSchedule and sets the default values. func NewDeviceHealthScriptRunOnceSchedule()(*DeviceHealthScriptRunOnceSchedule) { m := &DeviceHealthScriptRunOnceSchedule{ DeviceHealthScriptTimeSchedule: *NewDeviceHealthScriptTimeSchedule(), diff --git a/models/device_health_script_run_summary.go b/models/device_health_script_run_summary.go index 165630147f2..903ff4c4b02 100644 --- a/models/device_health_script_run_summary.go +++ b/models/device_health_script_run_summary.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceHealthScriptRunSummary +// DeviceHealthScriptRunSummary contains properties for the run summary of a device management script. type DeviceHealthScriptRunSummary struct { Entity + // The OdataType property + OdataType *string } // NewDeviceHealthScriptRunSummary instantiates a new deviceHealthScriptRunSummary and sets the default values. func NewDeviceHealthScriptRunSummary()(*DeviceHealthScriptRunSummary) { diff --git a/models/device_health_script_string_parameter.go b/models/device_health_script_string_parameter.go index 1f670c9d57f..096d44fb6c8 100644 --- a/models/device_health_script_string_parameter.go +++ b/models/device_health_script_string_parameter.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceHealthScriptStringParameter +// DeviceHealthScriptStringParameter properties of the String script parameter. type DeviceHealthScriptStringParameter struct { DeviceHealthScriptParameter } -// NewDeviceHealthScriptStringParameter instantiates a new DeviceHealthScriptStringParameter and sets the default values. +// NewDeviceHealthScriptStringParameter instantiates a new deviceHealthScriptStringParameter and sets the default values. func NewDeviceHealthScriptStringParameter()(*DeviceHealthScriptStringParameter) { m := &DeviceHealthScriptStringParameter{ DeviceHealthScriptParameter: *NewDeviceHealthScriptParameter(), @@ -45,8 +45,29 @@ func (m *DeviceHealthScriptStringParameter) GetFieldDeserializers()(map[string]f } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceHealthScriptStringParameter) 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 *DeviceHealthScriptStringParameter) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceHealthScriptParameter.Serialize(writer) @@ -59,6 +80,12 @@ func (m *DeviceHealthScriptStringParameter) Serialize(writer i878a80d2330e89d268 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDefaultValue sets the defaultValue property value. The default value of string param @@ -68,10 +95,19 @@ func (m *DeviceHealthScriptStringParameter) SetDefaultValue(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceHealthScriptStringParameter) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceHealthScriptStringParameterable type DeviceHealthScriptStringParameterable interface { DeviceHealthScriptParameterable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDefaultValue()(*string) + GetOdataType()(*string) SetDefaultValue(value *string)() + SetOdataType(value *string)() } diff --git a/models/device_health_script_time_schedule.go b/models/device_health_script_time_schedule.go index 8f3761a7642..a3c632aec02 100644 --- a/models/device_health_script_time_schedule.go +++ b/models/device_health_script_time_schedule.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceHealthScriptTimeSchedule +// DeviceHealthScriptTimeSchedule base type of Device health script time schedule. type DeviceHealthScriptTimeSchedule struct { DeviceHealthScriptRunSchedule } -// NewDeviceHealthScriptTimeSchedule instantiates a new DeviceHealthScriptTimeSchedule and sets the default values. +// NewDeviceHealthScriptTimeSchedule instantiates a new deviceHealthScriptTimeSchedule and sets the default values. func NewDeviceHealthScriptTimeSchedule()(*DeviceHealthScriptTimeSchedule) { m := &DeviceHealthScriptTimeSchedule{ DeviceHealthScriptRunSchedule: *NewDeviceHealthScriptRunSchedule(), @@ -44,6 +44,16 @@ func CreateDeviceHealthScriptTimeScheduleFromDiscriminatorValue(parseNode i878a8 // GetFieldDeserializers the deserialization information for the current model func (m *DeviceHealthScriptTimeSchedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceHealthScriptRunSchedule.GetFieldDeserializers() + 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["time"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeOnlyValue() if err != nil { @@ -66,6 +76,17 @@ func (m *DeviceHealthScriptTimeSchedule) GetFieldDeserializers()(map[string]func } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceHealthScriptTimeSchedule) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTime gets the time property value. At what time the script is scheduled to run. This collection can contain a maximum of 20 elements. func (m *DeviceHealthScriptTimeSchedule) GetTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly) { val, err := m.GetBackingStore().Get("time") @@ -94,6 +115,12 @@ func (m *DeviceHealthScriptTimeSchedule) Serialize(writer i878a80d2330e89d268963 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteTimeOnlyValue("time", m.GetTime()) if err != nil { @@ -108,6 +135,13 @@ func (m *DeviceHealthScriptTimeSchedule) Serialize(writer i878a80d2330e89d268963 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceHealthScriptTimeSchedule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTime sets the time property value. At what time the script is scheduled to run. This collection can contain a maximum of 20 elements. func (m *DeviceHealthScriptTimeSchedule) SetTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly)() { err := m.GetBackingStore().Set("time", value) @@ -126,8 +160,10 @@ func (m *DeviceHealthScriptTimeSchedule) SetUseUtc(value *bool)() { type DeviceHealthScriptTimeScheduleable interface { DeviceHealthScriptRunScheduleable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly) GetUseUtc()(*bool) + SetOdataType(value *string)() SetTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.TimeOnly)() SetUseUtc(value *bool)() } diff --git a/models/device_install_state.go b/models/device_install_state.go index 0979ff6585e..2783b8d9601 100644 --- a/models/device_install_state.go +++ b/models/device_install_state.go @@ -8,6 +8,8 @@ import ( // DeviceInstallState contains properties for the installation state for a device. type DeviceInstallState struct { Entity + // The OdataType property + OdataType *string } // NewDeviceInstallState instantiates a new deviceInstallState and sets the default values. func NewDeviceInstallState()(*DeviceInstallState) { diff --git a/models/device_install_state_collection_response.go b/models/device_install_state_collection_response.go index 7078376553a..13a458bddf0 100644 --- a/models/device_install_state_collection_response.go +++ b/models/device_install_state_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceInstallStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceInstallStateCollectionResponse instantiates a new DeviceInstallStateCollectionResponse and sets the default values. +// NewDeviceInstallStateCollectionResponse instantiates a new deviceInstallStateCollectionResponse and sets the default values. func NewDeviceInstallStateCollectionResponse()(*DeviceInstallStateCollectionResponse) { m := &DeviceInstallStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_key.go b/models/device_key.go index 5585a286dba..e6ab432ec09 100644 --- a/models/device_key.go +++ b/models/device_key.go @@ -11,7 +11,7 @@ type DeviceKey struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeviceKey instantiates a new DeviceKey and sets the default values. +// NewDeviceKey instantiates a new deviceKey and sets the default values. func NewDeviceKey()(*DeviceKey) { m := &DeviceKey{ } diff --git a/models/device_local_credential.go b/models/device_local_credential.go index 3553509c3b1..9605fd02d11 100644 --- a/models/device_local_credential.go +++ b/models/device_local_credential.go @@ -8,6 +8,8 @@ import ( // DeviceLocalCredential type DeviceLocalCredential struct { Entity + // The OdataType property + OdataType *string } // NewDeviceLocalCredential instantiates a new deviceLocalCredential and sets the default values. func NewDeviceLocalCredential()(*DeviceLocalCredential) { diff --git a/models/device_local_credential_info.go b/models/device_local_credential_info.go index 156ce29fc8e..1cd0615b4c6 100644 --- a/models/device_local_credential_info.go +++ b/models/device_local_credential_info.go @@ -8,8 +8,10 @@ import ( // DeviceLocalCredentialInfo type DeviceLocalCredentialInfo struct { Entity + // The OdataType property + OdataType *string } -// NewDeviceLocalCredentialInfo instantiates a new DeviceLocalCredentialInfo and sets the default values. +// NewDeviceLocalCredentialInfo instantiates a new deviceLocalCredentialInfo and sets the default values. func NewDeviceLocalCredentialInfo()(*DeviceLocalCredentialInfo) { m := &DeviceLocalCredentialInfo{ Entity: *NewEntity(), diff --git a/models/device_local_credential_info_collection_response.go b/models/device_local_credential_info_collection_response.go index 203898e5cb1..823efc01abd 100644 --- a/models/device_local_credential_info_collection_response.go +++ b/models/device_local_credential_info_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceLocalCredentialInfoCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceLocalCredentialInfoCollectionResponse instantiates a new DeviceLocalCredentialInfoCollectionResponse and sets the default values. +// NewDeviceLocalCredentialInfoCollectionResponse instantiates a new deviceLocalCredentialInfoCollectionResponse and sets the default values. func NewDeviceLocalCredentialInfoCollectionResponse()(*DeviceLocalCredentialInfoCollectionResponse) { m := &DeviceLocalCredentialInfoCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_log_collection_response.go b/models/device_log_collection_response.go index aa2d1e3acc9..37804981c5e 100644 --- a/models/device_log_collection_response.go +++ b/models/device_log_collection_response.go @@ -9,6 +9,8 @@ import ( // DeviceLogCollectionResponse windows Log Collection request entity. type DeviceLogCollectionResponse struct { Entity + // The OdataType property + OdataType *string } // NewDeviceLogCollectionResponse instantiates a new deviceLogCollectionResponse and sets the default values. func NewDeviceLogCollectionResponse()(*DeviceLogCollectionResponse) { diff --git a/models/device_log_collection_response_collection_response.go b/models/device_log_collection_response_collection_response.go index 126efea382d..48ee8bc37af 100644 --- a/models/device_log_collection_response_collection_response.go +++ b/models/device_log_collection_response_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceLogCollectionResponseCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceLogCollectionResponseCollectionResponse instantiates a new DeviceLogCollectionResponseCollectionResponse and sets the default values. +// NewDeviceLogCollectionResponseCollectionResponse instantiates a new deviceLogCollectionResponseCollectionResponse and sets the default values. func NewDeviceLogCollectionResponseCollectionResponse()(*DeviceLogCollectionResponseCollectionResponse) { m := &DeviceLogCollectionResponseCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management.go b/models/device_management.go index 9aea2640a43..b1ab861dc10 100644 --- a/models/device_management.go +++ b/models/device_management.go @@ -6,11 +6,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagement +// DeviceManagement singleton entity that acts as a container for all device management functionality. type DeviceManagement struct { Entity + // The OdataType property + OdataType *string } -// NewDeviceManagement instantiates a new DeviceManagement and sets the default values. +// NewDeviceManagement instantiates a new deviceManagement and sets the default values. func NewDeviceManagement()(*DeviceManagement) { m := &DeviceManagement{ Entity: *NewEntity(), diff --git a/models/device_management_abstract_complex_setting_definition.go b/models/device_management_abstract_complex_setting_definition.go index b1fe7e97a1c..d497ab79d15 100644 --- a/models/device_management_abstract_complex_setting_definition.go +++ b/models/device_management_abstract_complex_setting_definition.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementAbstractComplexSettingDefinition +// DeviceManagementAbstractComplexSettingDefinition entity representing the defintion for an abstract complex setting type DeviceManagementAbstractComplexSettingDefinition struct { DeviceManagementSettingDefinition } -// NewDeviceManagementAbstractComplexSettingDefinition instantiates a new DeviceManagementAbstractComplexSettingDefinition and sets the default values. +// NewDeviceManagementAbstractComplexSettingDefinition instantiates a new deviceManagementAbstractComplexSettingDefinition and sets the default values. func NewDeviceManagementAbstractComplexSettingDefinition()(*DeviceManagementAbstractComplexSettingDefinition) { m := &DeviceManagementAbstractComplexSettingDefinition{ DeviceManagementSettingDefinition: *NewDeviceManagementSettingDefinition(), diff --git a/models/device_management_abstract_complex_setting_instance.go b/models/device_management_abstract_complex_setting_instance.go index f150586f620..ab4ac45da97 100644 --- a/models/device_management_abstract_complex_setting_instance.go +++ b/models/device_management_abstract_complex_setting_instance.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementAbstractComplexSettingInstance +// DeviceManagementAbstractComplexSettingInstance a setting instance representing a complex value for an abstract setting type DeviceManagementAbstractComplexSettingInstance struct { DeviceManagementSettingInstance } -// NewDeviceManagementAbstractComplexSettingInstance instantiates a new DeviceManagementAbstractComplexSettingInstance and sets the default values. +// NewDeviceManagementAbstractComplexSettingInstance instantiates a new deviceManagementAbstractComplexSettingInstance and sets the default values. func NewDeviceManagementAbstractComplexSettingInstance()(*DeviceManagementAbstractComplexSettingInstance) { m := &DeviceManagementAbstractComplexSettingInstance{ DeviceManagementSettingInstance: *NewDeviceManagementSettingInstance(), diff --git a/models/device_management_autopilot_event.go b/models/device_management_autopilot_event.go index 49dce723c3b..2943ad8a0ea 100644 --- a/models/device_management_autopilot_event.go +++ b/models/device_management_autopilot_event.go @@ -411,6 +411,16 @@ func (m *DeviceManagementAutopilotEvent) GetFieldDeserializers()(map[string]func } 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["osVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -510,6 +520,17 @@ func (m *DeviceManagementAutopilotEvent) GetManagedDeviceName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceManagementAutopilotEvent) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOsVersion gets the osVersion property value. Device operating system version. func (m *DeviceManagementAutopilotEvent) GetOsVersion()(*string) { val, err := m.GetBackingStore().Get("osVersion") @@ -723,6 +744,12 @@ func (m *DeviceManagementAutopilotEvent) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("osVersion", m.GetOsVersion()) if err != nil { @@ -912,6 +939,13 @@ func (m *DeviceManagementAutopilotEvent) SetManagedDeviceName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementAutopilotEvent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOsVersion sets the osVersion property value. Device operating system version. func (m *DeviceManagementAutopilotEvent) SetOsVersion(value *string)() { err := m.GetBackingStore().Set("osVersion", value) @@ -991,6 +1025,7 @@ type DeviceManagementAutopilotEventable interface { GetEnrollmentType()(*WindowsAutopilotEnrollmentType) GetEventDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetManagedDeviceName()(*string) + GetOdataType()(*string) GetOsVersion()(*string) GetPolicyStatusDetails()([]DeviceManagementAutopilotPolicyStatusDetailable) GetTargetedAppCount()(*int32) @@ -1018,6 +1053,7 @@ type DeviceManagementAutopilotEventable interface { SetEnrollmentType(value *WindowsAutopilotEnrollmentType)() SetEventDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetManagedDeviceName(value *string)() + SetOdataType(value *string)() SetOsVersion(value *string)() SetPolicyStatusDetails(value []DeviceManagementAutopilotPolicyStatusDetailable)() SetTargetedAppCount(value *int32)() diff --git a/models/device_management_autopilot_event_collection_response.go b/models/device_management_autopilot_event_collection_response.go index fd9bc9c4997..7a7fe118e45 100644 --- a/models/device_management_autopilot_event_collection_response.go +++ b/models/device_management_autopilot_event_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementAutopilotEventCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementAutopilotEventCollectionResponse instantiates a new DeviceManagementAutopilotEventCollectionResponse and sets the default values. +// NewDeviceManagementAutopilotEventCollectionResponse instantiates a new deviceManagementAutopilotEventCollectionResponse and sets the default values. func NewDeviceManagementAutopilotEventCollectionResponse()(*DeviceManagementAutopilotEventCollectionResponse) { m := &DeviceManagementAutopilotEventCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_autopilot_policy_status_detail.go b/models/device_management_autopilot_policy_status_detail.go index 2927d95884e..c129b720a36 100644 --- a/models/device_management_autopilot_policy_status_detail.go +++ b/models/device_management_autopilot_policy_status_detail.go @@ -8,6 +8,8 @@ import ( // DeviceManagementAutopilotPolicyStatusDetail policy status detail item contained by an autopilot event. type DeviceManagementAutopilotPolicyStatusDetail struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementAutopilotPolicyStatusDetail instantiates a new deviceManagementAutopilotPolicyStatusDetail and sets the default values. func NewDeviceManagementAutopilotPolicyStatusDetail()(*DeviceManagementAutopilotPolicyStatusDetail) { diff --git a/models/device_management_autopilot_policy_status_detail_collection_response.go b/models/device_management_autopilot_policy_status_detail_collection_response.go index ae27d97b774..b77dc27da39 100644 --- a/models/device_management_autopilot_policy_status_detail_collection_response.go +++ b/models/device_management_autopilot_policy_status_detail_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementAutopilotPolicyStatusDetailCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementAutopilotPolicyStatusDetailCollectionResponse instantiates a new DeviceManagementAutopilotPolicyStatusDetailCollectionResponse and sets the default values. +// NewDeviceManagementAutopilotPolicyStatusDetailCollectionResponse instantiates a new deviceManagementAutopilotPolicyStatusDetailCollectionResponse and sets the default values. func NewDeviceManagementAutopilotPolicyStatusDetailCollectionResponse()(*DeviceManagementAutopilotPolicyStatusDetailCollectionResponse) { m := &DeviceManagementAutopilotPolicyStatusDetailCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_boolean_setting_instance.go b/models/device_management_boolean_setting_instance.go index ecc9ce25030..5c592430aaf 100644 --- a/models/device_management_boolean_setting_instance.go +++ b/models/device_management_boolean_setting_instance.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementBooleanSettingInstance +// DeviceManagementBooleanSettingInstance a setting instance representing a boolean value type DeviceManagementBooleanSettingInstance struct { DeviceManagementSettingInstance } -// NewDeviceManagementBooleanSettingInstance instantiates a new DeviceManagementBooleanSettingInstance and sets the default values. +// NewDeviceManagementBooleanSettingInstance instantiates a new deviceManagementBooleanSettingInstance and sets the default values. func NewDeviceManagementBooleanSettingInstance()(*DeviceManagementBooleanSettingInstance) { m := &DeviceManagementBooleanSettingInstance{ DeviceManagementSettingInstance: *NewDeviceManagementSettingInstance(), diff --git a/models/device_management_cached_report_configuration.go b/models/device_management_cached_report_configuration.go index c3bb1805d24..037f60e5fa7 100644 --- a/models/device_management_cached_report_configuration.go +++ b/models/device_management_cached_report_configuration.go @@ -8,6 +8,8 @@ import ( // DeviceManagementCachedReportConfiguration entity representing the configuration of a cached report type DeviceManagementCachedReportConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementCachedReportConfiguration instantiates a new deviceManagementCachedReportConfiguration and sets the default values. func NewDeviceManagementCachedReportConfiguration()(*DeviceManagementCachedReportConfiguration) { diff --git a/models/device_management_cached_report_configuration_collection_response.go b/models/device_management_cached_report_configuration_collection_response.go index 8ca90f139b7..c291e5ecb0e 100644 --- a/models/device_management_cached_report_configuration_collection_response.go +++ b/models/device_management_cached_report_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementCachedReportConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementCachedReportConfigurationCollectionResponse instantiates a new DeviceManagementCachedReportConfigurationCollectionResponse and sets the default values. +// NewDeviceManagementCachedReportConfigurationCollectionResponse instantiates a new deviceManagementCachedReportConfigurationCollectionResponse and sets the default values. func NewDeviceManagementCachedReportConfigurationCollectionResponse()(*DeviceManagementCachedReportConfigurationCollectionResponse) { m := &DeviceManagementCachedReportConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_collection_setting_definition.go b/models/device_management_collection_setting_definition.go index 5e745d66efc..9efe246768d 100644 --- a/models/device_management_collection_setting_definition.go +++ b/models/device_management_collection_setting_definition.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementCollectionSettingDefinition +// DeviceManagementCollectionSettingDefinition entity representing the defintion for a collection setting type DeviceManagementCollectionSettingDefinition struct { DeviceManagementSettingDefinition } -// NewDeviceManagementCollectionSettingDefinition instantiates a new DeviceManagementCollectionSettingDefinition and sets the default values. +// NewDeviceManagementCollectionSettingDefinition instantiates a new deviceManagementCollectionSettingDefinition and sets the default values. func NewDeviceManagementCollectionSettingDefinition()(*DeviceManagementCollectionSettingDefinition) { m := &DeviceManagementCollectionSettingDefinition{ DeviceManagementSettingDefinition: *NewDeviceManagementSettingDefinition(), diff --git a/models/device_management_collection_setting_instance.go b/models/device_management_collection_setting_instance.go index 05c0564a781..f36e6fdcd8c 100644 --- a/models/device_management_collection_setting_instance.go +++ b/models/device_management_collection_setting_instance.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementCollectionSettingInstance +// DeviceManagementCollectionSettingInstance a setting instance representing a collection of values type DeviceManagementCollectionSettingInstance struct { DeviceManagementSettingInstance } -// NewDeviceManagementCollectionSettingInstance instantiates a new DeviceManagementCollectionSettingInstance and sets the default values. +// NewDeviceManagementCollectionSettingInstance instantiates a new deviceManagementCollectionSettingInstance and sets the default values. func NewDeviceManagementCollectionSettingInstance()(*DeviceManagementCollectionSettingInstance) { m := &DeviceManagementCollectionSettingInstance{ DeviceManagementSettingInstance: *NewDeviceManagementSettingInstance(), diff --git a/models/device_management_complex_setting_definition.go b/models/device_management_complex_setting_definition.go index 63e4c110920..7031a199be9 100644 --- a/models/device_management_complex_setting_definition.go +++ b/models/device_management_complex_setting_definition.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementComplexSettingDefinition +// DeviceManagementComplexSettingDefinition entity representing the defintion for a complex setting type DeviceManagementComplexSettingDefinition struct { DeviceManagementSettingDefinition } -// NewDeviceManagementComplexSettingDefinition instantiates a new DeviceManagementComplexSettingDefinition and sets the default values. +// NewDeviceManagementComplexSettingDefinition instantiates a new deviceManagementComplexSettingDefinition and sets the default values. func NewDeviceManagementComplexSettingDefinition()(*DeviceManagementComplexSettingDefinition) { m := &DeviceManagementComplexSettingDefinition{ DeviceManagementSettingDefinition: *NewDeviceManagementSettingDefinition(), diff --git a/models/device_management_complex_setting_instance.go b/models/device_management_complex_setting_instance.go index 5c93dfe9490..06c0d97c802 100644 --- a/models/device_management_complex_setting_instance.go +++ b/models/device_management_complex_setting_instance.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementComplexSettingInstance +// DeviceManagementComplexSettingInstance a setting instance representing a complex value type DeviceManagementComplexSettingInstance struct { DeviceManagementSettingInstance } -// NewDeviceManagementComplexSettingInstance instantiates a new DeviceManagementComplexSettingInstance and sets the default values. +// NewDeviceManagementComplexSettingInstance instantiates a new deviceManagementComplexSettingInstance and sets the default values. func NewDeviceManagementComplexSettingInstance()(*DeviceManagementComplexSettingInstance) { m := &DeviceManagementComplexSettingInstance{ DeviceManagementSettingInstance: *NewDeviceManagementSettingInstance(), diff --git a/models/device_management_compliance_action_item.go b/models/device_management_compliance_action_item.go index 39cfc336ca2..228c098f9d6 100644 --- a/models/device_management_compliance_action_item.go +++ b/models/device_management_compliance_action_item.go @@ -7,6 +7,8 @@ import ( // DeviceManagementComplianceActionItem scheduled Action for Rule type DeviceManagementComplianceActionItem struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementComplianceActionItem instantiates a new deviceManagementComplianceActionItem and sets the default values. func NewDeviceManagementComplianceActionItem()(*DeviceManagementComplianceActionItem) { diff --git a/models/device_management_compliance_action_item_collection_response.go b/models/device_management_compliance_action_item_collection_response.go index 974d657003c..7225e575264 100644 --- a/models/device_management_compliance_action_item_collection_response.go +++ b/models/device_management_compliance_action_item_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementComplianceActionItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementComplianceActionItemCollectionResponse instantiates a new DeviceManagementComplianceActionItemCollectionResponse and sets the default values. +// NewDeviceManagementComplianceActionItemCollectionResponse instantiates a new deviceManagementComplianceActionItemCollectionResponse and sets the default values. func NewDeviceManagementComplianceActionItemCollectionResponse()(*DeviceManagementComplianceActionItemCollectionResponse) { m := &DeviceManagementComplianceActionItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_compliance_policy.go b/models/device_management_compliance_policy.go index 4a9b17614e2..831243c72cb 100644 --- a/models/device_management_compliance_policy.go +++ b/models/device_management_compliance_policy.go @@ -8,6 +8,8 @@ import ( // DeviceManagementCompliancePolicy device Management Compliance Policy type DeviceManagementCompliancePolicy struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementCompliancePolicy instantiates a new deviceManagementCompliancePolicy and sets the default values. func NewDeviceManagementCompliancePolicy()(*DeviceManagementCompliancePolicy) { diff --git a/models/device_management_compliance_policy_collection_response.go b/models/device_management_compliance_policy_collection_response.go index fb2c82c6ccb..b003351404b 100644 --- a/models/device_management_compliance_policy_collection_response.go +++ b/models/device_management_compliance_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementCompliancePolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementCompliancePolicyCollectionResponse instantiates a new DeviceManagementCompliancePolicyCollectionResponse and sets the default values. +// NewDeviceManagementCompliancePolicyCollectionResponse instantiates a new deviceManagementCompliancePolicyCollectionResponse and sets the default values. func NewDeviceManagementCompliancePolicyCollectionResponse()(*DeviceManagementCompliancePolicyCollectionResponse) { m := &DeviceManagementCompliancePolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_compliance_scheduled_action_for_rule.go b/models/device_management_compliance_scheduled_action_for_rule.go index 6df54167a9d..50307ef3382 100644 --- a/models/device_management_compliance_scheduled_action_for_rule.go +++ b/models/device_management_compliance_scheduled_action_for_rule.go @@ -7,6 +7,8 @@ import ( // DeviceManagementComplianceScheduledActionForRule scheduled Action for Rule type DeviceManagementComplianceScheduledActionForRule struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementComplianceScheduledActionForRule instantiates a new deviceManagementComplianceScheduledActionForRule and sets the default values. func NewDeviceManagementComplianceScheduledActionForRule()(*DeviceManagementComplianceScheduledActionForRule) { diff --git a/models/device_management_compliance_scheduled_action_for_rule_collection_response.go b/models/device_management_compliance_scheduled_action_for_rule_collection_response.go index 3e3eed812f3..2abf8ac354d 100644 --- a/models/device_management_compliance_scheduled_action_for_rule_collection_response.go +++ b/models/device_management_compliance_scheduled_action_for_rule_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementComplianceScheduledActionForRuleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementComplianceScheduledActionForRuleCollectionResponse instantiates a new DeviceManagementComplianceScheduledActionForRuleCollectionResponse and sets the default values. +// NewDeviceManagementComplianceScheduledActionForRuleCollectionResponse instantiates a new deviceManagementComplianceScheduledActionForRuleCollectionResponse and sets the default values. func NewDeviceManagementComplianceScheduledActionForRuleCollectionResponse()(*DeviceManagementComplianceScheduledActionForRuleCollectionResponse) { m := &DeviceManagementComplianceScheduledActionForRuleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_configuration_application_setting_applicability.go b/models/device_management_configuration_application_setting_applicability.go index f90d2937558..224182ee2b4 100644 --- a/models/device_management_configuration_application_setting_applicability.go +++ b/models/device_management_configuration_application_setting_applicability.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationApplicationSettingApplicability +// DeviceManagementConfigurationApplicationSettingApplicability applicability for a setting that can be targeted on managed Applications by Intune type DeviceManagementConfigurationApplicationSettingApplicability struct { DeviceManagementConfigurationSettingApplicability } -// NewDeviceManagementConfigurationApplicationSettingApplicability instantiates a new DeviceManagementConfigurationApplicationSettingApplicability and sets the default values. +// NewDeviceManagementConfigurationApplicationSettingApplicability instantiates a new deviceManagementConfigurationApplicationSettingApplicability and sets the default values. func NewDeviceManagementConfigurationApplicationSettingApplicability()(*DeviceManagementConfigurationApplicationSettingApplicability) { m := &DeviceManagementConfigurationApplicationSettingApplicability{ DeviceManagementConfigurationSettingApplicability: *NewDeviceManagementConfigurationSettingApplicability(), @@ -24,18 +24,54 @@ func CreateDeviceManagementConfigurationApplicationSettingApplicabilityFromDiscr // GetFieldDeserializers the deserialization information for the current model func (m *DeviceManagementConfigurationApplicationSettingApplicability) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceManagementConfigurationSettingApplicability.GetFieldDeserializers() + 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 *DeviceManagementConfigurationApplicationSettingApplicability) 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 *DeviceManagementConfigurationApplicationSettingApplicability) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceManagementConfigurationSettingApplicability.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationApplicationSettingApplicability) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceManagementConfigurationApplicationSettingApplicabilityable type DeviceManagementConfigurationApplicationSettingApplicabilityable interface { DeviceManagementConfigurationSettingApplicabilityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/device_management_configuration_category.go b/models/device_management_configuration_category.go index ecbd614ab42..28b52c37d3f 100644 --- a/models/device_management_configuration_category.go +++ b/models/device_management_configuration_category.go @@ -7,6 +7,8 @@ import ( // DeviceManagementConfigurationCategory device Management Configuration Policy type DeviceManagementConfigurationCategory struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementConfigurationCategory instantiates a new deviceManagementConfigurationCategory and sets the default values. func NewDeviceManagementConfigurationCategory()(*DeviceManagementConfigurationCategory) { diff --git a/models/device_management_configuration_category_collection_response.go b/models/device_management_configuration_category_collection_response.go index 83ec87f5829..208ef3a293d 100644 --- a/models/device_management_configuration_category_collection_response.go +++ b/models/device_management_configuration_category_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementConfigurationCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementConfigurationCategoryCollectionResponse instantiates a new DeviceManagementConfigurationCategoryCollectionResponse and sets the default values. +// NewDeviceManagementConfigurationCategoryCollectionResponse instantiates a new deviceManagementConfigurationCategoryCollectionResponse and sets the default values. func NewDeviceManagementConfigurationCategoryCollectionResponse()(*DeviceManagementConfigurationCategoryCollectionResponse) { m := &DeviceManagementConfigurationCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_configuration_choice_setting_collection_definition.go b/models/device_management_configuration_choice_setting_collection_definition.go index 89d44e6094d..7fbf0c2f4b5 100644 --- a/models/device_management_configuration_choice_setting_collection_definition.go +++ b/models/device_management_configuration_choice_setting_collection_definition.go @@ -8,7 +8,7 @@ import ( type DeviceManagementConfigurationChoiceSettingCollectionDefinition struct { DeviceManagementConfigurationChoiceSettingDefinition } -// NewDeviceManagementConfigurationChoiceSettingCollectionDefinition instantiates a new DeviceManagementConfigurationChoiceSettingCollectionDefinition and sets the default values. +// NewDeviceManagementConfigurationChoiceSettingCollectionDefinition instantiates a new deviceManagementConfigurationChoiceSettingCollectionDefinition and sets the default values. func NewDeviceManagementConfigurationChoiceSettingCollectionDefinition()(*DeviceManagementConfigurationChoiceSettingCollectionDefinition) { m := &DeviceManagementConfigurationChoiceSettingCollectionDefinition{ DeviceManagementConfigurationChoiceSettingDefinition: *NewDeviceManagementConfigurationChoiceSettingDefinition(), diff --git a/models/device_management_configuration_choice_setting_collection_instance.go b/models/device_management_configuration_choice_setting_collection_instance.go index 1a5992a9cf7..7ebaaa96385 100644 --- a/models/device_management_configuration_choice_setting_collection_instance.go +++ b/models/device_management_configuration_choice_setting_collection_instance.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationChoiceSettingCollectionInstance +// DeviceManagementConfigurationChoiceSettingCollectionInstance setting instance within policy type DeviceManagementConfigurationChoiceSettingCollectionInstance struct { DeviceManagementConfigurationSettingInstance } -// NewDeviceManagementConfigurationChoiceSettingCollectionInstance instantiates a new DeviceManagementConfigurationChoiceSettingCollectionInstance and sets the default values. +// NewDeviceManagementConfigurationChoiceSettingCollectionInstance instantiates a new deviceManagementConfigurationChoiceSettingCollectionInstance and sets the default values. func NewDeviceManagementConfigurationChoiceSettingCollectionInstance()(*DeviceManagementConfigurationChoiceSettingCollectionInstance) { m := &DeviceManagementConfigurationChoiceSettingCollectionInstance{ DeviceManagementConfigurationSettingInstance: *NewDeviceManagementConfigurationSettingInstance(), @@ -51,8 +51,29 @@ func (m *DeviceManagementConfigurationChoiceSettingCollectionInstance) GetFieldD } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationChoiceSettingCollectionInstance) 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 *DeviceManagementConfigurationChoiceSettingCollectionInstance) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceManagementConfigurationSettingInstance.Serialize(writer) @@ -71,6 +92,12 @@ func (m *DeviceManagementConfigurationChoiceSettingCollectionInstance) Serialize return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetChoiceSettingCollectionValue sets the choiceSettingCollectionValue property value. Choice setting collection value @@ -80,10 +107,19 @@ func (m *DeviceManagementConfigurationChoiceSettingCollectionInstance) SetChoice panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationChoiceSettingCollectionInstance) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceManagementConfigurationChoiceSettingCollectionInstanceable type DeviceManagementConfigurationChoiceSettingCollectionInstanceable interface { DeviceManagementConfigurationSettingInstanceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetChoiceSettingCollectionValue()([]DeviceManagementConfigurationChoiceSettingValueable) + GetOdataType()(*string) SetChoiceSettingCollectionValue(value []DeviceManagementConfigurationChoiceSettingValueable)() + SetOdataType(value *string)() } diff --git a/models/device_management_configuration_choice_setting_collection_instance_template.go b/models/device_management_configuration_choice_setting_collection_instance_template.go index 5cc6b66a601..2e4c0bc01bc 100644 --- a/models/device_management_configuration_choice_setting_collection_instance_template.go +++ b/models/device_management_configuration_choice_setting_collection_instance_template.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate +// DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate choice Setting Collection Instance Template type DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate struct { DeviceManagementConfigurationSettingInstanceTemplate } -// NewDeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate instantiates a new DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate and sets the default values. +// NewDeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate instantiates a new deviceManagementConfigurationChoiceSettingCollectionInstanceTemplate and sets the default values. func NewDeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate()(*DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate) { m := &DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate{ DeviceManagementConfigurationSettingInstanceTemplate: *NewDeviceManagementConfigurationSettingInstanceTemplate(), @@ -72,8 +72,29 @@ func (m *DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate) G } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate) 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 *DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceManagementConfigurationSettingInstanceTemplate.Serialize(writer) @@ -98,6 +119,12 @@ func (m *DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate) S return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAllowUnmanagedValues sets the allowUnmanagedValues property value. Linked policy may append values which are not present in the template. @@ -114,12 +141,21 @@ func (m *DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate) S panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplate) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplateable type DeviceManagementConfigurationChoiceSettingCollectionInstanceTemplateable interface { DeviceManagementConfigurationSettingInstanceTemplateable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowUnmanagedValues()(*bool) GetChoiceSettingCollectionValueTemplate()([]DeviceManagementConfigurationChoiceSettingValueTemplateable) + GetOdataType()(*string) SetAllowUnmanagedValues(value *bool)() SetChoiceSettingCollectionValueTemplate(value []DeviceManagementConfigurationChoiceSettingValueTemplateable)() + SetOdataType(value *string)() } diff --git a/models/device_management_configuration_choice_setting_definition.go b/models/device_management_configuration_choice_setting_definition.go index b8739025388..3f2a7ec5a59 100644 --- a/models/device_management_configuration_choice_setting_definition.go +++ b/models/device_management_configuration_choice_setting_definition.go @@ -7,8 +7,10 @@ import ( // DeviceManagementConfigurationChoiceSettingDefinition type DeviceManagementConfigurationChoiceSettingDefinition struct { DeviceManagementConfigurationSettingDefinition + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationChoiceSettingDefinition instantiates a new DeviceManagementConfigurationChoiceSettingDefinition and sets the default values. +// NewDeviceManagementConfigurationChoiceSettingDefinition instantiates a new deviceManagementConfigurationChoiceSettingDefinition and sets the default values. func NewDeviceManagementConfigurationChoiceSettingDefinition()(*DeviceManagementConfigurationChoiceSettingDefinition) { m := &DeviceManagementConfigurationChoiceSettingDefinition{ DeviceManagementConfigurationSettingDefinition: *NewDeviceManagementConfigurationSettingDefinition(), diff --git a/models/device_management_configuration_choice_setting_instance.go b/models/device_management_configuration_choice_setting_instance.go index 472491113bf..4beab112a8c 100644 --- a/models/device_management_configuration_choice_setting_instance.go +++ b/models/device_management_configuration_choice_setting_instance.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationChoiceSettingInstance +// DeviceManagementConfigurationChoiceSettingInstance setting instance within policy type DeviceManagementConfigurationChoiceSettingInstance struct { DeviceManagementConfigurationSettingInstance + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationChoiceSettingInstance instantiates a new DeviceManagementConfigurationChoiceSettingInstance and sets the default values. +// NewDeviceManagementConfigurationChoiceSettingInstance instantiates a new deviceManagementConfigurationChoiceSettingInstance and sets the default values. func NewDeviceManagementConfigurationChoiceSettingInstance()(*DeviceManagementConfigurationChoiceSettingInstance) { m := &DeviceManagementConfigurationChoiceSettingInstance{ DeviceManagementConfigurationSettingInstance: *NewDeviceManagementConfigurationSettingInstance(), diff --git a/models/device_management_configuration_choice_setting_instance_template.go b/models/device_management_configuration_choice_setting_instance_template.go index b3aa93f7ff8..ae0965a6539 100644 --- a/models/device_management_configuration_choice_setting_instance_template.go +++ b/models/device_management_configuration_choice_setting_instance_template.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationChoiceSettingInstanceTemplate +// DeviceManagementConfigurationChoiceSettingInstanceTemplate choice Setting Instance Template type DeviceManagementConfigurationChoiceSettingInstanceTemplate struct { DeviceManagementConfigurationSettingInstanceTemplate + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationChoiceSettingInstanceTemplate instantiates a new DeviceManagementConfigurationChoiceSettingInstanceTemplate and sets the default values. +// NewDeviceManagementConfigurationChoiceSettingInstanceTemplate instantiates a new deviceManagementConfigurationChoiceSettingInstanceTemplate and sets the default values. func NewDeviceManagementConfigurationChoiceSettingInstanceTemplate()(*DeviceManagementConfigurationChoiceSettingInstanceTemplate) { m := &DeviceManagementConfigurationChoiceSettingInstanceTemplate{ DeviceManagementConfigurationSettingInstanceTemplate: *NewDeviceManagementConfigurationSettingInstanceTemplate(), diff --git a/models/device_management_configuration_choice_setting_value.go b/models/device_management_configuration_choice_setting_value.go index 8b40c221b06..44480796e46 100644 --- a/models/device_management_configuration_choice_setting_value.go +++ b/models/device_management_configuration_choice_setting_value.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationChoiceSettingValue +// DeviceManagementConfigurationChoiceSettingValue setting value type DeviceManagementConfigurationChoiceSettingValue struct { DeviceManagementConfigurationSettingValue + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationChoiceSettingValue instantiates a new DeviceManagementConfigurationChoiceSettingValue and sets the default values. +// NewDeviceManagementConfigurationChoiceSettingValue instantiates a new deviceManagementConfigurationChoiceSettingValue and sets the default values. func NewDeviceManagementConfigurationChoiceSettingValue()(*DeviceManagementConfigurationChoiceSettingValue) { m := &DeviceManagementConfigurationChoiceSettingValue{ DeviceManagementConfigurationSettingValue: *NewDeviceManagementConfigurationSettingValue(), diff --git a/models/device_management_configuration_choice_setting_value_constant_default_template.go b/models/device_management_configuration_choice_setting_value_constant_default_template.go index 1b908261210..296bec762ac 100644 --- a/models/device_management_configuration_choice_setting_value_constant_default_template.go +++ b/models/device_management_configuration_choice_setting_value_constant_default_template.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationChoiceSettingValueConstantDefaultTemplate +// DeviceManagementConfigurationChoiceSettingValueConstantDefaultTemplate choice Setting Value Constant Default Template type DeviceManagementConfigurationChoiceSettingValueConstantDefaultTemplate struct { DeviceManagementConfigurationChoiceSettingValueDefaultTemplate + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationChoiceSettingValueConstantDefaultTemplate instantiates a new DeviceManagementConfigurationChoiceSettingValueConstantDefaultTemplate and sets the default values. +// NewDeviceManagementConfigurationChoiceSettingValueConstantDefaultTemplate instantiates a new deviceManagementConfigurationChoiceSettingValueConstantDefaultTemplate and sets the default values. func NewDeviceManagementConfigurationChoiceSettingValueConstantDefaultTemplate()(*DeviceManagementConfigurationChoiceSettingValueConstantDefaultTemplate) { m := &DeviceManagementConfigurationChoiceSettingValueConstantDefaultTemplate{ DeviceManagementConfigurationChoiceSettingValueDefaultTemplate: *NewDeviceManagementConfigurationChoiceSettingValueDefaultTemplate(), diff --git a/models/device_management_configuration_choice_setting_value_template.go b/models/device_management_configuration_choice_setting_value_template.go index 8d7837e1829..c07adb5c044 100644 --- a/models/device_management_configuration_choice_setting_value_template.go +++ b/models/device_management_configuration_choice_setting_value_template.go @@ -10,7 +10,7 @@ type DeviceManagementConfigurationChoiceSettingValueTemplate struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeviceManagementConfigurationChoiceSettingValueTemplate instantiates a new DeviceManagementConfigurationChoiceSettingValueTemplate and sets the default values. +// NewDeviceManagementConfigurationChoiceSettingValueTemplate instantiates a new deviceManagementConfigurationChoiceSettingValueTemplate and sets the default values. func NewDeviceManagementConfigurationChoiceSettingValueTemplate()(*DeviceManagementConfigurationChoiceSettingValueTemplate) { m := &DeviceManagementConfigurationChoiceSettingValueTemplate{ } diff --git a/models/device_management_configuration_exchange_online_setting_applicability.go b/models/device_management_configuration_exchange_online_setting_applicability.go index 917ad0b55da..0fa68f57b3f 100644 --- a/models/device_management_configuration_exchange_online_setting_applicability.go +++ b/models/device_management_configuration_exchange_online_setting_applicability.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationExchangeOnlineSettingApplicability +// DeviceManagementConfigurationExchangeOnlineSettingApplicability applicability for an Exchange Online Setting type DeviceManagementConfigurationExchangeOnlineSettingApplicability struct { DeviceManagementConfigurationSettingApplicability + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationExchangeOnlineSettingApplicability instantiates a new DeviceManagementConfigurationExchangeOnlineSettingApplicability and sets the default values. +// NewDeviceManagementConfigurationExchangeOnlineSettingApplicability instantiates a new deviceManagementConfigurationExchangeOnlineSettingApplicability and sets the default values. func NewDeviceManagementConfigurationExchangeOnlineSettingApplicability()(*DeviceManagementConfigurationExchangeOnlineSettingApplicability) { m := &DeviceManagementConfigurationExchangeOnlineSettingApplicability{ DeviceManagementConfigurationSettingApplicability: *NewDeviceManagementConfigurationSettingApplicability(), diff --git a/models/device_management_configuration_group_setting_collection_instance.go b/models/device_management_configuration_group_setting_collection_instance.go index d89f8b4415f..be02bceb6c4 100644 --- a/models/device_management_configuration_group_setting_collection_instance.go +++ b/models/device_management_configuration_group_setting_collection_instance.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationGroupSettingCollectionInstance +// DeviceManagementConfigurationGroupSettingCollectionInstance instance of a GroupSettingCollection type DeviceManagementConfigurationGroupSettingCollectionInstance struct { DeviceManagementConfigurationSettingInstance } -// NewDeviceManagementConfigurationGroupSettingCollectionInstance instantiates a new DeviceManagementConfigurationGroupSettingCollectionInstance and sets the default values. +// NewDeviceManagementConfigurationGroupSettingCollectionInstance instantiates a new deviceManagementConfigurationGroupSettingCollectionInstance and sets the default values. func NewDeviceManagementConfigurationGroupSettingCollectionInstance()(*DeviceManagementConfigurationGroupSettingCollectionInstance) { m := &DeviceManagementConfigurationGroupSettingCollectionInstance{ DeviceManagementConfigurationSettingInstance: *NewDeviceManagementConfigurationSettingInstance(), @@ -40,6 +40,16 @@ func (m *DeviceManagementConfigurationGroupSettingCollectionInstance) GetFieldDe } 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 } // GetGroupSettingCollectionValue gets the groupSettingCollectionValue property value. A collection of GroupSetting values @@ -53,6 +63,17 @@ func (m *DeviceManagementConfigurationGroupSettingCollectionInstance) GetGroupSe } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationGroupSettingCollectionInstance) 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 *DeviceManagementConfigurationGroupSettingCollectionInstance) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceManagementConfigurationSettingInstance.Serialize(writer) @@ -71,6 +92,12 @@ func (m *DeviceManagementConfigurationGroupSettingCollectionInstance) Serialize( return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetGroupSettingCollectionValue sets the groupSettingCollectionValue property value. A collection of GroupSetting values @@ -80,10 +107,19 @@ func (m *DeviceManagementConfigurationGroupSettingCollectionInstance) SetGroupSe panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationGroupSettingCollectionInstance) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceManagementConfigurationGroupSettingCollectionInstanceable type DeviceManagementConfigurationGroupSettingCollectionInstanceable interface { DeviceManagementConfigurationSettingInstanceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetGroupSettingCollectionValue()([]DeviceManagementConfigurationGroupSettingValueable) + GetOdataType()(*string) SetGroupSettingCollectionValue(value []DeviceManagementConfigurationGroupSettingValueable)() + SetOdataType(value *string)() } diff --git a/models/device_management_configuration_group_setting_collection_instance_template.go b/models/device_management_configuration_group_setting_collection_instance_template.go index 7b5dc1be6b3..327d44e9652 100644 --- a/models/device_management_configuration_group_setting_collection_instance_template.go +++ b/models/device_management_configuration_group_setting_collection_instance_template.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationGroupSettingCollectionInstanceTemplate +// DeviceManagementConfigurationGroupSettingCollectionInstanceTemplate group Setting Collection Instance Template type DeviceManagementConfigurationGroupSettingCollectionInstanceTemplate struct { DeviceManagementConfigurationSettingInstanceTemplate + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationGroupSettingCollectionInstanceTemplate instantiates a new DeviceManagementConfigurationGroupSettingCollectionInstanceTemplate and sets the default values. +// NewDeviceManagementConfigurationGroupSettingCollectionInstanceTemplate instantiates a new deviceManagementConfigurationGroupSettingCollectionInstanceTemplate and sets the default values. func NewDeviceManagementConfigurationGroupSettingCollectionInstanceTemplate()(*DeviceManagementConfigurationGroupSettingCollectionInstanceTemplate) { m := &DeviceManagementConfigurationGroupSettingCollectionInstanceTemplate{ DeviceManagementConfigurationSettingInstanceTemplate: *NewDeviceManagementConfigurationSettingInstanceTemplate(), diff --git a/models/device_management_configuration_group_setting_instance.go b/models/device_management_configuration_group_setting_instance.go index 63a91d72fd1..14664fb3d92 100644 --- a/models/device_management_configuration_group_setting_instance.go +++ b/models/device_management_configuration_group_setting_instance.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationGroupSettingInstance +// DeviceManagementConfigurationGroupSettingInstance instance of a GroupSetting type DeviceManagementConfigurationGroupSettingInstance struct { DeviceManagementConfigurationSettingInstance + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationGroupSettingInstance instantiates a new DeviceManagementConfigurationGroupSettingInstance and sets the default values. +// NewDeviceManagementConfigurationGroupSettingInstance instantiates a new deviceManagementConfigurationGroupSettingInstance and sets the default values. func NewDeviceManagementConfigurationGroupSettingInstance()(*DeviceManagementConfigurationGroupSettingInstance) { m := &DeviceManagementConfigurationGroupSettingInstance{ DeviceManagementConfigurationSettingInstance: *NewDeviceManagementConfigurationSettingInstance(), diff --git a/models/device_management_configuration_group_setting_instance_template.go b/models/device_management_configuration_group_setting_instance_template.go index 64bb19c85da..4b524202f5e 100644 --- a/models/device_management_configuration_group_setting_instance_template.go +++ b/models/device_management_configuration_group_setting_instance_template.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationGroupSettingInstanceTemplate +// DeviceManagementConfigurationGroupSettingInstanceTemplate group Setting Instance Template type DeviceManagementConfigurationGroupSettingInstanceTemplate struct { DeviceManagementConfigurationSettingInstanceTemplate + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationGroupSettingInstanceTemplate instantiates a new DeviceManagementConfigurationGroupSettingInstanceTemplate and sets the default values. +// NewDeviceManagementConfigurationGroupSettingInstanceTemplate instantiates a new deviceManagementConfigurationGroupSettingInstanceTemplate and sets the default values. func NewDeviceManagementConfigurationGroupSettingInstanceTemplate()(*DeviceManagementConfigurationGroupSettingInstanceTemplate) { m := &DeviceManagementConfigurationGroupSettingInstanceTemplate{ DeviceManagementConfigurationSettingInstanceTemplate: *NewDeviceManagementConfigurationSettingInstanceTemplate(), diff --git a/models/device_management_configuration_group_setting_value.go b/models/device_management_configuration_group_setting_value.go index f62f6c97aba..776a75a239a 100644 --- a/models/device_management_configuration_group_setting_value.go +++ b/models/device_management_configuration_group_setting_value.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationGroupSettingValue +// DeviceManagementConfigurationGroupSettingValue value of the GroupSetting type DeviceManagementConfigurationGroupSettingValue struct { DeviceManagementConfigurationSettingValue + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationGroupSettingValue instantiates a new DeviceManagementConfigurationGroupSettingValue and sets the default values. +// NewDeviceManagementConfigurationGroupSettingValue instantiates a new deviceManagementConfigurationGroupSettingValue and sets the default values. func NewDeviceManagementConfigurationGroupSettingValue()(*DeviceManagementConfigurationGroupSettingValue) { m := &DeviceManagementConfigurationGroupSettingValue{ DeviceManagementConfigurationSettingValue: *NewDeviceManagementConfigurationSettingValue(), diff --git a/models/device_management_configuration_group_setting_value_template.go b/models/device_management_configuration_group_setting_value_template.go index 421fee78dc2..f2f87294e26 100644 --- a/models/device_management_configuration_group_setting_value_template.go +++ b/models/device_management_configuration_group_setting_value_template.go @@ -10,7 +10,7 @@ type DeviceManagementConfigurationGroupSettingValueTemplate struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeviceManagementConfigurationGroupSettingValueTemplate instantiates a new DeviceManagementConfigurationGroupSettingValueTemplate and sets the default values. +// NewDeviceManagementConfigurationGroupSettingValueTemplate instantiates a new deviceManagementConfigurationGroupSettingValueTemplate and sets the default values. func NewDeviceManagementConfigurationGroupSettingValueTemplate()(*DeviceManagementConfigurationGroupSettingValueTemplate) { m := &DeviceManagementConfigurationGroupSettingValueTemplate{ } diff --git a/models/device_management_configuration_integer_setting_value.go b/models/device_management_configuration_integer_setting_value.go index ac2c01debbc..f32d860b080 100644 --- a/models/device_management_configuration_integer_setting_value.go +++ b/models/device_management_configuration_integer_setting_value.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationIntegerSettingValue +// DeviceManagementConfigurationIntegerSettingValue simple setting value type DeviceManagementConfigurationIntegerSettingValue struct { DeviceManagementConfigurationSimpleSettingValue } -// NewDeviceManagementConfigurationIntegerSettingValue instantiates a new DeviceManagementConfigurationIntegerSettingValue and sets the default values. +// NewDeviceManagementConfigurationIntegerSettingValue instantiates a new deviceManagementConfigurationIntegerSettingValue and sets the default values. func NewDeviceManagementConfigurationIntegerSettingValue()(*DeviceManagementConfigurationIntegerSettingValue) { m := &DeviceManagementConfigurationIntegerSettingValue{ DeviceManagementConfigurationSimpleSettingValue: *NewDeviceManagementConfigurationSimpleSettingValue(), diff --git a/models/device_management_configuration_integer_setting_value_constant_default_template.go b/models/device_management_configuration_integer_setting_value_constant_default_template.go index 3f6222a9f79..b550eac12f4 100644 --- a/models/device_management_configuration_integer_setting_value_constant_default_template.go +++ b/models/device_management_configuration_integer_setting_value_constant_default_template.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationIntegerSettingValueConstantDefaultTemplate +// DeviceManagementConfigurationIntegerSettingValueConstantDefaultTemplate integer Setting Value Constant Default Template type DeviceManagementConfigurationIntegerSettingValueConstantDefaultTemplate struct { DeviceManagementConfigurationIntegerSettingValueDefaultTemplate + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationIntegerSettingValueConstantDefaultTemplate instantiates a new DeviceManagementConfigurationIntegerSettingValueConstantDefaultTemplate and sets the default values. +// NewDeviceManagementConfigurationIntegerSettingValueConstantDefaultTemplate instantiates a new deviceManagementConfigurationIntegerSettingValueConstantDefaultTemplate and sets the default values. func NewDeviceManagementConfigurationIntegerSettingValueConstantDefaultTemplate()(*DeviceManagementConfigurationIntegerSettingValueConstantDefaultTemplate) { m := &DeviceManagementConfigurationIntegerSettingValueConstantDefaultTemplate{ DeviceManagementConfigurationIntegerSettingValueDefaultTemplate: *NewDeviceManagementConfigurationIntegerSettingValueDefaultTemplate(), diff --git a/models/device_management_configuration_integer_setting_value_definition.go b/models/device_management_configuration_integer_setting_value_definition.go index 56d9f25254a..94f3f3dc047 100644 --- a/models/device_management_configuration_integer_setting_value_definition.go +++ b/models/device_management_configuration_integer_setting_value_definition.go @@ -8,7 +8,7 @@ import ( type DeviceManagementConfigurationIntegerSettingValueDefinition struct { DeviceManagementConfigurationSettingValueDefinition } -// NewDeviceManagementConfigurationIntegerSettingValueDefinition instantiates a new DeviceManagementConfigurationIntegerSettingValueDefinition and sets the default values. +// NewDeviceManagementConfigurationIntegerSettingValueDefinition instantiates a new deviceManagementConfigurationIntegerSettingValueDefinition and sets the default values. func NewDeviceManagementConfigurationIntegerSettingValueDefinition()(*DeviceManagementConfigurationIntegerSettingValueDefinition) { m := &DeviceManagementConfigurationIntegerSettingValueDefinition{ DeviceManagementConfigurationSettingValueDefinition: *NewDeviceManagementConfigurationSettingValueDefinition(), @@ -44,6 +44,16 @@ func (m *DeviceManagementConfigurationIntegerSettingValueDefinition) GetFieldDes } 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 } // GetMaximumValue gets the maximumValue property value. Maximum allowed value of the integer @@ -68,6 +78,17 @@ func (m *DeviceManagementConfigurationIntegerSettingValueDefinition) GetMinimumV } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationIntegerSettingValueDefinition) 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 *DeviceManagementConfigurationIntegerSettingValueDefinition) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceManagementConfigurationSettingValueDefinition.Serialize(writer) @@ -86,6 +107,12 @@ func (m *DeviceManagementConfigurationIntegerSettingValueDefinition) Serialize(w return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetMaximumValue sets the maximumValue property value. Maximum allowed value of the integer @@ -102,12 +129,21 @@ func (m *DeviceManagementConfigurationIntegerSettingValueDefinition) SetMinimumV panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationIntegerSettingValueDefinition) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceManagementConfigurationIntegerSettingValueDefinitionable type DeviceManagementConfigurationIntegerSettingValueDefinitionable interface { DeviceManagementConfigurationSettingValueDefinitionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetMaximumValue()(*int64) GetMinimumValue()(*int64) + GetOdataType()(*string) SetMaximumValue(value *int64)() SetMinimumValue(value *int64)() + SetOdataType(value *string)() } diff --git a/models/device_management_configuration_integer_setting_value_template.go b/models/device_management_configuration_integer_setting_value_template.go index a55c00b8e8d..c33f92b9026 100644 --- a/models/device_management_configuration_integer_setting_value_template.go +++ b/models/device_management_configuration_integer_setting_value_template.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationIntegerSettingValueTemplate +// DeviceManagementConfigurationIntegerSettingValueTemplate integer Setting Value Template type DeviceManagementConfigurationIntegerSettingValueTemplate struct { DeviceManagementConfigurationSimpleSettingValueTemplate + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationIntegerSettingValueTemplate instantiates a new DeviceManagementConfigurationIntegerSettingValueTemplate and sets the default values. +// NewDeviceManagementConfigurationIntegerSettingValueTemplate instantiates a new deviceManagementConfigurationIntegerSettingValueTemplate and sets the default values. func NewDeviceManagementConfigurationIntegerSettingValueTemplate()(*DeviceManagementConfigurationIntegerSettingValueTemplate) { m := &DeviceManagementConfigurationIntegerSettingValueTemplate{ DeviceManagementConfigurationSimpleSettingValueTemplate: *NewDeviceManagementConfigurationSimpleSettingValueTemplate(), diff --git a/models/device_management_configuration_option_definition_template.go b/models/device_management_configuration_option_definition_template.go index 652236f9348..c2b578e7b09 100644 --- a/models/device_management_configuration_option_definition_template.go +++ b/models/device_management_configuration_option_definition_template.go @@ -10,7 +10,7 @@ type DeviceManagementConfigurationOptionDefinitionTemplate struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeviceManagementConfigurationOptionDefinitionTemplate instantiates a new DeviceManagementConfigurationOptionDefinitionTemplate and sets the default values. +// NewDeviceManagementConfigurationOptionDefinitionTemplate instantiates a new deviceManagementConfigurationOptionDefinitionTemplate and sets the default values. func NewDeviceManagementConfigurationOptionDefinitionTemplate()(*DeviceManagementConfigurationOptionDefinitionTemplate) { m := &DeviceManagementConfigurationOptionDefinitionTemplate{ } diff --git a/models/device_management_configuration_policy.go b/models/device_management_configuration_policy.go index d9adb85b02a..abfc3a0f65c 100644 --- a/models/device_management_configuration_policy.go +++ b/models/device_management_configuration_policy.go @@ -8,6 +8,8 @@ import ( // DeviceManagementConfigurationPolicy device Management Configuration Policy type DeviceManagementConfigurationPolicy struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementConfigurationPolicy instantiates a new deviceManagementConfigurationPolicy and sets the default values. func NewDeviceManagementConfigurationPolicy()(*DeviceManagementConfigurationPolicy) { diff --git a/models/device_management_configuration_policy_assignment.go b/models/device_management_configuration_policy_assignment.go index c4d0edb2224..30071e1b027 100644 --- a/models/device_management_configuration_policy_assignment.go +++ b/models/device_management_configuration_policy_assignment.go @@ -7,6 +7,8 @@ import ( // DeviceManagementConfigurationPolicyAssignment the DeviceManagementConfigurationPolicyAssignment entity assigns a specific DeviceManagementConfigurationPolicy to an AAD group. type DeviceManagementConfigurationPolicyAssignment struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementConfigurationPolicyAssignment instantiates a new deviceManagementConfigurationPolicyAssignment and sets the default values. func NewDeviceManagementConfigurationPolicyAssignment()(*DeviceManagementConfigurationPolicyAssignment) { diff --git a/models/device_management_configuration_policy_assignment_collection_response.go b/models/device_management_configuration_policy_assignment_collection_response.go index 264f7c11f50..cc2f65f0b24 100644 --- a/models/device_management_configuration_policy_assignment_collection_response.go +++ b/models/device_management_configuration_policy_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementConfigurationPolicyAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementConfigurationPolicyAssignmentCollectionResponse instantiates a new DeviceManagementConfigurationPolicyAssignmentCollectionResponse and sets the default values. +// NewDeviceManagementConfigurationPolicyAssignmentCollectionResponse instantiates a new deviceManagementConfigurationPolicyAssignmentCollectionResponse and sets the default values. func NewDeviceManagementConfigurationPolicyAssignmentCollectionResponse()(*DeviceManagementConfigurationPolicyAssignmentCollectionResponse) { m := &DeviceManagementConfigurationPolicyAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_configuration_policy_collection_response.go b/models/device_management_configuration_policy_collection_response.go index bafecf7c964..56c9f8212d8 100644 --- a/models/device_management_configuration_policy_collection_response.go +++ b/models/device_management_configuration_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementConfigurationPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementConfigurationPolicyCollectionResponse instantiates a new DeviceManagementConfigurationPolicyCollectionResponse and sets the default values. +// NewDeviceManagementConfigurationPolicyCollectionResponse instantiates a new deviceManagementConfigurationPolicyCollectionResponse and sets the default values. func NewDeviceManagementConfigurationPolicyCollectionResponse()(*DeviceManagementConfigurationPolicyCollectionResponse) { m := &DeviceManagementConfigurationPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_configuration_policy_policy_set_item.go b/models/device_management_configuration_policy_policy_set_item.go index 1efe0b30e31..4618fdee254 100644 --- a/models/device_management_configuration_policy_policy_set_item.go +++ b/models/device_management_configuration_policy_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationPolicyPolicySetItem +// DeviceManagementConfigurationPolicyPolicySetItem a class containing the properties used for DeviceManagementConfiguration PolicySetItem. type DeviceManagementConfigurationPolicyPolicySetItem struct { PolicySetItem } -// NewDeviceManagementConfigurationPolicyPolicySetItem instantiates a new DeviceManagementConfigurationPolicyPolicySetItem and sets the default values. +// NewDeviceManagementConfigurationPolicyPolicySetItem instantiates a new deviceManagementConfigurationPolicyPolicySetItem and sets the default values. func NewDeviceManagementConfigurationPolicyPolicySetItem()(*DeviceManagementConfigurationPolicyPolicySetItem) { m := &DeviceManagementConfigurationPolicyPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/device_management_configuration_policy_template.go b/models/device_management_configuration_policy_template.go index a05c0b6bba1..05e96c909cf 100644 --- a/models/device_management_configuration_policy_template.go +++ b/models/device_management_configuration_policy_template.go @@ -7,6 +7,8 @@ import ( // DeviceManagementConfigurationPolicyTemplate device Management Configuration Policy Template type DeviceManagementConfigurationPolicyTemplate struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementConfigurationPolicyTemplate instantiates a new deviceManagementConfigurationPolicyTemplate and sets the default values. func NewDeviceManagementConfigurationPolicyTemplate()(*DeviceManagementConfigurationPolicyTemplate) { diff --git a/models/device_management_configuration_policy_template_collection_response.go b/models/device_management_configuration_policy_template_collection_response.go index 34db42a884b..f835566d965 100644 --- a/models/device_management_configuration_policy_template_collection_response.go +++ b/models/device_management_configuration_policy_template_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementConfigurationPolicyTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementConfigurationPolicyTemplateCollectionResponse instantiates a new DeviceManagementConfigurationPolicyTemplateCollectionResponse and sets the default values. +// NewDeviceManagementConfigurationPolicyTemplateCollectionResponse instantiates a new deviceManagementConfigurationPolicyTemplateCollectionResponse and sets the default values. func NewDeviceManagementConfigurationPolicyTemplateCollectionResponse()(*DeviceManagementConfigurationPolicyTemplateCollectionResponse) { m := &DeviceManagementConfigurationPolicyTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_configuration_redirect_setting_definition.go b/models/device_management_configuration_redirect_setting_definition.go index 2185fe64c5c..dafa78737d5 100644 --- a/models/device_management_configuration_redirect_setting_definition.go +++ b/models/device_management_configuration_redirect_setting_definition.go @@ -7,8 +7,10 @@ import ( // DeviceManagementConfigurationRedirectSettingDefinition type DeviceManagementConfigurationRedirectSettingDefinition struct { DeviceManagementConfigurationSettingDefinition + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationRedirectSettingDefinition instantiates a new DeviceManagementConfigurationRedirectSettingDefinition and sets the default values. +// NewDeviceManagementConfigurationRedirectSettingDefinition instantiates a new deviceManagementConfigurationRedirectSettingDefinition and sets the default values. func NewDeviceManagementConfigurationRedirectSettingDefinition()(*DeviceManagementConfigurationRedirectSettingDefinition) { m := &DeviceManagementConfigurationRedirectSettingDefinition{ DeviceManagementConfigurationSettingDefinition: *NewDeviceManagementConfigurationSettingDefinition(), diff --git a/models/device_management_configuration_reference_setting_value.go b/models/device_management_configuration_reference_setting_value.go index 9936e8712e5..1bdee1f8f92 100644 --- a/models/device_management_configuration_reference_setting_value.go +++ b/models/device_management_configuration_reference_setting_value.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationReferenceSettingValue +// DeviceManagementConfigurationReferenceSettingValue model for ReferenceSettingValue type DeviceManagementConfigurationReferenceSettingValue struct { DeviceManagementConfigurationStringSettingValue } -// NewDeviceManagementConfigurationReferenceSettingValue instantiates a new DeviceManagementConfigurationReferenceSettingValue and sets the default values. +// NewDeviceManagementConfigurationReferenceSettingValue instantiates a new deviceManagementConfigurationReferenceSettingValue and sets the default values. func NewDeviceManagementConfigurationReferenceSettingValue()(*DeviceManagementConfigurationReferenceSettingValue) { m := &DeviceManagementConfigurationReferenceSettingValue{ DeviceManagementConfigurationStringSettingValue: *NewDeviceManagementConfigurationStringSettingValue(), diff --git a/models/device_management_configuration_referred_setting_information.go b/models/device_management_configuration_referred_setting_information.go index 667f49fa4d2..575cc55dad7 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_secret_setting_value.go b/models/device_management_configuration_secret_setting_value.go index c9c5825a494..def256375cb 100644 --- a/models/device_management_configuration_secret_setting_value.go +++ b/models/device_management_configuration_secret_setting_value.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationSecretSettingValue +// DeviceManagementConfigurationSecretSettingValue graph model for a secret setting value type DeviceManagementConfigurationSecretSettingValue struct { DeviceManagementConfigurationSimpleSettingValue } -// NewDeviceManagementConfigurationSecretSettingValue instantiates a new DeviceManagementConfigurationSecretSettingValue and sets the default values. +// NewDeviceManagementConfigurationSecretSettingValue instantiates a new deviceManagementConfigurationSecretSettingValue and sets the default values. func NewDeviceManagementConfigurationSecretSettingValue()(*DeviceManagementConfigurationSecretSettingValue) { m := &DeviceManagementConfigurationSecretSettingValue{ DeviceManagementConfigurationSimpleSettingValue: *NewDeviceManagementConfigurationSimpleSettingValue(), diff --git a/models/device_management_configuration_setting.go b/models/device_management_configuration_setting.go index f94898ff7df..46513642dd0 100644 --- a/models/device_management_configuration_setting.go +++ b/models/device_management_configuration_setting.go @@ -22,6 +22,16 @@ func CreateDeviceManagementConfigurationSettingFromDiscriminatorValue(parseNode // GetFieldDeserializers the deserialization information for the current model func (m *DeviceManagementConfigurationSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + 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["settingDefinitions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateDeviceManagementConfigurationSettingDefinitionFromDiscriminatorValue) if err != nil { @@ -50,6 +60,17 @@ func (m *DeviceManagementConfigurationSetting) GetFieldDeserializers()(map[strin } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSetting) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSettingDefinitions gets the settingDefinitions property value. List of related Setting Definitions. This property is read-only. func (m *DeviceManagementConfigurationSetting) GetSettingDefinitions()([]DeviceManagementConfigurationSettingDefinitionable) { val, err := m.GetBackingStore().Get("settingDefinitions") @@ -78,6 +99,12 @@ func (m *DeviceManagementConfigurationSetting) Serialize(writer i878a80d2330e89d if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetSettingDefinitions() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSettingDefinitions())) for i, v := range m.GetSettingDefinitions() { @@ -98,6 +125,13 @@ func (m *DeviceManagementConfigurationSetting) Serialize(writer i878a80d2330e89d } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSetting) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSettingDefinitions sets the settingDefinitions property value. List of related Setting Definitions. This property is read-only. func (m *DeviceManagementConfigurationSetting) SetSettingDefinitions(value []DeviceManagementConfigurationSettingDefinitionable)() { err := m.GetBackingStore().Set("settingDefinitions", value) @@ -116,8 +150,10 @@ func (m *DeviceManagementConfigurationSetting) SetSettingInstance(value DeviceMa type DeviceManagementConfigurationSettingable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetSettingDefinitions()([]DeviceManagementConfigurationSettingDefinitionable) GetSettingInstance()(DeviceManagementConfigurationSettingInstanceable) + SetOdataType(value *string)() SetSettingDefinitions(value []DeviceManagementConfigurationSettingDefinitionable)() SetSettingInstance(value DeviceManagementConfigurationSettingInstanceable)() } diff --git a/models/device_management_configuration_setting_collection_response.go b/models/device_management_configuration_setting_collection_response.go index 1834a207526..9507179e855 100644 --- a/models/device_management_configuration_setting_collection_response.go +++ b/models/device_management_configuration_setting_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementConfigurationSettingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementConfigurationSettingCollectionResponse instantiates a new DeviceManagementConfigurationSettingCollectionResponse and sets the default values. +// NewDeviceManagementConfigurationSettingCollectionResponse instantiates a new deviceManagementConfigurationSettingCollectionResponse and sets the default values. func NewDeviceManagementConfigurationSettingCollectionResponse()(*DeviceManagementConfigurationSettingCollectionResponse) { m := &DeviceManagementConfigurationSettingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_configuration_setting_definition.go b/models/device_management_configuration_setting_definition.go index 57e1c859b54..321daa8d6c9 100644 --- a/models/device_management_configuration_setting_definition.go +++ b/models/device_management_configuration_setting_definition.go @@ -240,6 +240,16 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetFieldDeserializers() } 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["offsetUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -373,6 +383,17 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetOccurrence()(DeviceM } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSettingDefinition) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOffsetUri gets the offsetUri property value. Offset CSP Path from Base func (m *DeviceManagementConfigurationSettingDefinition) GetOffsetUri()(*string) { val, err := m.GetBackingStore().Get("offsetUri") @@ -523,6 +544,12 @@ func (m *DeviceManagementConfigurationSettingDefinition) Serialize(writer i878a8 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("offsetUri", m.GetOffsetUri()) if err != nil { @@ -653,6 +680,13 @@ func (m *DeviceManagementConfigurationSettingDefinition) SetOccurrence(value Dev panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSettingDefinition) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOffsetUri sets the offsetUri property value. Offset CSP Path from Base func (m *DeviceManagementConfigurationSettingDefinition) SetOffsetUri(value *string)() { err := m.GetBackingStore().Set("offsetUri", value) @@ -717,6 +751,7 @@ type DeviceManagementConfigurationSettingDefinitionable interface { GetKeywords()([]string) GetName()(*string) GetOccurrence()(DeviceManagementConfigurationSettingOccurrenceable) + GetOdataType()(*string) GetOffsetUri()(*string) GetReferredSettingInformationList()([]DeviceManagementConfigurationReferredSettingInformationable) GetRootDefinitionId()(*string) @@ -735,6 +770,7 @@ type DeviceManagementConfigurationSettingDefinitionable interface { SetKeywords(value []string)() SetName(value *string)() SetOccurrence(value DeviceManagementConfigurationSettingOccurrenceable)() + SetOdataType(value *string)() SetOffsetUri(value *string)() SetReferredSettingInformationList(value []DeviceManagementConfigurationReferredSettingInformationable)() SetRootDefinitionId(value *string)() diff --git a/models/device_management_configuration_setting_definition_collection_response.go b/models/device_management_configuration_setting_definition_collection_response.go index 9462b0748d0..8bae4ed12d8 100644 --- a/models/device_management_configuration_setting_definition_collection_response.go +++ b/models/device_management_configuration_setting_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementConfigurationSettingDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementConfigurationSettingDefinitionCollectionResponse instantiates a new DeviceManagementConfigurationSettingDefinitionCollectionResponse and sets the default values. +// NewDeviceManagementConfigurationSettingDefinitionCollectionResponse instantiates a new deviceManagementConfigurationSettingDefinitionCollectionResponse and sets the default values. func NewDeviceManagementConfigurationSettingDefinitionCollectionResponse()(*DeviceManagementConfigurationSettingDefinitionCollectionResponse) { m := &DeviceManagementConfigurationSettingDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_configuration_setting_group_collection_definition.go b/models/device_management_configuration_setting_group_collection_definition.go index d5c6f0b8e34..1b640305b33 100644 --- a/models/device_management_configuration_setting_group_collection_definition.go +++ b/models/device_management_configuration_setting_group_collection_definition.go @@ -8,7 +8,7 @@ import ( type DeviceManagementConfigurationSettingGroupCollectionDefinition struct { DeviceManagementConfigurationSettingGroupDefinition } -// NewDeviceManagementConfigurationSettingGroupCollectionDefinition instantiates a new DeviceManagementConfigurationSettingGroupCollectionDefinition and sets the default values. +// NewDeviceManagementConfigurationSettingGroupCollectionDefinition instantiates a new deviceManagementConfigurationSettingGroupCollectionDefinition and sets the default values. func NewDeviceManagementConfigurationSettingGroupCollectionDefinition()(*DeviceManagementConfigurationSettingGroupCollectionDefinition) { m := &DeviceManagementConfigurationSettingGroupCollectionDefinition{ DeviceManagementConfigurationSettingGroupDefinition: *NewDeviceManagementConfigurationSettingGroupDefinition(), diff --git a/models/device_management_configuration_setting_group_collection_instance.go b/models/device_management_configuration_setting_group_collection_instance.go index 722db07272d..1143cc4e3e5 100644 --- a/models/device_management_configuration_setting_group_collection_instance.go +++ b/models/device_management_configuration_setting_group_collection_instance.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationSettingGroupCollectionInstance +// DeviceManagementConfigurationSettingGroupCollectionInstance setting instance within policy type DeviceManagementConfigurationSettingGroupCollectionInstance struct { DeviceManagementConfigurationSettingInstance } -// NewDeviceManagementConfigurationSettingGroupCollectionInstance instantiates a new DeviceManagementConfigurationSettingGroupCollectionInstance and sets the default values. +// NewDeviceManagementConfigurationSettingGroupCollectionInstance instantiates a new deviceManagementConfigurationSettingGroupCollectionInstance and sets the default values. func NewDeviceManagementConfigurationSettingGroupCollectionInstance()(*DeviceManagementConfigurationSettingGroupCollectionInstance) { m := &DeviceManagementConfigurationSettingGroupCollectionInstance{ DeviceManagementConfigurationSettingInstance: *NewDeviceManagementConfigurationSettingInstance(), @@ -24,18 +24,54 @@ func CreateDeviceManagementConfigurationSettingGroupCollectionInstanceFromDiscri // GetFieldDeserializers the deserialization information for the current model func (m *DeviceManagementConfigurationSettingGroupCollectionInstance) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceManagementConfigurationSettingInstance.GetFieldDeserializers() + 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 *DeviceManagementConfigurationSettingGroupCollectionInstance) 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 *DeviceManagementConfigurationSettingGroupCollectionInstance) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceManagementConfigurationSettingInstance.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSettingGroupCollectionInstance) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceManagementConfigurationSettingGroupCollectionInstanceable type DeviceManagementConfigurationSettingGroupCollectionInstanceable interface { DeviceManagementConfigurationSettingInstanceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/device_management_configuration_setting_group_definition.go b/models/device_management_configuration_setting_group_definition.go index 1207cac2e4a..8dc888305ab 100644 --- a/models/device_management_configuration_setting_group_definition.go +++ b/models/device_management_configuration_setting_group_definition.go @@ -7,8 +7,10 @@ import ( // DeviceManagementConfigurationSettingGroupDefinition type DeviceManagementConfigurationSettingGroupDefinition struct { DeviceManagementConfigurationSettingDefinition + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationSettingGroupDefinition instantiates a new DeviceManagementConfigurationSettingGroupDefinition and sets the default values. +// NewDeviceManagementConfigurationSettingGroupDefinition instantiates a new deviceManagementConfigurationSettingGroupDefinition and sets the default values. func NewDeviceManagementConfigurationSettingGroupDefinition()(*DeviceManagementConfigurationSettingGroupDefinition) { m := &DeviceManagementConfigurationSettingGroupDefinition{ DeviceManagementConfigurationSettingDefinition: *NewDeviceManagementConfigurationSettingDefinition(), diff --git a/models/device_management_configuration_setting_group_instance.go b/models/device_management_configuration_setting_group_instance.go index 042f9dd5888..2e2af81d88c 100644 --- a/models/device_management_configuration_setting_group_instance.go +++ b/models/device_management_configuration_setting_group_instance.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationSettingGroupInstance +// DeviceManagementConfigurationSettingGroupInstance setting instance within policy type DeviceManagementConfigurationSettingGroupInstance struct { DeviceManagementConfigurationSettingInstance } -// NewDeviceManagementConfigurationSettingGroupInstance instantiates a new DeviceManagementConfigurationSettingGroupInstance and sets the default values. +// NewDeviceManagementConfigurationSettingGroupInstance instantiates a new deviceManagementConfigurationSettingGroupInstance and sets the default values. func NewDeviceManagementConfigurationSettingGroupInstance()(*DeviceManagementConfigurationSettingGroupInstance) { m := &DeviceManagementConfigurationSettingGroupInstance{ DeviceManagementConfigurationSettingInstance: *NewDeviceManagementConfigurationSettingInstance(), @@ -24,18 +24,54 @@ func CreateDeviceManagementConfigurationSettingGroupInstanceFromDiscriminatorVal // GetFieldDeserializers the deserialization information for the current model func (m *DeviceManagementConfigurationSettingGroupInstance) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceManagementConfigurationSettingInstance.GetFieldDeserializers() + 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 *DeviceManagementConfigurationSettingGroupInstance) 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 *DeviceManagementConfigurationSettingGroupInstance) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceManagementConfigurationSettingInstance.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSettingGroupInstance) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceManagementConfigurationSettingGroupInstanceable type DeviceManagementConfigurationSettingGroupInstanceable interface { DeviceManagementConfigurationSettingInstanceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/device_management_configuration_setting_instance.go b/models/device_management_configuration_setting_instance.go index 3883df1c7cd..f009717c7b5 100644 --- a/models/device_management_configuration_setting_instance.go +++ b/models/device_management_configuration_setting_instance.go @@ -10,7 +10,7 @@ type DeviceManagementConfigurationSettingInstance struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeviceManagementConfigurationSettingInstance instantiates a new DeviceManagementConfigurationSettingInstance and sets the default values. +// NewDeviceManagementConfigurationSettingInstance instantiates a new deviceManagementConfigurationSettingInstance and sets the default values. func NewDeviceManagementConfigurationSettingInstance()(*DeviceManagementConfigurationSettingInstance) { m := &DeviceManagementConfigurationSettingInstance{ } diff --git a/models/device_management_configuration_setting_instance_template.go b/models/device_management_configuration_setting_instance_template.go index 93f0fd3f731..2af45ba75c9 100644 --- a/models/device_management_configuration_setting_instance_template.go +++ b/models/device_management_configuration_setting_instance_template.go @@ -10,7 +10,7 @@ type DeviceManagementConfigurationSettingInstanceTemplate struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeviceManagementConfigurationSettingInstanceTemplate instantiates a new DeviceManagementConfigurationSettingInstanceTemplate and sets the default values. +// NewDeviceManagementConfigurationSettingInstanceTemplate instantiates a new deviceManagementConfigurationSettingInstanceTemplate and sets the default values. func NewDeviceManagementConfigurationSettingInstanceTemplate()(*DeviceManagementConfigurationSettingInstanceTemplate) { m := &DeviceManagementConfigurationSettingInstanceTemplate{ } diff --git a/models/device_management_configuration_setting_template.go b/models/device_management_configuration_setting_template.go index b8b71889afb..398295547e8 100644 --- a/models/device_management_configuration_setting_template.go +++ b/models/device_management_configuration_setting_template.go @@ -7,6 +7,8 @@ import ( // DeviceManagementConfigurationSettingTemplate setting Template type DeviceManagementConfigurationSettingTemplate struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementConfigurationSettingTemplate instantiates a new deviceManagementConfigurationSettingTemplate and sets the default values. func NewDeviceManagementConfigurationSettingTemplate()(*DeviceManagementConfigurationSettingTemplate) { diff --git a/models/device_management_configuration_setting_template_collection_response.go b/models/device_management_configuration_setting_template_collection_response.go index f4c2e75f14e..6be58872fbd 100644 --- a/models/device_management_configuration_setting_template_collection_response.go +++ b/models/device_management_configuration_setting_template_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementConfigurationSettingTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementConfigurationSettingTemplateCollectionResponse instantiates a new DeviceManagementConfigurationSettingTemplateCollectionResponse and sets the default values. +// NewDeviceManagementConfigurationSettingTemplateCollectionResponse instantiates a new deviceManagementConfigurationSettingTemplateCollectionResponse and sets the default values. func NewDeviceManagementConfigurationSettingTemplateCollectionResponse()(*DeviceManagementConfigurationSettingTemplateCollectionResponse) { m := &DeviceManagementConfigurationSettingTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_configuration_simple_setting_collection_definition.go b/models/device_management_configuration_simple_setting_collection_definition.go index b3bc2d1a26c..c3b4ef4e407 100644 --- a/models/device_management_configuration_simple_setting_collection_definition.go +++ b/models/device_management_configuration_simple_setting_collection_definition.go @@ -7,8 +7,10 @@ import ( // DeviceManagementConfigurationSimpleSettingCollectionDefinition type DeviceManagementConfigurationSimpleSettingCollectionDefinition struct { DeviceManagementConfigurationSimpleSettingDefinition + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationSimpleSettingCollectionDefinition instantiates a new DeviceManagementConfigurationSimpleSettingCollectionDefinition and sets the default values. +// NewDeviceManagementConfigurationSimpleSettingCollectionDefinition instantiates a new deviceManagementConfigurationSimpleSettingCollectionDefinition and sets the default values. func NewDeviceManagementConfigurationSimpleSettingCollectionDefinition()(*DeviceManagementConfigurationSimpleSettingCollectionDefinition) { m := &DeviceManagementConfigurationSimpleSettingCollectionDefinition{ DeviceManagementConfigurationSimpleSettingDefinition: *NewDeviceManagementConfigurationSimpleSettingDefinition(), diff --git a/models/device_management_configuration_simple_setting_collection_instance.go b/models/device_management_configuration_simple_setting_collection_instance.go index 9d985fd84ba..cacab60bf8c 100644 --- a/models/device_management_configuration_simple_setting_collection_instance.go +++ b/models/device_management_configuration_simple_setting_collection_instance.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationSimpleSettingCollectionInstance +// DeviceManagementConfigurationSimpleSettingCollectionInstance simple setting collection instance type DeviceManagementConfigurationSimpleSettingCollectionInstance struct { DeviceManagementConfigurationSettingInstance + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationSimpleSettingCollectionInstance instantiates a new DeviceManagementConfigurationSimpleSettingCollectionInstance and sets the default values. +// NewDeviceManagementConfigurationSimpleSettingCollectionInstance instantiates a new deviceManagementConfigurationSimpleSettingCollectionInstance and sets the default values. func NewDeviceManagementConfigurationSimpleSettingCollectionInstance()(*DeviceManagementConfigurationSimpleSettingCollectionInstance) { m := &DeviceManagementConfigurationSimpleSettingCollectionInstance{ DeviceManagementConfigurationSettingInstance: *NewDeviceManagementConfigurationSettingInstance(), diff --git a/models/device_management_configuration_simple_setting_collection_instance_template.go b/models/device_management_configuration_simple_setting_collection_instance_template.go index f0dc68a1a6e..b450332f9b1 100644 --- a/models/device_management_configuration_simple_setting_collection_instance_template.go +++ b/models/device_management_configuration_simple_setting_collection_instance_template.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationSimpleSettingCollectionInstanceTemplate +// DeviceManagementConfigurationSimpleSettingCollectionInstanceTemplate simple Setting Collection Instance Template type DeviceManagementConfigurationSimpleSettingCollectionInstanceTemplate struct { DeviceManagementConfigurationSettingInstanceTemplate + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationSimpleSettingCollectionInstanceTemplate instantiates a new DeviceManagementConfigurationSimpleSettingCollectionInstanceTemplate and sets the default values. +// NewDeviceManagementConfigurationSimpleSettingCollectionInstanceTemplate instantiates a new deviceManagementConfigurationSimpleSettingCollectionInstanceTemplate and sets the default values. func NewDeviceManagementConfigurationSimpleSettingCollectionInstanceTemplate()(*DeviceManagementConfigurationSimpleSettingCollectionInstanceTemplate) { m := &DeviceManagementConfigurationSimpleSettingCollectionInstanceTemplate{ DeviceManagementConfigurationSettingInstanceTemplate: *NewDeviceManagementConfigurationSettingInstanceTemplate(), diff --git a/models/device_management_configuration_simple_setting_definition.go b/models/device_management_configuration_simple_setting_definition.go index c03aae0379d..cf4ec486978 100644 --- a/models/device_management_configuration_simple_setting_definition.go +++ b/models/device_management_configuration_simple_setting_definition.go @@ -8,7 +8,7 @@ import ( type DeviceManagementConfigurationSimpleSettingDefinition struct { DeviceManagementConfigurationSettingDefinition } -// NewDeviceManagementConfigurationSimpleSettingDefinition instantiates a new DeviceManagementConfigurationSimpleSettingDefinition and sets the default values. +// NewDeviceManagementConfigurationSimpleSettingDefinition instantiates a new deviceManagementConfigurationSimpleSettingDefinition and sets the default values. func NewDeviceManagementConfigurationSimpleSettingDefinition()(*DeviceManagementConfigurationSimpleSettingDefinition) { m := &DeviceManagementConfigurationSimpleSettingDefinition{ DeviceManagementConfigurationSettingDefinition: *NewDeviceManagementConfigurationSettingDefinition(), @@ -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 { @@ -115,6 +115,16 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetFieldDeseriali } 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["valueDefinition"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDeviceManagementConfigurationSettingValueDefinitionFromDiscriminatorValue) if err != nil { @@ -127,7 +137,18 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetFieldDeseriali } return res } -// GetValueDefinition gets the valueDefinition property value. Definition of the value for this setting +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// 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 { @@ -174,6 +195,12 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) Serialize(writer return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("valueDefinition", m.GetValueDefinition()) if err != nil { @@ -182,28 +209,35 @@ 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 +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// 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 { @@ -217,9 +251,11 @@ type DeviceManagementConfigurationSimpleSettingDefinitionable interface { GetDefaultValue()(DeviceManagementConfigurationSettingValueable) GetDependedOnBy()([]DeviceManagementConfigurationSettingDependedOnByable) GetDependentOn()([]DeviceManagementConfigurationDependentOnable) + GetOdataType()(*string) GetValueDefinition()(DeviceManagementConfigurationSettingValueDefinitionable) SetDefaultValue(value DeviceManagementConfigurationSettingValueable)() SetDependedOnBy(value []DeviceManagementConfigurationSettingDependedOnByable)() SetDependentOn(value []DeviceManagementConfigurationDependentOnable)() + SetOdataType(value *string)() SetValueDefinition(value DeviceManagementConfigurationSettingValueDefinitionable)() } diff --git a/models/device_management_configuration_simple_setting_instance.go b/models/device_management_configuration_simple_setting_instance.go index 3492cd3ab61..5bb83a1cf89 100644 --- a/models/device_management_configuration_simple_setting_instance.go +++ b/models/device_management_configuration_simple_setting_instance.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationSimpleSettingInstance +// DeviceManagementConfigurationSimpleSettingInstance simple setting instance type DeviceManagementConfigurationSimpleSettingInstance struct { DeviceManagementConfigurationSettingInstance } -// NewDeviceManagementConfigurationSimpleSettingInstance instantiates a new DeviceManagementConfigurationSimpleSettingInstance and sets the default values. +// NewDeviceManagementConfigurationSimpleSettingInstance instantiates a new deviceManagementConfigurationSimpleSettingInstance and sets the default values. func NewDeviceManagementConfigurationSimpleSettingInstance()(*DeviceManagementConfigurationSimpleSettingInstance) { m := &DeviceManagementConfigurationSimpleSettingInstance{ DeviceManagementConfigurationSettingInstance: *NewDeviceManagementConfigurationSettingInstance(), @@ -24,6 +24,16 @@ func CreateDeviceManagementConfigurationSimpleSettingInstanceFromDiscriminatorVa // GetFieldDeserializers the deserialization information for the current model func (m *DeviceManagementConfigurationSimpleSettingInstance) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceManagementConfigurationSettingInstance.GetFieldDeserializers() + 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["simpleSettingValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDeviceManagementConfigurationSimpleSettingValueFromDiscriminatorValue) if err != nil { @@ -36,6 +46,17 @@ func (m *DeviceManagementConfigurationSimpleSettingInstance) GetFieldDeserialize } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSimpleSettingInstance) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSimpleSettingValue gets the simpleSettingValue property value. The simpleSettingValue property func (m *DeviceManagementConfigurationSimpleSettingInstance) GetSimpleSettingValue()(DeviceManagementConfigurationSimpleSettingValueable) { val, err := m.GetBackingStore().Get("simpleSettingValue") @@ -53,6 +74,12 @@ func (m *DeviceManagementConfigurationSimpleSettingInstance) Serialize(writer i8 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("simpleSettingValue", m.GetSimpleSettingValue()) if err != nil { @@ -61,6 +88,13 @@ func (m *DeviceManagementConfigurationSimpleSettingInstance) Serialize(writer i8 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSimpleSettingInstance) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSimpleSettingValue sets the simpleSettingValue property value. The simpleSettingValue property func (m *DeviceManagementConfigurationSimpleSettingInstance) SetSimpleSettingValue(value DeviceManagementConfigurationSimpleSettingValueable)() { err := m.GetBackingStore().Set("simpleSettingValue", value) @@ -72,6 +106,8 @@ func (m *DeviceManagementConfigurationSimpleSettingInstance) SetSimpleSettingVal type DeviceManagementConfigurationSimpleSettingInstanceable interface { DeviceManagementConfigurationSettingInstanceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetSimpleSettingValue()(DeviceManagementConfigurationSimpleSettingValueable) + SetOdataType(value *string)() SetSimpleSettingValue(value DeviceManagementConfigurationSimpleSettingValueable)() } diff --git a/models/device_management_configuration_simple_setting_instance_template.go b/models/device_management_configuration_simple_setting_instance_template.go index 7ef111d3f41..4270c29138d 100644 --- a/models/device_management_configuration_simple_setting_instance_template.go +++ b/models/device_management_configuration_simple_setting_instance_template.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationSimpleSettingInstanceTemplate +// DeviceManagementConfigurationSimpleSettingInstanceTemplate simple Setting Instance Template type DeviceManagementConfigurationSimpleSettingInstanceTemplate struct { DeviceManagementConfigurationSettingInstanceTemplate } -// NewDeviceManagementConfigurationSimpleSettingInstanceTemplate instantiates a new DeviceManagementConfigurationSimpleSettingInstanceTemplate and sets the default values. +// NewDeviceManagementConfigurationSimpleSettingInstanceTemplate instantiates a new deviceManagementConfigurationSimpleSettingInstanceTemplate and sets the default values. func NewDeviceManagementConfigurationSimpleSettingInstanceTemplate()(*DeviceManagementConfigurationSimpleSettingInstanceTemplate) { m := &DeviceManagementConfigurationSimpleSettingInstanceTemplate{ DeviceManagementConfigurationSettingInstanceTemplate: *NewDeviceManagementConfigurationSettingInstanceTemplate(), @@ -24,6 +24,16 @@ func CreateDeviceManagementConfigurationSimpleSettingInstanceTemplateFromDiscrim // GetFieldDeserializers the deserialization information for the current model func (m *DeviceManagementConfigurationSimpleSettingInstanceTemplate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceManagementConfigurationSettingInstanceTemplate.GetFieldDeserializers() + 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["simpleSettingValueTemplate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDeviceManagementConfigurationSimpleSettingValueTemplateFromDiscriminatorValue) if err != nil { @@ -36,6 +46,17 @@ func (m *DeviceManagementConfigurationSimpleSettingInstanceTemplate) GetFieldDes } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSimpleSettingInstanceTemplate) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSimpleSettingValueTemplate gets the simpleSettingValueTemplate property value. Simple Setting Value Template func (m *DeviceManagementConfigurationSimpleSettingInstanceTemplate) GetSimpleSettingValueTemplate()(DeviceManagementConfigurationSimpleSettingValueTemplateable) { val, err := m.GetBackingStore().Get("simpleSettingValueTemplate") @@ -53,6 +74,12 @@ func (m *DeviceManagementConfigurationSimpleSettingInstanceTemplate) Serialize(w if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("simpleSettingValueTemplate", m.GetSimpleSettingValueTemplate()) if err != nil { @@ -61,6 +88,13 @@ func (m *DeviceManagementConfigurationSimpleSettingInstanceTemplate) Serialize(w } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementConfigurationSimpleSettingInstanceTemplate) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSimpleSettingValueTemplate sets the simpleSettingValueTemplate property value. Simple Setting Value Template func (m *DeviceManagementConfigurationSimpleSettingInstanceTemplate) SetSimpleSettingValueTemplate(value DeviceManagementConfigurationSimpleSettingValueTemplateable)() { err := m.GetBackingStore().Set("simpleSettingValueTemplate", value) @@ -72,6 +106,8 @@ func (m *DeviceManagementConfigurationSimpleSettingInstanceTemplate) SetSimpleSe type DeviceManagementConfigurationSimpleSettingInstanceTemplateable interface { DeviceManagementConfigurationSettingInstanceTemplateable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetSimpleSettingValueTemplate()(DeviceManagementConfigurationSimpleSettingValueTemplateable) + SetOdataType(value *string)() SetSimpleSettingValueTemplate(value DeviceManagementConfigurationSimpleSettingValueTemplateable)() } diff --git a/models/device_management_configuration_simple_setting_value.go b/models/device_management_configuration_simple_setting_value.go index 7eed053c946..19d92fd4bc9 100644 --- a/models/device_management_configuration_simple_setting_value.go +++ b/models/device_management_configuration_simple_setting_value.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationSimpleSettingValue +// DeviceManagementConfigurationSimpleSettingValue simple setting value type DeviceManagementConfigurationSimpleSettingValue struct { DeviceManagementConfigurationSettingValue + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationSimpleSettingValue instantiates a new DeviceManagementConfigurationSimpleSettingValue and sets the default values. +// NewDeviceManagementConfigurationSimpleSettingValue instantiates a new deviceManagementConfigurationSimpleSettingValue and sets the default values. func NewDeviceManagementConfigurationSimpleSettingValue()(*DeviceManagementConfigurationSimpleSettingValue) { m := &DeviceManagementConfigurationSimpleSettingValue{ DeviceManagementConfigurationSettingValue: *NewDeviceManagementConfigurationSettingValue(), diff --git a/models/device_management_configuration_simple_setting_value_template.go b/models/device_management_configuration_simple_setting_value_template.go index f7fdb8f252e..0c5397af0f9 100644 --- a/models/device_management_configuration_simple_setting_value_template.go +++ b/models/device_management_configuration_simple_setting_value_template.go @@ -10,7 +10,7 @@ type DeviceManagementConfigurationSimpleSettingValueTemplate struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeviceManagementConfigurationSimpleSettingValueTemplate instantiates a new DeviceManagementConfigurationSimpleSettingValueTemplate and sets the default values. +// NewDeviceManagementConfigurationSimpleSettingValueTemplate instantiates a new deviceManagementConfigurationSimpleSettingValueTemplate and sets the default values. func NewDeviceManagementConfigurationSimpleSettingValueTemplate()(*DeviceManagementConfigurationSimpleSettingValueTemplate) { m := &DeviceManagementConfigurationSimpleSettingValueTemplate{ } diff --git a/models/device_management_configuration_string_setting_value.go b/models/device_management_configuration_string_setting_value.go index f48ce00ae4b..0a21f0692f2 100644 --- a/models/device_management_configuration_string_setting_value.go +++ b/models/device_management_configuration_string_setting_value.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationStringSettingValue +// DeviceManagementConfigurationStringSettingValue simple setting value type DeviceManagementConfigurationStringSettingValue struct { DeviceManagementConfigurationSimpleSettingValue } -// NewDeviceManagementConfigurationStringSettingValue instantiates a new DeviceManagementConfigurationStringSettingValue and sets the default values. +// NewDeviceManagementConfigurationStringSettingValue instantiates a new deviceManagementConfigurationStringSettingValue and sets the default values. func NewDeviceManagementConfigurationStringSettingValue()(*DeviceManagementConfigurationStringSettingValue) { m := &DeviceManagementConfigurationStringSettingValue{ DeviceManagementConfigurationSimpleSettingValue: *NewDeviceManagementConfigurationSimpleSettingValue(), diff --git a/models/device_management_configuration_string_setting_value_constant_default_template.go b/models/device_management_configuration_string_setting_value_constant_default_template.go index 76a84f45100..72dda0df0d5 100644 --- a/models/device_management_configuration_string_setting_value_constant_default_template.go +++ b/models/device_management_configuration_string_setting_value_constant_default_template.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationStringSettingValueConstantDefaultTemplate +// DeviceManagementConfigurationStringSettingValueConstantDefaultTemplate string Setting Value Constant Default Template type DeviceManagementConfigurationStringSettingValueConstantDefaultTemplate struct { DeviceManagementConfigurationStringSettingValueDefaultTemplate + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationStringSettingValueConstantDefaultTemplate instantiates a new DeviceManagementConfigurationStringSettingValueConstantDefaultTemplate and sets the default values. +// NewDeviceManagementConfigurationStringSettingValueConstantDefaultTemplate instantiates a new deviceManagementConfigurationStringSettingValueConstantDefaultTemplate and sets the default values. func NewDeviceManagementConfigurationStringSettingValueConstantDefaultTemplate()(*DeviceManagementConfigurationStringSettingValueConstantDefaultTemplate) { m := &DeviceManagementConfigurationStringSettingValueConstantDefaultTemplate{ DeviceManagementConfigurationStringSettingValueDefaultTemplate: *NewDeviceManagementConfigurationStringSettingValueDefaultTemplate(), diff --git a/models/device_management_configuration_string_setting_value_definition.go b/models/device_management_configuration_string_setting_value_definition.go index 307173e9001..c2edbbb6e5b 100644 --- a/models/device_management_configuration_string_setting_value_definition.go +++ b/models/device_management_configuration_string_setting_value_definition.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationStringSettingValueDefinition +// DeviceManagementConfigurationStringSettingValueDefinition string constraints type DeviceManagementConfigurationStringSettingValueDefinition struct { DeviceManagementConfigurationSettingValueDefinition + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationStringSettingValueDefinition instantiates a new DeviceManagementConfigurationStringSettingValueDefinition and sets the default values. +// NewDeviceManagementConfigurationStringSettingValueDefinition instantiates a new deviceManagementConfigurationStringSettingValueDefinition and sets the default values. func NewDeviceManagementConfigurationStringSettingValueDefinition()(*DeviceManagementConfigurationStringSettingValueDefinition) { m := &DeviceManagementConfigurationStringSettingValueDefinition{ DeviceManagementConfigurationSettingValueDefinition: *NewDeviceManagementConfigurationSettingValueDefinition(), @@ -136,7 +138,7 @@ func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetIsSecret( } return nil } -// GetMaximumLength gets the maximumLength property value. Maximum length of string +// GetMaximumLength gets the maximumLength property value. Maximum length of string. Valid values 0 to 87516 func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetMaximumLength()(*int64) { val, err := m.GetBackingStore().Get("maximumLength") if err != nil { @@ -147,7 +149,7 @@ func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetMaximumLe } return nil } -// GetMinimumLength gets the minimumLength property value. Minimum length of string +// GetMinimumLength gets the minimumLength property value. Minimum length of string. Valid values 0 to 87516 func (m *DeviceManagementConfigurationStringSettingValueDefinition) GetMinimumLength()(*int64) { val, err := m.GetBackingStore().Get("minimumLength") if err != nil { @@ -231,14 +233,14 @@ func (m *DeviceManagementConfigurationStringSettingValueDefinition) SetIsSecret( panic(err) } } -// SetMaximumLength sets the maximumLength property value. Maximum length of string +// SetMaximumLength sets the maximumLength property value. Maximum length of string. Valid values 0 to 87516 func (m *DeviceManagementConfigurationStringSettingValueDefinition) SetMaximumLength(value *int64)() { err := m.GetBackingStore().Set("maximumLength", value) if err != nil { panic(err) } } -// SetMinimumLength sets the minimumLength property value. Minimum length of string +// SetMinimumLength sets the minimumLength property value. Minimum length of string. Valid values 0 to 87516 func (m *DeviceManagementConfigurationStringSettingValueDefinition) SetMinimumLength(value *int64)() { err := m.GetBackingStore().Set("minimumLength", value) if err != nil { diff --git a/models/device_management_configuration_string_setting_value_template.go b/models/device_management_configuration_string_setting_value_template.go index a96e0fb6713..0e8d6abe094 100644 --- a/models/device_management_configuration_string_setting_value_template.go +++ b/models/device_management_configuration_string_setting_value_template.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementConfigurationStringSettingValueTemplate +// DeviceManagementConfigurationStringSettingValueTemplate string Setting Value Template type DeviceManagementConfigurationStringSettingValueTemplate struct { DeviceManagementConfigurationSimpleSettingValueTemplate + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationStringSettingValueTemplate instantiates a new DeviceManagementConfigurationStringSettingValueTemplate and sets the default values. +// NewDeviceManagementConfigurationStringSettingValueTemplate instantiates a new deviceManagementConfigurationStringSettingValueTemplate and sets the default values. func NewDeviceManagementConfigurationStringSettingValueTemplate()(*DeviceManagementConfigurationStringSettingValueTemplate) { m := &DeviceManagementConfigurationStringSettingValueTemplate{ DeviceManagementConfigurationSimpleSettingValueTemplate: *NewDeviceManagementConfigurationSimpleSettingValueTemplate(), diff --git a/models/device_management_configuration_windows_setting_applicability.go b/models/device_management_configuration_windows_setting_applicability.go index 21b742897c6..9dee390b375 100644 --- a/models/device_management_configuration_windows_setting_applicability.go +++ b/models/device_management_configuration_windows_setting_applicability.go @@ -7,8 +7,10 @@ import ( // DeviceManagementConfigurationWindowsSettingApplicability type DeviceManagementConfigurationWindowsSettingApplicability struct { DeviceManagementConfigurationSettingApplicability + // The OdataType property + OdataType *string } -// NewDeviceManagementConfigurationWindowsSettingApplicability instantiates a new DeviceManagementConfigurationWindowsSettingApplicability and sets the default values. +// NewDeviceManagementConfigurationWindowsSettingApplicability instantiates a new deviceManagementConfigurationWindowsSettingApplicability and sets the default values. func NewDeviceManagementConfigurationWindowsSettingApplicability()(*DeviceManagementConfigurationWindowsSettingApplicability) { m := &DeviceManagementConfigurationWindowsSettingApplicability{ DeviceManagementConfigurationSettingApplicability: *NewDeviceManagementConfigurationSettingApplicability(), diff --git a/models/device_management_derived_credential_settings.go b/models/device_management_derived_credential_settings.go index 5baa75d9d96..13b54e828ab 100644 --- a/models/device_management_derived_credential_settings.go +++ b/models/device_management_derived_credential_settings.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementDerivedCredentialSettings +// DeviceManagementDerivedCredentialSettings entity that describes tenant level settings for derived credentials type DeviceManagementDerivedCredentialSettings struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementDerivedCredentialSettings instantiates a new deviceManagementDerivedCredentialSettings and sets the default values. func NewDeviceManagementDerivedCredentialSettings()(*DeviceManagementDerivedCredentialSettings) { diff --git a/models/device_management_derived_credential_settings_collection_response.go b/models/device_management_derived_credential_settings_collection_response.go index 3d59caf8cdb..4969827316d 100644 --- a/models/device_management_derived_credential_settings_collection_response.go +++ b/models/device_management_derived_credential_settings_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementDerivedCredentialSettingsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementDerivedCredentialSettingsCollectionResponse instantiates a new DeviceManagementDerivedCredentialSettingsCollectionResponse and sets the default values. +// NewDeviceManagementDerivedCredentialSettingsCollectionResponse instantiates a new deviceManagementDerivedCredentialSettingsCollectionResponse and sets the default values. func NewDeviceManagementDerivedCredentialSettingsCollectionResponse()(*DeviceManagementDerivedCredentialSettingsCollectionResponse) { m := &DeviceManagementDerivedCredentialSettingsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_domain_join_connector.go b/models/device_management_domain_join_connector.go index 3262dc8833b..79193a60b15 100644 --- a/models/device_management_domain_join_connector.go +++ b/models/device_management_domain_join_connector.go @@ -8,6 +8,8 @@ import ( // DeviceManagementDomainJoinConnector a Domain Join Connector is a connector that is responsible to allocate (and delete) machine account blobs type DeviceManagementDomainJoinConnector struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementDomainJoinConnector instantiates a new deviceManagementDomainJoinConnector and sets the default values. func NewDeviceManagementDomainJoinConnector()(*DeviceManagementDomainJoinConnector) { diff --git a/models/device_management_domain_join_connector_collection_response.go b/models/device_management_domain_join_connector_collection_response.go index 279595b46b9..0732645beb8 100644 --- a/models/device_management_domain_join_connector_collection_response.go +++ b/models/device_management_domain_join_connector_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementDomainJoinConnectorCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementDomainJoinConnectorCollectionResponse instantiates a new DeviceManagementDomainJoinConnectorCollectionResponse and sets the default values. +// NewDeviceManagementDomainJoinConnectorCollectionResponse instantiates a new deviceManagementDomainJoinConnectorCollectionResponse and sets the default values. func NewDeviceManagementDomainJoinConnectorCollectionResponse()(*DeviceManagementDomainJoinConnectorCollectionResponse) { m := &DeviceManagementDomainJoinConnectorCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_enum_constraint.go b/models/device_management_enum_constraint.go index 8f1ec3ec649..011e0576dc1 100644 --- a/models/device_management_enum_constraint.go +++ b/models/device_management_enum_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementEnumConstraint +// DeviceManagementEnumConstraint constraint that enforces the setting value is from a permitted set of strings type DeviceManagementEnumConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementEnumConstraint instantiates a new DeviceManagementEnumConstraint and sets the default values. +// NewDeviceManagementEnumConstraint instantiates a new deviceManagementEnumConstraint and sets the default values. func NewDeviceManagementEnumConstraint()(*DeviceManagementEnumConstraint) { m := &DeviceManagementEnumConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_enum_value.go b/models/device_management_enum_value.go index efc3eb7a3ef..3f2e0a652dd 100644 --- a/models/device_management_enum_value.go +++ b/models/device_management_enum_value.go @@ -10,7 +10,7 @@ type DeviceManagementEnumValue struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeviceManagementEnumValue instantiates a new DeviceManagementEnumValue and sets the default values. +// NewDeviceManagementEnumValue instantiates a new deviceManagementEnumValue and sets the default values. func NewDeviceManagementEnumValue()(*DeviceManagementEnumValue) { m := &DeviceManagementEnumValue{ } diff --git a/models/device_management_exchange_connector.go b/models/device_management_exchange_connector.go index e06395d5ab4..31d710bdb58 100644 --- a/models/device_management_exchange_connector.go +++ b/models/device_management_exchange_connector.go @@ -8,6 +8,8 @@ import ( // DeviceManagementExchangeConnector entity which represents a connection to an Exchange environment. type DeviceManagementExchangeConnector struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementExchangeConnector instantiates a new deviceManagementExchangeConnector and sets the default values. func NewDeviceManagementExchangeConnector()(*DeviceManagementExchangeConnector) { diff --git a/models/device_management_exchange_connector_collection_response.go b/models/device_management_exchange_connector_collection_response.go index c45734738b1..2521a73558a 100644 --- a/models/device_management_exchange_connector_collection_response.go +++ b/models/device_management_exchange_connector_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementExchangeConnectorCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementExchangeConnectorCollectionResponse instantiates a new DeviceManagementExchangeConnectorCollectionResponse and sets the default values. +// NewDeviceManagementExchangeConnectorCollectionResponse instantiates a new deviceManagementExchangeConnectorCollectionResponse and sets the default values. func NewDeviceManagementExchangeConnectorCollectionResponse()(*DeviceManagementExchangeConnectorCollectionResponse) { m := &DeviceManagementExchangeConnectorCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_exchange_on_premises_policy.go b/models/device_management_exchange_on_premises_policy.go index 7e989426f24..4a2baf724a8 100644 --- a/models/device_management_exchange_on_premises_policy.go +++ b/models/device_management_exchange_on_premises_policy.go @@ -7,6 +7,8 @@ import ( // DeviceManagementExchangeOnPremisesPolicy singleton entity which represents the Exchange OnPremises policy configured for a tenant. type DeviceManagementExchangeOnPremisesPolicy struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementExchangeOnPremisesPolicy instantiates a new deviceManagementExchangeOnPremisesPolicy and sets the default values. func NewDeviceManagementExchangeOnPremisesPolicy()(*DeviceManagementExchangeOnPremisesPolicy) { diff --git a/models/device_management_exchange_on_premises_policy_collection_response.go b/models/device_management_exchange_on_premises_policy_collection_response.go index 9d1d98be1cb..62d6e26c9d9 100644 --- a/models/device_management_exchange_on_premises_policy_collection_response.go +++ b/models/device_management_exchange_on_premises_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementExchangeOnPremisesPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementExchangeOnPremisesPolicyCollectionResponse instantiates a new DeviceManagementExchangeOnPremisesPolicyCollectionResponse and sets the default values. +// NewDeviceManagementExchangeOnPremisesPolicyCollectionResponse instantiates a new deviceManagementExchangeOnPremisesPolicyCollectionResponse and sets the default values. func NewDeviceManagementExchangeOnPremisesPolicyCollectionResponse()(*DeviceManagementExchangeOnPremisesPolicyCollectionResponse) { m := &DeviceManagementExchangeOnPremisesPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_export_job.go b/models/device_management_export_job.go index 1ea39a96b0f..763158ab74d 100644 --- a/models/device_management_export_job.go +++ b/models/device_management_export_job.go @@ -8,6 +8,8 @@ import ( // DeviceManagementExportJob entity representing a job to export a report type DeviceManagementExportJob struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementExportJob instantiates a new deviceManagementExportJob and sets the default values. func NewDeviceManagementExportJob()(*DeviceManagementExportJob) { diff --git a/models/device_management_export_job_collection_response.go b/models/device_management_export_job_collection_response.go index 3354b4c21ad..d09f2744c60 100644 --- a/models/device_management_export_job_collection_response.go +++ b/models/device_management_export_job_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementExportJobCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementExportJobCollectionResponse instantiates a new DeviceManagementExportJobCollectionResponse and sets the default values. +// NewDeviceManagementExportJobCollectionResponse instantiates a new deviceManagementExportJobCollectionResponse and sets the default values. func NewDeviceManagementExportJobCollectionResponse()(*DeviceManagementExportJobCollectionResponse) { m := &DeviceManagementExportJobCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_integer_setting_instance.go b/models/device_management_integer_setting_instance.go index 4d2aca7a95b..a1d2400866c 100644 --- a/models/device_management_integer_setting_instance.go +++ b/models/device_management_integer_setting_instance.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementIntegerSettingInstance +// DeviceManagementIntegerSettingInstance a setting instance representing an integer value type DeviceManagementIntegerSettingInstance struct { DeviceManagementSettingInstance } -// NewDeviceManagementIntegerSettingInstance instantiates a new DeviceManagementIntegerSettingInstance and sets the default values. +// NewDeviceManagementIntegerSettingInstance instantiates a new deviceManagementIntegerSettingInstance and sets the default values. func NewDeviceManagementIntegerSettingInstance()(*DeviceManagementIntegerSettingInstance) { m := &DeviceManagementIntegerSettingInstance{ DeviceManagementSettingInstance: *NewDeviceManagementSettingInstance(), diff --git a/models/device_management_intent.go b/models/device_management_intent.go index 90a8bf32ce2..3f68fafb08d 100644 --- a/models/device_management_intent.go +++ b/models/device_management_intent.go @@ -8,6 +8,8 @@ import ( // DeviceManagementIntent entity that represents an intent to apply settings to a device type DeviceManagementIntent struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementIntent instantiates a new deviceManagementIntent and sets the default values. func NewDeviceManagementIntent()(*DeviceManagementIntent) { diff --git a/models/device_management_intent_assignment.go b/models/device_management_intent_assignment.go index 33f54efca70..1a4ccfd4b9b 100644 --- a/models/device_management_intent_assignment.go +++ b/models/device_management_intent_assignment.go @@ -7,6 +7,8 @@ import ( // DeviceManagementIntentAssignment intent assignment entity type DeviceManagementIntentAssignment struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementIntentAssignment instantiates a new deviceManagementIntentAssignment and sets the default values. func NewDeviceManagementIntentAssignment()(*DeviceManagementIntentAssignment) { diff --git a/models/device_management_intent_assignment_collection_response.go b/models/device_management_intent_assignment_collection_response.go index 0b24619254f..3a1f5fecc26 100644 --- a/models/device_management_intent_assignment_collection_response.go +++ b/models/device_management_intent_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementIntentAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementIntentAssignmentCollectionResponse instantiates a new DeviceManagementIntentAssignmentCollectionResponse and sets the default values. +// NewDeviceManagementIntentAssignmentCollectionResponse instantiates a new deviceManagementIntentAssignmentCollectionResponse and sets the default values. func NewDeviceManagementIntentAssignmentCollectionResponse()(*DeviceManagementIntentAssignmentCollectionResponse) { m := &DeviceManagementIntentAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_intent_collection_response.go b/models/device_management_intent_collection_response.go index 27ee4ab5848..0aad5623921 100644 --- a/models/device_management_intent_collection_response.go +++ b/models/device_management_intent_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementIntentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementIntentCollectionResponse instantiates a new DeviceManagementIntentCollectionResponse and sets the default values. +// NewDeviceManagementIntentCollectionResponse instantiates a new deviceManagementIntentCollectionResponse and sets the default values. func NewDeviceManagementIntentCollectionResponse()(*DeviceManagementIntentCollectionResponse) { m := &DeviceManagementIntentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_intent_device_setting_state_summary.go b/models/device_management_intent_device_setting_state_summary.go index 69c7e80dc65..54882e7dd90 100644 --- a/models/device_management_intent_device_setting_state_summary.go +++ b/models/device_management_intent_device_setting_state_summary.go @@ -7,6 +7,8 @@ import ( // DeviceManagementIntentDeviceSettingStateSummary entity that represents device setting state summary for an intent type DeviceManagementIntentDeviceSettingStateSummary struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementIntentDeviceSettingStateSummary instantiates a new deviceManagementIntentDeviceSettingStateSummary and sets the default values. func NewDeviceManagementIntentDeviceSettingStateSummary()(*DeviceManagementIntentDeviceSettingStateSummary) { diff --git a/models/device_management_intent_device_setting_state_summary_collection_response.go b/models/device_management_intent_device_setting_state_summary_collection_response.go index 36e101724c7..2df46cb1a4a 100644 --- a/models/device_management_intent_device_setting_state_summary_collection_response.go +++ b/models/device_management_intent_device_setting_state_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementIntentDeviceSettingStateSummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementIntentDeviceSettingStateSummaryCollectionResponse instantiates a new DeviceManagementIntentDeviceSettingStateSummaryCollectionResponse and sets the default values. +// NewDeviceManagementIntentDeviceSettingStateSummaryCollectionResponse instantiates a new deviceManagementIntentDeviceSettingStateSummaryCollectionResponse and sets the default values. func NewDeviceManagementIntentDeviceSettingStateSummaryCollectionResponse()(*DeviceManagementIntentDeviceSettingStateSummaryCollectionResponse) { m := &DeviceManagementIntentDeviceSettingStateSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_intent_device_state.go b/models/device_management_intent_device_state.go index ef7b128f77c..8841497343c 100644 --- a/models/device_management_intent_device_state.go +++ b/models/device_management_intent_device_state.go @@ -8,6 +8,8 @@ import ( // DeviceManagementIntentDeviceState entity that represents device state for an intent type DeviceManagementIntentDeviceState struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementIntentDeviceState instantiates a new deviceManagementIntentDeviceState and sets the default values. func NewDeviceManagementIntentDeviceState()(*DeviceManagementIntentDeviceState) { diff --git a/models/device_management_intent_device_state_collection_response.go b/models/device_management_intent_device_state_collection_response.go index 0bf24f189b0..f600db13b48 100644 --- a/models/device_management_intent_device_state_collection_response.go +++ b/models/device_management_intent_device_state_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementIntentDeviceStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementIntentDeviceStateCollectionResponse instantiates a new DeviceManagementIntentDeviceStateCollectionResponse and sets the default values. +// NewDeviceManagementIntentDeviceStateCollectionResponse instantiates a new deviceManagementIntentDeviceStateCollectionResponse and sets the default values. func NewDeviceManagementIntentDeviceStateCollectionResponse()(*DeviceManagementIntentDeviceStateCollectionResponse) { m := &DeviceManagementIntentDeviceStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_intent_device_state_summary.go b/models/device_management_intent_device_state_summary.go index 2d6434be1ea..4a7fe3fd6b0 100644 --- a/models/device_management_intent_device_state_summary.go +++ b/models/device_management_intent_device_state_summary.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementIntentDeviceStateSummary +// DeviceManagementIntentDeviceStateSummary entity that represents device state summary for an intent type DeviceManagementIntentDeviceStateSummary struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementIntentDeviceStateSummary instantiates a new deviceManagementIntentDeviceStateSummary and sets the default values. func NewDeviceManagementIntentDeviceStateSummary()(*DeviceManagementIntentDeviceStateSummary) { diff --git a/models/device_management_intent_setting_category.go b/models/device_management_intent_setting_category.go index b598a12d8d4..f069b9e941e 100644 --- a/models/device_management_intent_setting_category.go +++ b/models/device_management_intent_setting_category.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementIntentSettingCategory +// DeviceManagementIntentSettingCategory entity representing an intent setting category type DeviceManagementIntentSettingCategory struct { DeviceManagementSettingCategory } -// NewDeviceManagementIntentSettingCategory instantiates a new DeviceManagementIntentSettingCategory and sets the default values. +// NewDeviceManagementIntentSettingCategory instantiates a new deviceManagementIntentSettingCategory and sets the default values. func NewDeviceManagementIntentSettingCategory()(*DeviceManagementIntentSettingCategory) { m := &DeviceManagementIntentSettingCategory{ DeviceManagementSettingCategory: *NewDeviceManagementSettingCategory(), diff --git a/models/device_management_intent_setting_category_collection_response.go b/models/device_management_intent_setting_category_collection_response.go index 2454b9bd90a..5c0468d588a 100644 --- a/models/device_management_intent_setting_category_collection_response.go +++ b/models/device_management_intent_setting_category_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementIntentSettingCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementIntentSettingCategoryCollectionResponse instantiates a new DeviceManagementIntentSettingCategoryCollectionResponse and sets the default values. +// NewDeviceManagementIntentSettingCategoryCollectionResponse instantiates a new deviceManagementIntentSettingCategoryCollectionResponse and sets the default values. func NewDeviceManagementIntentSettingCategoryCollectionResponse()(*DeviceManagementIntentSettingCategoryCollectionResponse) { m := &DeviceManagementIntentSettingCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_intent_setting_secret_constraint.go b/models/device_management_intent_setting_secret_constraint.go index 69a8d7f0bc3..6f536f1dc0f 100644 --- a/models/device_management_intent_setting_secret_constraint.go +++ b/models/device_management_intent_setting_secret_constraint.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementIntentSettingSecretConstraint +// DeviceManagementIntentSettingSecretConstraint constraint indicating that this value is a secret and will be encrypted. type DeviceManagementIntentSettingSecretConstraint struct { DeviceManagementConstraint } -// NewDeviceManagementIntentSettingSecretConstraint instantiates a new DeviceManagementIntentSettingSecretConstraint and sets the default values. +// NewDeviceManagementIntentSettingSecretConstraint instantiates a new deviceManagementIntentSettingSecretConstraint and sets the default values. func NewDeviceManagementIntentSettingSecretConstraint()(*DeviceManagementIntentSettingSecretConstraint) { m := &DeviceManagementIntentSettingSecretConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), @@ -24,18 +24,54 @@ func CreateDeviceManagementIntentSettingSecretConstraintFromDiscriminatorValue(p // GetFieldDeserializers the deserialization information for the current model func (m *DeviceManagementIntentSettingSecretConstraint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DeviceManagementConstraint.GetFieldDeserializers() + 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 *DeviceManagementIntentSettingSecretConstraint) 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 *DeviceManagementIntentSettingSecretConstraint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceManagementConstraint.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementIntentSettingSecretConstraint) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DeviceManagementIntentSettingSecretConstraintable type DeviceManagementIntentSettingSecretConstraintable interface { DeviceManagementConstraintable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/device_management_intent_user_state.go b/models/device_management_intent_user_state.go index de0833d1c34..1c88517e853 100644 --- a/models/device_management_intent_user_state.go +++ b/models/device_management_intent_user_state.go @@ -54,6 +54,16 @@ func (m *DeviceManagementIntentUserState) GetFieldDeserializers()(map[string]fun } 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["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseComplianceStatus) if err != nil { @@ -97,6 +107,17 @@ func (m *DeviceManagementIntentUserState) GetLastReportedDateTime()(*i336074805f } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceManagementIntentUserState) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetState gets the state property value. The state property func (m *DeviceManagementIntentUserState) GetState()(*ComplianceStatus) { val, err := m.GetBackingStore().Get("state") @@ -148,6 +169,12 @@ func (m *DeviceManagementIntentUserState) Serialize(writer i878a80d2330e89d26896 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetState() != nil { cast := (*m.GetState()).String() err = writer.WriteStringValue("state", &cast) @@ -183,6 +210,13 @@ func (m *DeviceManagementIntentUserState) SetLastReportedDateTime(value *i336074 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceManagementIntentUserState) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetState sets the state property value. The state property func (m *DeviceManagementIntentUserState) SetState(value *ComplianceStatus)() { err := m.GetBackingStore().Set("state", value) @@ -210,11 +244,13 @@ type DeviceManagementIntentUserStateable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDeviceCount()(*int32) GetLastReportedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetState()(*ComplianceStatus) GetUserName()(*string) GetUserPrincipalName()(*string) SetDeviceCount(value *int32)() SetLastReportedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetState(value *ComplianceStatus)() SetUserName(value *string)() SetUserPrincipalName(value *string)() diff --git a/models/device_management_intent_user_state_collection_response.go b/models/device_management_intent_user_state_collection_response.go index aabc355d044..deb6d99cf8c 100644 --- a/models/device_management_intent_user_state_collection_response.go +++ b/models/device_management_intent_user_state_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementIntentUserStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementIntentUserStateCollectionResponse instantiates a new DeviceManagementIntentUserStateCollectionResponse and sets the default values. +// NewDeviceManagementIntentUserStateCollectionResponse instantiates a new deviceManagementIntentUserStateCollectionResponse and sets the default values. func NewDeviceManagementIntentUserStateCollectionResponse()(*DeviceManagementIntentUserStateCollectionResponse) { m := &DeviceManagementIntentUserStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_intent_user_state_summary.go b/models/device_management_intent_user_state_summary.go index 6b5e9479a3a..7ca3939531e 100644 --- a/models/device_management_intent_user_state_summary.go +++ b/models/device_management_intent_user_state_summary.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementIntentUserStateSummary +// DeviceManagementIntentUserStateSummary entity that represents user state summary for an intent type DeviceManagementIntentUserStateSummary struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementIntentUserStateSummary instantiates a new deviceManagementIntentUserStateSummary and sets the default values. func NewDeviceManagementIntentUserStateSummary()(*DeviceManagementIntentUserStateSummary) { diff --git a/models/device_management_partner.go b/models/device_management_partner.go index b45b927ab95..b7a7b1e3f1e 100644 --- a/models/device_management_partner.go +++ b/models/device_management_partner.go @@ -8,6 +8,8 @@ import ( // DeviceManagementPartner entity which represents a connection to device management partner. type DeviceManagementPartner struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementPartner instantiates a new deviceManagementPartner and sets the default values. func NewDeviceManagementPartner()(*DeviceManagementPartner) { diff --git a/models/device_management_partner_collection_response.go b/models/device_management_partner_collection_response.go index 68d3c011a25..76ba4a56333 100644 --- a/models/device_management_partner_collection_response.go +++ b/models/device_management_partner_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementPartnerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementPartnerCollectionResponse instantiates a new DeviceManagementPartnerCollectionResponse and sets the default values. +// NewDeviceManagementPartnerCollectionResponse instantiates a new deviceManagementPartnerCollectionResponse and sets the default values. func NewDeviceManagementPartnerCollectionResponse()(*DeviceManagementPartnerCollectionResponse) { m := &DeviceManagementPartnerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_reports.go b/models/device_management_reports.go index 648a728b243..fe5add82b25 100644 --- a/models/device_management_reports.go +++ b/models/device_management_reports.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementReports +// DeviceManagementReports singleton entity that acts as a container for all reports functionality. type DeviceManagementReports struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementReports instantiates a new deviceManagementReports and sets the default values. func NewDeviceManagementReports()(*DeviceManagementReports) { diff --git a/models/device_management_resource_access_profile_assignment.go b/models/device_management_resource_access_profile_assignment.go index 0dbbadfb6bc..9ec81a425ac 100644 --- a/models/device_management_resource_access_profile_assignment.go +++ b/models/device_management_resource_access_profile_assignment.go @@ -7,6 +7,8 @@ import ( // DeviceManagementResourceAccessProfileAssignment entity that describes tenant level settings for derived credentials type DeviceManagementResourceAccessProfileAssignment struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementResourceAccessProfileAssignment instantiates a new deviceManagementResourceAccessProfileAssignment and sets the default values. func NewDeviceManagementResourceAccessProfileAssignment()(*DeviceManagementResourceAccessProfileAssignment) { diff --git a/models/device_management_resource_access_profile_assignment_collection_response.go b/models/device_management_resource_access_profile_assignment_collection_response.go index 5ceaada747f..a6be4f42fe8 100644 --- a/models/device_management_resource_access_profile_assignment_collection_response.go +++ b/models/device_management_resource_access_profile_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementResourceAccessProfileAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementResourceAccessProfileAssignmentCollectionResponse instantiates a new DeviceManagementResourceAccessProfileAssignmentCollectionResponse and sets the default values. +// NewDeviceManagementResourceAccessProfileAssignmentCollectionResponse instantiates a new deviceManagementResourceAccessProfileAssignmentCollectionResponse and sets the default values. func NewDeviceManagementResourceAccessProfileAssignmentCollectionResponse()(*DeviceManagementResourceAccessProfileAssignmentCollectionResponse) { m := &DeviceManagementResourceAccessProfileAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_resource_access_profile_base.go b/models/device_management_resource_access_profile_base.go index 98fd23cbad1..d71d6cfb1c2 100644 --- a/models/device_management_resource_access_profile_base.go +++ b/models/device_management_resource_access_profile_base.go @@ -8,6 +8,8 @@ import ( // DeviceManagementResourceAccessProfileBase base Profile Type for Resource Access type DeviceManagementResourceAccessProfileBase struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementResourceAccessProfileBase instantiates a new deviceManagementResourceAccessProfileBase and sets the default values. func NewDeviceManagementResourceAccessProfileBase()(*DeviceManagementResourceAccessProfileBase) { diff --git a/models/device_management_resource_access_profile_base_collection_response.go b/models/device_management_resource_access_profile_base_collection_response.go index 21c6a74bfc2..976330daa1c 100644 --- a/models/device_management_resource_access_profile_base_collection_response.go +++ b/models/device_management_resource_access_profile_base_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementResourceAccessProfileBaseCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementResourceAccessProfileBaseCollectionResponse instantiates a new DeviceManagementResourceAccessProfileBaseCollectionResponse and sets the default values. +// NewDeviceManagementResourceAccessProfileBaseCollectionResponse instantiates a new deviceManagementResourceAccessProfileBaseCollectionResponse and sets the default values. func NewDeviceManagementResourceAccessProfileBaseCollectionResponse()(*DeviceManagementResourceAccessProfileBaseCollectionResponse) { m := &DeviceManagementResourceAccessProfileBaseCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_reusable_policy_setting.go b/models/device_management_reusable_policy_setting.go index 1b7a6382355..3cb2d23b0be 100644 --- a/models/device_management_reusable_policy_setting.go +++ b/models/device_management_reusable_policy_setting.go @@ -8,6 +8,8 @@ import ( // DeviceManagementReusablePolicySetting graph model for a reusable setting type DeviceManagementReusablePolicySetting struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementReusablePolicySetting instantiates a new deviceManagementReusablePolicySetting and sets the default values. func NewDeviceManagementReusablePolicySetting()(*DeviceManagementReusablePolicySetting) { diff --git a/models/device_management_reusable_policy_setting_collection_response.go b/models/device_management_reusable_policy_setting_collection_response.go index 5183b07584b..36fe03f7951 100644 --- a/models/device_management_reusable_policy_setting_collection_response.go +++ b/models/device_management_reusable_policy_setting_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementReusablePolicySettingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementReusablePolicySettingCollectionResponse instantiates a new DeviceManagementReusablePolicySettingCollectionResponse and sets the default values. +// NewDeviceManagementReusablePolicySettingCollectionResponse instantiates a new deviceManagementReusablePolicySettingCollectionResponse and sets the default values. func NewDeviceManagementReusablePolicySettingCollectionResponse()(*DeviceManagementReusablePolicySettingCollectionResponse) { m := &DeviceManagementReusablePolicySettingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_script.go b/models/device_management_script.go index 86d52989d04..62c23e19b74 100644 --- a/models/device_management_script.go +++ b/models/device_management_script.go @@ -8,6 +8,8 @@ import ( // DeviceManagementScript intune will provide customer the ability to run their Powershell scripts on the enrolled windows 10 Azure Active Directory joined devices. The script can be run once or periodically. type DeviceManagementScript struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementScript instantiates a new deviceManagementScript and sets the default values. func NewDeviceManagementScript()(*DeviceManagementScript) { diff --git a/models/device_management_script_assignment.go b/models/device_management_script_assignment.go index 38ee93f0bd1..1b3a3fc6a34 100644 --- a/models/device_management_script_assignment.go +++ b/models/device_management_script_assignment.go @@ -7,6 +7,8 @@ import ( // DeviceManagementScriptAssignment contains properties used to assign a device management script to a group. type DeviceManagementScriptAssignment struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementScriptAssignment instantiates a new deviceManagementScriptAssignment and sets the default values. func NewDeviceManagementScriptAssignment()(*DeviceManagementScriptAssignment) { diff --git a/models/device_management_script_assignment_collection_response.go b/models/device_management_script_assignment_collection_response.go index 7056776a351..4a853ba23ba 100644 --- a/models/device_management_script_assignment_collection_response.go +++ b/models/device_management_script_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementScriptAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementScriptAssignmentCollectionResponse instantiates a new DeviceManagementScriptAssignmentCollectionResponse and sets the default values. +// NewDeviceManagementScriptAssignmentCollectionResponse instantiates a new deviceManagementScriptAssignmentCollectionResponse and sets the default values. func NewDeviceManagementScriptAssignmentCollectionResponse()(*DeviceManagementScriptAssignmentCollectionResponse) { m := &DeviceManagementScriptAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_script_collection_response.go b/models/device_management_script_collection_response.go index d2f44dd9a28..2bc0ce720ae 100644 --- a/models/device_management_script_collection_response.go +++ b/models/device_management_script_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementScriptCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementScriptCollectionResponse instantiates a new DeviceManagementScriptCollectionResponse and sets the default values. +// NewDeviceManagementScriptCollectionResponse instantiates a new deviceManagementScriptCollectionResponse and sets the default values. func NewDeviceManagementScriptCollectionResponse()(*DeviceManagementScriptCollectionResponse) { m := &DeviceManagementScriptCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_script_device_state.go b/models/device_management_script_device_state.go index 307e6c8ebcc..1997b981310 100644 --- a/models/device_management_script_device_state.go +++ b/models/device_management_script_device_state.go @@ -8,6 +8,8 @@ import ( // DeviceManagementScriptDeviceState contains properties for device run state of the device management script. type DeviceManagementScriptDeviceState struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementScriptDeviceState instantiates a new deviceManagementScriptDeviceState and sets the default values. func NewDeviceManagementScriptDeviceState()(*DeviceManagementScriptDeviceState) { diff --git a/models/device_management_script_device_state_collection_response.go b/models/device_management_script_device_state_collection_response.go index 894e414acdf..a4b5fa5f5f5 100644 --- a/models/device_management_script_device_state_collection_response.go +++ b/models/device_management_script_device_state_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementScriptDeviceStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementScriptDeviceStateCollectionResponse instantiates a new DeviceManagementScriptDeviceStateCollectionResponse and sets the default values. +// NewDeviceManagementScriptDeviceStateCollectionResponse instantiates a new deviceManagementScriptDeviceStateCollectionResponse and sets the default values. func NewDeviceManagementScriptDeviceStateCollectionResponse()(*DeviceManagementScriptDeviceStateCollectionResponse) { m := &DeviceManagementScriptDeviceStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_script_group_assignment.go b/models/device_management_script_group_assignment.go index 1ead52cc6ba..7883854ca5d 100644 --- a/models/device_management_script_group_assignment.go +++ b/models/device_management_script_group_assignment.go @@ -7,6 +7,8 @@ import ( // DeviceManagementScriptGroupAssignment contains properties used to assign a device management script to a group. type DeviceManagementScriptGroupAssignment struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementScriptGroupAssignment instantiates a new deviceManagementScriptGroupAssignment and sets the default values. func NewDeviceManagementScriptGroupAssignment()(*DeviceManagementScriptGroupAssignment) { diff --git a/models/device_management_script_group_assignment_collection_response.go b/models/device_management_script_group_assignment_collection_response.go index 0951b68d07c..b03eb705de4 100644 --- a/models/device_management_script_group_assignment_collection_response.go +++ b/models/device_management_script_group_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementScriptGroupAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementScriptGroupAssignmentCollectionResponse instantiates a new DeviceManagementScriptGroupAssignmentCollectionResponse and sets the default values. +// NewDeviceManagementScriptGroupAssignmentCollectionResponse instantiates a new deviceManagementScriptGroupAssignmentCollectionResponse and sets the default values. func NewDeviceManagementScriptGroupAssignmentCollectionResponse()(*DeviceManagementScriptGroupAssignmentCollectionResponse) { m := &DeviceManagementScriptGroupAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_script_policy_set_item.go b/models/device_management_script_policy_set_item.go index d736e608e8e..be399f5a67f 100644 --- a/models/device_management_script_policy_set_item.go +++ b/models/device_management_script_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementScriptPolicySetItem +// DeviceManagementScriptPolicySetItem a class containing the properties used for device management script PolicySetItem. type DeviceManagementScriptPolicySetItem struct { PolicySetItem } -// NewDeviceManagementScriptPolicySetItem instantiates a new DeviceManagementScriptPolicySetItem and sets the default values. +// NewDeviceManagementScriptPolicySetItem instantiates a new deviceManagementScriptPolicySetItem and sets the default values. func NewDeviceManagementScriptPolicySetItem()(*DeviceManagementScriptPolicySetItem) { m := &DeviceManagementScriptPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/device_management_script_run_summary.go b/models/device_management_script_run_summary.go index 6ebca35ae4f..d6e6107132d 100644 --- a/models/device_management_script_run_summary.go +++ b/models/device_management_script_run_summary.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementScriptRunSummary +// DeviceManagementScriptRunSummary contains properties for the run summary of a device management script. type DeviceManagementScriptRunSummary struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementScriptRunSummary instantiates a new deviceManagementScriptRunSummary and sets the default values. func NewDeviceManagementScriptRunSummary()(*DeviceManagementScriptRunSummary) { diff --git a/models/device_management_script_user_state.go b/models/device_management_script_user_state.go index c344013db81..ac4916a341b 100644 --- a/models/device_management_script_user_state.go +++ b/models/device_management_script_user_state.go @@ -7,6 +7,8 @@ import ( // DeviceManagementScriptUserState contains properties for user run state of the device management script. type DeviceManagementScriptUserState struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementScriptUserState instantiates a new deviceManagementScriptUserState and sets the default values. func NewDeviceManagementScriptUserState()(*DeviceManagementScriptUserState) { diff --git a/models/device_management_script_user_state_collection_response.go b/models/device_management_script_user_state_collection_response.go index ca5c1b52ae5..c8fd6f992d5 100644 --- a/models/device_management_script_user_state_collection_response.go +++ b/models/device_management_script_user_state_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementScriptUserStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementScriptUserStateCollectionResponse instantiates a new DeviceManagementScriptUserStateCollectionResponse and sets the default values. +// NewDeviceManagementScriptUserStateCollectionResponse instantiates a new deviceManagementScriptUserStateCollectionResponse and sets the default values. func NewDeviceManagementScriptUserStateCollectionResponse()(*DeviceManagementScriptUserStateCollectionResponse) { m := &DeviceManagementScriptUserStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_setting_abstract_implementation_constraint.go b/models/device_management_setting_abstract_implementation_constraint.go index 43256f6b2f9..e98dc46df8c 100644 --- a/models/device_management_setting_abstract_implementation_constraint.go +++ b/models/device_management_setting_abstract_implementation_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingAbstractImplementationConstraint +// DeviceManagementSettingAbstractImplementationConstraint constraint that enforces an AbstractComplex type has or is set to a particular value type DeviceManagementSettingAbstractImplementationConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingAbstractImplementationConstraint instantiates a new DeviceManagementSettingAbstractImplementationConstraint and sets the default values. +// NewDeviceManagementSettingAbstractImplementationConstraint instantiates a new deviceManagementSettingAbstractImplementationConstraint and sets the default values. func NewDeviceManagementSettingAbstractImplementationConstraint()(*DeviceManagementSettingAbstractImplementationConstraint) { m := &DeviceManagementSettingAbstractImplementationConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_app_constraint.go b/models/device_management_setting_app_constraint.go index 8faa59d4d81..44f896e9ad6 100644 --- a/models/device_management_setting_app_constraint.go +++ b/models/device_management_setting_app_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingAppConstraint +// DeviceManagementSettingAppConstraint constraint enforcing the setting contains only vaild app types. type DeviceManagementSettingAppConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingAppConstraint instantiates a new DeviceManagementSettingAppConstraint and sets the default values. +// NewDeviceManagementSettingAppConstraint instantiates a new deviceManagementSettingAppConstraint and sets the default values. func NewDeviceManagementSettingAppConstraint()(*DeviceManagementSettingAppConstraint) { m := &DeviceManagementSettingAppConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_boolean_constraint.go b/models/device_management_setting_boolean_constraint.go index 94c5d2a143b..4195e84830e 100644 --- a/models/device_management_setting_boolean_constraint.go +++ b/models/device_management_setting_boolean_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingBooleanConstraint +// DeviceManagementSettingBooleanConstraint constraint the enforces a particular boolean value type DeviceManagementSettingBooleanConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingBooleanConstraint instantiates a new DeviceManagementSettingBooleanConstraint and sets the default values. +// NewDeviceManagementSettingBooleanConstraint instantiates a new deviceManagementSettingBooleanConstraint and sets the default values. func NewDeviceManagementSettingBooleanConstraint()(*DeviceManagementSettingBooleanConstraint) { m := &DeviceManagementSettingBooleanConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_category.go b/models/device_management_setting_category.go index 36cb7877fc2..130e8f6a088 100644 --- a/models/device_management_setting_category.go +++ b/models/device_management_setting_category.go @@ -7,6 +7,8 @@ import ( // DeviceManagementSettingCategory entity representing a setting category type DeviceManagementSettingCategory struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementSettingCategory instantiates a new deviceManagementSettingCategory and sets the default values. func NewDeviceManagementSettingCategory()(*DeviceManagementSettingCategory) { diff --git a/models/device_management_setting_category_collection_response.go b/models/device_management_setting_category_collection_response.go index a42188524d7..fdd8ae86c95 100644 --- a/models/device_management_setting_category_collection_response.go +++ b/models/device_management_setting_category_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementSettingCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementSettingCategoryCollectionResponse instantiates a new DeviceManagementSettingCategoryCollectionResponse and sets the default values. +// NewDeviceManagementSettingCategoryCollectionResponse instantiates a new deviceManagementSettingCategoryCollectionResponse and sets the default values. func NewDeviceManagementSettingCategoryCollectionResponse()(*DeviceManagementSettingCategoryCollectionResponse) { m := &DeviceManagementSettingCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_setting_collection_constraint.go b/models/device_management_setting_collection_constraint.go index 30206d06d80..6a1dc021baf 100644 --- a/models/device_management_setting_collection_constraint.go +++ b/models/device_management_setting_collection_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingCollectionConstraint +// DeviceManagementSettingCollectionConstraint constraint that enforces the maximum number of elements a collection type DeviceManagementSettingCollectionConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingCollectionConstraint instantiates a new DeviceManagementSettingCollectionConstraint and sets the default values. +// NewDeviceManagementSettingCollectionConstraint instantiates a new deviceManagementSettingCollectionConstraint and sets the default values. func NewDeviceManagementSettingCollectionConstraint()(*DeviceManagementSettingCollectionConstraint) { m := &DeviceManagementSettingCollectionConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_definition.go b/models/device_management_setting_definition.go index 6d18bdeb476..062cd554695 100644 --- a/models/device_management_setting_definition.go +++ b/models/device_management_setting_definition.go @@ -7,6 +7,8 @@ import ( // DeviceManagementSettingDefinition entity representing the defintion for a given setting type DeviceManagementSettingDefinition struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementSettingDefinition instantiates a new deviceManagementSettingDefinition and sets the default values. func NewDeviceManagementSettingDefinition()(*DeviceManagementSettingDefinition) { diff --git a/models/device_management_setting_definition_collection_response.go b/models/device_management_setting_definition_collection_response.go index 9a4fef05f6d..6033cefb809 100644 --- a/models/device_management_setting_definition_collection_response.go +++ b/models/device_management_setting_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementSettingDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementSettingDefinitionCollectionResponse instantiates a new DeviceManagementSettingDefinitionCollectionResponse and sets the default values. +// NewDeviceManagementSettingDefinitionCollectionResponse instantiates a new deviceManagementSettingDefinitionCollectionResponse and sets the default values. func NewDeviceManagementSettingDefinitionCollectionResponse()(*DeviceManagementSettingDefinitionCollectionResponse) { m := &DeviceManagementSettingDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_setting_enrollment_type_constraint.go b/models/device_management_setting_enrollment_type_constraint.go index 4fa61c9b34f..37514aaa41e 100644 --- a/models/device_management_setting_enrollment_type_constraint.go +++ b/models/device_management_setting_enrollment_type_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingEnrollmentTypeConstraint +// DeviceManagementSettingEnrollmentTypeConstraint constraint that enforces the enrollment types applied to a setting type DeviceManagementSettingEnrollmentTypeConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingEnrollmentTypeConstraint instantiates a new DeviceManagementSettingEnrollmentTypeConstraint and sets the default values. +// NewDeviceManagementSettingEnrollmentTypeConstraint instantiates a new deviceManagementSettingEnrollmentTypeConstraint and sets the default values. func NewDeviceManagementSettingEnrollmentTypeConstraint()(*DeviceManagementSettingEnrollmentTypeConstraint) { m := &DeviceManagementSettingEnrollmentTypeConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_file_constraint.go b/models/device_management_setting_file_constraint.go index 4c00fcca34a..d7897998b22 100644 --- a/models/device_management_setting_file_constraint.go +++ b/models/device_management_setting_file_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingFileConstraint +// DeviceManagementSettingFileConstraint constraint enforcing the file extension is acceptable for a given setting type DeviceManagementSettingFileConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingFileConstraint instantiates a new DeviceManagementSettingFileConstraint and sets the default values. +// NewDeviceManagementSettingFileConstraint instantiates a new deviceManagementSettingFileConstraint and sets the default values. func NewDeviceManagementSettingFileConstraint()(*DeviceManagementSettingFileConstraint) { m := &DeviceManagementSettingFileConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_instance.go b/models/device_management_setting_instance.go index 6c6fbbe9bfb..ddb7a5e925b 100644 --- a/models/device_management_setting_instance.go +++ b/models/device_management_setting_instance.go @@ -7,6 +7,8 @@ import ( // DeviceManagementSettingInstance base type for a setting instance type DeviceManagementSettingInstance struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementSettingInstance instantiates a new deviceManagementSettingInstance and sets the default values. func NewDeviceManagementSettingInstance()(*DeviceManagementSettingInstance) { diff --git a/models/device_management_setting_instance_collection_response.go b/models/device_management_setting_instance_collection_response.go index 5edf6676b2e..2eae2310e2b 100644 --- a/models/device_management_setting_instance_collection_response.go +++ b/models/device_management_setting_instance_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementSettingInstanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementSettingInstanceCollectionResponse instantiates a new DeviceManagementSettingInstanceCollectionResponse and sets the default values. +// NewDeviceManagementSettingInstanceCollectionResponse instantiates a new deviceManagementSettingInstanceCollectionResponse and sets the default values. func NewDeviceManagementSettingInstanceCollectionResponse()(*DeviceManagementSettingInstanceCollectionResponse) { m := &DeviceManagementSettingInstanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_setting_integer_constraint.go b/models/device_management_setting_integer_constraint.go index 87a4178ba9a..d6a4652b542 100644 --- a/models/device_management_setting_integer_constraint.go +++ b/models/device_management_setting_integer_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingIntegerConstraint +// DeviceManagementSettingIntegerConstraint constraint enforcing the permitted value range for an integer setting type DeviceManagementSettingIntegerConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingIntegerConstraint instantiates a new DeviceManagementSettingIntegerConstraint and sets the default values. +// NewDeviceManagementSettingIntegerConstraint instantiates a new deviceManagementSettingIntegerConstraint and sets the default values. func NewDeviceManagementSettingIntegerConstraint()(*DeviceManagementSettingIntegerConstraint) { m := &DeviceManagementSettingIntegerConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_profile_constraint.go b/models/device_management_setting_profile_constraint.go index 507ab10af1f..4557eae7322 100644 --- a/models/device_management_setting_profile_constraint.go +++ b/models/device_management_setting_profile_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingProfileConstraint +// DeviceManagementSettingProfileConstraint constraint enforcing a given profile metadata type DeviceManagementSettingProfileConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingProfileConstraint instantiates a new DeviceManagementSettingProfileConstraint and sets the default values. +// NewDeviceManagementSettingProfileConstraint instantiates a new deviceManagementSettingProfileConstraint and sets the default values. func NewDeviceManagementSettingProfileConstraint()(*DeviceManagementSettingProfileConstraint) { m := &DeviceManagementSettingProfileConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_regex_constraint.go b/models/device_management_setting_regex_constraint.go index 1515c2d188b..afe8318e733 100644 --- a/models/device_management_setting_regex_constraint.go +++ b/models/device_management_setting_regex_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingRegexConstraint +// DeviceManagementSettingRegexConstraint constraint enforcing the setting matches against a given RegEx pattern type DeviceManagementSettingRegexConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingRegexConstraint instantiates a new DeviceManagementSettingRegexConstraint and sets the default values. +// NewDeviceManagementSettingRegexConstraint instantiates a new deviceManagementSettingRegexConstraint and sets the default values. func NewDeviceManagementSettingRegexConstraint()(*DeviceManagementSettingRegexConstraint) { m := &DeviceManagementSettingRegexConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_required_constraint.go b/models/device_management_setting_required_constraint.go index 7a4ea3ef7af..a59f420c1e1 100644 --- a/models/device_management_setting_required_constraint.go +++ b/models/device_management_setting_required_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingRequiredConstraint +// DeviceManagementSettingRequiredConstraint constraint that enforces a particular required setting that is not null/undefined/empty string/not configured type DeviceManagementSettingRequiredConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingRequiredConstraint instantiates a new DeviceManagementSettingRequiredConstraint and sets the default values. +// NewDeviceManagementSettingRequiredConstraint instantiates a new deviceManagementSettingRequiredConstraint and sets the default values. func NewDeviceManagementSettingRequiredConstraint()(*DeviceManagementSettingRequiredConstraint) { m := &DeviceManagementSettingRequiredConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_sddl_constraint.go b/models/device_management_setting_sddl_constraint.go index 14f32636383..a1e21bb81b7 100644 --- a/models/device_management_setting_sddl_constraint.go +++ b/models/device_management_setting_sddl_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingSddlConstraint +// DeviceManagementSettingSddlConstraint constraint enforcing the setting is well formed SDDL type DeviceManagementSettingSddlConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingSddlConstraint instantiates a new DeviceManagementSettingSddlConstraint and sets the default values. +// NewDeviceManagementSettingSddlConstraint instantiates a new deviceManagementSettingSddlConstraint and sets the default values. func NewDeviceManagementSettingSddlConstraint()(*DeviceManagementSettingSddlConstraint) { m := &DeviceManagementSettingSddlConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_string_length_constraint.go b/models/device_management_setting_string_length_constraint.go index eeb91c29c5e..501a00db587 100644 --- a/models/device_management_setting_string_length_constraint.go +++ b/models/device_management_setting_string_length_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingStringLengthConstraint +// DeviceManagementSettingStringLengthConstraint constraint enforcing a given string length range type DeviceManagementSettingStringLengthConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingStringLengthConstraint instantiates a new DeviceManagementSettingStringLengthConstraint and sets the default values. +// NewDeviceManagementSettingStringLengthConstraint instantiates a new deviceManagementSettingStringLengthConstraint and sets the default values. func NewDeviceManagementSettingStringLengthConstraint()(*DeviceManagementSettingStringLengthConstraint) { m := &DeviceManagementSettingStringLengthConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_setting_xml_constraint.go b/models/device_management_setting_xml_constraint.go index dd187efd7fb..d18963e6692 100644 --- a/models/device_management_setting_xml_constraint.go +++ b/models/device_management_setting_xml_constraint.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementSettingXmlConstraint +// DeviceManagementSettingXmlConstraint constraint enforcing the setting is well formed XML type DeviceManagementSettingXmlConstraint struct { DeviceManagementConstraint + // The OdataType property + OdataType *string } -// NewDeviceManagementSettingXmlConstraint instantiates a new DeviceManagementSettingXmlConstraint and sets the default values. +// NewDeviceManagementSettingXmlConstraint instantiates a new deviceManagementSettingXmlConstraint and sets the default values. func NewDeviceManagementSettingXmlConstraint()(*DeviceManagementSettingXmlConstraint) { m := &DeviceManagementSettingXmlConstraint{ DeviceManagementConstraint: *NewDeviceManagementConstraint(), diff --git a/models/device_management_string_setting_instance.go b/models/device_management_string_setting_instance.go index 814c492f462..598ff1b584e 100644 --- a/models/device_management_string_setting_instance.go +++ b/models/device_management_string_setting_instance.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementStringSettingInstance +// DeviceManagementStringSettingInstance a setting instance representing a string value type DeviceManagementStringSettingInstance struct { DeviceManagementSettingInstance } -// NewDeviceManagementStringSettingInstance instantiates a new DeviceManagementStringSettingInstance and sets the default values. +// NewDeviceManagementStringSettingInstance instantiates a new deviceManagementStringSettingInstance and sets the default values. func NewDeviceManagementStringSettingInstance()(*DeviceManagementStringSettingInstance) { m := &DeviceManagementStringSettingInstance{ DeviceManagementSettingInstance: *NewDeviceManagementSettingInstance(), diff --git a/models/device_management_template.go b/models/device_management_template.go index e986790d194..f09240fbc32 100644 --- a/models/device_management_template.go +++ b/models/device_management_template.go @@ -8,6 +8,8 @@ import ( // DeviceManagementTemplate entity that represents a defined collection of device settings type DeviceManagementTemplate struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementTemplate instantiates a new deviceManagementTemplate and sets the default values. func NewDeviceManagementTemplate()(*DeviceManagementTemplate) { diff --git a/models/device_management_template_collection_response.go b/models/device_management_template_collection_response.go index 4339c5c10e8..b3d056df87d 100644 --- a/models/device_management_template_collection_response.go +++ b/models/device_management_template_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementTemplateCollectionResponse instantiates a new DeviceManagementTemplateCollectionResponse and sets the default values. +// NewDeviceManagementTemplateCollectionResponse instantiates a new deviceManagementTemplateCollectionResponse and sets the default values. func NewDeviceManagementTemplateCollectionResponse()(*DeviceManagementTemplateCollectionResponse) { m := &DeviceManagementTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_template_insights_definition.go b/models/device_management_template_insights_definition.go index ee4741fcd35..12f89b10129 100644 --- a/models/device_management_template_insights_definition.go +++ b/models/device_management_template_insights_definition.go @@ -7,6 +7,8 @@ import ( // DeviceManagementTemplateInsightsDefinition template insights definition type DeviceManagementTemplateInsightsDefinition struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementTemplateInsightsDefinition instantiates a new deviceManagementTemplateInsightsDefinition and sets the default values. func NewDeviceManagementTemplateInsightsDefinition()(*DeviceManagementTemplateInsightsDefinition) { diff --git a/models/device_management_template_insights_definition_collection_response.go b/models/device_management_template_insights_definition_collection_response.go index 26a6a1c0d77..161c52de2a1 100644 --- a/models/device_management_template_insights_definition_collection_response.go +++ b/models/device_management_template_insights_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementTemplateInsightsDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementTemplateInsightsDefinitionCollectionResponse instantiates a new DeviceManagementTemplateInsightsDefinitionCollectionResponse and sets the default values. +// NewDeviceManagementTemplateInsightsDefinitionCollectionResponse instantiates a new deviceManagementTemplateInsightsDefinitionCollectionResponse and sets the default values. func NewDeviceManagementTemplateInsightsDefinitionCollectionResponse()(*DeviceManagementTemplateInsightsDefinitionCollectionResponse) { m := &DeviceManagementTemplateInsightsDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_template_setting_category.go b/models/device_management_template_setting_category.go index 1688690c46f..530411c4fba 100644 --- a/models/device_management_template_setting_category.go +++ b/models/device_management_template_setting_category.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceManagementTemplateSettingCategory +// DeviceManagementTemplateSettingCategory entity representing a template setting category type DeviceManagementTemplateSettingCategory struct { DeviceManagementSettingCategory } -// NewDeviceManagementTemplateSettingCategory instantiates a new DeviceManagementTemplateSettingCategory and sets the default values. +// NewDeviceManagementTemplateSettingCategory instantiates a new deviceManagementTemplateSettingCategory and sets the default values. func NewDeviceManagementTemplateSettingCategory()(*DeviceManagementTemplateSettingCategory) { m := &DeviceManagementTemplateSettingCategory{ DeviceManagementSettingCategory: *NewDeviceManagementSettingCategory(), diff --git a/models/device_management_template_setting_category_collection_response.go b/models/device_management_template_setting_category_collection_response.go index aa7d5133f28..8fc776d3e90 100644 --- a/models/device_management_template_setting_category_collection_response.go +++ b/models/device_management_template_setting_category_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementTemplateSettingCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementTemplateSettingCategoryCollectionResponse instantiates a new DeviceManagementTemplateSettingCategoryCollectionResponse and sets the default values. +// NewDeviceManagementTemplateSettingCategoryCollectionResponse instantiates a new deviceManagementTemplateSettingCategoryCollectionResponse and sets the default values. func NewDeviceManagementTemplateSettingCategoryCollectionResponse()(*DeviceManagementTemplateSettingCategoryCollectionResponse) { m := &DeviceManagementTemplateSettingCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_management_troubleshooting_event.go b/models/device_management_troubleshooting_event.go index 23493624bfe..e280bef2a09 100644 --- a/models/device_management_troubleshooting_event.go +++ b/models/device_management_troubleshooting_event.go @@ -8,6 +8,8 @@ import ( // DeviceManagementTroubleshootingEvent event representing an general failure. type DeviceManagementTroubleshootingEvent struct { Entity + // The OdataType property + OdataType *string } // NewDeviceManagementTroubleshootingEvent instantiates a new deviceManagementTroubleshootingEvent and sets the default values. func NewDeviceManagementTroubleshootingEvent()(*DeviceManagementTroubleshootingEvent) { diff --git a/models/device_management_troubleshooting_event_collection_response.go b/models/device_management_troubleshooting_event_collection_response.go index a4ba470045c..2388a8990c5 100644 --- a/models/device_management_troubleshooting_event_collection_response.go +++ b/models/device_management_troubleshooting_event_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceManagementTroubleshootingEventCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceManagementTroubleshootingEventCollectionResponse instantiates a new DeviceManagementTroubleshootingEventCollectionResponse and sets the default values. +// NewDeviceManagementTroubleshootingEventCollectionResponse instantiates a new deviceManagementTroubleshootingEventCollectionResponse and sets the default values. func NewDeviceManagementTroubleshootingEventCollectionResponse()(*DeviceManagementTroubleshootingEventCollectionResponse) { m := &DeviceManagementTroubleshootingEventCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/device_registration_policy.go b/models/device_registration_policy.go index 132d17acb57..afe34069eb5 100644 --- a/models/device_registration_policy.go +++ b/models/device_registration_policy.go @@ -7,8 +7,10 @@ import ( // DeviceRegistrationPolicy type DeviceRegistrationPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewDeviceRegistrationPolicy instantiates a new DeviceRegistrationPolicy and sets the default values. +// NewDeviceRegistrationPolicy instantiates a new deviceRegistrationPolicy and sets the default values. func NewDeviceRegistrationPolicy()(*DeviceRegistrationPolicy) { m := &DeviceRegistrationPolicy{ Entity: *NewEntity(), diff --git a/models/device_restriction_action.go b/models/device_restriction_action.go index 5d5d1a64f49..0e7018a7acf 100644 --- a/models/device_restriction_action.go +++ b/models/device_restriction_action.go @@ -8,7 +8,7 @@ import ( type DeviceRestrictionAction struct { DlpActionInfo } -// NewDeviceRestrictionAction instantiates a new DeviceRestrictionAction and sets the default values. +// NewDeviceRestrictionAction instantiates a new deviceRestrictionAction and sets the default values. func NewDeviceRestrictionAction()(*DeviceRestrictionAction) { m := &DeviceRestrictionAction{ DlpActionInfo: *NewDlpActionInfo(), @@ -32,6 +32,16 @@ func (m *DeviceRestrictionAction) GetFieldDeserializers()(map[string]func(i878a8 } 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["restrictionAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseRestrictionAction) if err != nil { @@ -71,6 +81,17 @@ func (m *DeviceRestrictionAction) GetMessage()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DeviceRestrictionAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRestrictionAction gets the restrictionAction property value. The restrictionAction property func (m *DeviceRestrictionAction) GetRestrictionAction()(*RestrictionAction) { val, err := m.GetBackingStore().Get("restrictionAction") @@ -105,6 +126,12 @@ func (m *DeviceRestrictionAction) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetRestrictionAction() != nil { cast := (*m.GetRestrictionAction()).String() err = writer.WriteStringValue("restrictionAction", &cast) @@ -127,6 +154,13 @@ func (m *DeviceRestrictionAction) SetMessage(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DeviceRestrictionAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRestrictionAction sets the restrictionAction property value. The restrictionAction property func (m *DeviceRestrictionAction) SetRestrictionAction(value *RestrictionAction)() { err := m.GetBackingStore().Set("restrictionAction", value) @@ -146,9 +180,11 @@ type DeviceRestrictionActionable interface { DlpActionInfoable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetMessage()(*string) + GetOdataType()(*string) GetRestrictionAction()(*RestrictionAction) GetTriggers()([]RestrictionTrigger) SetMessage(value *string)() + SetOdataType(value *string)() SetRestrictionAction(value *RestrictionAction)() SetTriggers(value []RestrictionTrigger)() } diff --git a/models/device_setup_configuration.go b/models/device_setup_configuration.go index 8757c3cb649..561105f079d 100644 --- a/models/device_setup_configuration.go +++ b/models/device_setup_configuration.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// DeviceSetupConfiguration +// DeviceSetupConfiguration this is the base class for Setup Configuration. Setup configurations are platform specific and individual per-platform setup configurations inherit from here. type DeviceSetupConfiguration struct { Entity + // The OdataType property + OdataType *string } -// NewDeviceSetupConfiguration instantiates a new DeviceSetupConfiguration and sets the default values. +// NewDeviceSetupConfiguration instantiates a new deviceSetupConfiguration and sets the default values. func NewDeviceSetupConfiguration()(*DeviceSetupConfiguration) { m := &DeviceSetupConfiguration{ Entity: *NewEntity(), diff --git a/models/device_shell_script.go b/models/device_shell_script.go index f6b11f62c74..08330751714 100644 --- a/models/device_shell_script.go +++ b/models/device_shell_script.go @@ -8,6 +8,8 @@ import ( // DeviceShellScript intune will provide customer the ability to run their Shell scripts on the enrolled Mac OS devices. The script can be run once or periodically. type DeviceShellScript struct { Entity + // The OdataType property + OdataType *string } // NewDeviceShellScript instantiates a new deviceShellScript and sets the default values. func NewDeviceShellScript()(*DeviceShellScript) { diff --git a/models/device_shell_script_collection_response.go b/models/device_shell_script_collection_response.go index 9c2fbd84bd6..5707f2026e7 100644 --- a/models/device_shell_script_collection_response.go +++ b/models/device_shell_script_collection_response.go @@ -8,7 +8,7 @@ import ( type DeviceShellScriptCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDeviceShellScriptCollectionResponse instantiates a new DeviceShellScriptCollectionResponse and sets the default values. +// NewDeviceShellScriptCollectionResponse instantiates a new deviceShellScriptCollectionResponse and sets the default values. func NewDeviceShellScriptCollectionResponse()(*DeviceShellScriptCollectionResponse) { m := &DeviceShellScriptCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/devicemanagement/alert_record.go b/models/devicemanagement/alert_record.go index a434ee857e0..b3cac0cdd82 100644 --- a/models/devicemanagement/alert_record.go +++ b/models/devicemanagement/alert_record.go @@ -9,6 +9,8 @@ import ( // AlertRecord type AlertRecord struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewAlertRecord instantiates a new alertRecord and sets the default values. func NewAlertRecord()(*AlertRecord) { diff --git a/models/devicemanagement/alert_record_collection_response.go b/models/devicemanagement/alert_record_collection_response.go index 08d3ffae52b..333616b31ed 100644 --- a/models/devicemanagement/alert_record_collection_response.go +++ b/models/devicemanagement/alert_record_collection_response.go @@ -9,7 +9,7 @@ import ( type AlertRecordCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewAlertRecordCollectionResponse instantiates a new AlertRecordCollectionResponse and sets the default values. +// NewAlertRecordCollectionResponse instantiates a new alertRecordCollectionResponse and sets the default values. func NewAlertRecordCollectionResponse()(*AlertRecordCollectionResponse) { m := &AlertRecordCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/devicemanagement/alert_rule.go b/models/devicemanagement/alert_rule.go index 0f9a307e0c6..9002569780c 100644 --- a/models/devicemanagement/alert_rule.go +++ b/models/devicemanagement/alert_rule.go @@ -8,6 +8,8 @@ import ( // AlertRule type AlertRule struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewAlertRule instantiates a new alertRule and sets the default values. func NewAlertRule()(*AlertRule) { diff --git a/models/devicemanagement/alert_rule_collection_response.go b/models/devicemanagement/alert_rule_collection_response.go index 0b8d09bb3f1..348b6ac4e31 100644 --- a/models/devicemanagement/alert_rule_collection_response.go +++ b/models/devicemanagement/alert_rule_collection_response.go @@ -9,7 +9,7 @@ import ( type AlertRuleCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewAlertRuleCollectionResponse instantiates a new AlertRuleCollectionResponse and sets the default values. +// NewAlertRuleCollectionResponse instantiates a new alertRuleCollectionResponse and sets the default values. func NewAlertRuleCollectionResponse()(*AlertRuleCollectionResponse) { m := &AlertRuleCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/devicemanagement/monitoring.go b/models/devicemanagement/monitoring.go index 160ea4823b8..246ee0d8241 100644 --- a/models/devicemanagement/monitoring.go +++ b/models/devicemanagement/monitoring.go @@ -8,6 +8,8 @@ import ( // Monitoring type Monitoring struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewMonitoring instantiates a new monitoring and sets the default values. func NewMonitoring()(*Monitoring) { diff --git a/models/dimension.go b/models/dimension.go index 8ae5305ce5d..aeca25e9b85 100644 --- a/models/dimension.go +++ b/models/dimension.go @@ -12,7 +12,7 @@ type Dimension struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDimension instantiates a new Dimension and sets the default values. +// NewDimension instantiates a new dimension and sets the default values. func NewDimension()(*Dimension) { m := &Dimension{ } diff --git a/models/dimension_collection_response.go b/models/dimension_collection_response.go index a9476bd8d51..2aec1211d91 100644 --- a/models/dimension_collection_response.go +++ b/models/dimension_collection_response.go @@ -8,7 +8,7 @@ import ( type DimensionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDimensionCollectionResponse instantiates a new DimensionCollectionResponse and sets the default values. +// NewDimensionCollectionResponse instantiates a new dimensionCollectionResponse and sets the default values. func NewDimensionCollectionResponse()(*DimensionCollectionResponse) { m := &DimensionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/dimension_value.go b/models/dimension_value.go index 44911ba9a24..fd373a51d67 100644 --- a/models/dimension_value.go +++ b/models/dimension_value.go @@ -12,7 +12,7 @@ type DimensionValue struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDimensionValue instantiates a new DimensionValue and sets the default values. +// NewDimensionValue instantiates a new dimensionValue and sets the default values. func NewDimensionValue()(*DimensionValue) { m := &DimensionValue{ } diff --git a/models/dimension_value_collection_response.go b/models/dimension_value_collection_response.go index 678ce809bb9..57e4fc23fc9 100644 --- a/models/dimension_value_collection_response.go +++ b/models/dimension_value_collection_response.go @@ -8,7 +8,7 @@ import ( type DimensionValueCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDimensionValueCollectionResponse instantiates a new DimensionValueCollectionResponse and sets the default values. +// NewDimensionValueCollectionResponse instantiates a new dimensionValueCollectionResponse and sets the default values. func NewDimensionValueCollectionResponse()(*DimensionValueCollectionResponse) { m := &DimensionValueCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/directory.go b/models/directory.go index 94fcc361b77..a7ab32e7777 100644 --- a/models/directory.go +++ b/models/directory.go @@ -7,8 +7,10 @@ import ( // Directory type Directory struct { Entity + // The OdataType property + OdataType *string } -// NewDirectory instantiates a new Directory and sets the default values. +// NewDirectory instantiates a new directory and sets the default values. func NewDirectory()(*Directory) { m := &Directory{ Entity: *NewEntity(), diff --git a/models/directory_audit.go b/models/directory_audit.go index 9a43f14fe09..6d31bb6b8d6 100644 --- a/models/directory_audit.go +++ b/models/directory_audit.go @@ -8,8 +8,10 @@ import ( // DirectoryAudit type DirectoryAudit struct { Entity + // The OdataType property + OdataType *string } -// NewDirectoryAudit instantiates a new DirectoryAudit and sets the default values. +// NewDirectoryAudit instantiates a new directoryAudit and sets the default values. func NewDirectoryAudit()(*DirectoryAudit) { m := &DirectoryAudit{ Entity: *NewEntity(), diff --git a/models/directory_audit_collection_response.go b/models/directory_audit_collection_response.go index 995e44b4572..c9d7d8bb5f9 100644 --- a/models/directory_audit_collection_response.go +++ b/models/directory_audit_collection_response.go @@ -8,7 +8,7 @@ import ( type DirectoryAuditCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDirectoryAuditCollectionResponse instantiates a new DirectoryAuditCollectionResponse and sets the default values. +// NewDirectoryAuditCollectionResponse instantiates a new directoryAuditCollectionResponse and sets the default values. func NewDirectoryAuditCollectionResponse()(*DirectoryAuditCollectionResponse) { m := &DirectoryAuditCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/directory_definition.go b/models/directory_definition.go index 4386ed33cf5..bd3d08b8e13 100644 --- a/models/directory_definition.go +++ b/models/directory_definition.go @@ -8,6 +8,8 @@ import ( // DirectoryDefinition type DirectoryDefinition struct { Entity + // The OdataType property + OdataType *string } // NewDirectoryDefinition instantiates a new directoryDefinition and sets the default values. func NewDirectoryDefinition()(*DirectoryDefinition) { diff --git a/models/directory_definition_collection_response.go b/models/directory_definition_collection_response.go index 7c0e95079d8..653015cd1be 100644 --- a/models/directory_definition_collection_response.go +++ b/models/directory_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type DirectoryDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDirectoryDefinitionCollectionResponse instantiates a new DirectoryDefinitionCollectionResponse and sets the default values. +// NewDirectoryDefinitionCollectionResponse instantiates a new directoryDefinitionCollectionResponse and sets the default values. func NewDirectoryDefinitionCollectionResponse()(*DirectoryDefinitionCollectionResponse) { m := &DirectoryDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/directory_object.go b/models/directory_object.go index dd418ea2306..a91e5ea77f5 100644 --- a/models/directory_object.go +++ b/models/directory_object.go @@ -8,6 +8,8 @@ import ( // DirectoryObject type DirectoryObject struct { Entity + // The OdataType property + OdataType *string } // NewDirectoryObject instantiates a new directoryObject and sets the default values. func NewDirectoryObject()(*DirectoryObject) { diff --git a/models/directory_object_collection_response.go b/models/directory_object_collection_response.go index cd4a25f5fb4..05d98abb45f 100644 --- a/models/directory_object_collection_response.go +++ b/models/directory_object_collection_response.go @@ -8,7 +8,7 @@ import ( type DirectoryObjectCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDirectoryObjectCollectionResponse instantiates a new DirectoryObjectCollectionResponse and sets the default values. +// NewDirectoryObjectCollectionResponse instantiates a new directoryObjectCollectionResponse and sets the default values. func NewDirectoryObjectCollectionResponse()(*DirectoryObjectCollectionResponse) { m := &DirectoryObjectCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/directory_object_partner_reference.go b/models/directory_object_partner_reference.go index 2594b8a291e..ad37feceba8 100644 --- a/models/directory_object_partner_reference.go +++ b/models/directory_object_partner_reference.go @@ -9,7 +9,7 @@ import ( type DirectoryObjectPartnerReference struct { DirectoryObject } -// NewDirectoryObjectPartnerReference instantiates a new DirectoryObjectPartnerReference and sets the default values. +// NewDirectoryObjectPartnerReference instantiates a new directoryObjectPartnerReference and sets the default values. func NewDirectoryObjectPartnerReference()(*DirectoryObjectPartnerReference) { m := &DirectoryObjectPartnerReference{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/directory_role.go b/models/directory_role.go index 59fc2c3f7f8..91217dc8634 100644 --- a/models/directory_role.go +++ b/models/directory_role.go @@ -8,7 +8,7 @@ import ( type DirectoryRole struct { DirectoryObject } -// NewDirectoryRole instantiates a new DirectoryRole and sets the default values. +// NewDirectoryRole instantiates a new directoryRole and sets the default values. func NewDirectoryRole()(*DirectoryRole) { m := &DirectoryRole{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/directory_role_access_review_policy.go b/models/directory_role_access_review_policy.go index 636cfb0f942..a2510e8e947 100644 --- a/models/directory_role_access_review_policy.go +++ b/models/directory_role_access_review_policy.go @@ -7,8 +7,10 @@ import ( // DirectoryRoleAccessReviewPolicy type DirectoryRoleAccessReviewPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewDirectoryRoleAccessReviewPolicy instantiates a new DirectoryRoleAccessReviewPolicy and sets the default values. +// NewDirectoryRoleAccessReviewPolicy instantiates a new directoryRoleAccessReviewPolicy and sets the default values. func NewDirectoryRoleAccessReviewPolicy()(*DirectoryRoleAccessReviewPolicy) { m := &DirectoryRoleAccessReviewPolicy{ Entity: *NewEntity(), diff --git a/models/directory_role_collection_response.go b/models/directory_role_collection_response.go index e2fe9717015..732724699cc 100644 --- a/models/directory_role_collection_response.go +++ b/models/directory_role_collection_response.go @@ -8,7 +8,7 @@ import ( type DirectoryRoleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDirectoryRoleCollectionResponse instantiates a new DirectoryRoleCollectionResponse and sets the default values. +// NewDirectoryRoleCollectionResponse instantiates a new directoryRoleCollectionResponse and sets the default values. func NewDirectoryRoleCollectionResponse()(*DirectoryRoleCollectionResponse) { m := &DirectoryRoleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/directory_role_template.go b/models/directory_role_template.go index dbac646700f..efa9a8b73d7 100644 --- a/models/directory_role_template.go +++ b/models/directory_role_template.go @@ -8,7 +8,7 @@ import ( type DirectoryRoleTemplate struct { DirectoryObject } -// NewDirectoryRoleTemplate instantiates a new DirectoryRoleTemplate and sets the default values. +// NewDirectoryRoleTemplate instantiates a new directoryRoleTemplate and sets the default values. func NewDirectoryRoleTemplate()(*DirectoryRoleTemplate) { m := &DirectoryRoleTemplate{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/directory_role_template_collection_response.go b/models/directory_role_template_collection_response.go index 5e06d39f94d..24a0da5ebd9 100644 --- a/models/directory_role_template_collection_response.go +++ b/models/directory_role_template_collection_response.go @@ -8,7 +8,7 @@ import ( type DirectoryRoleTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDirectoryRoleTemplateCollectionResponse instantiates a new DirectoryRoleTemplateCollectionResponse and sets the default values. +// NewDirectoryRoleTemplateCollectionResponse instantiates a new directoryRoleTemplateCollectionResponse and sets the default values. func NewDirectoryRoleTemplateCollectionResponse()(*DirectoryRoleTemplateCollectionResponse) { m := &DirectoryRoleTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/directory_setting.go b/models/directory_setting.go index 0624aff11a6..7a2684f1330 100644 --- a/models/directory_setting.go +++ b/models/directory_setting.go @@ -7,6 +7,8 @@ import ( // DirectorySetting type DirectorySetting struct { Entity + // The OdataType property + OdataType *string } // NewDirectorySetting instantiates a new directorySetting and sets the default values. func NewDirectorySetting()(*DirectorySetting) { diff --git a/models/directory_setting_collection_response.go b/models/directory_setting_collection_response.go index 55e0b30924a..a12f7db42f4 100644 --- a/models/directory_setting_collection_response.go +++ b/models/directory_setting_collection_response.go @@ -8,7 +8,7 @@ import ( type DirectorySettingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDirectorySettingCollectionResponse instantiates a new DirectorySettingCollectionResponse and sets the default values. +// NewDirectorySettingCollectionResponse instantiates a new directorySettingCollectionResponse and sets the default values. func NewDirectorySettingCollectionResponse()(*DirectorySettingCollectionResponse) { m := &DirectorySettingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/directory_setting_template.go b/models/directory_setting_template.go index 6867e36330e..01ae857cc7c 100644 --- a/models/directory_setting_template.go +++ b/models/directory_setting_template.go @@ -8,7 +8,7 @@ import ( type DirectorySettingTemplate struct { DirectoryObject } -// NewDirectorySettingTemplate instantiates a new DirectorySettingTemplate and sets the default values. +// NewDirectorySettingTemplate instantiates a new directorySettingTemplate and sets the default values. func NewDirectorySettingTemplate()(*DirectorySettingTemplate) { m := &DirectorySettingTemplate{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/directory_setting_template_collection_response.go b/models/directory_setting_template_collection_response.go index 306319adde3..ef7b73e418e 100644 --- a/models/directory_setting_template_collection_response.go +++ b/models/directory_setting_template_collection_response.go @@ -8,7 +8,7 @@ import ( type DirectorySettingTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDirectorySettingTemplateCollectionResponse instantiates a new DirectorySettingTemplateCollectionResponse and sets the default values. +// NewDirectorySettingTemplateCollectionResponse instantiates a new directorySettingTemplateCollectionResponse and sets the default values. func NewDirectorySettingTemplateCollectionResponse()(*DirectorySettingTemplateCollectionResponse) { m := &DirectorySettingTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/disable_and_delete_user_apply_action.go b/models/disable_and_delete_user_apply_action.go index 715033bcab2..d6a9506eff5 100644 --- a/models/disable_and_delete_user_apply_action.go +++ b/models/disable_and_delete_user_apply_action.go @@ -8,7 +8,7 @@ import ( type DisableAndDeleteUserApplyAction struct { AccessReviewApplyAction } -// NewDisableAndDeleteUserApplyAction instantiates a new DisableAndDeleteUserApplyAction and sets the default values. +// NewDisableAndDeleteUserApplyAction instantiates a new disableAndDeleteUserApplyAction and sets the default values. func NewDisableAndDeleteUserApplyAction()(*DisableAndDeleteUserApplyAction) { m := &DisableAndDeleteUserApplyAction{ AccessReviewApplyAction: *NewAccessReviewApplyAction(), @@ -24,18 +24,54 @@ func CreateDisableAndDeleteUserApplyActionFromDiscriminatorValue(parseNode i878a // GetFieldDeserializers the deserialization information for the current model func (m *DisableAndDeleteUserApplyAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AccessReviewApplyAction.GetFieldDeserializers() + 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 *DisableAndDeleteUserApplyAction) 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 *DisableAndDeleteUserApplyAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AccessReviewApplyAction.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DisableAndDeleteUserApplyAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DisableAndDeleteUserApplyActionable type DisableAndDeleteUserApplyActionable interface { AccessReviewApplyActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/discovered_sensitive_type.go b/models/discovered_sensitive_type.go index 387bf9dc9f8..b78630d02e5 100644 --- a/models/discovered_sensitive_type.go +++ b/models/discovered_sensitive_type.go @@ -11,7 +11,7 @@ type DiscoveredSensitiveType struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDiscoveredSensitiveType instantiates a new DiscoveredSensitiveType and sets the default values. +// NewDiscoveredSensitiveType instantiates a new discoveredSensitiveType and sets the default values. func NewDiscoveredSensitiveType()(*DiscoveredSensitiveType) { m := &DiscoveredSensitiveType{ } diff --git a/models/dlp_evaluate_policies_job_response.go b/models/dlp_evaluate_policies_job_response.go index 0033ae9c51c..40a4a8a3c03 100644 --- a/models/dlp_evaluate_policies_job_response.go +++ b/models/dlp_evaluate_policies_job_response.go @@ -8,7 +8,7 @@ import ( type DlpEvaluatePoliciesJobResponse struct { JobResponseBase } -// NewDlpEvaluatePoliciesJobResponse instantiates a new DlpEvaluatePoliciesJobResponse and sets the default values. +// NewDlpEvaluatePoliciesJobResponse instantiates a new dlpEvaluatePoliciesJobResponse and sets the default values. func NewDlpEvaluatePoliciesJobResponse()(*DlpEvaluatePoliciesJobResponse) { m := &DlpEvaluatePoliciesJobResponse{ JobResponseBase: *NewJobResponseBase(), diff --git a/models/dlp_evaluation_windows_devices_input.go b/models/dlp_evaluation_windows_devices_input.go index 3dd05e93b64..0291b3d8e3f 100644 --- a/models/dlp_evaluation_windows_devices_input.go +++ b/models/dlp_evaluation_windows_devices_input.go @@ -7,8 +7,10 @@ import ( // DlpEvaluationWindowsDevicesInput type DlpEvaluationWindowsDevicesInput struct { DlpEvaluationInput + // The OdataType property + OdataType *string } -// NewDlpEvaluationWindowsDevicesInput instantiates a new DlpEvaluationWindowsDevicesInput and sets the default values. +// NewDlpEvaluationWindowsDevicesInput instantiates a new dlpEvaluationWindowsDevicesInput and sets the default values. func NewDlpEvaluationWindowsDevicesInput()(*DlpEvaluationWindowsDevicesInput) { m := &DlpEvaluationWindowsDevicesInput{ DlpEvaluationInput: *NewDlpEvaluationInput(), diff --git a/models/dlp_windows_devices_notification.go b/models/dlp_windows_devices_notification.go index 0ed82827f92..729d156176f 100644 --- a/models/dlp_windows_devices_notification.go +++ b/models/dlp_windows_devices_notification.go @@ -8,7 +8,7 @@ import ( type DlpWindowsDevicesNotification struct { DlpNotification } -// NewDlpWindowsDevicesNotification instantiates a new DlpWindowsDevicesNotification and sets the default values. +// NewDlpWindowsDevicesNotification instantiates a new dlpWindowsDevicesNotification and sets the default values. func NewDlpWindowsDevicesNotification()(*DlpWindowsDevicesNotification) { m := &DlpWindowsDevicesNotification{ DlpNotification: *NewDlpNotification(), @@ -55,6 +55,16 @@ func (m *DlpWindowsDevicesNotification) GetFieldDeserializers()(map[string]func( } 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 } // GetLastModfiedBy gets the lastModfiedBy property value. The lastModfiedBy property @@ -68,6 +78,17 @@ func (m *DlpWindowsDevicesNotification) GetLastModfiedBy()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DlpWindowsDevicesNotification) 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 *DlpWindowsDevicesNotification) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DlpNotification.Serialize(writer) @@ -86,6 +107,12 @@ func (m *DlpWindowsDevicesNotification) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetContentName sets the contentName property value. The contentName property @@ -102,12 +129,21 @@ func (m *DlpWindowsDevicesNotification) SetLastModfiedBy(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DlpWindowsDevicesNotification) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DlpWindowsDevicesNotificationable type DlpWindowsDevicesNotificationable interface { DlpNotificationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetContentName()(*string) GetLastModfiedBy()(*string) + GetOdataType()(*string) SetContentName(value *string)() SetLastModfiedBy(value *string)() + SetOdataType(value *string)() } diff --git a/models/document.go b/models/document.go index 8b60744f5a8..cb30c2755f5 100644 --- a/models/document.go +++ b/models/document.go @@ -7,8 +7,10 @@ import ( // Document type Document struct { Entity + // The OdataType property + OdataType *string } -// NewDocument instantiates a new Document and sets the default values. +// NewDocument instantiates a new document and sets the default values. func NewDocument()(*Document) { m := &Document{ Entity: *NewEntity(), diff --git a/models/document_comment.go b/models/document_comment.go index 2b25534d670..3babddfa95f 100644 --- a/models/document_comment.go +++ b/models/document_comment.go @@ -7,8 +7,10 @@ import ( // DocumentComment type DocumentComment struct { Entity + // The OdataType property + OdataType *string } -// NewDocumentComment instantiates a new DocumentComment and sets the default values. +// NewDocumentComment instantiates a new documentComment and sets the default values. func NewDocumentComment()(*DocumentComment) { m := &DocumentComment{ Entity: *NewEntity(), diff --git a/models/document_comment_reply.go b/models/document_comment_reply.go index 33d33d66484..196363fb2cc 100644 --- a/models/document_comment_reply.go +++ b/models/document_comment_reply.go @@ -7,6 +7,8 @@ import ( // DocumentCommentReply type DocumentCommentReply struct { Entity + // The OdataType property + OdataType *string } // NewDocumentCommentReply instantiates a new documentCommentReply and sets the default values. func NewDocumentCommentReply()(*DocumentCommentReply) { diff --git a/models/document_set_version.go b/models/document_set_version.go index bf6e80bf0da..6d2abbb6baa 100644 --- a/models/document_set_version.go +++ b/models/document_set_version.go @@ -9,7 +9,7 @@ import ( type DocumentSetVersion struct { ListItemVersion } -// NewDocumentSetVersion instantiates a new DocumentSetVersion and sets the default values. +// NewDocumentSetVersion instantiates a new documentSetVersion and sets the default values. func NewDocumentSetVersion()(*DocumentSetVersion) { m := &DocumentSetVersion{ ListItemVersion: *NewListItemVersion(), diff --git a/models/document_set_version_collection_response.go b/models/document_set_version_collection_response.go index 58945e608d9..45297c427a9 100644 --- a/models/document_set_version_collection_response.go +++ b/models/document_set_version_collection_response.go @@ -8,7 +8,7 @@ import ( type DocumentSetVersionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDocumentSetVersionCollectionResponse instantiates a new DocumentSetVersionCollectionResponse and sets the default values. +// NewDocumentSetVersionCollectionResponse instantiates a new documentSetVersionCollectionResponse and sets the default values. func NewDocumentSetVersionCollectionResponse()(*DocumentSetVersionCollectionResponse) { m := &DocumentSetVersionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/domain.go b/models/domain.go index d166a0e16dd..415c183b935 100644 --- a/models/domain.go +++ b/models/domain.go @@ -7,8 +7,10 @@ import ( // Domain type Domain struct { Entity + // The OdataType property + OdataType *string } -// NewDomain instantiates a new Domain and sets the default values. +// NewDomain instantiates a new domain and sets the default values. func NewDomain()(*Domain) { m := &Domain{ Entity: *NewEntity(), diff --git a/models/domain_collection_response.go b/models/domain_collection_response.go index 2ffd5e2030a..b79df4c38c8 100644 --- a/models/domain_collection_response.go +++ b/models/domain_collection_response.go @@ -8,7 +8,7 @@ import ( type DomainCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDomainCollectionResponse instantiates a new DomainCollectionResponse and sets the default values. +// NewDomainCollectionResponse instantiates a new domainCollectionResponse and sets the default values. func NewDomainCollectionResponse()(*DomainCollectionResponse) { m := &DomainCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/domain_dns_cname_record.go b/models/domain_dns_cname_record.go index 924992669dd..4a5fab7ad74 100644 --- a/models/domain_dns_cname_record.go +++ b/models/domain_dns_cname_record.go @@ -8,7 +8,7 @@ import ( type DomainDnsCnameRecord struct { DomainDnsRecord } -// NewDomainDnsCnameRecord instantiates a new DomainDnsCnameRecord and sets the default values. +// NewDomainDnsCnameRecord instantiates a new domainDnsCnameRecord and sets the default values. func NewDomainDnsCnameRecord()(*DomainDnsCnameRecord) { m := &DomainDnsCnameRecord{ DomainDnsRecord: *NewDomainDnsRecord(), diff --git a/models/domain_dns_mx_record.go b/models/domain_dns_mx_record.go index 3a02b4155b8..1484878bd3b 100644 --- a/models/domain_dns_mx_record.go +++ b/models/domain_dns_mx_record.go @@ -8,7 +8,7 @@ import ( type DomainDnsMxRecord struct { DomainDnsRecord } -// NewDomainDnsMxRecord instantiates a new DomainDnsMxRecord and sets the default values. +// NewDomainDnsMxRecord instantiates a new domainDnsMxRecord and sets the default values. func NewDomainDnsMxRecord()(*DomainDnsMxRecord) { m := &DomainDnsMxRecord{ DomainDnsRecord: *NewDomainDnsRecord(), diff --git a/models/domain_dns_record.go b/models/domain_dns_record.go index 4020f1cd0b7..3743f30b4f8 100644 --- a/models/domain_dns_record.go +++ b/models/domain_dns_record.go @@ -7,6 +7,8 @@ import ( // DomainDnsRecord type DomainDnsRecord struct { Entity + // The OdataType property + OdataType *string } // NewDomainDnsRecord instantiates a new domainDnsRecord and sets the default values. func NewDomainDnsRecord()(*DomainDnsRecord) { diff --git a/models/domain_dns_record_collection_response.go b/models/domain_dns_record_collection_response.go index 70c12b418ef..5d39c4a1518 100644 --- a/models/domain_dns_record_collection_response.go +++ b/models/domain_dns_record_collection_response.go @@ -8,7 +8,7 @@ import ( type DomainDnsRecordCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDomainDnsRecordCollectionResponse instantiates a new DomainDnsRecordCollectionResponse and sets the default values. +// NewDomainDnsRecordCollectionResponse instantiates a new domainDnsRecordCollectionResponse and sets the default values. func NewDomainDnsRecordCollectionResponse()(*DomainDnsRecordCollectionResponse) { m := &DomainDnsRecordCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/domain_dns_srv_record.go b/models/domain_dns_srv_record.go index 829722188dd..83c61db0293 100644 --- a/models/domain_dns_srv_record.go +++ b/models/domain_dns_srv_record.go @@ -8,7 +8,7 @@ import ( type DomainDnsSrvRecord struct { DomainDnsRecord } -// NewDomainDnsSrvRecord instantiates a new DomainDnsSrvRecord and sets the default values. +// NewDomainDnsSrvRecord instantiates a new domainDnsSrvRecord and sets the default values. func NewDomainDnsSrvRecord()(*DomainDnsSrvRecord) { m := &DomainDnsSrvRecord{ DomainDnsRecord: *NewDomainDnsRecord(), diff --git a/models/domain_dns_txt_record.go b/models/domain_dns_txt_record.go index ab84a1657f9..724f2f94fcd 100644 --- a/models/domain_dns_txt_record.go +++ b/models/domain_dns_txt_record.go @@ -8,7 +8,7 @@ import ( type DomainDnsTxtRecord struct { DomainDnsRecord } -// NewDomainDnsTxtRecord instantiates a new DomainDnsTxtRecord and sets the default values. +// NewDomainDnsTxtRecord instantiates a new domainDnsTxtRecord and sets the default values. func NewDomainDnsTxtRecord()(*DomainDnsTxtRecord) { m := &DomainDnsTxtRecord{ DomainDnsRecord: *NewDomainDnsRecord(), diff --git a/models/domain_dns_unavailable_record.go b/models/domain_dns_unavailable_record.go index 9497d50519d..34f01b45248 100644 --- a/models/domain_dns_unavailable_record.go +++ b/models/domain_dns_unavailable_record.go @@ -8,7 +8,7 @@ import ( type DomainDnsUnavailableRecord struct { DomainDnsRecord } -// NewDomainDnsUnavailableRecord instantiates a new DomainDnsUnavailableRecord and sets the default values. +// NewDomainDnsUnavailableRecord instantiates a new domainDnsUnavailableRecord and sets the default values. func NewDomainDnsUnavailableRecord()(*DomainDnsUnavailableRecord) { m := &DomainDnsUnavailableRecord{ DomainDnsRecord: *NewDomainDnsRecord(), diff --git a/models/domain_identity_source.go b/models/domain_identity_source.go index e4c49dab7c0..7dce122335d 100644 --- a/models/domain_identity_source.go +++ b/models/domain_identity_source.go @@ -7,8 +7,10 @@ import ( // DomainIdentitySource type DomainIdentitySource struct { IdentitySource + // The OdataType property + OdataType *string } -// NewDomainIdentitySource instantiates a new DomainIdentitySource and sets the default values. +// NewDomainIdentitySource instantiates a new domainIdentitySource and sets the default values. func NewDomainIdentitySource()(*DomainIdentitySource) { m := &DomainIdentitySource{ IdentitySource: *NewIdentitySource(), diff --git a/models/domain_security_profile.go b/models/domain_security_profile.go index a883e98af2a..00d22b6d3b6 100644 --- a/models/domain_security_profile.go +++ b/models/domain_security_profile.go @@ -8,8 +8,10 @@ import ( // DomainSecurityProfile type DomainSecurityProfile struct { Entity + // The OdataType property + OdataType *string } -// NewDomainSecurityProfile instantiates a new DomainSecurityProfile and sets the default values. +// NewDomainSecurityProfile instantiates a new domainSecurityProfile and sets the default values. func NewDomainSecurityProfile()(*DomainSecurityProfile) { m := &DomainSecurityProfile{ Entity: *NewEntity(), diff --git a/models/domain_security_profile_collection_response.go b/models/domain_security_profile_collection_response.go index 0352d36fb0b..a7c1b2f74a9 100644 --- a/models/domain_security_profile_collection_response.go +++ b/models/domain_security_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type DomainSecurityProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDomainSecurityProfileCollectionResponse instantiates a new DomainSecurityProfileCollectionResponse and sets the default values. +// NewDomainSecurityProfileCollectionResponse instantiates a new domainSecurityProfileCollectionResponse and sets the default values. func NewDomainSecurityProfileCollectionResponse()(*DomainSecurityProfileCollectionResponse) { m := &DomainSecurityProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/drive.go b/models/drive.go index 19d34345b9e..492890b26c5 100644 --- a/models/drive.go +++ b/models/drive.go @@ -8,7 +8,7 @@ import ( type Drive struct { BaseItem } -// NewDrive instantiates a new Drive and sets the default values. +// NewDrive instantiates a new drive and sets the default values. func NewDrive()(*Drive) { m := &Drive{ BaseItem: *NewBaseItem(), @@ -141,6 +141,16 @@ func (m *Drive) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } 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["owner"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue) if err != nil { @@ -242,6 +252,17 @@ func (m *Drive) GetList()(Listable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Drive) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOwner gets the owner property value. Optional. The user account that owns the drive. Read-only. func (m *Drive) GetOwner()(IdentitySetable) { val, err := m.GetBackingStore().Get("owner") @@ -374,6 +395,12 @@ func (m *Drive) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("owner", m.GetOwner()) if err != nil { @@ -460,6 +487,13 @@ func (m *Drive) SetList(value Listable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Drive) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOwner sets the owner property value. Optional. The user account that owns the drive. Read-only. func (m *Drive) SetOwner(value IdentitySetable)() { err := m.GetBackingStore().Set("owner", value) @@ -512,6 +546,7 @@ type Driveable interface { GetFollowing()([]DriveItemable) GetItems()([]DriveItemable) GetList()(Listable) + GetOdataType()(*string) GetOwner()(IdentitySetable) GetQuota()(Quotaable) GetRoot()(DriveItemable) @@ -524,6 +559,7 @@ type Driveable interface { SetFollowing(value []DriveItemable)() SetItems(value []DriveItemable)() SetList(value Listable)() + SetOdataType(value *string)() SetOwner(value IdentitySetable)() SetQuota(value Quotaable)() SetRoot(value DriveItemable)() diff --git a/models/drive_collection_response.go b/models/drive_collection_response.go index 00299904ab9..7c503a8fb44 100644 --- a/models/drive_collection_response.go +++ b/models/drive_collection_response.go @@ -8,7 +8,7 @@ import ( type DriveCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDriveCollectionResponse instantiates a new DriveCollectionResponse and sets the default values. +// NewDriveCollectionResponse instantiates a new driveCollectionResponse and sets the default values. func NewDriveCollectionResponse()(*DriveCollectionResponse) { m := &DriveCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/drive_item.go b/models/drive_item.go index 99df83c4028..b78ee62dd27 100644 --- a/models/drive_item.go +++ b/models/drive_item.go @@ -7,6 +7,8 @@ import ( // DriveItem type DriveItem struct { BaseItem + // The OdataType property + OdataType *string } // NewDriveItem instantiates a new driveItem and sets the default values. func NewDriveItem()(*DriveItem) { diff --git a/models/drive_item_collection_response.go b/models/drive_item_collection_response.go index 405d57ecf37..c935b4a0d6a 100644 --- a/models/drive_item_collection_response.go +++ b/models/drive_item_collection_response.go @@ -8,7 +8,7 @@ import ( type DriveItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDriveItemCollectionResponse instantiates a new DriveItemCollectionResponse and sets the default values. +// NewDriveItemCollectionResponse instantiates a new driveItemCollectionResponse and sets the default values. func NewDriveItemCollectionResponse()(*DriveItemCollectionResponse) { m := &DriveItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/drive_item_version.go b/models/drive_item_version.go index f3723c8c634..c332e7e2fb7 100644 --- a/models/drive_item_version.go +++ b/models/drive_item_version.go @@ -8,7 +8,7 @@ import ( type DriveItemVersion struct { BaseItemVersion } -// NewDriveItemVersion instantiates a new DriveItemVersion and sets the default values. +// NewDriveItemVersion instantiates a new driveItemVersion and sets the default values. func NewDriveItemVersion()(*DriveItemVersion) { m := &DriveItemVersion{ BaseItemVersion: *NewBaseItemVersion(), diff --git a/models/drive_item_version_collection_response.go b/models/drive_item_version_collection_response.go index c2685acce23..a492ad5ccbe 100644 --- a/models/drive_item_version_collection_response.go +++ b/models/drive_item_version_collection_response.go @@ -8,7 +8,7 @@ import ( type DriveItemVersionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewDriveItemVersionCollectionResponse instantiates a new DriveItemVersionCollectionResponse and sets the default values. +// NewDriveItemVersionCollectionResponse instantiates a new driveItemVersionCollectionResponse and sets the default values. func NewDriveItemVersionCollectionResponse()(*DriveItemVersionCollectionResponse) { m := &DriveItemVersionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/e_book_install_summary.go b/models/e_book_install_summary.go index 3e17088a6bb..2964938da13 100644 --- a/models/e_book_install_summary.go +++ b/models/e_book_install_summary.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EBookInstallSummary +// EBookInstallSummary contains properties for the installation summary of a book for a device. type EBookInstallSummary struct { Entity + // The OdataType property + OdataType *string } // NewEBookInstallSummary instantiates a new eBookInstallSummary and sets the default values. func NewEBookInstallSummary()(*EBookInstallSummary) { diff --git a/models/eas_email_profile_configuration_base.go b/models/eas_email_profile_configuration_base.go index 89ee6eb5b13..52e6ecf3dba 100644 --- a/models/eas_email_profile_configuration_base.go +++ b/models/eas_email_profile_configuration_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EasEmailProfileConfigurationBase +// EasEmailProfileConfigurationBase apple device features configuration profile. type EasEmailProfileConfigurationBase struct { DeviceConfiguration } -// NewEasEmailProfileConfigurationBase instantiates a new EasEmailProfileConfigurationBase and sets the default values. +// NewEasEmailProfileConfigurationBase instantiates a new easEmailProfileConfigurationBase and sets the default values. func NewEasEmailProfileConfigurationBase()(*EasEmailProfileConfigurationBase) { m := &EasEmailProfileConfigurationBase{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/edge.go b/models/edge.go index 1cd19b301bf..faf9770a067 100644 --- a/models/edge.go +++ b/models/edge.go @@ -7,8 +7,10 @@ import ( // Edge type Edge struct { Entity + // The OdataType property + OdataType *string } -// NewEdge instantiates a new Edge and sets the default values. +// NewEdge instantiates a new edge and sets the default values. func NewEdge()(*Edge) { m := &Edge{ Entity: *NewEntity(), diff --git a/models/edge_home_button_hidden.go b/models/edge_home_button_hidden.go index 196b5bff4ff..2ed2dc05c4c 100644 --- a/models/edge_home_button_hidden.go +++ b/models/edge_home_button_hidden.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EdgeHomeButtonHidden +// EdgeHomeButtonHidden hide the home button. type EdgeHomeButtonHidden struct { EdgeHomeButtonConfiguration + // The OdataType property + OdataType *string } -// NewEdgeHomeButtonHidden instantiates a new EdgeHomeButtonHidden and sets the default values. +// NewEdgeHomeButtonHidden instantiates a new edgeHomeButtonHidden and sets the default values. func NewEdgeHomeButtonHidden()(*EdgeHomeButtonHidden) { m := &EdgeHomeButtonHidden{ EdgeHomeButtonConfiguration: *NewEdgeHomeButtonConfiguration(), diff --git a/models/edge_home_button_loads_start_page.go b/models/edge_home_button_loads_start_page.go index f62dee1dcc8..c9f5142a39e 100644 --- a/models/edge_home_button_loads_start_page.go +++ b/models/edge_home_button_loads_start_page.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EdgeHomeButtonLoadsStartPage +// EdgeHomeButtonLoadsStartPage show the home button; clicking the home button loads the Start page - this is also the default value. type EdgeHomeButtonLoadsStartPage struct { EdgeHomeButtonConfiguration + // The OdataType property + OdataType *string } -// NewEdgeHomeButtonLoadsStartPage instantiates a new EdgeHomeButtonLoadsStartPage and sets the default values. +// NewEdgeHomeButtonLoadsStartPage instantiates a new edgeHomeButtonLoadsStartPage and sets the default values. func NewEdgeHomeButtonLoadsStartPage()(*EdgeHomeButtonLoadsStartPage) { m := &EdgeHomeButtonLoadsStartPage{ EdgeHomeButtonConfiguration: *NewEdgeHomeButtonConfiguration(), diff --git a/models/edge_home_button_opens_custom_u_r_l.go b/models/edge_home_button_opens_custom_u_r_l.go index 683035c87ce..7a104fd0704 100644 --- a/models/edge_home_button_opens_custom_u_r_l.go +++ b/models/edge_home_button_opens_custom_u_r_l.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EdgeHomeButtonOpensCustomURL +// EdgeHomeButtonOpensCustomURL show the home button; clicking the home button loads a specific URL. type EdgeHomeButtonOpensCustomURL struct { EdgeHomeButtonConfiguration + // The OdataType property + OdataType *string } -// NewEdgeHomeButtonOpensCustomURL instantiates a new EdgeHomeButtonOpensCustomURL and sets the default values. +// NewEdgeHomeButtonOpensCustomURL instantiates a new edgeHomeButtonOpensCustomURL and sets the default values. func NewEdgeHomeButtonOpensCustomURL()(*EdgeHomeButtonOpensCustomURL) { m := &EdgeHomeButtonOpensCustomURL{ EdgeHomeButtonConfiguration: *NewEdgeHomeButtonConfiguration(), diff --git a/models/edge_home_button_opens_new_tab.go b/models/edge_home_button_opens_new_tab.go index 2a96302a171..8deeda3a7d2 100644 --- a/models/edge_home_button_opens_new_tab.go +++ b/models/edge_home_button_opens_new_tab.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EdgeHomeButtonOpensNewTab +// EdgeHomeButtonOpensNewTab show the home button; clicking the home button loads the New tab page. type EdgeHomeButtonOpensNewTab struct { EdgeHomeButtonConfiguration + // The OdataType property + OdataType *string } -// NewEdgeHomeButtonOpensNewTab instantiates a new EdgeHomeButtonOpensNewTab and sets the default values. +// NewEdgeHomeButtonOpensNewTab instantiates a new edgeHomeButtonOpensNewTab and sets the default values. func NewEdgeHomeButtonOpensNewTab()(*EdgeHomeButtonOpensNewTab) { m := &EdgeHomeButtonOpensNewTab{ EdgeHomeButtonConfiguration: *NewEdgeHomeButtonConfiguration(), diff --git a/models/edge_search_engine.go b/models/edge_search_engine.go index ca50d40de7f..d98661aee0a 100644 --- a/models/edge_search_engine.go +++ b/models/edge_search_engine.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EdgeSearchEngine +// EdgeSearchEngine allows IT admins to set a predefined default search engine for MDM-Controlled devices. type EdgeSearchEngine struct { EdgeSearchEngineBase } -// NewEdgeSearchEngine instantiates a new EdgeSearchEngine and sets the default values. +// NewEdgeSearchEngine instantiates a new edgeSearchEngine and sets the default values. func NewEdgeSearchEngine()(*EdgeSearchEngine) { m := &EdgeSearchEngine{ EdgeSearchEngineBase: *NewEdgeSearchEngineBase(), @@ -45,8 +45,29 @@ func (m *EdgeSearchEngine) GetFieldDeserializers()(map[string]func(i878a80d2330e } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EdgeSearchEngine) 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 *EdgeSearchEngine) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EdgeSearchEngineBase.Serialize(writer) @@ -60,6 +81,12 @@ func (m *EdgeSearchEngine) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetEdgeSearchEngineType sets the edgeSearchEngineType property value. Allows IT admind to set a predefined default search engine for MDM-Controlled devices @@ -69,10 +96,19 @@ func (m *EdgeSearchEngine) SetEdgeSearchEngineType(value *EdgeSearchEngineType)( panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EdgeSearchEngine) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // EdgeSearchEngineable type EdgeSearchEngineable interface { EdgeSearchEngineBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEdgeSearchEngineType()(*EdgeSearchEngineType) + GetOdataType()(*string) SetEdgeSearchEngineType(value *EdgeSearchEngineType)() + SetOdataType(value *string)() } diff --git a/models/edge_search_engine_custom.go b/models/edge_search_engine_custom.go index 138b921d041..d21f4d14674 100644 --- a/models/edge_search_engine_custom.go +++ b/models/edge_search_engine_custom.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EdgeSearchEngineCustom +// EdgeSearchEngineCustom allows IT admins to set a custom default search engine for MDM-Controlled devices. type EdgeSearchEngineCustom struct { EdgeSearchEngineBase } -// NewEdgeSearchEngineCustom instantiates a new EdgeSearchEngineCustom and sets the default values. +// NewEdgeSearchEngineCustom instantiates a new edgeSearchEngineCustom and sets the default values. func NewEdgeSearchEngineCustom()(*EdgeSearchEngineCustom) { m := &EdgeSearchEngineCustom{ EdgeSearchEngineBase: *NewEdgeSearchEngineBase(), @@ -45,8 +45,29 @@ func (m *EdgeSearchEngineCustom) GetFieldDeserializers()(map[string]func(i878a80 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EdgeSearchEngineCustom) 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 *EdgeSearchEngineCustom) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EdgeSearchEngineBase.Serialize(writer) @@ -59,6 +80,12 @@ func (m *EdgeSearchEngineCustom) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetEdgeSearchEngineOpenSearchXmlUrl sets the edgeSearchEngineOpenSearchXmlUrl property value. Points to a https link containing the OpenSearch xml file that contains, at minimum, the short name and the URL to the search Engine. @@ -68,10 +95,19 @@ func (m *EdgeSearchEngineCustom) SetEdgeSearchEngineOpenSearchXmlUrl(value *stri panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EdgeSearchEngineCustom) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // EdgeSearchEngineCustomable type EdgeSearchEngineCustomable interface { EdgeSearchEngineBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEdgeSearchEngineOpenSearchXmlUrl()(*string) + GetOdataType()(*string) SetEdgeSearchEngineOpenSearchXmlUrl(value *string)() + SetOdataType(value *string)() } diff --git a/models/ediscovery/add_to_review_set_operation.go b/models/ediscovery/add_to_review_set_operation.go index 16db4987e4a..2d640a412f6 100644 --- a/models/ediscovery/add_to_review_set_operation.go +++ b/models/ediscovery/add_to_review_set_operation.go @@ -8,7 +8,7 @@ import ( type AddToReviewSetOperation struct { CaseOperation } -// NewAddToReviewSetOperation instantiates a new AddToReviewSetOperation and sets the default values. +// NewAddToReviewSetOperation instantiates a new addToReviewSetOperation and sets the default values. func NewAddToReviewSetOperation()(*AddToReviewSetOperation) { m := &AddToReviewSetOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/ediscovery/case_collection_response.go b/models/ediscovery/case_collection_response.go index 9e222c3a123..b9d915db8d3 100644 --- a/models/ediscovery/case_collection_response.go +++ b/models/ediscovery/case_collection_response.go @@ -9,7 +9,7 @@ import ( type CaseCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCaseCollectionResponse instantiates a new CaseCollectionResponse and sets the default values. +// NewCaseCollectionResponse instantiates a new caseCollectionResponse and sets the default values. func NewCaseCollectionResponse()(*CaseCollectionResponse) { m := &CaseCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/case_escaped.go b/models/ediscovery/case_escaped.go index f31f3c43161..e76f14517a6 100644 --- a/models/ediscovery/case_escaped.go +++ b/models/ediscovery/case_escaped.go @@ -9,6 +9,8 @@ import ( // CaseEscaped type CaseEscaped struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCaseEscaped instantiates a new caseEscaped and sets the default values. func NewCaseEscaped()(*CaseEscaped) { @@ -697,3 +699,42 @@ func (m *CaseEscaped) SetTags(value []Tagable)() { panic(err) } } +// CaseEscapedable +type CaseEscapedable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetClosedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) + GetClosedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCustodians()([]Custodianable) + GetDescription()(*string) + GetDisplayName()(*string) + GetExternalId()(*string) + GetLastModifiedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) + GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetLegalHolds()([]LegalHoldable) + GetNoncustodialDataSources()([]NoncustodialDataSourceable) + GetOperations()([]CaseOperationable) + GetReviewSets()([]ReviewSetable) + GetSettings()(CaseSettingsable) + GetSourceCollections()([]SourceCollectionable) + GetStatus()(*CaseStatus) + GetTags()([]Tagable) + SetClosedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() + SetClosedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCustodians(value []Custodianable)() + SetDescription(value *string)() + SetDisplayName(value *string)() + SetExternalId(value *string)() + SetLastModifiedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() + SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetLegalHolds(value []LegalHoldable)() + SetNoncustodialDataSources(value []NoncustodialDataSourceable)() + SetOperations(value []CaseOperationable)() + SetReviewSets(value []ReviewSetable)() + SetSettings(value CaseSettingsable)() + SetSourceCollections(value []SourceCollectionable)() + SetStatus(value *CaseStatus)() + SetTags(value []Tagable)() +} diff --git a/models/ediscovery/case_escapedable.go b/models/ediscovery/case_escapedable.go deleted file mode 100644 index 1c01938cdcb..00000000000 --- a/models/ediscovery/case_escapedable.go +++ /dev/null @@ -1,47 +0,0 @@ -package ediscovery - -import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" -) - -// CaseEscapedable -type CaseEscapedable interface { - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetClosedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) - GetClosedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetCustodians()([]Custodianable) - GetDescription()(*string) - GetDisplayName()(*string) - GetExternalId()(*string) - GetLastModifiedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) - GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetLegalHolds()([]LegalHoldable) - GetNoncustodialDataSources()([]NoncustodialDataSourceable) - GetOperations()([]CaseOperationable) - GetReviewSets()([]ReviewSetable) - GetSettings()(CaseSettingsable) - GetSourceCollections()([]SourceCollectionable) - GetStatus()(*CaseStatus) - GetTags()([]Tagable) - SetClosedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() - SetClosedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetCustodians(value []Custodianable)() - SetDescription(value *string)() - SetDisplayName(value *string)() - SetExternalId(value *string)() - SetLastModifiedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() - SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetLegalHolds(value []LegalHoldable)() - SetNoncustodialDataSources(value []NoncustodialDataSourceable)() - SetOperations(value []CaseOperationable)() - SetReviewSets(value []ReviewSetable)() - SetSettings(value CaseSettingsable)() - SetSourceCollections(value []SourceCollectionable)() - SetStatus(value *CaseStatus)() - SetTags(value []Tagable)() -} diff --git a/models/ediscovery/case_export_operation.go b/models/ediscovery/case_export_operation.go index 2bb451ed743..90a1cc156d8 100644 --- a/models/ediscovery/case_export_operation.go +++ b/models/ediscovery/case_export_operation.go @@ -8,7 +8,7 @@ import ( type CaseExportOperation struct { CaseOperation } -// NewCaseExportOperation instantiates a new CaseExportOperation and sets the default values. +// NewCaseExportOperation instantiates a new caseExportOperation and sets the default values. func NewCaseExportOperation()(*CaseExportOperation) { m := &CaseExportOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/ediscovery/case_export_operation_collection_response.go b/models/ediscovery/case_export_operation_collection_response.go index b5857ea02fe..9016c80442f 100644 --- a/models/ediscovery/case_export_operation_collection_response.go +++ b/models/ediscovery/case_export_operation_collection_response.go @@ -9,7 +9,7 @@ import ( type CaseExportOperationCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCaseExportOperationCollectionResponse instantiates a new CaseExportOperationCollectionResponse and sets the default values. +// NewCaseExportOperationCollectionResponse instantiates a new caseExportOperationCollectionResponse and sets the default values. func NewCaseExportOperationCollectionResponse()(*CaseExportOperationCollectionResponse) { m := &CaseExportOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/case_hold_operation.go b/models/ediscovery/case_hold_operation.go index f85b4451b47..39bfcf6f8ad 100644 --- a/models/ediscovery/case_hold_operation.go +++ b/models/ediscovery/case_hold_operation.go @@ -8,7 +8,7 @@ import ( type CaseHoldOperation struct { CaseOperation } -// NewCaseHoldOperation instantiates a new CaseHoldOperation and sets the default values. +// NewCaseHoldOperation instantiates a new caseHoldOperation and sets the default values. func NewCaseHoldOperation()(*CaseHoldOperation) { m := &CaseHoldOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/ediscovery/case_index_operation.go b/models/ediscovery/case_index_operation.go index 86ace8e2220..9564ecafa09 100644 --- a/models/ediscovery/case_index_operation.go +++ b/models/ediscovery/case_index_operation.go @@ -8,7 +8,7 @@ import ( type CaseIndexOperation struct { CaseOperation } -// NewCaseIndexOperation instantiates a new CaseIndexOperation and sets the default values. +// NewCaseIndexOperation instantiates a new caseIndexOperation and sets the default values. func NewCaseIndexOperation()(*CaseIndexOperation) { m := &CaseIndexOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/ediscovery/case_operation.go b/models/ediscovery/case_operation.go index 1b6b4d5648f..de04b752292 100644 --- a/models/ediscovery/case_operation.go +++ b/models/ediscovery/case_operation.go @@ -9,6 +9,8 @@ import ( // CaseOperation type CaseOperation struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCaseOperation instantiates a new caseOperation and sets the default values. func NewCaseOperation()(*CaseOperation) { diff --git a/models/ediscovery/case_operation_collection_response.go b/models/ediscovery/case_operation_collection_response.go index c7d5b394681..06ef79eaa37 100644 --- a/models/ediscovery/case_operation_collection_response.go +++ b/models/ediscovery/case_operation_collection_response.go @@ -9,7 +9,7 @@ import ( type CaseOperationCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCaseOperationCollectionResponse instantiates a new CaseOperationCollectionResponse and sets the default values. +// NewCaseOperationCollectionResponse instantiates a new caseOperationCollectionResponse and sets the default values. func NewCaseOperationCollectionResponse()(*CaseOperationCollectionResponse) { m := &CaseOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/case_settings.go b/models/ediscovery/case_settings.go index 489c0e903e9..0c73cc61ad8 100644 --- a/models/ediscovery/case_settings.go +++ b/models/ediscovery/case_settings.go @@ -8,6 +8,8 @@ import ( // CaseSettings type CaseSettings struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCaseSettings instantiates a new caseSettings and sets the default values. func NewCaseSettings()(*CaseSettings) { diff --git a/models/ediscovery/custodian.go b/models/ediscovery/custodian.go index c3b6b88b984..ec86fa2df32 100644 --- a/models/ediscovery/custodian.go +++ b/models/ediscovery/custodian.go @@ -9,7 +9,7 @@ import ( type Custodian struct { DataSourceContainer } -// NewCustodian instantiates a new Custodian and sets the default values. +// NewCustodian instantiates a new custodian and sets the default values. func NewCustodian()(*Custodian) { m := &Custodian{ DataSourceContainer: *NewDataSourceContainer(), diff --git a/models/ediscovery/custodian_collection_response.go b/models/ediscovery/custodian_collection_response.go index 7707f8f3e19..278a907fba2 100644 --- a/models/ediscovery/custodian_collection_response.go +++ b/models/ediscovery/custodian_collection_response.go @@ -9,7 +9,7 @@ import ( type CustodianCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCustodianCollectionResponse instantiates a new CustodianCollectionResponse and sets the default values. +// NewCustodianCollectionResponse instantiates a new custodianCollectionResponse and sets the default values. func NewCustodianCollectionResponse()(*CustodianCollectionResponse) { m := &CustodianCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/data_source.go b/models/ediscovery/data_source.go index bef2131da49..e60a2684057 100644 --- a/models/ediscovery/data_source.go +++ b/models/ediscovery/data_source.go @@ -9,6 +9,8 @@ import ( // DataSource type DataSource struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDataSource instantiates a new dataSource and sets the default values. func NewDataSource()(*DataSource) { diff --git a/models/ediscovery/data_source_collection_response.go b/models/ediscovery/data_source_collection_response.go index 5a06ce1382c..756d83532eb 100644 --- a/models/ediscovery/data_source_collection_response.go +++ b/models/ediscovery/data_source_collection_response.go @@ -9,7 +9,7 @@ import ( type DataSourceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewDataSourceCollectionResponse instantiates a new DataSourceCollectionResponse and sets the default values. +// NewDataSourceCollectionResponse instantiates a new dataSourceCollectionResponse and sets the default values. func NewDataSourceCollectionResponse()(*DataSourceCollectionResponse) { m := &DataSourceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/data_source_container.go b/models/ediscovery/data_source_container.go index ac8daea4c2a..37e57f7f3c9 100644 --- a/models/ediscovery/data_source_container.go +++ b/models/ediscovery/data_source_container.go @@ -9,6 +9,8 @@ import ( // DataSourceContainer type DataSourceContainer struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDataSourceContainer instantiates a new dataSourceContainer and sets the default values. func NewDataSourceContainer()(*DataSourceContainer) { diff --git a/models/ediscovery/ediscoveryroot.go b/models/ediscovery/ediscoveryroot.go index b2095306984..be7fe536f41 100644 --- a/models/ediscovery/ediscoveryroot.go +++ b/models/ediscovery/ediscoveryroot.go @@ -8,8 +8,10 @@ import ( // Ediscoveryroot type Ediscoveryroot struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewEdiscoveryroot instantiates a new Ediscoveryroot and sets the default values. +// NewEdiscoveryroot instantiates a new ediscoveryroot and sets the default values. func NewEdiscoveryroot()(*Ediscoveryroot) { m := &Ediscoveryroot{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/ediscovery/estimate_statistics_operation.go b/models/ediscovery/estimate_statistics_operation.go index 3b73099d542..04ed8bc25bd 100644 --- a/models/ediscovery/estimate_statistics_operation.go +++ b/models/ediscovery/estimate_statistics_operation.go @@ -8,7 +8,7 @@ import ( type EstimateStatisticsOperation struct { CaseOperation } -// NewEstimateStatisticsOperation instantiates a new EstimateStatisticsOperation and sets the default values. +// NewEstimateStatisticsOperation instantiates a new estimateStatisticsOperation and sets the default values. func NewEstimateStatisticsOperation()(*EstimateStatisticsOperation) { m := &EstimateStatisticsOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/ediscovery/legal_hold.go b/models/ediscovery/legal_hold.go index 25208b4cbae..b1611f04d17 100644 --- a/models/ediscovery/legal_hold.go +++ b/models/ediscovery/legal_hold.go @@ -9,6 +9,8 @@ import ( // LegalHold type LegalHold struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewLegalHold instantiates a new legalHold and sets the default values. func NewLegalHold()(*LegalHold) { diff --git a/models/ediscovery/legal_hold_collection_response.go b/models/ediscovery/legal_hold_collection_response.go index 5df71d11bbb..fb012fe8048 100644 --- a/models/ediscovery/legal_hold_collection_response.go +++ b/models/ediscovery/legal_hold_collection_response.go @@ -9,7 +9,7 @@ import ( type LegalHoldCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewLegalHoldCollectionResponse instantiates a new LegalHoldCollectionResponse and sets the default values. +// NewLegalHoldCollectionResponse instantiates a new legalHoldCollectionResponse and sets the default values. func NewLegalHoldCollectionResponse()(*LegalHoldCollectionResponse) { m := &LegalHoldCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/noncustodial_data_source_collection_response.go b/models/ediscovery/noncustodial_data_source_collection_response.go index e592881e9f6..a90f966042f 100644 --- a/models/ediscovery/noncustodial_data_source_collection_response.go +++ b/models/ediscovery/noncustodial_data_source_collection_response.go @@ -9,7 +9,7 @@ import ( type NoncustodialDataSourceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewNoncustodialDataSourceCollectionResponse instantiates a new NoncustodialDataSourceCollectionResponse and sets the default values. +// NewNoncustodialDataSourceCollectionResponse instantiates a new noncustodialDataSourceCollectionResponse and sets the default values. func NewNoncustodialDataSourceCollectionResponse()(*NoncustodialDataSourceCollectionResponse) { m := &NoncustodialDataSourceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/purge_data_operation.go b/models/ediscovery/purge_data_operation.go index 185e6cc2e95..a11ea6ef4f9 100644 --- a/models/ediscovery/purge_data_operation.go +++ b/models/ediscovery/purge_data_operation.go @@ -8,7 +8,7 @@ import ( type PurgeDataOperation struct { CaseOperation } -// NewPurgeDataOperation instantiates a new PurgeDataOperation and sets the default values. +// NewPurgeDataOperation instantiates a new purgeDataOperation and sets the default values. func NewPurgeDataOperation()(*PurgeDataOperation) { m := &PurgeDataOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/ediscovery/review_set.go b/models/ediscovery/review_set.go index d25e93096c9..90a7b91bc9b 100644 --- a/models/ediscovery/review_set.go +++ b/models/ediscovery/review_set.go @@ -9,6 +9,8 @@ import ( // ReviewSet type ReviewSet struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewReviewSet instantiates a new reviewSet and sets the default values. func NewReviewSet()(*ReviewSet) { diff --git a/models/ediscovery/review_set_collection_response.go b/models/ediscovery/review_set_collection_response.go index d68b9de29c8..c66af04e33d 100644 --- a/models/ediscovery/review_set_collection_response.go +++ b/models/ediscovery/review_set_collection_response.go @@ -9,7 +9,7 @@ import ( type ReviewSetCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewReviewSetCollectionResponse instantiates a new ReviewSetCollectionResponse and sets the default values. +// NewReviewSetCollectionResponse instantiates a new reviewSetCollectionResponse and sets the default values. func NewReviewSetCollectionResponse()(*ReviewSetCollectionResponse) { m := &ReviewSetCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/review_set_query.go b/models/ediscovery/review_set_query.go index e00526bfde3..01fdebe2798 100644 --- a/models/ediscovery/review_set_query.go +++ b/models/ediscovery/review_set_query.go @@ -9,6 +9,8 @@ import ( // ReviewSetQuery type ReviewSetQuery struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewReviewSetQuery instantiates a new reviewSetQuery and sets the default values. func NewReviewSetQuery()(*ReviewSetQuery) { diff --git a/models/ediscovery/review_set_query_collection_response.go b/models/ediscovery/review_set_query_collection_response.go index b020bd2d320..b7085cede89 100644 --- a/models/ediscovery/review_set_query_collection_response.go +++ b/models/ediscovery/review_set_query_collection_response.go @@ -9,7 +9,7 @@ import ( type ReviewSetQueryCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewReviewSetQueryCollectionResponse instantiates a new ReviewSetQueryCollectionResponse and sets the default values. +// NewReviewSetQueryCollectionResponse instantiates a new reviewSetQueryCollectionResponse and sets the default values. func NewReviewSetQueryCollectionResponse()(*ReviewSetQueryCollectionResponse) { m := &ReviewSetQueryCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/site_source.go b/models/ediscovery/site_source.go index 0a18cf4cc13..a265b49d11a 100644 --- a/models/ediscovery/site_source.go +++ b/models/ediscovery/site_source.go @@ -9,7 +9,7 @@ import ( type SiteSource struct { DataSource } -// NewSiteSource instantiates a new SiteSource and sets the default values. +// NewSiteSource instantiates a new siteSource and sets the default values. func NewSiteSource()(*SiteSource) { m := &SiteSource{ DataSource: *NewDataSource(), diff --git a/models/ediscovery/site_source_collection_response.go b/models/ediscovery/site_source_collection_response.go index 8feb9ae497f..1ee03d1e0c4 100644 --- a/models/ediscovery/site_source_collection_response.go +++ b/models/ediscovery/site_source_collection_response.go @@ -9,7 +9,7 @@ import ( type SiteSourceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewSiteSourceCollectionResponse instantiates a new SiteSourceCollectionResponse and sets the default values. +// NewSiteSourceCollectionResponse instantiates a new siteSourceCollectionResponse and sets the default values. func NewSiteSourceCollectionResponse()(*SiteSourceCollectionResponse) { m := &SiteSourceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/source_collection.go b/models/ediscovery/source_collection.go index 8afb26405ae..6a746d106b8 100644 --- a/models/ediscovery/source_collection.go +++ b/models/ediscovery/source_collection.go @@ -9,6 +9,8 @@ import ( // SourceCollection type SourceCollection struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSourceCollection instantiates a new sourceCollection and sets the default values. func NewSourceCollection()(*SourceCollection) { diff --git a/models/ediscovery/source_collection_collection_response.go b/models/ediscovery/source_collection_collection_response.go index 97c23398e1a..0fa969885b4 100644 --- a/models/ediscovery/source_collection_collection_response.go +++ b/models/ediscovery/source_collection_collection_response.go @@ -9,7 +9,7 @@ import ( type SourceCollectionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewSourceCollectionCollectionResponse instantiates a new SourceCollectionCollectionResponse and sets the default values. +// NewSourceCollectionCollectionResponse instantiates a new sourceCollectionCollectionResponse and sets the default values. func NewSourceCollectionCollectionResponse()(*SourceCollectionCollectionResponse) { m := &SourceCollectionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/tag.go b/models/ediscovery/tag.go index 5cad4d26431..4d2c19e73f7 100644 --- a/models/ediscovery/tag.go +++ b/models/ediscovery/tag.go @@ -9,6 +9,8 @@ import ( // Tag type Tag struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewTag instantiates a new tag and sets the default values. func NewTag()(*Tag) { diff --git a/models/ediscovery/tag_collection_response.go b/models/ediscovery/tag_collection_response.go index 5fc7695905b..7d717c3e6e3 100644 --- a/models/ediscovery/tag_collection_response.go +++ b/models/ediscovery/tag_collection_response.go @@ -9,7 +9,7 @@ import ( type TagCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewTagCollectionResponse instantiates a new TagCollectionResponse and sets the default values. +// NewTagCollectionResponse instantiates a new tagCollectionResponse and sets the default values. func NewTagCollectionResponse()(*TagCollectionResponse) { m := &TagCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/tag_operation.go b/models/ediscovery/tag_operation.go index 2a5a2a1769a..348024ef7d9 100644 --- a/models/ediscovery/tag_operation.go +++ b/models/ediscovery/tag_operation.go @@ -8,7 +8,7 @@ import ( type TagOperation struct { CaseOperation } -// NewTagOperation instantiates a new TagOperation and sets the default values. +// NewTagOperation instantiates a new tagOperation and sets the default values. func NewTagOperation()(*TagOperation) { m := &TagOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/ediscovery/unified_group_source.go b/models/ediscovery/unified_group_source.go index a356def9b04..e2077913597 100644 --- a/models/ediscovery/unified_group_source.go +++ b/models/ediscovery/unified_group_source.go @@ -9,7 +9,7 @@ import ( type UnifiedGroupSource struct { DataSource } -// NewUnifiedGroupSource instantiates a new UnifiedGroupSource and sets the default values. +// NewUnifiedGroupSource instantiates a new unifiedGroupSource and sets the default values. func NewUnifiedGroupSource()(*UnifiedGroupSource) { m := &UnifiedGroupSource{ DataSource: *NewDataSource(), diff --git a/models/ediscovery/unified_group_source_collection_response.go b/models/ediscovery/unified_group_source_collection_response.go index e9613cda269..5fe36d1693a 100644 --- a/models/ediscovery/unified_group_source_collection_response.go +++ b/models/ediscovery/unified_group_source_collection_response.go @@ -9,7 +9,7 @@ import ( type UnifiedGroupSourceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewUnifiedGroupSourceCollectionResponse instantiates a new UnifiedGroupSourceCollectionResponse and sets the default values. +// NewUnifiedGroupSourceCollectionResponse instantiates a new unifiedGroupSourceCollectionResponse and sets the default values. func NewUnifiedGroupSourceCollectionResponse()(*UnifiedGroupSourceCollectionResponse) { m := &UnifiedGroupSourceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/ediscovery/user_source.go b/models/ediscovery/user_source.go index a37ecc60609..e9d0f6f6f72 100644 --- a/models/ediscovery/user_source.go +++ b/models/ediscovery/user_source.go @@ -8,7 +8,7 @@ import ( type UserSource struct { DataSource } -// NewUserSource instantiates a new UserSource and sets the default values. +// NewUserSource instantiates a new userSource and sets the default values. func NewUserSource()(*UserSource) { m := &UserSource{ DataSource: *NewDataSource(), diff --git a/models/ediscovery/user_source_collection_response.go b/models/ediscovery/user_source_collection_response.go index 62a31fa244a..8af2509b9ac 100644 --- a/models/ediscovery/user_source_collection_response.go +++ b/models/ediscovery/user_source_collection_response.go @@ -9,7 +9,7 @@ import ( type UserSourceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewUserSourceCollectionResponse instantiates a new UserSourceCollectionResponse and sets the default values. +// NewUserSourceCollectionResponse instantiates a new userSourceCollectionResponse and sets the default values. func NewUserSourceCollectionResponse()(*UserSourceCollectionResponse) { m := &UserSourceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/edition_upgrade_configuration.go b/models/edition_upgrade_configuration.go index d7133d22759..d46a9b4d2c0 100644 --- a/models/edition_upgrade_configuration.go +++ b/models/edition_upgrade_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EditionUpgradeConfiguration +// EditionUpgradeConfiguration windows 10 Edition Upgrade configuration. type EditionUpgradeConfiguration struct { DeviceConfiguration } -// NewEditionUpgradeConfiguration instantiates a new EditionUpgradeConfiguration and sets the default values. +// NewEditionUpgradeConfiguration instantiates a new editionUpgradeConfiguration and sets the default values. func NewEditionUpgradeConfiguration()(*EditionUpgradeConfiguration) { m := &EditionUpgradeConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/education_assignment.go b/models/education_assignment.go index 96f299b3a24..aa02eb24ffb 100644 --- a/models/education_assignment.go +++ b/models/education_assignment.go @@ -8,8 +8,10 @@ import ( // EducationAssignment type EducationAssignment struct { Entity + // The OdataType property + OdataType *string } -// NewEducationAssignment instantiates a new EducationAssignment and sets the default values. +// NewEducationAssignment instantiates a new educationAssignment and sets the default values. func NewEducationAssignment()(*EducationAssignment) { m := &EducationAssignment{ Entity: *NewEntity(), diff --git a/models/education_assignment_class_recipient.go b/models/education_assignment_class_recipient.go index 905f5c17682..d9095904a0b 100644 --- a/models/education_assignment_class_recipient.go +++ b/models/education_assignment_class_recipient.go @@ -8,7 +8,7 @@ import ( type EducationAssignmentClassRecipient struct { EducationAssignmentRecipient } -// NewEducationAssignmentClassRecipient instantiates a new EducationAssignmentClassRecipient and sets the default values. +// NewEducationAssignmentClassRecipient instantiates a new educationAssignmentClassRecipient and sets the default values. func NewEducationAssignmentClassRecipient()(*EducationAssignmentClassRecipient) { m := &EducationAssignmentClassRecipient{ EducationAssignmentRecipient: *NewEducationAssignmentRecipient(), @@ -24,18 +24,54 @@ func CreateEducationAssignmentClassRecipientFromDiscriminatorValue(parseNode i87 // GetFieldDeserializers the deserialization information for the current model func (m *EducationAssignmentClassRecipient) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.EducationAssignmentRecipient.GetFieldDeserializers() + 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 *EducationAssignmentClassRecipient) 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 *EducationAssignmentClassRecipient) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EducationAssignmentRecipient.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EducationAssignmentClassRecipient) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // EducationAssignmentClassRecipientable type EducationAssignmentClassRecipientable interface { EducationAssignmentRecipientable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/education_assignment_collection_response.go b/models/education_assignment_collection_response.go index 283f76f3665..2ff1349fb53 100644 --- a/models/education_assignment_collection_response.go +++ b/models/education_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationAssignmentCollectionResponse instantiates a new EducationAssignmentCollectionResponse and sets the default values. +// NewEducationAssignmentCollectionResponse instantiates a new educationAssignmentCollectionResponse and sets the default values. func NewEducationAssignmentCollectionResponse()(*EducationAssignmentCollectionResponse) { m := &EducationAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_assignment_defaults.go b/models/education_assignment_defaults.go index b393262b91b..4999457c139 100644 --- a/models/education_assignment_defaults.go +++ b/models/education_assignment_defaults.go @@ -7,8 +7,10 @@ import ( // EducationAssignmentDefaults type EducationAssignmentDefaults struct { Entity + // The OdataType property + OdataType *string } -// NewEducationAssignmentDefaults instantiates a new EducationAssignmentDefaults and sets the default values. +// NewEducationAssignmentDefaults instantiates a new educationAssignmentDefaults and sets the default values. func NewEducationAssignmentDefaults()(*EducationAssignmentDefaults) { m := &EducationAssignmentDefaults{ Entity: *NewEntity(), diff --git a/models/education_assignment_group_recipient.go b/models/education_assignment_group_recipient.go index fa8eedec4b9..a8b836cf7f2 100644 --- a/models/education_assignment_group_recipient.go +++ b/models/education_assignment_group_recipient.go @@ -7,8 +7,10 @@ import ( // EducationAssignmentGroupRecipient type EducationAssignmentGroupRecipient struct { EducationAssignmentRecipient + // The OdataType property + OdataType *string } -// NewEducationAssignmentGroupRecipient instantiates a new EducationAssignmentGroupRecipient and sets the default values. +// NewEducationAssignmentGroupRecipient instantiates a new educationAssignmentGroupRecipient and sets the default values. func NewEducationAssignmentGroupRecipient()(*EducationAssignmentGroupRecipient) { m := &EducationAssignmentGroupRecipient{ EducationAssignmentRecipient: *NewEducationAssignmentRecipient(), diff --git a/models/education_assignment_individual_recipient.go b/models/education_assignment_individual_recipient.go index 840ed7ceb1b..30f09a05ddb 100644 --- a/models/education_assignment_individual_recipient.go +++ b/models/education_assignment_individual_recipient.go @@ -8,7 +8,7 @@ import ( type EducationAssignmentIndividualRecipient struct { EducationAssignmentRecipient } -// NewEducationAssignmentIndividualRecipient instantiates a new EducationAssignmentIndividualRecipient and sets the default values. +// NewEducationAssignmentIndividualRecipient instantiates a new educationAssignmentIndividualRecipient and sets the default values. func NewEducationAssignmentIndividualRecipient()(*EducationAssignmentIndividualRecipient) { m := &EducationAssignmentIndividualRecipient{ EducationAssignmentRecipient: *NewEducationAssignmentRecipient(), @@ -24,6 +24,16 @@ func CreateEducationAssignmentIndividualRecipientFromDiscriminatorValue(parseNod // GetFieldDeserializers the deserialization information for the current model func (m *EducationAssignmentIndividualRecipient) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.EducationAssignmentRecipient.GetFieldDeserializers() + 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["recipients"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -42,6 +52,17 @@ func (m *EducationAssignmentIndividualRecipient) GetFieldDeserializers()(map[str } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EducationAssignmentIndividualRecipient) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRecipients gets the recipients property value. A collection of ids of the recipients. func (m *EducationAssignmentIndividualRecipient) GetRecipients()([]string) { val, err := m.GetBackingStore().Get("recipients") @@ -59,6 +80,12 @@ func (m *EducationAssignmentIndividualRecipient) Serialize(writer i878a80d2330e8 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetRecipients() != nil { err = writer.WriteCollectionOfStringValues("recipients", m.GetRecipients()) if err != nil { @@ -67,6 +94,13 @@ func (m *EducationAssignmentIndividualRecipient) Serialize(writer i878a80d2330e8 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EducationAssignmentIndividualRecipient) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRecipients sets the recipients property value. A collection of ids of the recipients. func (m *EducationAssignmentIndividualRecipient) SetRecipients(value []string)() { err := m.GetBackingStore().Set("recipients", value) @@ -78,6 +112,8 @@ func (m *EducationAssignmentIndividualRecipient) SetRecipients(value []string)() type EducationAssignmentIndividualRecipientable interface { EducationAssignmentRecipientable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetRecipients()([]string) + SetOdataType(value *string)() SetRecipients(value []string)() } diff --git a/models/education_assignment_points_grade.go b/models/education_assignment_points_grade.go index 8d310a4db41..6f608dedada 100644 --- a/models/education_assignment_points_grade.go +++ b/models/education_assignment_points_grade.go @@ -7,8 +7,10 @@ import ( // EducationAssignmentPointsGrade type EducationAssignmentPointsGrade struct { EducationAssignmentGrade + // The OdataType property + OdataType *string } -// NewEducationAssignmentPointsGrade instantiates a new EducationAssignmentPointsGrade and sets the default values. +// NewEducationAssignmentPointsGrade instantiates a new educationAssignmentPointsGrade and sets the default values. func NewEducationAssignmentPointsGrade()(*EducationAssignmentPointsGrade) { m := &EducationAssignmentPointsGrade{ EducationAssignmentGrade: *NewEducationAssignmentGrade(), diff --git a/models/education_assignment_points_grade_type.go b/models/education_assignment_points_grade_type.go index 64fdc5b5ede..881b97366a6 100644 --- a/models/education_assignment_points_grade_type.go +++ b/models/education_assignment_points_grade_type.go @@ -7,8 +7,10 @@ import ( // EducationAssignmentPointsGradeType type EducationAssignmentPointsGradeType struct { EducationAssignmentGradeType + // The OdataType property + OdataType *string } -// NewEducationAssignmentPointsGradeType instantiates a new EducationAssignmentPointsGradeType and sets the default values. +// NewEducationAssignmentPointsGradeType instantiates a new educationAssignmentPointsGradeType and sets the default values. func NewEducationAssignmentPointsGradeType()(*EducationAssignmentPointsGradeType) { m := &EducationAssignmentPointsGradeType{ EducationAssignmentGradeType: *NewEducationAssignmentGradeType(), diff --git a/models/education_assignment_resource.go b/models/education_assignment_resource.go index d99d72f15f2..cbe125eeba1 100644 --- a/models/education_assignment_resource.go +++ b/models/education_assignment_resource.go @@ -7,6 +7,8 @@ import ( // EducationAssignmentResource type EducationAssignmentResource struct { Entity + // The OdataType property + OdataType *string } // NewEducationAssignmentResource instantiates a new educationAssignmentResource and sets the default values. func NewEducationAssignmentResource()(*EducationAssignmentResource) { diff --git a/models/education_assignment_resource_collection_response.go b/models/education_assignment_resource_collection_response.go index 210fa2c717e..44a5a8dd1f6 100644 --- a/models/education_assignment_resource_collection_response.go +++ b/models/education_assignment_resource_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationAssignmentResourceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationAssignmentResourceCollectionResponse instantiates a new EducationAssignmentResourceCollectionResponse and sets the default values. +// NewEducationAssignmentResourceCollectionResponse instantiates a new educationAssignmentResourceCollectionResponse and sets the default values. func NewEducationAssignmentResourceCollectionResponse()(*EducationAssignmentResourceCollectionResponse) { m := &EducationAssignmentResourceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_assignment_settings.go b/models/education_assignment_settings.go index d43155cdcff..508c2dc844e 100644 --- a/models/education_assignment_settings.go +++ b/models/education_assignment_settings.go @@ -7,8 +7,10 @@ import ( // EducationAssignmentSettings type EducationAssignmentSettings struct { Entity + // The OdataType property + OdataType *string } -// NewEducationAssignmentSettings instantiates a new EducationAssignmentSettings and sets the default values. +// NewEducationAssignmentSettings instantiates a new educationAssignmentSettings and sets the default values. func NewEducationAssignmentSettings()(*EducationAssignmentSettings) { m := &EducationAssignmentSettings{ Entity: *NewEntity(), diff --git a/models/education_category.go b/models/education_category.go index 0a74a9b2c96..e72ac177164 100644 --- a/models/education_category.go +++ b/models/education_category.go @@ -7,6 +7,8 @@ import ( // EducationCategory type EducationCategory struct { Entity + // The OdataType property + OdataType *string } // NewEducationCategory instantiates a new educationCategory and sets the default values. func NewEducationCategory()(*EducationCategory) { diff --git a/models/education_category_collection_response.go b/models/education_category_collection_response.go index 2793500761e..cc0239733af 100644 --- a/models/education_category_collection_response.go +++ b/models/education_category_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationCategoryCollectionResponse instantiates a new EducationCategoryCollectionResponse and sets the default values. +// NewEducationCategoryCollectionResponse instantiates a new educationCategoryCollectionResponse and sets the default values. func NewEducationCategoryCollectionResponse()(*EducationCategoryCollectionResponse) { m := &EducationCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_class.go b/models/education_class.go index d006864fc86..2cfd5a04cb6 100644 --- a/models/education_class.go +++ b/models/education_class.go @@ -7,8 +7,10 @@ import ( // EducationClass type EducationClass struct { Entity + // The OdataType property + OdataType *string } -// NewEducationClass instantiates a new EducationClass and sets the default values. +// NewEducationClass instantiates a new educationClass and sets the default values. func NewEducationClass()(*EducationClass) { m := &EducationClass{ Entity: *NewEntity(), diff --git a/models/education_class_collection_response.go b/models/education_class_collection_response.go index 63b2206c2e3..a3f03f50d51 100644 --- a/models/education_class_collection_response.go +++ b/models/education_class_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationClassCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationClassCollectionResponse instantiates a new EducationClassCollectionResponse and sets the default values. +// NewEducationClassCollectionResponse instantiates a new educationClassCollectionResponse and sets the default values. func NewEducationClassCollectionResponse()(*EducationClassCollectionResponse) { m := &EducationClassCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_csv_data_provider.go b/models/education_csv_data_provider.go index 7e9eb39d493..c238ed02f5c 100644 --- a/models/education_csv_data_provider.go +++ b/models/education_csv_data_provider.go @@ -7,8 +7,10 @@ import ( // EducationCsvDataProvider type EducationCsvDataProvider struct { EducationSynchronizationDataProvider + // The OdataType property + OdataType *string } -// NewEducationCsvDataProvider instantiates a new EducationCsvDataProvider and sets the default values. +// NewEducationCsvDataProvider instantiates a new educationCsvDataProvider and sets the default values. func NewEducationCsvDataProvider()(*EducationCsvDataProvider) { m := &EducationCsvDataProvider{ EducationSynchronizationDataProvider: *NewEducationSynchronizationDataProvider(), diff --git a/models/education_excel_resource.go b/models/education_excel_resource.go index 9f37dc36374..bd10181dd40 100644 --- a/models/education_excel_resource.go +++ b/models/education_excel_resource.go @@ -8,7 +8,7 @@ import ( type EducationExcelResource struct { EducationResource } -// NewEducationExcelResource instantiates a new EducationExcelResource and sets the default values. +// NewEducationExcelResource instantiates a new educationExcelResource and sets the default values. func NewEducationExcelResource()(*EducationExcelResource) { m := &EducationExcelResource{ EducationResource: *NewEducationResource(), @@ -34,6 +34,16 @@ func (m *EducationExcelResource) GetFieldDeserializers()(map[string]func(i878a80 } 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 } // GetFileUrl gets the fileUrl property value. Pointer to the Excel file object. @@ -47,6 +57,17 @@ func (m *EducationExcelResource) GetFileUrl()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EducationExcelResource) 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 *EducationExcelResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EducationResource.Serialize(writer) @@ -59,6 +80,12 @@ func (m *EducationExcelResource) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetFileUrl sets the fileUrl property value. Pointer to the Excel file object. @@ -68,10 +95,19 @@ func (m *EducationExcelResource) SetFileUrl(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EducationExcelResource) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // EducationExcelResourceable type EducationExcelResourceable interface { EducationResourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetFileUrl()(*string) + GetOdataType()(*string) SetFileUrl(value *string)() + SetOdataType(value *string)() } diff --git a/models/education_external_resource.go b/models/education_external_resource.go index fed1cf78f26..60f4ad15cd5 100644 --- a/models/education_external_resource.go +++ b/models/education_external_resource.go @@ -8,7 +8,7 @@ import ( type EducationExternalResource struct { EducationResource } -// NewEducationExternalResource instantiates a new EducationExternalResource and sets the default values. +// NewEducationExternalResource instantiates a new educationExternalResource and sets the default values. func NewEducationExternalResource()(*EducationExternalResource) { m := &EducationExternalResource{ EducationResource: *NewEducationResource(), @@ -24,6 +24,16 @@ func CreateEducationExternalResourceFromDiscriminatorValue(parseNode i878a80d233 // GetFieldDeserializers the deserialization information for the current model func (m *EducationExternalResource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.EducationResource.GetFieldDeserializers() + 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["webUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,6 +46,17 @@ func (m *EducationExternalResource) GetFieldDeserializers()(map[string]func(i878 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EducationExternalResource) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetWebUrl gets the webUrl property value. Location of the resource. Required. func (m *EducationExternalResource) GetWebUrl()(*string) { val, err := m.GetBackingStore().Get("webUrl") @@ -53,6 +74,12 @@ func (m *EducationExternalResource) Serialize(writer i878a80d2330e89d26896388a3f if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("webUrl", m.GetWebUrl()) if err != nil { @@ -61,6 +88,13 @@ func (m *EducationExternalResource) Serialize(writer i878a80d2330e89d26896388a3f } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EducationExternalResource) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetWebUrl sets the webUrl property value. Location of the resource. Required. func (m *EducationExternalResource) SetWebUrl(value *string)() { err := m.GetBackingStore().Set("webUrl", value) @@ -72,6 +106,8 @@ func (m *EducationExternalResource) SetWebUrl(value *string)() { type EducationExternalResourceable interface { EducationResourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetWebUrl()(*string) + SetOdataType(value *string)() SetWebUrl(value *string)() } diff --git a/models/education_feedback_outcome.go b/models/education_feedback_outcome.go index 33747479c25..aba78f27811 100644 --- a/models/education_feedback_outcome.go +++ b/models/education_feedback_outcome.go @@ -8,7 +8,7 @@ import ( type EducationFeedbackOutcome struct { EducationOutcome } -// NewEducationFeedbackOutcome instantiates a new EducationFeedbackOutcome and sets the default values. +// NewEducationFeedbackOutcome instantiates a new educationFeedbackOutcome and sets the default values. func NewEducationFeedbackOutcome()(*EducationFeedbackOutcome) { m := &EducationFeedbackOutcome{ EducationOutcome: *NewEducationOutcome(), diff --git a/models/education_feedback_resource_outcome.go b/models/education_feedback_resource_outcome.go index 7119301b37a..dd05694648e 100644 --- a/models/education_feedback_resource_outcome.go +++ b/models/education_feedback_resource_outcome.go @@ -8,7 +8,7 @@ import ( type EducationFeedbackResourceOutcome struct { EducationOutcome } -// NewEducationFeedbackResourceOutcome instantiates a new EducationFeedbackResourceOutcome and sets the default values. +// NewEducationFeedbackResourceOutcome instantiates a new educationFeedbackResourceOutcome and sets the default values. func NewEducationFeedbackResourceOutcome()(*EducationFeedbackResourceOutcome) { m := &EducationFeedbackResourceOutcome{ EducationOutcome: *NewEducationOutcome(), diff --git a/models/education_file_resource.go b/models/education_file_resource.go index bf1ed1891dd..31f1d21ca37 100644 --- a/models/education_file_resource.go +++ b/models/education_file_resource.go @@ -8,7 +8,7 @@ import ( type EducationFileResource struct { EducationResource } -// NewEducationFileResource instantiates a new EducationFileResource and sets the default values. +// NewEducationFileResource instantiates a new educationFileResource and sets the default values. func NewEducationFileResource()(*EducationFileResource) { m := &EducationFileResource{ EducationResource: *NewEducationResource(), @@ -34,6 +34,16 @@ func (m *EducationFileResource) GetFieldDeserializers()(map[string]func(i878a80d } 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 } // GetFileUrl gets the fileUrl property value. Location on disk of the file resource. @@ -47,6 +57,17 @@ func (m *EducationFileResource) GetFileUrl()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EducationFileResource) 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 *EducationFileResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EducationResource.Serialize(writer) @@ -59,6 +80,12 @@ func (m *EducationFileResource) Serialize(writer i878a80d2330e89d26896388a3f487e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetFileUrl sets the fileUrl property value. Location on disk of the file resource. @@ -68,10 +95,19 @@ func (m *EducationFileResource) SetFileUrl(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EducationFileResource) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // EducationFileResourceable type EducationFileResourceable interface { EducationResourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetFileUrl()(*string) + GetOdataType()(*string) SetFileUrl(value *string)() + SetOdataType(value *string)() } diff --git a/models/education_grading_category.go b/models/education_grading_category.go index d1d2389f18d..774a1bd14df 100644 --- a/models/education_grading_category.go +++ b/models/education_grading_category.go @@ -7,6 +7,8 @@ import ( // EducationGradingCategory type EducationGradingCategory struct { Entity + // The OdataType property + OdataType *string } // NewEducationGradingCategory instantiates a new educationGradingCategory and sets the default values. func NewEducationGradingCategory()(*EducationGradingCategory) { diff --git a/models/education_grading_category_collection_response.go b/models/education_grading_category_collection_response.go index bfb0d3a433a..add99700b52 100644 --- a/models/education_grading_category_collection_response.go +++ b/models/education_grading_category_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationGradingCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationGradingCategoryCollectionResponse instantiates a new EducationGradingCategoryCollectionResponse and sets the default values. +// NewEducationGradingCategoryCollectionResponse instantiates a new educationGradingCategoryCollectionResponse and sets the default values. func NewEducationGradingCategoryCollectionResponse()(*EducationGradingCategoryCollectionResponse) { m := &EducationGradingCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_identity_creation_configuration.go b/models/education_identity_creation_configuration.go index b32d85ab169..df5baf01bc9 100644 --- a/models/education_identity_creation_configuration.go +++ b/models/education_identity_creation_configuration.go @@ -7,8 +7,10 @@ import ( // EducationIdentityCreationConfiguration type EducationIdentityCreationConfiguration struct { EducationIdentitySynchronizationConfiguration + // The OdataType property + OdataType *string } -// NewEducationIdentityCreationConfiguration instantiates a new EducationIdentityCreationConfiguration and sets the default values. +// NewEducationIdentityCreationConfiguration instantiates a new educationIdentityCreationConfiguration and sets the default values. func NewEducationIdentityCreationConfiguration()(*EducationIdentityCreationConfiguration) { m := &EducationIdentityCreationConfiguration{ EducationIdentitySynchronizationConfiguration: *NewEducationIdentitySynchronizationConfiguration(), diff --git a/models/education_identity_domain.go b/models/education_identity_domain.go index 0136039fd59..d1c8cfdd32f 100644 --- a/models/education_identity_domain.go +++ b/models/education_identity_domain.go @@ -10,7 +10,7 @@ type EducationIdentityDomain struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEducationIdentityDomain instantiates a new EducationIdentityDomain and sets the default values. +// NewEducationIdentityDomain instantiates a new educationIdentityDomain and sets the default values. func NewEducationIdentityDomain()(*EducationIdentityDomain) { m := &EducationIdentityDomain{ } diff --git a/models/education_identity_matching_configuration.go b/models/education_identity_matching_configuration.go index dee61cc610c..dbf2eaf92c3 100644 --- a/models/education_identity_matching_configuration.go +++ b/models/education_identity_matching_configuration.go @@ -7,8 +7,10 @@ import ( // EducationIdentityMatchingConfiguration type EducationIdentityMatchingConfiguration struct { EducationIdentitySynchronizationConfiguration + // The OdataType property + OdataType *string } -// NewEducationIdentityMatchingConfiguration instantiates a new EducationIdentityMatchingConfiguration and sets the default values. +// NewEducationIdentityMatchingConfiguration instantiates a new educationIdentityMatchingConfiguration and sets the default values. func NewEducationIdentityMatchingConfiguration()(*EducationIdentityMatchingConfiguration) { m := &EducationIdentityMatchingConfiguration{ EducationIdentitySynchronizationConfiguration: *NewEducationIdentitySynchronizationConfiguration(), diff --git a/models/education_identity_matching_options.go b/models/education_identity_matching_options.go index 7d749397ddd..7a25a379b00 100644 --- a/models/education_identity_matching_options.go +++ b/models/education_identity_matching_options.go @@ -10,7 +10,7 @@ type EducationIdentityMatchingOptions struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEducationIdentityMatchingOptions instantiates a new EducationIdentityMatchingOptions and sets the default values. +// NewEducationIdentityMatchingOptions instantiates a new educationIdentityMatchingOptions and sets the default values. func NewEducationIdentityMatchingOptions()(*EducationIdentityMatchingOptions) { m := &EducationIdentityMatchingOptions{ } diff --git a/models/education_identity_synchronization_configuration.go b/models/education_identity_synchronization_configuration.go index 5dec174e450..6b42004b2d8 100644 --- a/models/education_identity_synchronization_configuration.go +++ b/models/education_identity_synchronization_configuration.go @@ -10,7 +10,7 @@ type EducationIdentitySynchronizationConfiguration struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEducationIdentitySynchronizationConfiguration instantiates a new EducationIdentitySynchronizationConfiguration and sets the default values. +// NewEducationIdentitySynchronizationConfiguration instantiates a new educationIdentitySynchronizationConfiguration and sets the default values. func NewEducationIdentitySynchronizationConfiguration()(*EducationIdentitySynchronizationConfiguration) { m := &EducationIdentitySynchronizationConfiguration{ } diff --git a/models/education_link_resource.go b/models/education_link_resource.go index a870fabb564..d4cb002b1ba 100644 --- a/models/education_link_resource.go +++ b/models/education_link_resource.go @@ -8,7 +8,7 @@ import ( type EducationLinkResource struct { EducationResource } -// NewEducationLinkResource instantiates a new EducationLinkResource and sets the default values. +// NewEducationLinkResource instantiates a new educationLinkResource and sets the default values. func NewEducationLinkResource()(*EducationLinkResource) { m := &EducationLinkResource{ EducationResource: *NewEducationResource(), @@ -34,6 +34,16 @@ func (m *EducationLinkResource) GetFieldDeserializers()(map[string]func(i878a80d } 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 } // GetLink gets the link property value. URL to the resource. @@ -47,6 +57,17 @@ func (m *EducationLinkResource) GetLink()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EducationLinkResource) 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 *EducationLinkResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EducationResource.Serialize(writer) @@ -59,6 +80,12 @@ func (m *EducationLinkResource) Serialize(writer i878a80d2330e89d26896388a3f487e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetLink sets the link property value. URL to the resource. @@ -68,10 +95,19 @@ func (m *EducationLinkResource) SetLink(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EducationLinkResource) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // EducationLinkResourceable type EducationLinkResourceable interface { EducationResourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetLink()(*string) + GetOdataType()(*string) SetLink(value *string)() + SetOdataType(value *string)() } diff --git a/models/education_media_resource.go b/models/education_media_resource.go index cda7faf7388..ee873ef48a3 100644 --- a/models/education_media_resource.go +++ b/models/education_media_resource.go @@ -7,8 +7,10 @@ import ( // EducationMediaResource type EducationMediaResource struct { EducationResource + // The OdataType property + OdataType *string } -// NewEducationMediaResource instantiates a new EducationMediaResource and sets the default values. +// NewEducationMediaResource instantiates a new educationMediaResource and sets the default values. func NewEducationMediaResource()(*EducationMediaResource) { m := &EducationMediaResource{ EducationResource: *NewEducationResource(), diff --git a/models/education_one_roster_api_data_provider.go b/models/education_one_roster_api_data_provider.go index 3f9426dc9e5..7fb46541274 100644 --- a/models/education_one_roster_api_data_provider.go +++ b/models/education_one_roster_api_data_provider.go @@ -8,7 +8,7 @@ import ( type EducationOneRosterApiDataProvider struct { EducationSynchronizationDataProvider } -// NewEducationOneRosterApiDataProvider instantiates a new EducationOneRosterApiDataProvider and sets the default values. +// NewEducationOneRosterApiDataProvider instantiates a new educationOneRosterApiDataProvider and sets the default values. func NewEducationOneRosterApiDataProvider()(*EducationOneRosterApiDataProvider) { m := &EducationOneRosterApiDataProvider{ EducationSynchronizationDataProvider: *NewEducationSynchronizationDataProvider(), @@ -87,6 +87,16 @@ func (m *EducationOneRosterApiDataProvider) GetFieldDeserializers()(map[string]f } 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["providerName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -131,6 +141,17 @@ func (m *EducationOneRosterApiDataProvider) GetFieldDeserializers()(map[string]f } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EducationOneRosterApiDataProvider) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetProviderName gets the providerName property value. The OneRoster Service Provider name as defined by the [OneRoster specification][oneroster]. func (m *EducationOneRosterApiDataProvider) GetProviderName()(*string) { val, err := m.GetBackingStore().Get("providerName") @@ -188,6 +209,12 @@ func (m *EducationOneRosterApiDataProvider) Serialize(writer i878a80d2330e89d268 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("providerName", m.GetProviderName()) if err != nil { @@ -229,6 +256,13 @@ func (m *EducationOneRosterApiDataProvider) SetCustomizations(value EducationSyn panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EducationOneRosterApiDataProvider) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetProviderName sets the providerName property value. The OneRoster Service Provider name as defined by the [OneRoster specification][oneroster]. func (m *EducationOneRosterApiDataProvider) SetProviderName(value *string)() { err := m.GetBackingStore().Set("providerName", value) @@ -257,12 +291,14 @@ type EducationOneRosterApiDataProviderable interface { GetConnectionSettings()(EducationSynchronizationConnectionSettingsable) GetConnectionUrl()(*string) GetCustomizations()(EducationSynchronizationCustomizationsable) + GetOdataType()(*string) GetProviderName()(*string) GetSchoolsIds()([]string) GetTermIds()([]string) SetConnectionSettings(value EducationSynchronizationConnectionSettingsable)() SetConnectionUrl(value *string)() SetCustomizations(value EducationSynchronizationCustomizationsable)() + SetOdataType(value *string)() SetProviderName(value *string)() SetSchoolsIds(value []string)() SetTermIds(value []string)() diff --git a/models/education_organization.go b/models/education_organization.go index a00f61113d3..cc2cb16e9d9 100644 --- a/models/education_organization.go +++ b/models/education_organization.go @@ -7,6 +7,8 @@ import ( // EducationOrganization type EducationOrganization struct { Entity + // The OdataType property + OdataType *string } // NewEducationOrganization instantiates a new educationOrganization and sets the default values. func NewEducationOrganization()(*EducationOrganization) { diff --git a/models/education_outcome.go b/models/education_outcome.go index b5bc90f6b78..f9b04a259d3 100644 --- a/models/education_outcome.go +++ b/models/education_outcome.go @@ -8,6 +8,8 @@ import ( // EducationOutcome type EducationOutcome struct { Entity + // The OdataType property + OdataType *string } // NewEducationOutcome instantiates a new educationOutcome and sets the default values. func NewEducationOutcome()(*EducationOutcome) { diff --git a/models/education_outcome_collection_response.go b/models/education_outcome_collection_response.go index 7e010d1e1b1..6695aabbd4a 100644 --- a/models/education_outcome_collection_response.go +++ b/models/education_outcome_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationOutcomeCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationOutcomeCollectionResponse instantiates a new EducationOutcomeCollectionResponse and sets the default values. +// NewEducationOutcomeCollectionResponse instantiates a new educationOutcomeCollectionResponse and sets the default values. func NewEducationOutcomeCollectionResponse()(*EducationOutcomeCollectionResponse) { m := &EducationOutcomeCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_points_outcome.go b/models/education_points_outcome.go index bf491a9d9f2..9d2a5c3c90c 100644 --- a/models/education_points_outcome.go +++ b/models/education_points_outcome.go @@ -8,7 +8,7 @@ import ( type EducationPointsOutcome struct { EducationOutcome } -// NewEducationPointsOutcome instantiates a new EducationPointsOutcome and sets the default values. +// NewEducationPointsOutcome instantiates a new educationPointsOutcome and sets the default values. func NewEducationPointsOutcome()(*EducationPointsOutcome) { m := &EducationPointsOutcome{ EducationOutcome: *NewEducationOutcome(), diff --git a/models/education_power_point_resource.go b/models/education_power_point_resource.go index 9f5d13441d9..41f6039bc09 100644 --- a/models/education_power_point_resource.go +++ b/models/education_power_point_resource.go @@ -8,7 +8,7 @@ import ( type EducationPowerPointResource struct { EducationResource } -// NewEducationPowerPointResource instantiates a new EducationPowerPointResource and sets the default values. +// NewEducationPowerPointResource instantiates a new educationPowerPointResource and sets the default values. func NewEducationPowerPointResource()(*EducationPowerPointResource) { m := &EducationPowerPointResource{ EducationResource: *NewEducationResource(), @@ -34,6 +34,16 @@ func (m *EducationPowerPointResource) GetFieldDeserializers()(map[string]func(i8 } 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 } // GetFileUrl gets the fileUrl property value. Location of the file on disk. @@ -47,6 +57,17 @@ func (m *EducationPowerPointResource) GetFileUrl()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EducationPowerPointResource) 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 *EducationPowerPointResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EducationResource.Serialize(writer) @@ -59,6 +80,12 @@ func (m *EducationPowerPointResource) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetFileUrl sets the fileUrl property value. Location of the file on disk. @@ -68,10 +95,19 @@ func (m *EducationPowerPointResource) SetFileUrl(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EducationPowerPointResource) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // EducationPowerPointResourceable type EducationPowerPointResourceable interface { EducationResourceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetFileUrl()(*string) + GetOdataType()(*string) SetFileUrl(value *string)() + SetOdataType(value *string)() } diff --git a/models/education_power_school_data_provider.go b/models/education_power_school_data_provider.go index eebc73b02d5..ef7bd83285b 100644 --- a/models/education_power_school_data_provider.go +++ b/models/education_power_school_data_provider.go @@ -8,7 +8,7 @@ import ( type EducationPowerSchoolDataProvider struct { EducationSynchronizationDataProvider } -// NewEducationPowerSchoolDataProvider instantiates a new EducationPowerSchoolDataProvider and sets the default values. +// NewEducationPowerSchoolDataProvider instantiates a new educationPowerSchoolDataProvider and sets the default values. func NewEducationPowerSchoolDataProvider()(*EducationPowerSchoolDataProvider) { m := &EducationPowerSchoolDataProvider{ EducationSynchronizationDataProvider: *NewEducationSynchronizationDataProvider(), @@ -129,6 +129,16 @@ func (m *EducationPowerSchoolDataProvider) GetFieldDeserializers()(map[string]fu } 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["schoolsIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -157,6 +167,17 @@ func (m *EducationPowerSchoolDataProvider) GetFieldDeserializers()(map[string]fu } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EducationPowerSchoolDataProvider) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSchoolsIds gets the schoolsIds property value. The list of schools to sync. func (m *EducationPowerSchoolDataProvider) GetSchoolsIds()([]string) { val, err := m.GetBackingStore().Get("schoolsIds") @@ -215,6 +236,12 @@ func (m *EducationPowerSchoolDataProvider) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetSchoolsIds() != nil { err = writer.WriteCollectionOfStringValues("schoolsIds", m.GetSchoolsIds()) if err != nil { @@ -264,6 +291,13 @@ func (m *EducationPowerSchoolDataProvider) SetCustomizations(value EducationSync panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EducationPowerSchoolDataProvider) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSchoolsIds sets the schoolsIds property value. The list of schools to sync. func (m *EducationPowerSchoolDataProvider) SetSchoolsIds(value []string)() { err := m.GetBackingStore().Set("schoolsIds", value) @@ -287,6 +321,7 @@ type EducationPowerSchoolDataProviderable interface { GetClientSecret()(*string) GetConnectionUrl()(*string) GetCustomizations()(EducationSynchronizationCustomizationsable) + GetOdataType()(*string) GetSchoolsIds()([]string) GetSchoolYear()(*string) SetAllowTeachersInMultipleSchools(value *bool)() @@ -294,6 +329,7 @@ type EducationPowerSchoolDataProviderable interface { SetClientSecret(value *string)() SetConnectionUrl(value *string)() SetCustomizations(value EducationSynchronizationCustomizationsable)() + SetOdataType(value *string)() SetSchoolsIds(value []string)() SetSchoolYear(value *string)() } diff --git a/models/education_root.go b/models/education_root.go index c7533c85aae..b4b8127922e 100644 --- a/models/education_root.go +++ b/models/education_root.go @@ -10,7 +10,7 @@ type EducationRoot struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEducationRoot instantiates a new EducationRoot and sets the default values. +// NewEducationRoot instantiates a new educationRoot and sets the default values. func NewEducationRoot()(*EducationRoot) { m := &EducationRoot{ } diff --git a/models/education_rubric.go b/models/education_rubric.go index 48c956f64a7..018e1d817ef 100644 --- a/models/education_rubric.go +++ b/models/education_rubric.go @@ -8,6 +8,8 @@ import ( // EducationRubric type EducationRubric struct { Entity + // The OdataType property + OdataType *string } // NewEducationRubric instantiates a new educationRubric and sets the default values. func NewEducationRubric()(*EducationRubric) { diff --git a/models/education_rubric_collection_response.go b/models/education_rubric_collection_response.go index c4d9b0f6161..d366abfae8a 100644 --- a/models/education_rubric_collection_response.go +++ b/models/education_rubric_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationRubricCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationRubricCollectionResponse instantiates a new EducationRubricCollectionResponse and sets the default values. +// NewEducationRubricCollectionResponse instantiates a new educationRubricCollectionResponse and sets the default values. func NewEducationRubricCollectionResponse()(*EducationRubricCollectionResponse) { m := &EducationRubricCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_rubric_outcome.go b/models/education_rubric_outcome.go index 88c57ea421b..3f102735b65 100644 --- a/models/education_rubric_outcome.go +++ b/models/education_rubric_outcome.go @@ -8,7 +8,7 @@ import ( type EducationRubricOutcome struct { EducationOutcome } -// NewEducationRubricOutcome instantiates a new EducationRubricOutcome and sets the default values. +// NewEducationRubricOutcome instantiates a new educationRubricOutcome and sets the default values. func NewEducationRubricOutcome()(*EducationRubricOutcome) { m := &EducationRubricOutcome{ EducationOutcome: *NewEducationOutcome(), diff --git a/models/education_school.go b/models/education_school.go index aeb840abeff..fa5172ad4a8 100644 --- a/models/education_school.go +++ b/models/education_school.go @@ -8,7 +8,7 @@ import ( type EducationSchool struct { EducationOrganization } -// NewEducationSchool instantiates a new EducationSchool and sets the default values. +// NewEducationSchool instantiates a new educationSchool and sets the default values. func NewEducationSchool()(*EducationSchool) { m := &EducationSchool{ EducationOrganization: *NewEducationOrganization(), diff --git a/models/education_school_collection_response.go b/models/education_school_collection_response.go index 5a89c56c828..015414576dc 100644 --- a/models/education_school_collection_response.go +++ b/models/education_school_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationSchoolCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationSchoolCollectionResponse instantiates a new EducationSchoolCollectionResponse and sets the default values. +// NewEducationSchoolCollectionResponse instantiates a new educationSchoolCollectionResponse and sets the default values. func NewEducationSchoolCollectionResponse()(*EducationSchoolCollectionResponse) { m := &EducationSchoolCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_submission.go b/models/education_submission.go index 1e58005ef3f..925f32f935a 100644 --- a/models/education_submission.go +++ b/models/education_submission.go @@ -8,6 +8,8 @@ import ( // EducationSubmission type EducationSubmission struct { Entity + // The OdataType property + OdataType *string } // NewEducationSubmission instantiates a new educationSubmission and sets the default values. func NewEducationSubmission()(*EducationSubmission) { diff --git a/models/education_submission_collection_response.go b/models/education_submission_collection_response.go index 496ad1caa6c..8a916d3f71d 100644 --- a/models/education_submission_collection_response.go +++ b/models/education_submission_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationSubmissionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationSubmissionCollectionResponse instantiates a new EducationSubmissionCollectionResponse and sets the default values. +// NewEducationSubmissionCollectionResponse instantiates a new educationSubmissionCollectionResponse and sets the default values. func NewEducationSubmissionCollectionResponse()(*EducationSubmissionCollectionResponse) { m := &EducationSubmissionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_submission_individual_recipient.go b/models/education_submission_individual_recipient.go index a77da46befb..2f61c802bf7 100644 --- a/models/education_submission_individual_recipient.go +++ b/models/education_submission_individual_recipient.go @@ -8,7 +8,7 @@ import ( type EducationSubmissionIndividualRecipient struct { EducationSubmissionRecipient } -// NewEducationSubmissionIndividualRecipient instantiates a new EducationSubmissionIndividualRecipient and sets the default values. +// NewEducationSubmissionIndividualRecipient instantiates a new educationSubmissionIndividualRecipient and sets the default values. func NewEducationSubmissionIndividualRecipient()(*EducationSubmissionIndividualRecipient) { m := &EducationSubmissionIndividualRecipient{ EducationSubmissionRecipient: *NewEducationSubmissionRecipient(), @@ -24,6 +24,16 @@ func CreateEducationSubmissionIndividualRecipientFromDiscriminatorValue(parseNod // GetFieldDeserializers the deserialization information for the current model func (m *EducationSubmissionIndividualRecipient) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.EducationSubmissionRecipient.GetFieldDeserializers() + 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["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,6 +46,17 @@ func (m *EducationSubmissionIndividualRecipient) GetFieldDeserializers()(map[str } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EducationSubmissionIndividualRecipient) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUserId gets the userId property value. User ID of the user to whom the submission is assigned. func (m *EducationSubmissionIndividualRecipient) GetUserId()(*string) { val, err := m.GetBackingStore().Get("userId") @@ -53,6 +74,12 @@ func (m *EducationSubmissionIndividualRecipient) Serialize(writer i878a80d2330e8 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("userId", m.GetUserId()) if err != nil { @@ -61,6 +88,13 @@ func (m *EducationSubmissionIndividualRecipient) Serialize(writer i878a80d2330e8 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EducationSubmissionIndividualRecipient) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUserId sets the userId property value. User ID of the user to whom the submission is assigned. func (m *EducationSubmissionIndividualRecipient) SetUserId(value *string)() { err := m.GetBackingStore().Set("userId", value) @@ -72,6 +106,8 @@ func (m *EducationSubmissionIndividualRecipient) SetUserId(value *string)() { type EducationSubmissionIndividualRecipientable interface { EducationSubmissionRecipientable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUserId()(*string) + SetOdataType(value *string)() SetUserId(value *string)() } diff --git a/models/education_submission_resource.go b/models/education_submission_resource.go index 692e36f0ecc..e7545c9c3cb 100644 --- a/models/education_submission_resource.go +++ b/models/education_submission_resource.go @@ -7,6 +7,8 @@ import ( // EducationSubmissionResource type EducationSubmissionResource struct { Entity + // The OdataType property + OdataType *string } // NewEducationSubmissionResource instantiates a new educationSubmissionResource and sets the default values. func NewEducationSubmissionResource()(*EducationSubmissionResource) { diff --git a/models/education_submission_resource_collection_response.go b/models/education_submission_resource_collection_response.go index 5782a11bbe8..cc1a15d7ca9 100644 --- a/models/education_submission_resource_collection_response.go +++ b/models/education_submission_resource_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationSubmissionResourceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationSubmissionResourceCollectionResponse instantiates a new EducationSubmissionResourceCollectionResponse and sets the default values. +// NewEducationSubmissionResourceCollectionResponse instantiates a new educationSubmissionResourceCollectionResponse and sets the default values. func NewEducationSubmissionResourceCollectionResponse()(*EducationSubmissionResourceCollectionResponse) { m := &EducationSubmissionResourceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_synchronization_connection_settings.go b/models/education_synchronization_connection_settings.go index 18701de3480..e6cdfa7d0a6 100644 --- a/models/education_synchronization_connection_settings.go +++ b/models/education_synchronization_connection_settings.go @@ -10,7 +10,7 @@ type EducationSynchronizationConnectionSettings struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEducationSynchronizationConnectionSettings instantiates a new EducationSynchronizationConnectionSettings and sets the default values. +// NewEducationSynchronizationConnectionSettings instantiates a new educationSynchronizationConnectionSettings and sets the default values. func NewEducationSynchronizationConnectionSettings()(*EducationSynchronizationConnectionSettings) { m := &EducationSynchronizationConnectionSettings{ } diff --git a/models/education_synchronization_customizations.go b/models/education_synchronization_customizations.go index f25290f7777..81868399905 100644 --- a/models/education_synchronization_customizations.go +++ b/models/education_synchronization_customizations.go @@ -8,7 +8,7 @@ import ( type EducationSynchronizationCustomizations struct { EducationSynchronizationCustomizationsBase } -// NewEducationSynchronizationCustomizations instantiates a new EducationSynchronizationCustomizations and sets the default values. +// NewEducationSynchronizationCustomizations instantiates a new educationSynchronizationCustomizations and sets the default values. func NewEducationSynchronizationCustomizations()(*EducationSynchronizationCustomizations) { m := &EducationSynchronizationCustomizations{ EducationSynchronizationCustomizationsBase: *NewEducationSynchronizationCustomizationsBase(), @@ -24,6 +24,16 @@ func CreateEducationSynchronizationCustomizationsFromDiscriminatorValue(parseNod // GetFieldDeserializers the deserialization information for the current model func (m *EducationSynchronizationCustomizations) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.EducationSynchronizationCustomizationsBase.GetFieldDeserializers() + 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["school"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateEducationSynchronizationCustomizationFromDiscriminatorValue) if err != nil { @@ -86,6 +96,17 @@ func (m *EducationSynchronizationCustomizations) GetFieldDeserializers()(map[str } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EducationSynchronizationCustomizations) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSchool gets the school property value. Customizations for School entities. func (m *EducationSynchronizationCustomizations) GetSchool()(EducationSynchronizationCustomizationable) { val, err := m.GetBackingStore().Get("school") @@ -158,6 +179,12 @@ func (m *EducationSynchronizationCustomizations) Serialize(writer i878a80d2330e8 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("school", m.GetSchool()) if err != nil { @@ -196,6 +223,13 @@ func (m *EducationSynchronizationCustomizations) Serialize(writer i878a80d2330e8 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EducationSynchronizationCustomizations) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSchool sets the school property value. Customizations for School entities. func (m *EducationSynchronizationCustomizations) SetSchool(value EducationSynchronizationCustomizationable)() { err := m.GetBackingStore().Set("school", value) @@ -242,12 +276,14 @@ func (m *EducationSynchronizationCustomizations) SetTeacherRoster(value Educatio type EducationSynchronizationCustomizationsable interface { EducationSynchronizationCustomizationsBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetSchool()(EducationSynchronizationCustomizationable) GetSection()(EducationSynchronizationCustomizationable) GetStudent()(EducationSynchronizationCustomizationable) GetStudentEnrollment()(EducationSynchronizationCustomizationable) GetTeacher()(EducationSynchronizationCustomizationable) GetTeacherRoster()(EducationSynchronizationCustomizationable) + SetOdataType(value *string)() SetSchool(value EducationSynchronizationCustomizationable)() SetSection(value EducationSynchronizationCustomizationable)() SetStudent(value EducationSynchronizationCustomizationable)() diff --git a/models/education_synchronization_data_provider.go b/models/education_synchronization_data_provider.go index aa3345d27ea..fc7c12de8e0 100644 --- a/models/education_synchronization_data_provider.go +++ b/models/education_synchronization_data_provider.go @@ -10,7 +10,7 @@ type EducationSynchronizationDataProvider struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEducationSynchronizationDataProvider instantiates a new EducationSynchronizationDataProvider and sets the default values. +// NewEducationSynchronizationDataProvider instantiates a new educationSynchronizationDataProvider and sets the default values. func NewEducationSynchronizationDataProvider()(*EducationSynchronizationDataProvider) { m := &EducationSynchronizationDataProvider{ } diff --git a/models/education_synchronization_error.go b/models/education_synchronization_error.go index 061c91143df..e3ba7b63f45 100644 --- a/models/education_synchronization_error.go +++ b/models/education_synchronization_error.go @@ -8,6 +8,8 @@ import ( // EducationSynchronizationError type EducationSynchronizationError struct { Entity + // The OdataType property + OdataType *string } // NewEducationSynchronizationError instantiates a new educationSynchronizationError and sets the default values. func NewEducationSynchronizationError()(*EducationSynchronizationError) { diff --git a/models/education_synchronization_error_collection_response.go b/models/education_synchronization_error_collection_response.go index 33eee5dff68..369e1df9b36 100644 --- a/models/education_synchronization_error_collection_response.go +++ b/models/education_synchronization_error_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationSynchronizationErrorCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationSynchronizationErrorCollectionResponse instantiates a new EducationSynchronizationErrorCollectionResponse and sets the default values. +// NewEducationSynchronizationErrorCollectionResponse instantiates a new educationSynchronizationErrorCollectionResponse and sets the default values. func NewEducationSynchronizationErrorCollectionResponse()(*EducationSynchronizationErrorCollectionResponse) { m := &EducationSynchronizationErrorCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_synchronization_license_assignment.go b/models/education_synchronization_license_assignment.go index e6aa814a9ae..5993ace3c6e 100644 --- a/models/education_synchronization_license_assignment.go +++ b/models/education_synchronization_license_assignment.go @@ -10,7 +10,7 @@ type EducationSynchronizationLicenseAssignment struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEducationSynchronizationLicenseAssignment instantiates a new EducationSynchronizationLicenseAssignment and sets the default values. +// NewEducationSynchronizationLicenseAssignment instantiates a new educationSynchronizationLicenseAssignment and sets the default values. func NewEducationSynchronizationLicenseAssignment()(*EducationSynchronizationLicenseAssignment) { m := &EducationSynchronizationLicenseAssignment{ } diff --git a/models/education_synchronization_o_auth1_connection_settings.go b/models/education_synchronization_o_auth1_connection_settings.go index 75d66f29e9e..927e2ecb143 100644 --- a/models/education_synchronization_o_auth1_connection_settings.go +++ b/models/education_synchronization_o_auth1_connection_settings.go @@ -7,8 +7,10 @@ import ( // EducationSynchronizationOAuth1ConnectionSettings type EducationSynchronizationOAuth1ConnectionSettings struct { EducationSynchronizationConnectionSettings + // The OdataType property + OdataType *string } -// NewEducationSynchronizationOAuth1ConnectionSettings instantiates a new EducationSynchronizationOAuth1ConnectionSettings and sets the default values. +// NewEducationSynchronizationOAuth1ConnectionSettings instantiates a new educationSynchronizationOAuth1ConnectionSettings and sets the default values. func NewEducationSynchronizationOAuth1ConnectionSettings()(*EducationSynchronizationOAuth1ConnectionSettings) { m := &EducationSynchronizationOAuth1ConnectionSettings{ EducationSynchronizationConnectionSettings: *NewEducationSynchronizationConnectionSettings(), diff --git a/models/education_synchronization_o_auth2_client_credentials_connection_settings.go b/models/education_synchronization_o_auth2_client_credentials_connection_settings.go index 388e632980f..6e050066734 100644 --- a/models/education_synchronization_o_auth2_client_credentials_connection_settings.go +++ b/models/education_synchronization_o_auth2_client_credentials_connection_settings.go @@ -7,8 +7,10 @@ import ( // EducationSynchronizationOAuth2ClientCredentialsConnectionSettings type EducationSynchronizationOAuth2ClientCredentialsConnectionSettings struct { EducationSynchronizationConnectionSettings + // The OdataType property + OdataType *string } -// NewEducationSynchronizationOAuth2ClientCredentialsConnectionSettings instantiates a new EducationSynchronizationOAuth2ClientCredentialsConnectionSettings and sets the default values. +// NewEducationSynchronizationOAuth2ClientCredentialsConnectionSettings instantiates a new educationSynchronizationOAuth2ClientCredentialsConnectionSettings and sets the default values. func NewEducationSynchronizationOAuth2ClientCredentialsConnectionSettings()(*EducationSynchronizationOAuth2ClientCredentialsConnectionSettings) { m := &EducationSynchronizationOAuth2ClientCredentialsConnectionSettings{ EducationSynchronizationConnectionSettings: *NewEducationSynchronizationConnectionSettings(), diff --git a/models/education_synchronization_profile.go b/models/education_synchronization_profile.go index f482a667638..55a63490a3d 100644 --- a/models/education_synchronization_profile.go +++ b/models/education_synchronization_profile.go @@ -7,8 +7,10 @@ import ( // EducationSynchronizationProfile type EducationSynchronizationProfile struct { Entity + // The OdataType property + OdataType *string } -// NewEducationSynchronizationProfile instantiates a new EducationSynchronizationProfile and sets the default values. +// NewEducationSynchronizationProfile instantiates a new educationSynchronizationProfile and sets the default values. func NewEducationSynchronizationProfile()(*EducationSynchronizationProfile) { m := &EducationSynchronizationProfile{ Entity: *NewEntity(), diff --git a/models/education_synchronization_profile_collection_response.go b/models/education_synchronization_profile_collection_response.go index 32443210fd8..d063553a5dd 100644 --- a/models/education_synchronization_profile_collection_response.go +++ b/models/education_synchronization_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationSynchronizationProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationSynchronizationProfileCollectionResponse instantiates a new EducationSynchronizationProfileCollectionResponse and sets the default values. +// NewEducationSynchronizationProfileCollectionResponse instantiates a new educationSynchronizationProfileCollectionResponse and sets the default values. func NewEducationSynchronizationProfileCollectionResponse()(*EducationSynchronizationProfileCollectionResponse) { m := &EducationSynchronizationProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_synchronization_profile_status.go b/models/education_synchronization_profile_status.go index aa8989813c2..3ad81a0a663 100644 --- a/models/education_synchronization_profile_status.go +++ b/models/education_synchronization_profile_status.go @@ -8,6 +8,8 @@ import ( // EducationSynchronizationProfileStatus type EducationSynchronizationProfileStatus struct { Entity + // The OdataType property + OdataType *string } // NewEducationSynchronizationProfileStatus instantiates a new educationSynchronizationProfileStatus and sets the default values. func NewEducationSynchronizationProfileStatus()(*EducationSynchronizationProfileStatus) { diff --git a/models/education_teams_app_resource.go b/models/education_teams_app_resource.go index ac5cc3d63ba..d62a09ed344 100644 --- a/models/education_teams_app_resource.go +++ b/models/education_teams_app_resource.go @@ -7,8 +7,10 @@ import ( // EducationTeamsAppResource type EducationTeamsAppResource struct { EducationResource + // The OdataType property + OdataType *string } -// NewEducationTeamsAppResource instantiates a new EducationTeamsAppResource and sets the default values. +// NewEducationTeamsAppResource instantiates a new educationTeamsAppResource and sets the default values. func NewEducationTeamsAppResource()(*EducationTeamsAppResource) { m := &EducationTeamsAppResource{ EducationResource: *NewEducationResource(), diff --git a/models/education_user.go b/models/education_user.go index 322d8fff85e..eb225b1f100 100644 --- a/models/education_user.go +++ b/models/education_user.go @@ -8,6 +8,8 @@ import ( // EducationUser type EducationUser struct { Entity + // The OdataType property + OdataType *string } // NewEducationUser instantiates a new educationUser and sets the default values. func NewEducationUser()(*EducationUser) { diff --git a/models/education_user_collection_response.go b/models/education_user_collection_response.go index e389f9d6a9e..56ab231362b 100644 --- a/models/education_user_collection_response.go +++ b/models/education_user_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationUserCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationUserCollectionResponse instantiates a new EducationUserCollectionResponse and sets the default values. +// NewEducationUserCollectionResponse instantiates a new educationUserCollectionResponse and sets the default values. func NewEducationUserCollectionResponse()(*EducationUserCollectionResponse) { m := &EducationUserCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/education_word_resource.go b/models/education_word_resource.go index b0321ff9d8e..1e8e6ed8eb4 100644 --- a/models/education_word_resource.go +++ b/models/education_word_resource.go @@ -7,8 +7,10 @@ import ( // EducationWordResource type EducationWordResource struct { EducationResource + // The OdataType property + OdataType *string } -// NewEducationWordResource instantiates a new EducationWordResource and sets the default values. +// NewEducationWordResource instantiates a new educationWordResource and sets the default values. func NewEducationWordResource()(*EducationWordResource) { m := &EducationWordResource{ EducationResource: *NewEducationResource(), diff --git a/models/educational_activity.go b/models/educational_activity.go index 708422813cf..61288bf4bd7 100644 --- a/models/educational_activity.go +++ b/models/educational_activity.go @@ -8,7 +8,7 @@ import ( type EducationalActivity struct { ItemFacet } -// NewEducationalActivity instantiates a new EducationalActivity and sets the default values. +// NewEducationalActivity instantiates a new educationalActivity and sets the default values. func NewEducationalActivity()(*EducationalActivity) { m := &EducationalActivity{ ItemFacet: *NewItemFacet(), diff --git a/models/educational_activity_collection_response.go b/models/educational_activity_collection_response.go index 60aa22cc498..ff93369c5cf 100644 --- a/models/educational_activity_collection_response.go +++ b/models/educational_activity_collection_response.go @@ -8,7 +8,7 @@ import ( type EducationalActivityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEducationalActivityCollectionResponse instantiates a new EducationalActivityCollectionResponse and sets the default values. +// NewEducationalActivityCollectionResponse instantiates a new educationalActivityCollectionResponse and sets the default values. func NewEducationalActivityCollectionResponse()(*EducationalActivityCollectionResponse) { m := &EducationalActivityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/educational_activity_detail.go b/models/educational_activity_detail.go index f211fb6c9cc..e69a39f712e 100644 --- a/models/educational_activity_detail.go +++ b/models/educational_activity_detail.go @@ -10,7 +10,7 @@ type EducationalActivityDetail struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEducationalActivityDetail instantiates a new EducationalActivityDetail and sets the default values. +// NewEducationalActivityDetail instantiates a new educationalActivityDetail and sets the default values. func NewEducationalActivityDetail()(*EducationalActivityDetail) { m := &EducationalActivityDetail{ } diff --git a/models/email_activity_statistics.go b/models/email_activity_statistics.go index 03971845fa1..ff8c84646c7 100644 --- a/models/email_activity_statistics.go +++ b/models/email_activity_statistics.go @@ -7,8 +7,10 @@ import ( // EmailActivityStatistics type EmailActivityStatistics struct { ActivityStatistics + // The OdataType property + OdataType *string } -// NewEmailActivityStatistics instantiates a new EmailActivityStatistics and sets the default values. +// NewEmailActivityStatistics instantiates a new emailActivityStatistics and sets the default values. func NewEmailActivityStatistics()(*EmailActivityStatistics) { m := &EmailActivityStatistics{ ActivityStatistics: *NewActivityStatistics(), diff --git a/models/email_authentication_method.go b/models/email_authentication_method.go index f805125c0d5..0a788a73992 100644 --- a/models/email_authentication_method.go +++ b/models/email_authentication_method.go @@ -8,7 +8,7 @@ import ( type EmailAuthenticationMethod struct { AuthenticationMethod } -// NewEmailAuthenticationMethod instantiates a new EmailAuthenticationMethod and sets the default values. +// NewEmailAuthenticationMethod instantiates a new emailAuthenticationMethod and sets the default values. func NewEmailAuthenticationMethod()(*EmailAuthenticationMethod) { m := &EmailAuthenticationMethod{ AuthenticationMethod: *NewAuthenticationMethod(), diff --git a/models/email_authentication_method_collection_response.go b/models/email_authentication_method_collection_response.go index 69f11d6d946..b435ef467ce 100644 --- a/models/email_authentication_method_collection_response.go +++ b/models/email_authentication_method_collection_response.go @@ -8,7 +8,7 @@ import ( type EmailAuthenticationMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEmailAuthenticationMethodCollectionResponse instantiates a new EmailAuthenticationMethodCollectionResponse and sets the default values. +// NewEmailAuthenticationMethodCollectionResponse instantiates a new emailAuthenticationMethodCollectionResponse and sets the default values. func NewEmailAuthenticationMethodCollectionResponse()(*EmailAuthenticationMethodCollectionResponse) { m := &EmailAuthenticationMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/email_authentication_method_configuration.go b/models/email_authentication_method_configuration.go index e69a54d27a4..304f4bc9a64 100644 --- a/models/email_authentication_method_configuration.go +++ b/models/email_authentication_method_configuration.go @@ -8,7 +8,7 @@ import ( type EmailAuthenticationMethodConfiguration struct { AuthenticationMethodConfiguration } -// NewEmailAuthenticationMethodConfiguration instantiates a new EmailAuthenticationMethodConfiguration and sets the default values. +// NewEmailAuthenticationMethodConfiguration instantiates a new emailAuthenticationMethodConfiguration and sets the default values. func NewEmailAuthenticationMethodConfiguration()(*EmailAuthenticationMethodConfiguration) { m := &EmailAuthenticationMethodConfiguration{ AuthenticationMethodConfiguration: *NewAuthenticationMethodConfiguration(), diff --git a/models/email_file_assessment_request.go b/models/email_file_assessment_request.go index d224018a8bd..c131bb0ff2c 100644 --- a/models/email_file_assessment_request.go +++ b/models/email_file_assessment_request.go @@ -8,7 +8,7 @@ import ( type EmailFileAssessmentRequest struct { ThreatAssessmentRequest } -// NewEmailFileAssessmentRequest instantiates a new EmailFileAssessmentRequest and sets the default values. +// NewEmailFileAssessmentRequest instantiates a new emailFileAssessmentRequest and sets the default values. func NewEmailFileAssessmentRequest()(*EmailFileAssessmentRequest) { m := &EmailFileAssessmentRequest{ ThreatAssessmentRequest: *NewThreatAssessmentRequest(), diff --git a/models/email_identity.go b/models/email_identity.go index 1eefbe5bedf..2e333feda70 100644 --- a/models/email_identity.go +++ b/models/email_identity.go @@ -8,7 +8,7 @@ import ( type EmailIdentity struct { Identity } -// NewEmailIdentity instantiates a new EmailIdentity and sets the default values. +// NewEmailIdentity instantiates a new emailIdentity and sets the default values. func NewEmailIdentity()(*EmailIdentity) { m := &EmailIdentity{ Identity: *NewIdentity(), @@ -45,8 +45,29 @@ func (m *EmailIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EmailIdentity) 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 *EmailIdentity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Identity.Serialize(writer) @@ -59,6 +80,12 @@ func (m *EmailIdentity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetEmail sets the email property value. Email address of the user. @@ -68,10 +95,19 @@ func (m *EmailIdentity) SetEmail(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EmailIdentity) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // EmailIdentityable type EmailIdentityable interface { Identityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEmail()(*string) + GetOdataType()(*string) SetEmail(value *string)() + SetOdataType(value *string)() } diff --git a/models/email_payload_detail.go b/models/email_payload_detail.go index 711598f938a..e489c2a9674 100644 --- a/models/email_payload_detail.go +++ b/models/email_payload_detail.go @@ -8,7 +8,7 @@ import ( type EmailPayloadDetail struct { PayloadDetail } -// NewEmailPayloadDetail instantiates a new EmailPayloadDetail and sets the default values. +// NewEmailPayloadDetail instantiates a new emailPayloadDetail and sets the default values. func NewEmailPayloadDetail()(*EmailPayloadDetail) { m := &EmailPayloadDetail{ PayloadDetail: *NewPayloadDetail(), @@ -54,6 +54,16 @@ func (m *EmailPayloadDetail) GetFieldDeserializers()(map[string]func(i878a80d233 } 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["subject"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -99,6 +109,17 @@ func (m *EmailPayloadDetail) GetIsExternalSender()(*bool) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EmailPayloadDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSubject gets the subject property value. The subject of the email address sent to the user. func (m *EmailPayloadDetail) GetSubject()(*string) { val, err := m.GetBackingStore().Get("subject") @@ -134,6 +155,12 @@ func (m *EmailPayloadDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("subject", m.GetSubject()) if err != nil { @@ -163,6 +190,13 @@ func (m *EmailPayloadDetail) SetIsExternalSender(value *bool)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EmailPayloadDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSubject sets the subject property value. The subject of the email address sent to the user. func (m *EmailPayloadDetail) SetSubject(value *string)() { err := m.GetBackingStore().Set("subject", value) @@ -177,9 +211,11 @@ type EmailPayloadDetailable interface { GetFromEmail()(*string) GetFromName()(*string) GetIsExternalSender()(*bool) + GetOdataType()(*string) GetSubject()(*string) SetFromEmail(value *string)() SetFromName(value *string)() SetIsExternalSender(value *bool)() + SetOdataType(value *string)() SetSubject(value *string)() } diff --git a/models/email_settings.go b/models/email_settings.go index a4a7992bd9b..00a7524dc72 100644 --- a/models/email_settings.go +++ b/models/email_settings.go @@ -10,7 +10,7 @@ type EmailSettings struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEmailSettings instantiates a new EmailSettings and sets the default values. +// NewEmailSettings instantiates a new emailSettings and sets the default values. func NewEmailSettings()(*EmailSettings) { m := &EmailSettings{ } diff --git a/models/embedded_s_i_m_activation_code.go b/models/embedded_s_i_m_activation_code.go index 0531fed27b8..dcbdec23b2a 100644 --- a/models/embedded_s_i_m_activation_code.go +++ b/models/embedded_s_i_m_activation_code.go @@ -10,7 +10,7 @@ type EmbeddedSIMActivationCode struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEmbeddedSIMActivationCode instantiates a new EmbeddedSIMActivationCode and sets the default values. +// NewEmbeddedSIMActivationCode instantiates a new embeddedSIMActivationCode and sets the default values. func NewEmbeddedSIMActivationCode()(*EmbeddedSIMActivationCode) { m := &EmbeddedSIMActivationCode{ } diff --git a/models/embedded_s_i_m_activation_code_pool.go b/models/embedded_s_i_m_activation_code_pool.go index 25aad006dc7..96f28166f73 100644 --- a/models/embedded_s_i_m_activation_code_pool.go +++ b/models/embedded_s_i_m_activation_code_pool.go @@ -8,6 +8,8 @@ import ( // EmbeddedSIMActivationCodePool a pool represents a group of embedded SIM activation codes. type EmbeddedSIMActivationCodePool struct { Entity + // The OdataType property + OdataType *string } // NewEmbeddedSIMActivationCodePool instantiates a new embeddedSIMActivationCodePool and sets the default values. func NewEmbeddedSIMActivationCodePool()(*EmbeddedSIMActivationCodePool) { diff --git a/models/embedded_s_i_m_activation_code_pool_assignment.go b/models/embedded_s_i_m_activation_code_pool_assignment.go index 8cb180025bb..7b21dec2a3d 100644 --- a/models/embedded_s_i_m_activation_code_pool_assignment.go +++ b/models/embedded_s_i_m_activation_code_pool_assignment.go @@ -7,6 +7,8 @@ import ( // EmbeddedSIMActivationCodePoolAssignment the embedded SIM activation code pool assignment entity assigns a specific embeddedSIMActivationCodePool to an AAD device group. type EmbeddedSIMActivationCodePoolAssignment struct { Entity + // The OdataType property + OdataType *string } // NewEmbeddedSIMActivationCodePoolAssignment instantiates a new embeddedSIMActivationCodePoolAssignment and sets the default values. func NewEmbeddedSIMActivationCodePoolAssignment()(*EmbeddedSIMActivationCodePoolAssignment) { diff --git a/models/embedded_s_i_m_activation_code_pool_assignment_collection_response.go b/models/embedded_s_i_m_activation_code_pool_assignment_collection_response.go index 5290cc43775..6702ac92b16 100644 --- a/models/embedded_s_i_m_activation_code_pool_assignment_collection_response.go +++ b/models/embedded_s_i_m_activation_code_pool_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type EmbeddedSIMActivationCodePoolAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEmbeddedSIMActivationCodePoolAssignmentCollectionResponse instantiates a new EmbeddedSIMActivationCodePoolAssignmentCollectionResponse and sets the default values. +// NewEmbeddedSIMActivationCodePoolAssignmentCollectionResponse instantiates a new embeddedSIMActivationCodePoolAssignmentCollectionResponse and sets the default values. func NewEmbeddedSIMActivationCodePoolAssignmentCollectionResponse()(*EmbeddedSIMActivationCodePoolAssignmentCollectionResponse) { m := &EmbeddedSIMActivationCodePoolAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/embedded_s_i_m_activation_code_pool_collection_response.go b/models/embedded_s_i_m_activation_code_pool_collection_response.go index e170975188e..f7f4bbc8673 100644 --- a/models/embedded_s_i_m_activation_code_pool_collection_response.go +++ b/models/embedded_s_i_m_activation_code_pool_collection_response.go @@ -8,7 +8,7 @@ import ( type EmbeddedSIMActivationCodePoolCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEmbeddedSIMActivationCodePoolCollectionResponse instantiates a new EmbeddedSIMActivationCodePoolCollectionResponse and sets the default values. +// NewEmbeddedSIMActivationCodePoolCollectionResponse instantiates a new embeddedSIMActivationCodePoolCollectionResponse and sets the default values. func NewEmbeddedSIMActivationCodePoolCollectionResponse()(*EmbeddedSIMActivationCodePoolCollectionResponse) { m := &EmbeddedSIMActivationCodePoolCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/embedded_s_i_m_device_state.go b/models/embedded_s_i_m_device_state.go index e4cdbcf19f4..484fa3ea69c 100644 --- a/models/embedded_s_i_m_device_state.go +++ b/models/embedded_s_i_m_device_state.go @@ -8,6 +8,8 @@ import ( // EmbeddedSIMDeviceState describes the embedded SIM activation code deployment state in relation to a device. type EmbeddedSIMDeviceState struct { Entity + // The OdataType property + OdataType *string } // NewEmbeddedSIMDeviceState instantiates a new embeddedSIMDeviceState and sets the default values. func NewEmbeddedSIMDeviceState()(*EmbeddedSIMDeviceState) { diff --git a/models/embedded_s_i_m_device_state_collection_response.go b/models/embedded_s_i_m_device_state_collection_response.go index 99c40a66dd9..53fb1df17cb 100644 --- a/models/embedded_s_i_m_device_state_collection_response.go +++ b/models/embedded_s_i_m_device_state_collection_response.go @@ -8,7 +8,7 @@ import ( type EmbeddedSIMDeviceStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEmbeddedSIMDeviceStateCollectionResponse instantiates a new EmbeddedSIMDeviceStateCollectionResponse and sets the default values. +// NewEmbeddedSIMDeviceStateCollectionResponse instantiates a new embeddedSIMDeviceStateCollectionResponse and sets the default values. func NewEmbeddedSIMDeviceStateCollectionResponse()(*EmbeddedSIMDeviceStateCollectionResponse) { m := &EmbeddedSIMDeviceStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/employee.go b/models/employee.go index 7ca02cbadfb..8a63f056860 100644 --- a/models/employee.go +++ b/models/employee.go @@ -12,7 +12,7 @@ type Employee struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEmployee instantiates a new Employee and sets the default values. +// NewEmployee instantiates a new employee and sets the default values. func NewEmployee()(*Employee) { m := &Employee{ } diff --git a/models/employee_collection_response.go b/models/employee_collection_response.go index e92e5e3265b..87806e06d96 100644 --- a/models/employee_collection_response.go +++ b/models/employee_collection_response.go @@ -8,7 +8,7 @@ import ( type EmployeeCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEmployeeCollectionResponse instantiates a new EmployeeCollectionResponse and sets the default values. +// NewEmployeeCollectionResponse instantiates a new employeeCollectionResponse and sets the default values. func NewEmployeeCollectionResponse()(*EmployeeCollectionResponse) { m := &EmployeeCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/employee_experience.go b/models/employee_experience.go index 140fa0991aa..ffe5c234fca 100644 --- a/models/employee_experience.go +++ b/models/employee_experience.go @@ -10,7 +10,7 @@ type EmployeeExperience struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEmployeeExperience instantiates a new EmployeeExperience and sets the default values. +// NewEmployeeExperience instantiates a new employeeExperience and sets the default values. func NewEmployeeExperience()(*EmployeeExperience) { m := &EmployeeExperience{ } diff --git a/models/employee_experience_user.go b/models/employee_experience_user.go index a36cced9809..d43537a707e 100644 --- a/models/employee_experience_user.go +++ b/models/employee_experience_user.go @@ -7,8 +7,10 @@ import ( // EmployeeExperienceUser type EmployeeExperienceUser struct { Entity + // The OdataType property + OdataType *string } -// NewEmployeeExperienceUser instantiates a new EmployeeExperienceUser and sets the default values. +// NewEmployeeExperienceUser instantiates a new employeeExperienceUser and sets the default values. func NewEmployeeExperienceUser()(*EmployeeExperienceUser) { m := &EmployeeExperienceUser{ Entity: *NewEntity(), diff --git a/models/encrypt_content.go b/models/encrypt_content.go index 2c25bc0a6d7..6636c6239a0 100644 --- a/models/encrypt_content.go +++ b/models/encrypt_content.go @@ -8,7 +8,7 @@ import ( type EncryptContent struct { LabelActionBase } -// NewEncryptContent instantiates a new EncryptContent and sets the default values. +// NewEncryptContent instantiates a new encryptContent and sets the default values. func NewEncryptContent()(*EncryptContent) { m := &EncryptContent{ LabelActionBase: *NewLabelActionBase(), @@ -65,8 +65,29 @@ func (m *EncryptContent) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EncryptContent) 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 *EncryptContent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.LabelActionBase.Serialize(writer) @@ -80,6 +101,12 @@ func (m *EncryptContent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetEncryptWith sets the encryptWith property value. The encryptWith property @@ -89,10 +116,19 @@ func (m *EncryptContent) SetEncryptWith(value *EncryptWith)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EncryptContent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // EncryptContentable type EncryptContentable interface { LabelActionBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEncryptWith()(*EncryptWith) + GetOdataType()(*string) SetEncryptWith(value *EncryptWith)() + SetOdataType(value *string)() } diff --git a/models/encrypt_with_template.go b/models/encrypt_with_template.go index 2e807fc24b5..2846e6caae3 100644 --- a/models/encrypt_with_template.go +++ b/models/encrypt_with_template.go @@ -7,8 +7,10 @@ import ( // EncryptWithTemplate type EncryptWithTemplate struct { EncryptContent + // The OdataType property + OdataType *string } -// NewEncryptWithTemplate instantiates a new EncryptWithTemplate and sets the default values. +// NewEncryptWithTemplate instantiates a new encryptWithTemplate and sets the default values. func NewEncryptWithTemplate()(*EncryptWithTemplate) { m := &EncryptWithTemplate{ EncryptContent: *NewEncryptContent(), diff --git a/models/encrypt_with_user_defined_rights.go b/models/encrypt_with_user_defined_rights.go index 4c9839d4e40..223adc783a5 100644 --- a/models/encrypt_with_user_defined_rights.go +++ b/models/encrypt_with_user_defined_rights.go @@ -7,8 +7,10 @@ import ( // EncryptWithUserDefinedRights type EncryptWithUserDefinedRights struct { EncryptContent + // The OdataType property + OdataType *string } -// NewEncryptWithUserDefinedRights instantiates a new EncryptWithUserDefinedRights and sets the default values. +// NewEncryptWithUserDefinedRights instantiates a new encryptWithUserDefinedRights and sets the default values. func NewEncryptWithUserDefinedRights()(*EncryptWithUserDefinedRights) { m := &EncryptWithUserDefinedRights{ EncryptContent: *NewEncryptContent(), diff --git a/models/end_user_notification.go b/models/end_user_notification.go index 07f0d78e589..19cd3b9aebc 100644 --- a/models/end_user_notification.go +++ b/models/end_user_notification.go @@ -8,6 +8,8 @@ import ( // EndUserNotification type EndUserNotification struct { Entity + // The OdataType property + OdataType *string } // NewEndUserNotification instantiates a new endUserNotification and sets the default values. func NewEndUserNotification()(*EndUserNotification) { diff --git a/models/end_user_notification_collection_response.go b/models/end_user_notification_collection_response.go index bab62fa0ceb..8148ff3777e 100644 --- a/models/end_user_notification_collection_response.go +++ b/models/end_user_notification_collection_response.go @@ -8,7 +8,7 @@ import ( type EndUserNotificationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEndUserNotificationCollectionResponse instantiates a new EndUserNotificationCollectionResponse and sets the default values. +// NewEndUserNotificationCollectionResponse instantiates a new endUserNotificationCollectionResponse and sets the default values. func NewEndUserNotificationCollectionResponse()(*EndUserNotificationCollectionResponse) { m := &EndUserNotificationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/end_user_notification_detail.go b/models/end_user_notification_detail.go index 869a15bd51b..c6eb2b7face 100644 --- a/models/end_user_notification_detail.go +++ b/models/end_user_notification_detail.go @@ -7,6 +7,8 @@ import ( // EndUserNotificationDetail type EndUserNotificationDetail struct { Entity + // The OdataType property + OdataType *string } // NewEndUserNotificationDetail instantiates a new endUserNotificationDetail and sets the default values. func NewEndUserNotificationDetail()(*EndUserNotificationDetail) { diff --git a/models/end_user_notification_detail_collection_response.go b/models/end_user_notification_detail_collection_response.go index dc085e22c79..bb6f0d0c55d 100644 --- a/models/end_user_notification_detail_collection_response.go +++ b/models/end_user_notification_detail_collection_response.go @@ -8,7 +8,7 @@ import ( type EndUserNotificationDetailCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEndUserNotificationDetailCollectionResponse instantiates a new EndUserNotificationDetailCollectionResponse and sets the default values. +// NewEndUserNotificationDetailCollectionResponse instantiates a new endUserNotificationDetailCollectionResponse and sets the default values. func NewEndUserNotificationDetailCollectionResponse()(*EndUserNotificationDetailCollectionResponse) { m := &EndUserNotificationDetailCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/endpoint_collection_response.go b/models/endpoint_collection_response.go index 349eb1e77ae..6d850bbdd89 100644 --- a/models/endpoint_collection_response.go +++ b/models/endpoint_collection_response.go @@ -8,7 +8,7 @@ import ( type EndpointCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEndpointCollectionResponse instantiates a new EndpointCollectionResponse and sets the default values. +// NewEndpointCollectionResponse instantiates a new endpointCollectionResponse and sets the default values. func NewEndpointCollectionResponse()(*EndpointCollectionResponse) { m := &EndpointCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/enrollment_configuration_assignment.go b/models/enrollment_configuration_assignment.go index fad78e20f4f..a7a028a908c 100644 --- a/models/enrollment_configuration_assignment.go +++ b/models/enrollment_configuration_assignment.go @@ -7,6 +7,8 @@ import ( // EnrollmentConfigurationAssignment enrollment Configuration Assignment type EnrollmentConfigurationAssignment struct { Entity + // The OdataType property + OdataType *string } // NewEnrollmentConfigurationAssignment instantiates a new enrollmentConfigurationAssignment and sets the default values. func NewEnrollmentConfigurationAssignment()(*EnrollmentConfigurationAssignment) { diff --git a/models/enrollment_configuration_assignment_collection_response.go b/models/enrollment_configuration_assignment_collection_response.go index 87ae04e69bf..0536b3082df 100644 --- a/models/enrollment_configuration_assignment_collection_response.go +++ b/models/enrollment_configuration_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type EnrollmentConfigurationAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEnrollmentConfigurationAssignmentCollectionResponse instantiates a new EnrollmentConfigurationAssignmentCollectionResponse and sets the default values. +// NewEnrollmentConfigurationAssignmentCollectionResponse instantiates a new enrollmentConfigurationAssignmentCollectionResponse and sets the default values. func NewEnrollmentConfigurationAssignmentCollectionResponse()(*EnrollmentConfigurationAssignmentCollectionResponse) { m := &EnrollmentConfigurationAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/enrollment_profile.go b/models/enrollment_profile.go index a365e5bca67..8a8ca08f07e 100644 --- a/models/enrollment_profile.go +++ b/models/enrollment_profile.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EnrollmentProfile +// EnrollmentProfile the enrollmentProfile resource represents a collection of configurations which must be provided pre-enrollment to enable enrolling certain devices whose identities have been pre-staged. Pre-staged device identities are assigned to this type of profile to apply the profile's configurations at enrollment of the corresponding device. type EnrollmentProfile struct { Entity + // The OdataType property + OdataType *string } // NewEnrollmentProfile instantiates a new enrollmentProfile and sets the default values. func NewEnrollmentProfile()(*EnrollmentProfile) { diff --git a/models/enrollment_profile_collection_response.go b/models/enrollment_profile_collection_response.go index a94ae6decbf..ac44cea465d 100644 --- a/models/enrollment_profile_collection_response.go +++ b/models/enrollment_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type EnrollmentProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEnrollmentProfileCollectionResponse instantiates a new EnrollmentProfileCollectionResponse and sets the default values. +// NewEnrollmentProfileCollectionResponse instantiates a new enrollmentProfileCollectionResponse and sets the default values. func NewEnrollmentProfileCollectionResponse()(*EnrollmentProfileCollectionResponse) { m := &EnrollmentProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/enrollment_restrictions_configuration_policy_set_item.go b/models/enrollment_restrictions_configuration_policy_set_item.go index d7d46e3e00e..fe95bdc7c8b 100644 --- a/models/enrollment_restrictions_configuration_policy_set_item.go +++ b/models/enrollment_restrictions_configuration_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EnrollmentRestrictionsConfigurationPolicySetItem +// EnrollmentRestrictionsConfigurationPolicySetItem a class containing the properties used for enrollment restriction PolicySetItem. type EnrollmentRestrictionsConfigurationPolicySetItem struct { PolicySetItem } -// NewEnrollmentRestrictionsConfigurationPolicySetItem instantiates a new EnrollmentRestrictionsConfigurationPolicySetItem and sets the default values. +// NewEnrollmentRestrictionsConfigurationPolicySetItem instantiates a new enrollmentRestrictionsConfigurationPolicySetItem and sets the default values. func NewEnrollmentRestrictionsConfigurationPolicySetItem()(*EnrollmentRestrictionsConfigurationPolicySetItem) { m := &EnrollmentRestrictionsConfigurationPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/enrollment_troubleshooting_event.go b/models/enrollment_troubleshooting_event.go index 1a66c911f91..175ba378939 100644 --- a/models/enrollment_troubleshooting_event.go +++ b/models/enrollment_troubleshooting_event.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// EnrollmentTroubleshootingEvent +// EnrollmentTroubleshootingEvent event representing an enrollment failure. type EnrollmentTroubleshootingEvent struct { DeviceManagementTroubleshootingEvent } -// NewEnrollmentTroubleshootingEvent instantiates a new EnrollmentTroubleshootingEvent and sets the default values. +// NewEnrollmentTroubleshootingEvent instantiates a new enrollmentTroubleshootingEvent and sets the default values. func NewEnrollmentTroubleshootingEvent()(*EnrollmentTroubleshootingEvent) { m := &EnrollmentTroubleshootingEvent{ DeviceManagementTroubleshootingEvent: *NewDeviceManagementTroubleshootingEvent(), diff --git a/models/enterprise_code_signing_certificate.go b/models/enterprise_code_signing_certificate.go index 72c2cd7fd88..ca2361cd1ae 100644 --- a/models/enterprise_code_signing_certificate.go +++ b/models/enterprise_code_signing_certificate.go @@ -8,6 +8,8 @@ import ( // EnterpriseCodeSigningCertificate type EnterpriseCodeSigningCertificate struct { Entity + // The OdataType property + OdataType *string } // NewEnterpriseCodeSigningCertificate instantiates a new enterpriseCodeSigningCertificate and sets the default values. func NewEnterpriseCodeSigningCertificate()(*EnterpriseCodeSigningCertificate) { diff --git a/models/enterprise_code_signing_certificate_collection_response.go b/models/enterprise_code_signing_certificate_collection_response.go index 58035d55b7c..7b9758fe2b3 100644 --- a/models/enterprise_code_signing_certificate_collection_response.go +++ b/models/enterprise_code_signing_certificate_collection_response.go @@ -8,7 +8,7 @@ import ( type EnterpriseCodeSigningCertificateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEnterpriseCodeSigningCertificateCollectionResponse instantiates a new EnterpriseCodeSigningCertificateCollectionResponse and sets the default values. +// NewEnterpriseCodeSigningCertificateCollectionResponse instantiates a new enterpriseCodeSigningCertificateCollectionResponse and sets the default values. func NewEnterpriseCodeSigningCertificateCollectionResponse()(*EnterpriseCodeSigningCertificateCollectionResponse) { m := &EnterpriseCodeSigningCertificateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/entitlement_management.go b/models/entitlement_management.go index 01d9395d9f9..df7bcdaa8df 100644 --- a/models/entitlement_management.go +++ b/models/entitlement_management.go @@ -7,8 +7,10 @@ import ( // EntitlementManagement type EntitlementManagement struct { Entity + // The OdataType property + OdataType *string } -// NewEntitlementManagement instantiates a new EntitlementManagement and sets the default values. +// NewEntitlementManagement instantiates a new entitlementManagement and sets the default values. func NewEntitlementManagement()(*EntitlementManagement) { m := &EntitlementManagement{ Entity: *NewEntity(), diff --git a/models/entitlement_management_settings.go b/models/entitlement_management_settings.go index b9817852fac..7b82cf465ad 100644 --- a/models/entitlement_management_settings.go +++ b/models/entitlement_management_settings.go @@ -7,6 +7,8 @@ import ( // EntitlementManagementSettings type EntitlementManagementSettings struct { Entity + // The OdataType property + OdataType *string } // NewEntitlementManagementSettings instantiates a new entitlementManagementSettings and sets the default values. func NewEntitlementManagementSettings()(*EntitlementManagementSettings) { diff --git a/models/entity.go b/models/entity.go index 8386e2ec1f4..5ab3d24279b 100644 --- a/models/entity.go +++ b/models/entity.go @@ -404,6 +404,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewAuthoredNote(), nil case "#microsoft.graph.authorizationPolicy": return NewAuthorizationPolicy(), nil + case "#microsoft.graph.azureADAuthentication": + return NewAzureADAuthentication(), nil case "#microsoft.graph.azureADWindowsAutopilotDeploymentProfile": return NewAzureADWindowsAutopilotDeploymentProfile(), nil case "#microsoft.graph.azureCommunicationServicesUserConversationMember": @@ -448,6 +450,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewBrowserSiteList(), nil case "#microsoft.graph.builtInIdentityProvider": return NewBuiltInIdentityProvider(), nil + case "#microsoft.graph.bulkUpload": + return NewBulkUpload(), nil case "#microsoft.graph.businessFlow": return NewBusinessFlow(), nil case "#microsoft.graph.businessFlowTemplate": @@ -1782,6 +1786,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewPayloadCompatibleAssignmentFilter(), nil case "#microsoft.graph.payloadResponse": return NewPayloadResponse(), nil + case "#microsoft.graph.peopleAdminSettings": + return NewPeopleAdminSettings(), nil case "#microsoft.graph.permission": return NewPermission(), nil case "#microsoft.graph.permissionGrantConditionSet": @@ -2100,6 +2106,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewServiceHealth(), nil case "#microsoft.graph.serviceHealthIssue": return NewServiceHealthIssue(), nil + case "#microsoft.graph.serviceLevelAgreementRoot": + return NewServiceLevelAgreementRoot(), nil case "#microsoft.graph.serviceNowConnection": return NewServiceNowConnection(), nil case "#microsoft.graph.servicePrincipal": diff --git a/models/enumerated_domains.go b/models/enumerated_domains.go index ccd15a74597..5326adf1488 100644 --- a/models/enumerated_domains.go +++ b/models/enumerated_domains.go @@ -8,7 +8,7 @@ import ( type EnumeratedDomains struct { ValidatingDomains } -// NewEnumeratedDomains instantiates a new EnumeratedDomains and sets the default values. +// NewEnumeratedDomains instantiates a new enumeratedDomains and sets the default values. func NewEnumeratedDomains()(*EnumeratedDomains) { m := &EnumeratedDomains{ ValidatingDomains: *NewValidatingDomains(), @@ -51,8 +51,29 @@ func (m *EnumeratedDomains) GetFieldDeserializers()(map[string]func(i878a80d2330 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *EnumeratedDomains) 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 *EnumeratedDomains) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ValidatingDomains.Serialize(writer) @@ -65,6 +86,12 @@ func (m *EnumeratedDomains) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDomainNames sets the domainNames property value. The domainNames property @@ -74,10 +101,19 @@ func (m *EnumeratedDomains) SetDomainNames(value []string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EnumeratedDomains) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // EnumeratedDomainsable type EnumeratedDomainsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ValidatingDomainsable GetDomainNames()([]string) + GetOdataType()(*string) SetDomainNames(value []string)() + SetOdataType(value *string)() } diff --git a/models/evaluate_label_job_response.go b/models/evaluate_label_job_response.go index 5e1d4f7f059..491cf15c0cd 100644 --- a/models/evaluate_label_job_response.go +++ b/models/evaluate_label_job_response.go @@ -8,7 +8,7 @@ import ( type EvaluateLabelJobResponse struct { JobResponseBase } -// NewEvaluateLabelJobResponse instantiates a new EvaluateLabelJobResponse and sets the default values. +// NewEvaluateLabelJobResponse instantiates a new evaluateLabelJobResponse and sets the default values. func NewEvaluateLabelJobResponse()(*EvaluateLabelJobResponse) { m := &EvaluateLabelJobResponse{ JobResponseBase: *NewJobResponseBase(), diff --git a/models/event.go b/models/event.go index 0d61844b53b..e2e0efea006 100644 --- a/models/event.go +++ b/models/event.go @@ -9,7 +9,7 @@ import ( type Event struct { OutlookItem } -// NewEvent instantiates a new Event and sets the default values. +// NewEvent instantiates a new event and sets the default values. func NewEvent()(*Event) { m := &Event{ OutlookItem: *NewOutlookItem(), diff --git a/models/event_collection_response.go b/models/event_collection_response.go index dedde37b6bd..9ed55525870 100644 --- a/models/event_collection_response.go +++ b/models/event_collection_response.go @@ -8,7 +8,7 @@ import ( type EventCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewEventCollectionResponse instantiates a new EventCollectionResponse and sets the default values. +// NewEventCollectionResponse instantiates a new eventCollectionResponse and sets the default values. func NewEventCollectionResponse()(*EventCollectionResponse) { m := &EventCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/event_message.go b/models/event_message.go index 2fea309623e..648d04002fb 100644 --- a/models/event_message.go +++ b/models/event_message.go @@ -8,7 +8,7 @@ import ( type EventMessage struct { Message } -// NewEventMessage instantiates a new EventMessage and sets the default values. +// NewEventMessage instantiates a new eventMessage and sets the default values. func NewEventMessage()(*EventMessage) { m := &EventMessage{ Message: *NewMessage(), diff --git a/models/event_message_request.go b/models/event_message_request.go index 9955cd1f3a6..bf928568c06 100644 --- a/models/event_message_request.go +++ b/models/event_message_request.go @@ -8,7 +8,7 @@ import ( type EventMessageRequest struct { EventMessage } -// NewEventMessageRequest instantiates a new EventMessageRequest and sets the default values. +// NewEventMessageRequest instantiates a new eventMessageRequest and sets the default values. func NewEventMessageRequest()(*EventMessageRequest) { m := &EventMessageRequest{ EventMessage: *NewEventMessage(), diff --git a/models/event_message_response.go b/models/event_message_response.go index 4ee6302a5a3..9c352cfe3eb 100644 --- a/models/event_message_response.go +++ b/models/event_message_response.go @@ -8,7 +8,7 @@ import ( type EventMessageResponse struct { EventMessage } -// NewEventMessageResponse instantiates a new EventMessageResponse and sets the default values. +// NewEventMessageResponse instantiates a new eventMessageResponse and sets the default values. func NewEventMessageResponse()(*EventMessageResponse) { m := &EventMessageResponse{ EventMessage: *NewEventMessage(), diff --git a/models/exact_match_data_store.go b/models/exact_match_data_store.go index 95d7a3939fe..da002b82738 100644 --- a/models/exact_match_data_store.go +++ b/models/exact_match_data_store.go @@ -8,7 +8,7 @@ import ( type ExactMatchDataStore struct { ExactMatchDataStoreBase } -// NewExactMatchDataStore instantiates a new ExactMatchDataStore and sets the default values. +// NewExactMatchDataStore instantiates a new exactMatchDataStore and sets the default values. func NewExactMatchDataStore()(*ExactMatchDataStore) { m := &ExactMatchDataStore{ ExactMatchDataStoreBase: *NewExactMatchDataStoreBase(), diff --git a/models/exact_match_data_store_base.go b/models/exact_match_data_store_base.go index 2c4798faab2..ea0da047e75 100644 --- a/models/exact_match_data_store_base.go +++ b/models/exact_match_data_store_base.go @@ -8,6 +8,8 @@ import ( // ExactMatchDataStoreBase type ExactMatchDataStoreBase struct { Entity + // The OdataType property + OdataType *string } // NewExactMatchDataStoreBase instantiates a new exactMatchDataStoreBase and sets the default values. func NewExactMatchDataStoreBase()(*ExactMatchDataStoreBase) { diff --git a/models/exact_match_data_store_collection_response.go b/models/exact_match_data_store_collection_response.go index f2e2520781d..12766acaa51 100644 --- a/models/exact_match_data_store_collection_response.go +++ b/models/exact_match_data_store_collection_response.go @@ -8,7 +8,7 @@ import ( type ExactMatchDataStoreCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewExactMatchDataStoreCollectionResponse instantiates a new ExactMatchDataStoreCollectionResponse and sets the default values. +// NewExactMatchDataStoreCollectionResponse instantiates a new exactMatchDataStoreCollectionResponse and sets the default values. func NewExactMatchDataStoreCollectionResponse()(*ExactMatchDataStoreCollectionResponse) { m := &ExactMatchDataStoreCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/exact_match_detected_sensitive_content.go b/models/exact_match_detected_sensitive_content.go index f8039effb17..fc2fbb36359 100644 --- a/models/exact_match_detected_sensitive_content.go +++ b/models/exact_match_detected_sensitive_content.go @@ -8,7 +8,7 @@ import ( type ExactMatchDetectedSensitiveContent struct { DetectedSensitiveContentBase } -// NewExactMatchDetectedSensitiveContent instantiates a new ExactMatchDetectedSensitiveContent and sets the default values. +// NewExactMatchDetectedSensitiveContent instantiates a new exactMatchDetectedSensitiveContent and sets the default values. func NewExactMatchDetectedSensitiveContent()(*ExactMatchDetectedSensitiveContent) { m := &ExactMatchDetectedSensitiveContent{ DetectedSensitiveContentBase: *NewDetectedSensitiveContentBase(), @@ -38,6 +38,16 @@ func (m *ExactMatchDetectedSensitiveContent) GetFieldDeserializers()(map[string] } 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 } // GetMatches gets the matches property value. The matches property @@ -51,6 +61,17 @@ func (m *ExactMatchDetectedSensitiveContent) GetMatches()([]SensitiveContentLoca } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ExactMatchDetectedSensitiveContent) 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 *ExactMatchDetectedSensitiveContent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DetectedSensitiveContentBase.Serialize(writer) @@ -69,6 +90,12 @@ func (m *ExactMatchDetectedSensitiveContent) Serialize(writer i878a80d2330e89d26 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetMatches sets the matches property value. The matches property @@ -78,10 +105,19 @@ func (m *ExactMatchDetectedSensitiveContent) SetMatches(value []SensitiveContent panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ExactMatchDetectedSensitiveContent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ExactMatchDetectedSensitiveContentable type ExactMatchDetectedSensitiveContentable interface { DetectedSensitiveContentBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetMatches()([]SensitiveContentLocationable) + GetOdataType()(*string) SetMatches(value []SensitiveContentLocationable)() + SetOdataType(value *string)() } diff --git a/models/exact_match_job_base.go b/models/exact_match_job_base.go index b48b1d37d60..6c1586dce65 100644 --- a/models/exact_match_job_base.go +++ b/models/exact_match_job_base.go @@ -8,6 +8,8 @@ import ( // ExactMatchJobBase type ExactMatchJobBase struct { Entity + // The OdataType property + OdataType *string } // NewExactMatchJobBase instantiates a new exactMatchJobBase and sets the default values. func NewExactMatchJobBase()(*ExactMatchJobBase) { diff --git a/models/exact_match_lookup_job.go b/models/exact_match_lookup_job.go index be8c4bd8433..73893f7e028 100644 --- a/models/exact_match_lookup_job.go +++ b/models/exact_match_lookup_job.go @@ -8,7 +8,7 @@ import ( type ExactMatchLookupJob struct { ExactMatchJobBase } -// NewExactMatchLookupJob instantiates a new ExactMatchLookupJob and sets the default values. +// NewExactMatchLookupJob instantiates a new exactMatchLookupJob and sets the default values. func NewExactMatchLookupJob()(*ExactMatchLookupJob) { m := &ExactMatchLookupJob{ ExactMatchJobBase: *NewExactMatchJobBase(), diff --git a/models/exact_match_session.go b/models/exact_match_session.go index a2d8bea060b..b14df74db56 100644 --- a/models/exact_match_session.go +++ b/models/exact_match_session.go @@ -8,7 +8,7 @@ import ( type ExactMatchSession struct { ExactMatchSessionBase } -// NewExactMatchSession instantiates a new ExactMatchSession and sets the default values. +// NewExactMatchSession instantiates a new exactMatchSession and sets the default values. func NewExactMatchSession()(*ExactMatchSession) { m := &ExactMatchSession{ ExactMatchSessionBase: *NewExactMatchSessionBase(), diff --git a/models/exact_match_session_base.go b/models/exact_match_session_base.go index 342b47f9b36..7350971815c 100644 --- a/models/exact_match_session_base.go +++ b/models/exact_match_session_base.go @@ -9,7 +9,7 @@ import ( type ExactMatchSessionBase struct { ExactMatchJobBase } -// NewExactMatchSessionBase instantiates a new ExactMatchSessionBase and sets the default values. +// NewExactMatchSessionBase instantiates a new exactMatchSessionBase and sets the default values. func NewExactMatchSessionBase()(*ExactMatchSessionBase) { m := &ExactMatchSessionBase{ ExactMatchJobBase: *NewExactMatchJobBase(), diff --git a/models/exact_match_session_collection_response.go b/models/exact_match_session_collection_response.go index 8aaa527e2aa..d9ef4bd91de 100644 --- a/models/exact_match_session_collection_response.go +++ b/models/exact_match_session_collection_response.go @@ -8,7 +8,7 @@ import ( type ExactMatchSessionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewExactMatchSessionCollectionResponse instantiates a new ExactMatchSessionCollectionResponse and sets the default values. +// NewExactMatchSessionCollectionResponse instantiates a new exactMatchSessionCollectionResponse and sets the default values. func NewExactMatchSessionCollectionResponse()(*ExactMatchSessionCollectionResponse) { m := &ExactMatchSessionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/exact_match_upload_agent.go b/models/exact_match_upload_agent.go index e26b88dc94b..361ed12118a 100644 --- a/models/exact_match_upload_agent.go +++ b/models/exact_match_upload_agent.go @@ -8,6 +8,8 @@ import ( // ExactMatchUploadAgent type ExactMatchUploadAgent struct { Entity + // The OdataType property + OdataType *string } // NewExactMatchUploadAgent instantiates a new exactMatchUploadAgent and sets the default values. func NewExactMatchUploadAgent()(*ExactMatchUploadAgent) { diff --git a/models/exact_match_upload_agent_collection_response.go b/models/exact_match_upload_agent_collection_response.go index 681cf2d09c9..da7aa9baede 100644 --- a/models/exact_match_upload_agent_collection_response.go +++ b/models/exact_match_upload_agent_collection_response.go @@ -8,7 +8,7 @@ import ( type ExactMatchUploadAgentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewExactMatchUploadAgentCollectionResponse instantiates a new ExactMatchUploadAgentCollectionResponse and sets the default values. +// NewExactMatchUploadAgentCollectionResponse instantiates a new exactMatchUploadAgentCollectionResponse and sets the default values. func NewExactMatchUploadAgentCollectionResponse()(*ExactMatchUploadAgentCollectionResponse) { m := &ExactMatchUploadAgentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/exclusion_group_assignment_target.go b/models/exclusion_group_assignment_target.go index a3eaea42a8c..4412928e7a0 100644 --- a/models/exclusion_group_assignment_target.go +++ b/models/exclusion_group_assignment_target.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ExclusionGroupAssignmentTarget +// ExclusionGroupAssignmentTarget represents a group that should be excluded from an assignment. type ExclusionGroupAssignmentTarget struct { GroupAssignmentTarget + // The OdataType property + OdataType *string } -// NewExclusionGroupAssignmentTarget instantiates a new ExclusionGroupAssignmentTarget and sets the default values. +// NewExclusionGroupAssignmentTarget instantiates a new exclusionGroupAssignmentTarget and sets the default values. func NewExclusionGroupAssignmentTarget()(*ExclusionGroupAssignmentTarget) { m := &ExclusionGroupAssignmentTarget{ GroupAssignmentTarget: *NewGroupAssignmentTarget(), diff --git a/models/expression_evaluation_details.go b/models/expression_evaluation_details.go index 9f574b1c424..039814faea5 100644 --- a/models/expression_evaluation_details.go +++ b/models/expression_evaluation_details.go @@ -10,7 +10,7 @@ type ExpressionEvaluationDetails struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewExpressionEvaluationDetails instantiates a new ExpressionEvaluationDetails and sets the default values. +// NewExpressionEvaluationDetails instantiates a new expressionEvaluationDetails and sets the default values. func NewExpressionEvaluationDetails()(*ExpressionEvaluationDetails) { m := &ExpressionEvaluationDetails{ } diff --git a/models/extended_key_usage.go b/models/extended_key_usage.go index 9360390f358..d9cdfd1f70c 100644 --- a/models/extended_key_usage.go +++ b/models/extended_key_usage.go @@ -10,7 +10,7 @@ type ExtendedKeyUsage struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewExtendedKeyUsage instantiates a new ExtendedKeyUsage and sets the default values. +// NewExtendedKeyUsage instantiates a new extendedKeyUsage and sets the default values. func NewExtendedKeyUsage()(*ExtendedKeyUsage) { m := &ExtendedKeyUsage{ } diff --git a/models/extension.go b/models/extension.go index f33cde61f72..ea2442f9e13 100644 --- a/models/extension.go +++ b/models/extension.go @@ -7,6 +7,8 @@ import ( // Extension type Extension struct { Entity + // The OdataType property + OdataType *string } // NewExtension instantiates a new extension and sets the default values. func NewExtension()(*Extension) { diff --git a/models/extension_collection_response.go b/models/extension_collection_response.go index 03dd53ff868..7ea2ac749e5 100644 --- a/models/extension_collection_response.go +++ b/models/extension_collection_response.go @@ -8,7 +8,7 @@ import ( type ExtensionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewExtensionCollectionResponse instantiates a new ExtensionCollectionResponse and sets the default values. +// NewExtensionCollectionResponse instantiates a new extensionCollectionResponse and sets the default values. func NewExtensionCollectionResponse()(*ExtensionCollectionResponse) { m := &ExtensionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/extension_property_collection_response.go b/models/extension_property_collection_response.go index e32602956ac..209d9089d7c 100644 --- a/models/extension_property_collection_response.go +++ b/models/extension_property_collection_response.go @@ -8,7 +8,7 @@ import ( type ExtensionPropertyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewExtensionPropertyCollectionResponse instantiates a new ExtensionPropertyCollectionResponse and sets the default values. +// NewExtensionPropertyCollectionResponse instantiates a new extensionPropertyCollectionResponse and sets the default values. func NewExtensionPropertyCollectionResponse()(*ExtensionPropertyCollectionResponse) { m := &ExtensionPropertyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/extension_schema_property.go b/models/extension_schema_property.go index 33fc640abbe..4b258517610 100644 --- a/models/extension_schema_property.go +++ b/models/extension_schema_property.go @@ -10,7 +10,7 @@ type ExtensionSchemaProperty struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewExtensionSchemaProperty instantiates a new ExtensionSchemaProperty and sets the default values. +// NewExtensionSchemaProperty instantiates a new extensionSchemaProperty and sets the default values. func NewExtensionSchemaProperty()(*ExtensionSchemaProperty) { m := &ExtensionSchemaProperty{ } diff --git a/models/external.go b/models/external.go index 781a2db7f3d..1181a991371 100644 --- a/models/external.go +++ b/models/external.go @@ -8,7 +8,7 @@ import ( type External struct { Entity } -// NewExternal instantiates a new External and sets the default values. +// NewExternal instantiates a new external and sets the default values. func NewExternal()(*External) { m := &External{ Entity: *NewEntity(), @@ -49,8 +49,29 @@ func (m *External) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *External) 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 *External) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -69,6 +90,12 @@ func (m *External) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetConnections sets the connections property value. The connections property @@ -78,10 +105,19 @@ func (m *External) SetConnections(value []ExternalConnectionable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *External) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // Externalable type Externalable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetConnections()([]ExternalConnectionable) + GetOdataType()(*string) SetConnections(value []ExternalConnectionable)() + SetOdataType(value *string)() } diff --git a/models/external_connection.go b/models/external_connection.go index 82295175571..b7bd72f8c35 100644 --- a/models/external_connection.go +++ b/models/external_connection.go @@ -7,6 +7,8 @@ import ( // ExternalConnection type ExternalConnection struct { Entity + // The OdataType property + OdataType *string } // NewExternalConnection instantiates a new externalConnection and sets the default values. func NewExternalConnection()(*ExternalConnection) { diff --git a/models/external_domain_federation.go b/models/external_domain_federation.go index 3eaf8fae611..46d8bcbe8b1 100644 --- a/models/external_domain_federation.go +++ b/models/external_domain_federation.go @@ -8,7 +8,7 @@ import ( type ExternalDomainFederation struct { IdentitySource } -// NewExternalDomainFederation instantiates a new ExternalDomainFederation and sets the default values. +// NewExternalDomainFederation instantiates a new externalDomainFederation and sets the default values. func NewExternalDomainFederation()(*ExternalDomainFederation) { m := &ExternalDomainFederation{ IdentitySource: *NewIdentitySource(), @@ -76,6 +76,16 @@ func (m *ExternalDomainFederation) GetFieldDeserializers()(map[string]func(i878a } 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 } // GetIssuerUri gets the issuerUri property value. The issuerURI of the incoming federation. Read only. @@ -89,6 +99,17 @@ func (m *ExternalDomainFederation) GetIssuerUri()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ExternalDomainFederation) 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 *ExternalDomainFederation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.IdentitySource.Serialize(writer) @@ -113,6 +134,12 @@ func (m *ExternalDomainFederation) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDisplayName sets the displayName property value. The name of the identity source, typically also the domain name. Read only. @@ -136,6 +163,13 @@ func (m *ExternalDomainFederation) SetIssuerUri(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ExternalDomainFederation) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ExternalDomainFederationable type ExternalDomainFederationable interface { IdentitySourceable @@ -143,7 +177,9 @@ type ExternalDomainFederationable interface { GetDisplayName()(*string) GetDomainName()(*string) GetIssuerUri()(*string) + GetOdataType()(*string) SetDisplayName(value *string)() SetDomainName(value *string)() SetIssuerUri(value *string)() + SetOdataType(value *string)() } diff --git a/models/external_domain_name.go b/models/external_domain_name.go index 18065b4a164..ce816e5cc4d 100644 --- a/models/external_domain_name.go +++ b/models/external_domain_name.go @@ -7,6 +7,8 @@ import ( // ExternalDomainName type ExternalDomainName struct { Entity + // The OdataType property + OdataType *string } // NewExternalDomainName instantiates a new externalDomainName and sets the default values. func NewExternalDomainName()(*ExternalDomainName) { diff --git a/models/external_group.go b/models/external_group.go index a342a737eac..c78a59cd525 100644 --- a/models/external_group.go +++ b/models/external_group.go @@ -7,6 +7,8 @@ import ( // ExternalGroup type ExternalGroup struct { Entity + // The OdataType property + OdataType *string } // NewExternalGroup instantiates a new externalGroup and sets the default values. func NewExternalGroup()(*ExternalGroup) { diff --git a/models/external_identities_policy.go b/models/external_identities_policy.go index 6ee03b465ec..38992bf1dee 100644 --- a/models/external_identities_policy.go +++ b/models/external_identities_policy.go @@ -8,7 +8,7 @@ import ( type ExternalIdentitiesPolicy struct { PolicyBase } -// NewExternalIdentitiesPolicy instantiates a new ExternalIdentitiesPolicy and sets the default values. +// NewExternalIdentitiesPolicy instantiates a new externalIdentitiesPolicy and sets the default values. func NewExternalIdentitiesPolicy()(*ExternalIdentitiesPolicy) { m := &ExternalIdentitiesPolicy{ PolicyBase: *NewPolicyBase(), diff --git a/models/external_item.go b/models/external_item.go index aeeebc8bb2b..bd99713f093 100644 --- a/models/external_item.go +++ b/models/external_item.go @@ -7,6 +7,8 @@ import ( // ExternalItem type ExternalItem struct { Entity + // The OdataType property + OdataType *string } // NewExternalItem instantiates a new externalItem and sets the default values. func NewExternalItem()(*ExternalItem) { diff --git a/models/external_meeting_registrant.go b/models/external_meeting_registrant.go index 8027f0e6ac2..4e7389ab389 100644 --- a/models/external_meeting_registrant.go +++ b/models/external_meeting_registrant.go @@ -8,7 +8,7 @@ import ( type ExternalMeetingRegistrant struct { MeetingRegistrantBase } -// NewExternalMeetingRegistrant instantiates a new ExternalMeetingRegistrant and sets the default values. +// NewExternalMeetingRegistrant instantiates a new externalMeetingRegistrant and sets the default values. func NewExternalMeetingRegistrant()(*ExternalMeetingRegistrant) { m := &ExternalMeetingRegistrant{ MeetingRegistrantBase: *NewMeetingRegistrantBase(), diff --git a/models/external_meeting_registration.go b/models/external_meeting_registration.go index df6b3b992c9..4790ad50d35 100644 --- a/models/external_meeting_registration.go +++ b/models/external_meeting_registration.go @@ -7,8 +7,10 @@ import ( // ExternalMeetingRegistration type ExternalMeetingRegistration struct { MeetingRegistrationBase + // The OdataType property + OdataType *string } -// NewExternalMeetingRegistration instantiates a new ExternalMeetingRegistration and sets the default values. +// NewExternalMeetingRegistration instantiates a new externalMeetingRegistration and sets the default values. func NewExternalMeetingRegistration()(*ExternalMeetingRegistration) { m := &ExternalMeetingRegistration{ MeetingRegistrationBase: *NewMeetingRegistrationBase(), diff --git a/models/external_sponsors.go b/models/external_sponsors.go index 23e1a03d11e..2ea2ab7bb1e 100644 --- a/models/external_sponsors.go +++ b/models/external_sponsors.go @@ -8,7 +8,7 @@ import ( type ExternalSponsors struct { UserSet } -// NewExternalSponsors instantiates a new ExternalSponsors and sets the default values. +// NewExternalSponsors instantiates a new externalSponsors and sets the default values. func NewExternalSponsors()(*ExternalSponsors) { m := &ExternalSponsors{ UserSet: *NewUserSet(), @@ -24,18 +24,54 @@ func CreateExternalSponsorsFromDiscriminatorValue(parseNode i878a80d2330e89d2689 // GetFieldDeserializers the deserialization information for the current model func (m *ExternalSponsors) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.UserSet.GetFieldDeserializers() + 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 *ExternalSponsors) 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 *ExternalSponsors) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.UserSet.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ExternalSponsors) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ExternalSponsorsable type ExternalSponsorsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable UserSetable + GetOdataType()(*string) + SetOdataType(value *string)() } 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 b9b4cf45ef2..29c82b9af29 100644 --- a/models/external_users_self_service_sign_up_events_flow.go +++ b/models/external_users_self_service_sign_up_events_flow.go @@ -8,7 +8,7 @@ import ( type ExternalUsersSelfServiceSignUpEventsFlow struct { AuthenticationEventsFlow } -// NewExternalUsersSelfServiceSignUpEventsFlow instantiates a new ExternalUsersSelfServiceSignUpEventsFlow and sets the default values. +// NewExternalUsersSelfServiceSignUpEventsFlow instantiates a new externalUsersSelfServiceSignUpEventsFlow and sets the default values. func NewExternalUsersSelfServiceSignUpEventsFlow()(*ExternalUsersSelfServiceSignUpEventsFlow) { m := &ExternalUsersSelfServiceSignUpEventsFlow{ AuthenticationEventsFlow: *NewAuthenticationEventsFlow(), diff --git a/models/externalconnectors/connection_operation.go b/models/externalconnectors/connection_operation.go index 3fa1c3ba760..1c5c4ebdea9 100644 --- a/models/externalconnectors/connection_operation.go +++ b/models/externalconnectors/connection_operation.go @@ -8,6 +8,8 @@ import ( // ConnectionOperation type ConnectionOperation struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewConnectionOperation instantiates a new connectionOperation and sets the default values. func NewConnectionOperation()(*ConnectionOperation) { diff --git a/models/externalconnectors/connection_operation_collection_response.go b/models/externalconnectors/connection_operation_collection_response.go index 8469c6ca84b..277de580aca 100644 --- a/models/externalconnectors/connection_operation_collection_response.go +++ b/models/externalconnectors/connection_operation_collection_response.go @@ -9,7 +9,7 @@ import ( type ConnectionOperationCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewConnectionOperationCollectionResponse instantiates a new ConnectionOperationCollectionResponse and sets the default values. +// NewConnectionOperationCollectionResponse instantiates a new connectionOperationCollectionResponse and sets the default values. func NewConnectionOperationCollectionResponse()(*ConnectionOperationCollectionResponse) { m := &ConnectionOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/externalconnectors/connection_quota.go b/models/externalconnectors/connection_quota.go index ff91574fa65..f3897ad003b 100644 --- a/models/externalconnectors/connection_quota.go +++ b/models/externalconnectors/connection_quota.go @@ -8,6 +8,8 @@ import ( // ConnectionQuota type ConnectionQuota struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewConnectionQuota instantiates a new connectionQuota and sets the default values. func NewConnectionQuota()(*ConnectionQuota) { diff --git a/models/externalconnectors/external.go b/models/externalconnectors/external.go index 0bf1f38c215..8f887f76fcb 100644 --- a/models/externalconnectors/external.go +++ b/models/externalconnectors/external.go @@ -11,7 +11,7 @@ type External struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewExternal instantiates a new External and sets the default values. +// NewExternal instantiates a new external and sets the default values. func NewExternal()(*External) { m := &External{ } diff --git a/models/externalconnectors/external_activity.go b/models/externalconnectors/external_activity.go index 903c951db17..a3f4a241ec7 100644 --- a/models/externalconnectors/external_activity.go +++ b/models/externalconnectors/external_activity.go @@ -9,6 +9,8 @@ import ( // ExternalActivity type ExternalActivity struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewExternalActivity instantiates a new externalActivity and sets the default values. func NewExternalActivity()(*ExternalActivity) { diff --git a/models/externalconnectors/external_activity_collection_response.go b/models/externalconnectors/external_activity_collection_response.go index da7cbe7951b..6964f1e7554 100644 --- a/models/externalconnectors/external_activity_collection_response.go +++ b/models/externalconnectors/external_activity_collection_response.go @@ -9,7 +9,7 @@ import ( type ExternalActivityCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewExternalActivityCollectionResponse instantiates a new ExternalActivityCollectionResponse and sets the default values. +// NewExternalActivityCollectionResponse instantiates a new externalActivityCollectionResponse and sets the default values. func NewExternalActivityCollectionResponse()(*ExternalActivityCollectionResponse) { m := &ExternalActivityCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/externalconnectors/external_activity_result.go b/models/externalconnectors/external_activity_result.go index 571942bf39b..31581c34fe6 100644 --- a/models/externalconnectors/external_activity_result.go +++ b/models/externalconnectors/external_activity_result.go @@ -9,7 +9,7 @@ import ( type ExternalActivityResult struct { ExternalActivity } -// NewExternalActivityResult instantiates a new ExternalActivityResult and sets the default values. +// NewExternalActivityResult instantiates a new externalActivityResult and sets the default values. func NewExternalActivityResult()(*ExternalActivityResult) { m := &ExternalActivityResult{ ExternalActivity: *NewExternalActivity(), diff --git a/models/externalconnectors/external_connection.go b/models/externalconnectors/external_connection.go index cdc3f237e4d..0ac18293c59 100644 --- a/models/externalconnectors/external_connection.go +++ b/models/externalconnectors/external_connection.go @@ -8,8 +8,10 @@ import ( // ExternalConnection type ExternalConnection struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewExternalConnection instantiates a new ExternalConnection and sets the default values. +// NewExternalConnection instantiates a new externalConnection and sets the default values. func NewExternalConnection()(*ExternalConnection) { m := &ExternalConnection{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/externalconnectors/external_connection_collection_response.go b/models/externalconnectors/external_connection_collection_response.go index 2d91eaf538a..f2025bbe318 100644 --- a/models/externalconnectors/external_connection_collection_response.go +++ b/models/externalconnectors/external_connection_collection_response.go @@ -9,7 +9,7 @@ import ( type ExternalConnectionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewExternalConnectionCollectionResponse instantiates a new ExternalConnectionCollectionResponse and sets the default values. +// NewExternalConnectionCollectionResponse instantiates a new externalConnectionCollectionResponse and sets the default values. func NewExternalConnectionCollectionResponse()(*ExternalConnectionCollectionResponse) { m := &ExternalConnectionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/externalconnectors/external_group.go b/models/externalconnectors/external_group.go index b3379f4a8c4..e00da5ad530 100644 --- a/models/externalconnectors/external_group.go +++ b/models/externalconnectors/external_group.go @@ -8,6 +8,8 @@ import ( // ExternalGroup type ExternalGroup struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewExternalGroup instantiates a new externalGroup and sets the default values. func NewExternalGroup()(*ExternalGroup) { diff --git a/models/externalconnectors/external_group_collection_response.go b/models/externalconnectors/external_group_collection_response.go index e2e38ecca0e..d472d1f02ad 100644 --- a/models/externalconnectors/external_group_collection_response.go +++ b/models/externalconnectors/external_group_collection_response.go @@ -9,7 +9,7 @@ import ( type ExternalGroupCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewExternalGroupCollectionResponse instantiates a new ExternalGroupCollectionResponse and sets the default values. +// NewExternalGroupCollectionResponse instantiates a new externalGroupCollectionResponse and sets the default values. func NewExternalGroupCollectionResponse()(*ExternalGroupCollectionResponse) { m := &ExternalGroupCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/externalconnectors/external_item.go b/models/externalconnectors/external_item.go index ad7ba8a24f5..8509b1f04ff 100644 --- a/models/externalconnectors/external_item.go +++ b/models/externalconnectors/external_item.go @@ -8,6 +8,8 @@ import ( // ExternalItem type ExternalItem struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewExternalItem instantiates a new externalItem and sets the default values. func NewExternalItem()(*ExternalItem) { diff --git a/models/externalconnectors/external_item_collection_response.go b/models/externalconnectors/external_item_collection_response.go index 06745108225..274156befa9 100644 --- a/models/externalconnectors/external_item_collection_response.go +++ b/models/externalconnectors/external_item_collection_response.go @@ -9,7 +9,7 @@ import ( type ExternalItemCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewExternalItemCollectionResponse instantiates a new ExternalItemCollectionResponse and sets the default values. +// NewExternalItemCollectionResponse instantiates a new externalItemCollectionResponse and sets the default values. func NewExternalItemCollectionResponse()(*ExternalItemCollectionResponse) { m := &ExternalItemCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/externalconnectors/identity.go b/models/externalconnectors/identity.go index 6c31dfc0524..786e1632009 100644 --- a/models/externalconnectors/identity.go +++ b/models/externalconnectors/identity.go @@ -8,6 +8,8 @@ import ( // Identity type Identity struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewIdentity instantiates a new identity and sets the default values. func NewIdentity()(*Identity) { diff --git a/models/externalconnectors/identity_collection_response.go b/models/externalconnectors/identity_collection_response.go index db103de938d..18ff72186ac 100644 --- a/models/externalconnectors/identity_collection_response.go +++ b/models/externalconnectors/identity_collection_response.go @@ -9,7 +9,7 @@ import ( type IdentityCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewIdentityCollectionResponse instantiates a new IdentityCollectionResponse and sets the default values. +// NewIdentityCollectionResponse instantiates a new identityCollectionResponse and sets the default values. func NewIdentityCollectionResponse()(*IdentityCollectionResponse) { m := &IdentityCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/externalconnectors/item_id_resolver.go b/models/externalconnectors/item_id_resolver.go index e38495b68c0..a0fd8c738ba 100644 --- a/models/externalconnectors/item_id_resolver.go +++ b/models/externalconnectors/item_id_resolver.go @@ -7,8 +7,10 @@ import ( // ItemIdResolver type ItemIdResolver struct { UrlToItemResolverBase + // The OdataType property + OdataType *string } -// NewItemIdResolver instantiates a new ItemIdResolver and sets the default values. +// NewItemIdResolver instantiates a new itemIdResolver and sets the default values. func NewItemIdResolver()(*ItemIdResolver) { m := &ItemIdResolver{ UrlToItemResolverBase: *NewUrlToItemResolverBase(), diff --git a/models/externalconnectors/schema.go b/models/externalconnectors/schema.go index e3a9cf207ec..7dc9224a1b8 100644 --- a/models/externalconnectors/schema.go +++ b/models/externalconnectors/schema.go @@ -8,6 +8,8 @@ import ( // Schema type Schema struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSchema instantiates a new schema and sets the default values. func NewSchema()(*Schema) { diff --git a/models/feature_rollout_policy.go b/models/feature_rollout_policy.go index a1894c2c88f..a75ce08e30f 100644 --- a/models/feature_rollout_policy.go +++ b/models/feature_rollout_policy.go @@ -7,8 +7,10 @@ import ( // FeatureRolloutPolicy type FeatureRolloutPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewFeatureRolloutPolicy instantiates a new FeatureRolloutPolicy and sets the default values. +// NewFeatureRolloutPolicy instantiates a new featureRolloutPolicy and sets the default values. func NewFeatureRolloutPolicy()(*FeatureRolloutPolicy) { m := &FeatureRolloutPolicy{ Entity: *NewEntity(), diff --git a/models/feature_rollout_policy_collection_response.go b/models/feature_rollout_policy_collection_response.go index ccc2e1e0329..f5cda8ab703 100644 --- a/models/feature_rollout_policy_collection_response.go +++ b/models/feature_rollout_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type FeatureRolloutPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewFeatureRolloutPolicyCollectionResponse instantiates a new FeatureRolloutPolicyCollectionResponse and sets the default values. +// NewFeatureRolloutPolicyCollectionResponse instantiates a new featureRolloutPolicyCollectionResponse and sets the default values. func NewFeatureRolloutPolicyCollectionResponse()(*FeatureRolloutPolicyCollectionResponse) { m := &FeatureRolloutPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/federated_identity_credential.go b/models/federated_identity_credential.go index 25968ded49f..ccbdd069e1e 100644 --- a/models/federated_identity_credential.go +++ b/models/federated_identity_credential.go @@ -7,6 +7,8 @@ import ( // FederatedIdentityCredential type FederatedIdentityCredential struct { Entity + // The OdataType property + OdataType *string } // NewFederatedIdentityCredential instantiates a new federatedIdentityCredential and sets the default values. func NewFederatedIdentityCredential()(*FederatedIdentityCredential) { diff --git a/models/federated_identity_credential_collection_response.go b/models/federated_identity_credential_collection_response.go index dc9e8febb4c..3b4f68d8761 100644 --- a/models/federated_identity_credential_collection_response.go +++ b/models/federated_identity_credential_collection_response.go @@ -8,7 +8,7 @@ import ( type FederatedIdentityCredentialCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewFederatedIdentityCredentialCollectionResponse instantiates a new FederatedIdentityCredentialCollectionResponse and sets the default values. +// NewFederatedIdentityCredentialCollectionResponse instantiates a new federatedIdentityCredentialCollectionResponse and sets the default values. func NewFederatedIdentityCredentialCollectionResponse()(*FederatedIdentityCredentialCollectionResponse) { m := &FederatedIdentityCredentialCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/federated_token_validation_policy.go b/models/federated_token_validation_policy.go index 8a442be08ad..2fa6691f1bd 100644 --- a/models/federated_token_validation_policy.go +++ b/models/federated_token_validation_policy.go @@ -8,7 +8,7 @@ import ( type FederatedTokenValidationPolicy struct { DirectoryObject } -// NewFederatedTokenValidationPolicy instantiates a new FederatedTokenValidationPolicy and sets the default values. +// NewFederatedTokenValidationPolicy instantiates a new federatedTokenValidationPolicy and sets the default values. func NewFederatedTokenValidationPolicy()(*FederatedTokenValidationPolicy) { m := &FederatedTokenValidationPolicy{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/fido2_authentication_method.go b/models/fido2_authentication_method.go index d8b6bed5300..4f3b7c09f25 100644 --- a/models/fido2_authentication_method.go +++ b/models/fido2_authentication_method.go @@ -9,7 +9,7 @@ import ( type Fido2AuthenticationMethod struct { AuthenticationMethod } -// NewFido2AuthenticationMethod instantiates a new Fido2AuthenticationMethod and sets the default values. +// NewFido2AuthenticationMethod instantiates a new fido2AuthenticationMethod and sets the default values. func NewFido2AuthenticationMethod()(*Fido2AuthenticationMethod) { m := &Fido2AuthenticationMethod{ AuthenticationMethod: *NewAuthenticationMethod(), diff --git a/models/fido2_authentication_method_collection_response.go b/models/fido2_authentication_method_collection_response.go index 7e96275aa8e..b98320f42d7 100644 --- a/models/fido2_authentication_method_collection_response.go +++ b/models/fido2_authentication_method_collection_response.go @@ -8,7 +8,7 @@ import ( type Fido2AuthenticationMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewFido2AuthenticationMethodCollectionResponse instantiates a new Fido2AuthenticationMethodCollectionResponse and sets the default values. +// NewFido2AuthenticationMethodCollectionResponse instantiates a new fido2AuthenticationMethodCollectionResponse and sets the default values. func NewFido2AuthenticationMethodCollectionResponse()(*Fido2AuthenticationMethodCollectionResponse) { m := &Fido2AuthenticationMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/fido2_authentication_method_configuration.go b/models/fido2_authentication_method_configuration.go index e4c974ddc3e..775bdc1ccfe 100644 --- a/models/fido2_authentication_method_configuration.go +++ b/models/fido2_authentication_method_configuration.go @@ -8,7 +8,7 @@ import ( type Fido2AuthenticationMethodConfiguration struct { AuthenticationMethodConfiguration } -// NewFido2AuthenticationMethodConfiguration instantiates a new Fido2AuthenticationMethodConfiguration and sets the default values. +// NewFido2AuthenticationMethodConfiguration instantiates a new fido2AuthenticationMethodConfiguration and sets the default values. func NewFido2AuthenticationMethodConfiguration()(*Fido2AuthenticationMethodConfiguration) { m := &Fido2AuthenticationMethodConfiguration{ AuthenticationMethodConfiguration: *NewAuthenticationMethodConfiguration(), diff --git a/models/fido2_combination_configuration.go b/models/fido2_combination_configuration.go index cee8d5734b2..312f8c73d67 100644 --- a/models/fido2_combination_configuration.go +++ b/models/fido2_combination_configuration.go @@ -8,7 +8,7 @@ import ( type Fido2CombinationConfiguration struct { AuthenticationCombinationConfiguration } -// NewFido2CombinationConfiguration instantiates a new Fido2CombinationConfiguration and sets the default values. +// NewFido2CombinationConfiguration instantiates a new fido2CombinationConfiguration and sets the default values. func NewFido2CombinationConfiguration()(*Fido2CombinationConfiguration) { m := &Fido2CombinationConfiguration{ AuthenticationCombinationConfiguration: *NewAuthenticationCombinationConfiguration(), diff --git a/models/field_value_set.go b/models/field_value_set.go index 726c2d0715e..f6ed2b1b020 100644 --- a/models/field_value_set.go +++ b/models/field_value_set.go @@ -7,6 +7,8 @@ import ( // FieldValueSet type FieldValueSet struct { Entity + // The OdataType property + OdataType *string } // NewFieldValueSet instantiates a new fieldValueSet and sets the default values. func NewFieldValueSet()(*FieldValueSet) { diff --git a/models/file_assessment_request.go b/models/file_assessment_request.go index 7c0f10702ec..a9e38535907 100644 --- a/models/file_assessment_request.go +++ b/models/file_assessment_request.go @@ -8,7 +8,7 @@ import ( type FileAssessmentRequest struct { ThreatAssessmentRequest } -// NewFileAssessmentRequest instantiates a new FileAssessmentRequest and sets the default values. +// NewFileAssessmentRequest instantiates a new fileAssessmentRequest and sets the default values. func NewFileAssessmentRequest()(*FileAssessmentRequest) { m := &FileAssessmentRequest{ ThreatAssessmentRequest: *NewThreatAssessmentRequest(), diff --git a/models/file_attachment.go b/models/file_attachment.go index 186458d9ad5..97a79f509b0 100644 --- a/models/file_attachment.go +++ b/models/file_attachment.go @@ -7,8 +7,10 @@ import ( // FileAttachment type FileAttachment struct { Attachment + // The OdataType property + OdataType *string } -// NewFileAttachment instantiates a new FileAttachment and sets the default values. +// NewFileAttachment instantiates a new fileAttachment and sets the default values. func NewFileAttachment()(*FileAttachment) { m := &FileAttachment{ Attachment: *NewAttachment(), diff --git a/models/file_classification_request.go b/models/file_classification_request.go index 902b5779718..a33e13f93f6 100644 --- a/models/file_classification_request.go +++ b/models/file_classification_request.go @@ -7,8 +7,10 @@ import ( // FileClassificationRequest type FileClassificationRequest struct { Entity + // The OdataType property + OdataType *string } -// NewFileClassificationRequest instantiates a new FileClassificationRequest and sets the default values. +// NewFileClassificationRequest instantiates a new fileClassificationRequest and sets the default values. func NewFileClassificationRequest()(*FileClassificationRequest) { m := &FileClassificationRequest{ Entity: *NewEntity(), diff --git a/models/file_security_profile.go b/models/file_security_profile.go index 7d83529e76d..00ae5b7bcb4 100644 --- a/models/file_security_profile.go +++ b/models/file_security_profile.go @@ -8,8 +8,10 @@ import ( // FileSecurityProfile type FileSecurityProfile struct { Entity + // The OdataType property + OdataType *string } -// NewFileSecurityProfile instantiates a new FileSecurityProfile and sets the default values. +// NewFileSecurityProfile instantiates a new fileSecurityProfile and sets the default values. func NewFileSecurityProfile()(*FileSecurityProfile) { m := &FileSecurityProfile{ Entity: *NewEntity(), diff --git a/models/file_security_profile_collection_response.go b/models/file_security_profile_collection_response.go index 35311d34687..c74b4cae951 100644 --- a/models/file_security_profile_collection_response.go +++ b/models/file_security_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type FileSecurityProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewFileSecurityProfileCollectionResponse instantiates a new FileSecurityProfileCollectionResponse and sets the default values. +// NewFileSecurityProfileCollectionResponse instantiates a new fileSecurityProfileCollectionResponse and sets the default values. func NewFileSecurityProfileCollectionResponse()(*FileSecurityProfileCollectionResponse) { m := &FileSecurityProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/filter_operator_schema.go b/models/filter_operator_schema.go index b757c1ae962..c66a4a8584f 100644 --- a/models/filter_operator_schema.go +++ b/models/filter_operator_schema.go @@ -7,8 +7,10 @@ import ( // FilterOperatorSchema type FilterOperatorSchema struct { Entity + // The OdataType property + OdataType *string } -// NewFilterOperatorSchema instantiates a new FilterOperatorSchema and sets the default values. +// NewFilterOperatorSchema instantiates a new filterOperatorSchema and sets the default values. func NewFilterOperatorSchema()(*FilterOperatorSchema) { m := &FilterOperatorSchema{ Entity: *NewEntity(), diff --git a/models/filter_operator_schema_collection_response.go b/models/filter_operator_schema_collection_response.go index fd4a677373a..e5ffd332f34 100644 --- a/models/filter_operator_schema_collection_response.go +++ b/models/filter_operator_schema_collection_response.go @@ -8,7 +8,7 @@ import ( type FilterOperatorSchemaCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewFilterOperatorSchemaCollectionResponse instantiates a new FilterOperatorSchemaCollectionResponse and sets the default values. +// NewFilterOperatorSchemaCollectionResponse instantiates a new filterOperatorSchemaCollectionResponse and sets the default values. func NewFilterOperatorSchemaCollectionResponse()(*FilterOperatorSchemaCollectionResponse) { m := &FilterOperatorSchemaCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/financials.go b/models/financials.go index 2013f596d78..04d6269bde9 100644 --- a/models/financials.go +++ b/models/financials.go @@ -11,7 +11,7 @@ type Financials struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewFinancials instantiates a new Financials and sets the default values. +// NewFinancials instantiates a new financials and sets the default values. func NewFinancials()(*Financials) { m := &Financials{ } diff --git a/models/focus_activity_statistics.go b/models/focus_activity_statistics.go index a8d0f5b0ece..3644a09c836 100644 --- a/models/focus_activity_statistics.go +++ b/models/focus_activity_statistics.go @@ -8,7 +8,7 @@ import ( type FocusActivityStatistics struct { ActivityStatistics } -// NewFocusActivityStatistics instantiates a new FocusActivityStatistics and sets the default values. +// NewFocusActivityStatistics instantiates a new focusActivityStatistics and sets the default values. func NewFocusActivityStatistics()(*FocusActivityStatistics) { m := &FocusActivityStatistics{ ActivityStatistics: *NewActivityStatistics(), @@ -24,18 +24,54 @@ func CreateFocusActivityStatisticsFromDiscriminatorValue(parseNode i878a80d2330e // GetFieldDeserializers the deserialization information for the current model func (m *FocusActivityStatistics) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ActivityStatistics.GetFieldDeserializers() + 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 *FocusActivityStatistics) 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 *FocusActivityStatistics) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ActivityStatistics.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *FocusActivityStatistics) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // FocusActivityStatisticsable type FocusActivityStatisticsable interface { ActivityStatisticsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/forms_settings.go b/models/forms_settings.go index 17ad2f984f4..608ffbb0dbd 100644 --- a/models/forms_settings.go +++ b/models/forms_settings.go @@ -10,7 +10,7 @@ type FormsSettings struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewFormsSettings instantiates a new FormsSettings and sets the default values. +// NewFormsSettings instantiates a new formsSettings and sets the default values. func NewFormsSettings()(*FormsSettings) { m := &FormsSettings{ } @@ -123,7 +123,7 @@ func (m *FormsSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return res } -// GetIsBingImageSearchEnabled gets the isBingImageSearchEnabled property value. The isBingImageSearchEnabled property +// GetIsBingImageSearchEnabled gets the isBingImageSearchEnabled property value. Controls whether users can add images from Bing to forms. func (m *FormsSettings) GetIsBingImageSearchEnabled()(*bool) { val, err := m.GetBackingStore().Get("isBingImageSearchEnabled") if err != nil { @@ -134,7 +134,7 @@ func (m *FormsSettings) GetIsBingImageSearchEnabled()(*bool) { } return nil } -// GetIsExternalSendFormEnabled gets the isExternalSendFormEnabled property value. The isExternalSendFormEnabled property +// GetIsExternalSendFormEnabled gets the isExternalSendFormEnabled property value. Controls whether users can send a link to a form to an external user. func (m *FormsSettings) GetIsExternalSendFormEnabled()(*bool) { val, err := m.GetBackingStore().Get("isExternalSendFormEnabled") if err != nil { @@ -145,7 +145,7 @@ func (m *FormsSettings) GetIsExternalSendFormEnabled()(*bool) { } return nil } -// GetIsExternalShareCollaborationEnabled gets the isExternalShareCollaborationEnabled property value. The isExternalShareCollaborationEnabled property +// GetIsExternalShareCollaborationEnabled gets the isExternalShareCollaborationEnabled property value. Controls whether users can collaborate on a form layout and structure with an external user. func (m *FormsSettings) GetIsExternalShareCollaborationEnabled()(*bool) { val, err := m.GetBackingStore().Get("isExternalShareCollaborationEnabled") if err != nil { @@ -156,7 +156,7 @@ func (m *FormsSettings) GetIsExternalShareCollaborationEnabled()(*bool) { } return nil } -// GetIsExternalShareResultEnabled gets the isExternalShareResultEnabled property value. The isExternalShareResultEnabled property +// GetIsExternalShareResultEnabled gets the isExternalShareResultEnabled property value. Controls whether users can share form results with external users. func (m *FormsSettings) GetIsExternalShareResultEnabled()(*bool) { val, err := m.GetBackingStore().Get("isExternalShareResultEnabled") if err != nil { @@ -167,7 +167,7 @@ func (m *FormsSettings) GetIsExternalShareResultEnabled()(*bool) { } return nil } -// GetIsExternalShareTemplateEnabled gets the isExternalShareTemplateEnabled property value. The isExternalShareTemplateEnabled property +// GetIsExternalShareTemplateEnabled gets the isExternalShareTemplateEnabled property value. Controls whether users can share form templates with external users. func (m *FormsSettings) GetIsExternalShareTemplateEnabled()(*bool) { val, err := m.GetBackingStore().Get("isExternalShareTemplateEnabled") if err != nil { @@ -178,7 +178,7 @@ func (m *FormsSettings) GetIsExternalShareTemplateEnabled()(*bool) { } return nil } -// GetIsInOrgFormsPhishingScanEnabled gets the isInOrgFormsPhishingScanEnabled property value. The isInOrgFormsPhishingScanEnabled property +// GetIsInOrgFormsPhishingScanEnabled gets the isInOrgFormsPhishingScanEnabled property value. Controls whether phishing protection is run on forms created by users, blocking the creation of forms if common phishing questions are detected. func (m *FormsSettings) GetIsInOrgFormsPhishingScanEnabled()(*bool) { val, err := m.GetBackingStore().Get("isInOrgFormsPhishingScanEnabled") if err != nil { @@ -189,7 +189,7 @@ func (m *FormsSettings) GetIsInOrgFormsPhishingScanEnabled()(*bool) { } return nil } -// GetIsRecordIdentityByDefaultEnabled gets the isRecordIdentityByDefaultEnabled property value. The isRecordIdentityByDefaultEnabled property +// GetIsRecordIdentityByDefaultEnabled gets the isRecordIdentityByDefaultEnabled property value. Controls whether the names of users who fill out forms are recorded. func (m *FormsSettings) GetIsRecordIdentityByDefaultEnabled()(*bool) { val, err := m.GetBackingStore().Get("isRecordIdentityByDefaultEnabled") if err != nil { @@ -280,49 +280,49 @@ func (m *FormsSettings) SetAdditionalData(value map[string]any)() { func (m *FormsSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIsBingImageSearchEnabled sets the isBingImageSearchEnabled property value. The isBingImageSearchEnabled property +// SetIsBingImageSearchEnabled sets the isBingImageSearchEnabled property value. Controls whether users can add images from Bing to forms. func (m *FormsSettings) SetIsBingImageSearchEnabled(value *bool)() { err := m.GetBackingStore().Set("isBingImageSearchEnabled", value) if err != nil { panic(err) } } -// SetIsExternalSendFormEnabled sets the isExternalSendFormEnabled property value. The isExternalSendFormEnabled property +// SetIsExternalSendFormEnabled sets the isExternalSendFormEnabled property value. Controls whether users can send a link to a form to an external user. func (m *FormsSettings) SetIsExternalSendFormEnabled(value *bool)() { err := m.GetBackingStore().Set("isExternalSendFormEnabled", value) if err != nil { panic(err) } } -// SetIsExternalShareCollaborationEnabled sets the isExternalShareCollaborationEnabled property value. The isExternalShareCollaborationEnabled property +// SetIsExternalShareCollaborationEnabled sets the isExternalShareCollaborationEnabled property value. Controls whether users can collaborate on a form layout and structure with an external user. func (m *FormsSettings) SetIsExternalShareCollaborationEnabled(value *bool)() { err := m.GetBackingStore().Set("isExternalShareCollaborationEnabled", value) if err != nil { panic(err) } } -// SetIsExternalShareResultEnabled sets the isExternalShareResultEnabled property value. The isExternalShareResultEnabled property +// SetIsExternalShareResultEnabled sets the isExternalShareResultEnabled property value. Controls whether users can share form results with external users. func (m *FormsSettings) SetIsExternalShareResultEnabled(value *bool)() { err := m.GetBackingStore().Set("isExternalShareResultEnabled", value) if err != nil { panic(err) } } -// SetIsExternalShareTemplateEnabled sets the isExternalShareTemplateEnabled property value. The isExternalShareTemplateEnabled property +// SetIsExternalShareTemplateEnabled sets the isExternalShareTemplateEnabled property value. Controls whether users can share form templates with external users. func (m *FormsSettings) SetIsExternalShareTemplateEnabled(value *bool)() { err := m.GetBackingStore().Set("isExternalShareTemplateEnabled", value) if err != nil { panic(err) } } -// SetIsInOrgFormsPhishingScanEnabled sets the isInOrgFormsPhishingScanEnabled property value. The isInOrgFormsPhishingScanEnabled property +// SetIsInOrgFormsPhishingScanEnabled sets the isInOrgFormsPhishingScanEnabled property value. Controls whether phishing protection is run on forms created by users, blocking the creation of forms if common phishing questions are detected. func (m *FormsSettings) SetIsInOrgFormsPhishingScanEnabled(value *bool)() { err := m.GetBackingStore().Set("isInOrgFormsPhishingScanEnabled", value) if err != nil { panic(err) } } -// SetIsRecordIdentityByDefaultEnabled sets the isRecordIdentityByDefaultEnabled property value. The isRecordIdentityByDefaultEnabled property +// SetIsRecordIdentityByDefaultEnabled sets the isRecordIdentityByDefaultEnabled property value. Controls whether the names of users who fill out forms are recorded. func (m *FormsSettings) SetIsRecordIdentityByDefaultEnabled(value *bool)() { err := m.GetBackingStore().Set("isRecordIdentityByDefaultEnabled", value) if err != nil { diff --git a/models/general_ledger_entry.go b/models/general_ledger_entry.go index 86289ace3a1..790d8dd58c8 100644 --- a/models/general_ledger_entry.go +++ b/models/general_ledger_entry.go @@ -12,7 +12,7 @@ type GeneralLedgerEntry struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewGeneralLedgerEntry instantiates a new GeneralLedgerEntry and sets the default values. +// NewGeneralLedgerEntry instantiates a new generalLedgerEntry and sets the default values. func NewGeneralLedgerEntry()(*GeneralLedgerEntry) { m := &GeneralLedgerEntry{ } diff --git a/models/general_ledger_entry_collection_response.go b/models/general_ledger_entry_collection_response.go index 7db44fa71f9..b1608608f5b 100644 --- a/models/general_ledger_entry_collection_response.go +++ b/models/general_ledger_entry_collection_response.go @@ -8,7 +8,7 @@ import ( type GeneralLedgerEntryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGeneralLedgerEntryCollectionResponse instantiates a new GeneralLedgerEntryCollectionResponse and sets the default values. +// NewGeneralLedgerEntryCollectionResponse instantiates a new generalLedgerEntryCollectionResponse and sets the default values. func NewGeneralLedgerEntryCollectionResponse()(*GeneralLedgerEntryCollectionResponse) { m := &GeneralLedgerEntryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/governance_insight.go b/models/governance_insight.go index f5cb3cbdfbb..a53525c1c18 100644 --- a/models/governance_insight.go +++ b/models/governance_insight.go @@ -8,6 +8,8 @@ import ( // GovernanceInsight type GovernanceInsight struct { Entity + // The OdataType property + OdataType *string } // NewGovernanceInsight instantiates a new governanceInsight and sets the default values. func NewGovernanceInsight()(*GovernanceInsight) { diff --git a/models/governance_insight_collection_response.go b/models/governance_insight_collection_response.go index aa8c0d3ee1c..67e5bb09882 100644 --- a/models/governance_insight_collection_response.go +++ b/models/governance_insight_collection_response.go @@ -8,7 +8,7 @@ import ( type GovernanceInsightCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGovernanceInsightCollectionResponse instantiates a new GovernanceInsightCollectionResponse and sets the default values. +// NewGovernanceInsightCollectionResponse instantiates a new governanceInsightCollectionResponse and sets the default values. func NewGovernanceInsightCollectionResponse()(*GovernanceInsightCollectionResponse) { m := &GovernanceInsightCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/governance_policy_template.go b/models/governance_policy_template.go index d2fa3f40da4..a47c6aa8fed 100644 --- a/models/governance_policy_template.go +++ b/models/governance_policy_template.go @@ -7,6 +7,8 @@ import ( // GovernancePolicyTemplate type GovernancePolicyTemplate struct { Entity + // The OdataType property + OdataType *string } // NewGovernancePolicyTemplate instantiates a new governancePolicyTemplate and sets the default values. func NewGovernancePolicyTemplate()(*GovernancePolicyTemplate) { diff --git a/models/governance_policy_template_collection_response.go b/models/governance_policy_template_collection_response.go index 1f1c274881c..e7052cf9e93 100644 --- a/models/governance_policy_template_collection_response.go +++ b/models/governance_policy_template_collection_response.go @@ -8,7 +8,7 @@ import ( type GovernancePolicyTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGovernancePolicyTemplateCollectionResponse instantiates a new GovernancePolicyTemplateCollectionResponse and sets the default values. +// NewGovernancePolicyTemplateCollectionResponse instantiates a new governancePolicyTemplateCollectionResponse and sets the default values. func NewGovernancePolicyTemplateCollectionResponse()(*GovernancePolicyTemplateCollectionResponse) { m := &GovernancePolicyTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/governance_resource.go b/models/governance_resource.go index 3a734fce86c..742bcc79237 100644 --- a/models/governance_resource.go +++ b/models/governance_resource.go @@ -8,6 +8,8 @@ import ( // GovernanceResource type GovernanceResource struct { Entity + // The OdataType property + OdataType *string } // NewGovernanceResource instantiates a new governanceResource and sets the default values. func NewGovernanceResource()(*GovernanceResource) { diff --git a/models/governance_resource_collection_response.go b/models/governance_resource_collection_response.go index e99e0e11f5d..d1196304f1c 100644 --- a/models/governance_resource_collection_response.go +++ b/models/governance_resource_collection_response.go @@ -8,7 +8,7 @@ import ( type GovernanceResourceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGovernanceResourceCollectionResponse instantiates a new GovernanceResourceCollectionResponse and sets the default values. +// NewGovernanceResourceCollectionResponse instantiates a new governanceResourceCollectionResponse and sets the default values. func NewGovernanceResourceCollectionResponse()(*GovernanceResourceCollectionResponse) { m := &GovernanceResourceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/governance_role_assignment.go b/models/governance_role_assignment.go index 2efa43e4b41..bfa02f7cb28 100644 --- a/models/governance_role_assignment.go +++ b/models/governance_role_assignment.go @@ -8,6 +8,8 @@ import ( // GovernanceRoleAssignment type GovernanceRoleAssignment struct { Entity + // The OdataType property + OdataType *string } // NewGovernanceRoleAssignment instantiates a new governanceRoleAssignment and sets the default values. func NewGovernanceRoleAssignment()(*GovernanceRoleAssignment) { diff --git a/models/governance_role_assignment_collection_response.go b/models/governance_role_assignment_collection_response.go index 459cd8e48d6..e3867ee7fde 100644 --- a/models/governance_role_assignment_collection_response.go +++ b/models/governance_role_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type GovernanceRoleAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGovernanceRoleAssignmentCollectionResponse instantiates a new GovernanceRoleAssignmentCollectionResponse and sets the default values. +// NewGovernanceRoleAssignmentCollectionResponse instantiates a new governanceRoleAssignmentCollectionResponse and sets the default values. func NewGovernanceRoleAssignmentCollectionResponse()(*GovernanceRoleAssignmentCollectionResponse) { m := &GovernanceRoleAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/governance_role_assignment_request.go b/models/governance_role_assignment_request.go index 0b33d866ddc..0cc3272df1f 100644 --- a/models/governance_role_assignment_request.go +++ b/models/governance_role_assignment_request.go @@ -8,6 +8,8 @@ import ( // GovernanceRoleAssignmentRequest type GovernanceRoleAssignmentRequest struct { Entity + // The OdataType property + OdataType *string } // NewGovernanceRoleAssignmentRequest instantiates a new governanceRoleAssignmentRequest and sets the default values. func NewGovernanceRoleAssignmentRequest()(*GovernanceRoleAssignmentRequest) { diff --git a/models/governance_role_assignment_request_collection_response.go b/models/governance_role_assignment_request_collection_response.go index 91cb379f03d..6d977165e85 100644 --- a/models/governance_role_assignment_request_collection_response.go +++ b/models/governance_role_assignment_request_collection_response.go @@ -8,7 +8,7 @@ import ( type GovernanceRoleAssignmentRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGovernanceRoleAssignmentRequestCollectionResponse instantiates a new GovernanceRoleAssignmentRequestCollectionResponse and sets the default values. +// NewGovernanceRoleAssignmentRequestCollectionResponse instantiates a new governanceRoleAssignmentRequestCollectionResponse and sets the default values. func NewGovernanceRoleAssignmentRequestCollectionResponse()(*GovernanceRoleAssignmentRequestCollectionResponse) { m := &GovernanceRoleAssignmentRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/governance_role_definition.go b/models/governance_role_definition.go index d03d62ef7ed..05f215e9f54 100644 --- a/models/governance_role_definition.go +++ b/models/governance_role_definition.go @@ -7,6 +7,8 @@ import ( // GovernanceRoleDefinition type GovernanceRoleDefinition struct { Entity + // The OdataType property + OdataType *string } // NewGovernanceRoleDefinition instantiates a new governanceRoleDefinition and sets the default values. func NewGovernanceRoleDefinition()(*GovernanceRoleDefinition) { diff --git a/models/governance_role_definition_collection_response.go b/models/governance_role_definition_collection_response.go index 6dda29e4c01..a224e66d2c4 100644 --- a/models/governance_role_definition_collection_response.go +++ b/models/governance_role_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type GovernanceRoleDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGovernanceRoleDefinitionCollectionResponse instantiates a new GovernanceRoleDefinitionCollectionResponse and sets the default values. +// NewGovernanceRoleDefinitionCollectionResponse instantiates a new governanceRoleDefinitionCollectionResponse and sets the default values. func NewGovernanceRoleDefinitionCollectionResponse()(*GovernanceRoleDefinitionCollectionResponse) { m := &GovernanceRoleDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/governance_role_setting.go b/models/governance_role_setting.go index be5aa912a13..2e5ad82ff2a 100644 --- a/models/governance_role_setting.go +++ b/models/governance_role_setting.go @@ -8,6 +8,8 @@ import ( // GovernanceRoleSetting type GovernanceRoleSetting struct { Entity + // The OdataType property + OdataType *string } // NewGovernanceRoleSetting instantiates a new governanceRoleSetting and sets the default values. func NewGovernanceRoleSetting()(*GovernanceRoleSetting) { diff --git a/models/governance_role_setting_collection_response.go b/models/governance_role_setting_collection_response.go index 0591bddac17..ea64c78cffe 100644 --- a/models/governance_role_setting_collection_response.go +++ b/models/governance_role_setting_collection_response.go @@ -8,7 +8,7 @@ import ( type GovernanceRoleSettingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGovernanceRoleSettingCollectionResponse instantiates a new GovernanceRoleSettingCollectionResponse and sets the default values. +// NewGovernanceRoleSettingCollectionResponse instantiates a new governanceRoleSettingCollectionResponse and sets the default values. func NewGovernanceRoleSettingCollectionResponse()(*GovernanceRoleSettingCollectionResponse) { m := &GovernanceRoleSettingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/governance_subject.go b/models/governance_subject.go index 23394af4f6a..0fa779a0715 100644 --- a/models/governance_subject.go +++ b/models/governance_subject.go @@ -64,6 +64,16 @@ func (m *GovernanceSubject) GetFieldDeserializers()(map[string]func(i878a80d2330 } 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["principalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -86,6 +96,17 @@ func (m *GovernanceSubject) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *GovernanceSubject) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPrincipalName gets the principalName property value. The principal name of the user subject. If the subject is in other types, it is empty. func (m *GovernanceSubject) GetPrincipalName()(*string) { val, err := m.GetBackingStore().Get("principalName") @@ -126,6 +147,12 @@ func (m *GovernanceSubject) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("principalName", m.GetPrincipalName()) if err != nil { @@ -154,6 +181,13 @@ func (m *GovernanceSubject) SetEmail(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *GovernanceSubject) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPrincipalName sets the principalName property value. The principal name of the user subject. If the subject is in other types, it is empty. func (m *GovernanceSubject) SetPrincipalName(value *string)() { err := m.GetBackingStore().Set("principalName", value) @@ -174,10 +208,12 @@ type GovernanceSubjectable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDisplayName()(*string) GetEmail()(*string) + GetOdataType()(*string) GetPrincipalName()(*string) GetType()(*string) SetDisplayName(value *string)() SetEmail(value *string)() + SetOdataType(value *string)() SetPrincipalName(value *string)() SetType(value *string)() } diff --git a/models/governance_subject_collection_response.go b/models/governance_subject_collection_response.go index 442e57d1dae..02471ee56f8 100644 --- a/models/governance_subject_collection_response.go +++ b/models/governance_subject_collection_response.go @@ -8,7 +8,7 @@ import ( type GovernanceSubjectCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGovernanceSubjectCollectionResponse instantiates a new GovernanceSubjectCollectionResponse and sets the default values. +// NewGovernanceSubjectCollectionResponse instantiates a new governanceSubjectCollectionResponse and sets the default values. func NewGovernanceSubjectCollectionResponse()(*GovernanceSubjectCollectionResponse) { m := &GovernanceSubjectCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group.go b/models/group.go index 2788cecbc53..822fe0ae9c3 100644 --- a/models/group.go +++ b/models/group.go @@ -9,7 +9,7 @@ import ( type Group struct { DirectoryObject } -// NewGroup instantiates a new Group and sets the default values. +// NewGroup instantiates a new group and sets the default values. func NewGroup()(*Group) { m := &Group{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/group_assignment_target.go b/models/group_assignment_target.go index befcb9145d9..9181f2f9382 100644 --- a/models/group_assignment_target.go +++ b/models/group_assignment_target.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupAssignmentTarget +// GroupAssignmentTarget represents an assignment to a group. type GroupAssignmentTarget struct { DeviceAndAppManagementAssignmentTarget } -// NewGroupAssignmentTarget instantiates a new GroupAssignmentTarget and sets the default values. +// NewGroupAssignmentTarget instantiates a new groupAssignmentTarget and sets the default values. func NewGroupAssignmentTarget()(*GroupAssignmentTarget) { m := &GroupAssignmentTarget{ DeviceAndAppManagementAssignmentTarget: *NewDeviceAndAppManagementAssignmentTarget(), @@ -52,6 +52,16 @@ func (m *GroupAssignmentTarget) GetFieldDeserializers()(map[string]func(i878a80d } 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 } // GetGroupId gets the groupId property value. The group Id that is the target of the assignment. @@ -65,6 +75,17 @@ func (m *GroupAssignmentTarget) GetGroupId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *GroupAssignmentTarget) 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 *GroupAssignmentTarget) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DeviceAndAppManagementAssignmentTarget.Serialize(writer) @@ -77,6 +98,12 @@ func (m *GroupAssignmentTarget) Serialize(writer i878a80d2330e89d26896388a3f487e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetGroupId sets the groupId property value. The group Id that is the target of the assignment. @@ -86,10 +113,19 @@ func (m *GroupAssignmentTarget) SetGroupId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *GroupAssignmentTarget) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // GroupAssignmentTargetable type GroupAssignmentTargetable interface { DeviceAndAppManagementAssignmentTargetable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetGroupId()(*string) + GetOdataType()(*string) SetGroupId(value *string)() + SetOdataType(value *string)() } diff --git a/models/group_collection_response.go b/models/group_collection_response.go index b70ba48139d..9a72636890d 100644 --- a/models/group_collection_response.go +++ b/models/group_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupCollectionResponse instantiates a new GroupCollectionResponse and sets the default values. +// NewGroupCollectionResponse instantiates a new groupCollectionResponse and sets the default values. func NewGroupCollectionResponse()(*GroupCollectionResponse) { m := &GroupCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_lifecycle_policy.go b/models/group_lifecycle_policy.go index 78c2f22fcca..75be1737708 100644 --- a/models/group_lifecycle_policy.go +++ b/models/group_lifecycle_policy.go @@ -7,6 +7,8 @@ import ( // GroupLifecyclePolicy type GroupLifecyclePolicy struct { Entity + // The OdataType property + OdataType *string } // NewGroupLifecyclePolicy instantiates a new groupLifecyclePolicy and sets the default values. func NewGroupLifecyclePolicy()(*GroupLifecyclePolicy) { diff --git a/models/group_lifecycle_policy_collection_response.go b/models/group_lifecycle_policy_collection_response.go index 150db6a158b..cbfc97bfd09 100644 --- a/models/group_lifecycle_policy_collection_response.go +++ b/models/group_lifecycle_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupLifecyclePolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupLifecyclePolicyCollectionResponse instantiates a new GroupLifecyclePolicyCollectionResponse and sets the default values. +// NewGroupLifecyclePolicyCollectionResponse instantiates a new groupLifecyclePolicyCollectionResponse and sets the default values. func NewGroupLifecyclePolicyCollectionResponse()(*GroupLifecyclePolicyCollectionResponse) { m := &GroupLifecyclePolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_members.go b/models/group_members.go index 5880375520b..8fe99d3f6f8 100644 --- a/models/group_members.go +++ b/models/group_members.go @@ -8,7 +8,7 @@ import ( type GroupMembers struct { UserSet } -// NewGroupMembers instantiates a new GroupMembers and sets the default values. +// NewGroupMembers instantiates a new groupMembers and sets the default values. func NewGroupMembers()(*GroupMembers) { m := &GroupMembers{ UserSet: *NewUserSet(), @@ -55,6 +55,16 @@ func (m *GroupMembers) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } 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 } // GetId gets the id property value. The ID of the group in Azure AD. @@ -68,6 +78,17 @@ func (m *GroupMembers) GetId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *GroupMembers) 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 *GroupMembers) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.UserSet.Serialize(writer) @@ -86,6 +107,12 @@ func (m *GroupMembers) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDescription sets the description property value. The name of the group in Azure AD. Read only. @@ -102,12 +129,21 @@ func (m *GroupMembers) SetId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *GroupMembers) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // GroupMembersable type GroupMembersable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable UserSetable GetDescription()(*string) GetId()(*string) + GetOdataType()(*string) SetDescription(value *string)() SetId(value *string)() + SetOdataType(value *string)() } diff --git a/models/group_membership_governance_criteria.go b/models/group_membership_governance_criteria.go index ae108c79de3..d3c88d5734b 100644 --- a/models/group_membership_governance_criteria.go +++ b/models/group_membership_governance_criteria.go @@ -7,8 +7,10 @@ import ( // GroupMembershipGovernanceCriteria type GroupMembershipGovernanceCriteria struct { GovernanceCriteria + // The OdataType property + OdataType *string } -// NewGroupMembershipGovernanceCriteria instantiates a new GroupMembershipGovernanceCriteria and sets the default values. +// NewGroupMembershipGovernanceCriteria instantiates a new groupMembershipGovernanceCriteria and sets the default values. func NewGroupMembershipGovernanceCriteria()(*GroupMembershipGovernanceCriteria) { m := &GroupMembershipGovernanceCriteria{ GovernanceCriteria: *NewGovernanceCriteria(), diff --git a/models/group_peer_outlier_recommendation_insight_settings.go b/models/group_peer_outlier_recommendation_insight_settings.go index 412a7135ad1..4de2623bab5 100644 --- a/models/group_peer_outlier_recommendation_insight_settings.go +++ b/models/group_peer_outlier_recommendation_insight_settings.go @@ -8,7 +8,7 @@ import ( type GroupPeerOutlierRecommendationInsightSettings struct { AccessReviewRecommendationInsightSetting } -// NewGroupPeerOutlierRecommendationInsightSettings instantiates a new GroupPeerOutlierRecommendationInsightSettings and sets the default values. +// NewGroupPeerOutlierRecommendationInsightSettings instantiates a new groupPeerOutlierRecommendationInsightSettings and sets the default values. func NewGroupPeerOutlierRecommendationInsightSettings()(*GroupPeerOutlierRecommendationInsightSettings) { m := &GroupPeerOutlierRecommendationInsightSettings{ AccessReviewRecommendationInsightSetting: *NewAccessReviewRecommendationInsightSetting(), @@ -24,18 +24,54 @@ func CreateGroupPeerOutlierRecommendationInsightSettingsFromDiscriminatorValue(p // GetFieldDeserializers the deserialization information for the current model func (m *GroupPeerOutlierRecommendationInsightSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AccessReviewRecommendationInsightSetting.GetFieldDeserializers() + 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 *GroupPeerOutlierRecommendationInsightSettings) 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 *GroupPeerOutlierRecommendationInsightSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AccessReviewRecommendationInsightSetting.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *GroupPeerOutlierRecommendationInsightSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // GroupPeerOutlierRecommendationInsightSettingsable type GroupPeerOutlierRecommendationInsightSettingsable interface { AccessReviewRecommendationInsightSettingable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/group_policy_category.go b/models/group_policy_category.go index c4b765dab02..52c1c5bb4c6 100644 --- a/models/group_policy_category.go +++ b/models/group_policy_category.go @@ -8,6 +8,8 @@ import ( // GroupPolicyCategory the category entity stores the category of a group policy definition type GroupPolicyCategory struct { Entity + // The OdataType property + OdataType *string } // NewGroupPolicyCategory instantiates a new groupPolicyCategory and sets the default values. func NewGroupPolicyCategory()(*GroupPolicyCategory) { diff --git a/models/group_policy_category_collection_response.go b/models/group_policy_category_collection_response.go index fe34b0ecd8c..df82994d2f9 100644 --- a/models/group_policy_category_collection_response.go +++ b/models/group_policy_category_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyCategoryCollectionResponse instantiates a new GroupPolicyCategoryCollectionResponse and sets the default values. +// NewGroupPolicyCategoryCollectionResponse instantiates a new groupPolicyCategoryCollectionResponse and sets the default values. func NewGroupPolicyCategoryCollectionResponse()(*GroupPolicyCategoryCollectionResponse) { m := &GroupPolicyCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_configuration.go b/models/group_policy_configuration.go index 3c0ce4c0191..f7ae3554ae1 100644 --- a/models/group_policy_configuration.go +++ b/models/group_policy_configuration.go @@ -8,6 +8,8 @@ import ( // GroupPolicyConfiguration the group policy configuration entity contains the configured values for one or more group policy definitions. type GroupPolicyConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewGroupPolicyConfiguration instantiates a new groupPolicyConfiguration and sets the default values. func NewGroupPolicyConfiguration()(*GroupPolicyConfiguration) { diff --git a/models/group_policy_configuration_assignment.go b/models/group_policy_configuration_assignment.go index 318ce1d4937..c503340f6e0 100644 --- a/models/group_policy_configuration_assignment.go +++ b/models/group_policy_configuration_assignment.go @@ -8,6 +8,8 @@ import ( // GroupPolicyConfigurationAssignment the group policy configuration assignment entity assigns one or more AAD groups to a specific group policy configuration. type GroupPolicyConfigurationAssignment struct { Entity + // The OdataType property + OdataType *string } // NewGroupPolicyConfigurationAssignment instantiates a new groupPolicyConfigurationAssignment and sets the default values. func NewGroupPolicyConfigurationAssignment()(*GroupPolicyConfigurationAssignment) { diff --git a/models/group_policy_configuration_assignment_collection_response.go b/models/group_policy_configuration_assignment_collection_response.go index c9cb5d2f9ca..a4be48e893e 100644 --- a/models/group_policy_configuration_assignment_collection_response.go +++ b/models/group_policy_configuration_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyConfigurationAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyConfigurationAssignmentCollectionResponse instantiates a new GroupPolicyConfigurationAssignmentCollectionResponse and sets the default values. +// NewGroupPolicyConfigurationAssignmentCollectionResponse instantiates a new groupPolicyConfigurationAssignmentCollectionResponse and sets the default values. func NewGroupPolicyConfigurationAssignmentCollectionResponse()(*GroupPolicyConfigurationAssignmentCollectionResponse) { m := &GroupPolicyConfigurationAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_configuration_collection_response.go b/models/group_policy_configuration_collection_response.go index 93886f04247..ccf1101aa16 100644 --- a/models/group_policy_configuration_collection_response.go +++ b/models/group_policy_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyConfigurationCollectionResponse instantiates a new GroupPolicyConfigurationCollectionResponse and sets the default values. +// NewGroupPolicyConfigurationCollectionResponse instantiates a new groupPolicyConfigurationCollectionResponse and sets the default values. func NewGroupPolicyConfigurationCollectionResponse()(*GroupPolicyConfigurationCollectionResponse) { m := &GroupPolicyConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_definition.go b/models/group_policy_definition.go index 02fdfb39fe7..63f11124095 100644 --- a/models/group_policy_definition.go +++ b/models/group_policy_definition.go @@ -9,6 +9,8 @@ import ( // GroupPolicyDefinition the entity describes all of the information about a single group policy. type GroupPolicyDefinition struct { Entity + // The OdataType property + OdataType *string } // NewGroupPolicyDefinition instantiates a new groupPolicyDefinition and sets the default values. func NewGroupPolicyDefinition()(*GroupPolicyDefinition) { diff --git a/models/group_policy_definition_collection_response.go b/models/group_policy_definition_collection_response.go index 6e706cda62b..232352444d0 100644 --- a/models/group_policy_definition_collection_response.go +++ b/models/group_policy_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyDefinitionCollectionResponse instantiates a new GroupPolicyDefinitionCollectionResponse and sets the default values. +// NewGroupPolicyDefinitionCollectionResponse instantiates a new groupPolicyDefinitionCollectionResponse and sets the default values. func NewGroupPolicyDefinitionCollectionResponse()(*GroupPolicyDefinitionCollectionResponse) { m := &GroupPolicyDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_definition_file.go b/models/group_policy_definition_file.go index 6f09d7816bc..030e3ee591b 100644 --- a/models/group_policy_definition_file.go +++ b/models/group_policy_definition_file.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyDefinitionFile +// GroupPolicyDefinitionFile the entity represents an ADMX (Administrative Template) XML file. The ADMX file contains a collection of group policy definitions and their locations by category path. The group policy definition file also contains the languages supported as determined by the language dependent ADML (Administrative Template) language files. type GroupPolicyDefinitionFile struct { Entity + // The OdataType property + OdataType *string } // NewGroupPolicyDefinitionFile instantiates a new groupPolicyDefinitionFile and sets the default values. func NewGroupPolicyDefinitionFile()(*GroupPolicyDefinitionFile) { diff --git a/models/group_policy_definition_file_collection_response.go b/models/group_policy_definition_file_collection_response.go index c9093c71e8a..53e057e7cc3 100644 --- a/models/group_policy_definition_file_collection_response.go +++ b/models/group_policy_definition_file_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyDefinitionFileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyDefinitionFileCollectionResponse instantiates a new GroupPolicyDefinitionFileCollectionResponse and sets the default values. +// NewGroupPolicyDefinitionFileCollectionResponse instantiates a new groupPolicyDefinitionFileCollectionResponse and sets the default values. func NewGroupPolicyDefinitionFileCollectionResponse()(*GroupPolicyDefinitionFileCollectionResponse) { m := &GroupPolicyDefinitionFileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_definition_value.go b/models/group_policy_definition_value.go index 47579d450a5..d8456503445 100644 --- a/models/group_policy_definition_value.go +++ b/models/group_policy_definition_value.go @@ -117,6 +117,16 @@ func (m *GroupPolicyDefinitionValue) GetFieldDeserializers()(map[string]func(i87 } 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["presentationValues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateGroupPolicyPresentationValueFromDiscriminatorValue) if err != nil { @@ -146,6 +156,17 @@ func (m *GroupPolicyDefinitionValue) GetLastModifiedDateTime()(*i336074805fc8539 } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *GroupPolicyDefinitionValue) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPresentationValues gets the presentationValues property value. The associated group policy presentation values with the definition value. func (m *GroupPolicyDefinitionValue) GetPresentationValues()([]GroupPolicyPresentationValueable) { val, err := m.GetBackingStore().Get("presentationValues") @@ -194,6 +215,12 @@ func (m *GroupPolicyDefinitionValue) Serialize(writer i878a80d2330e89d26896388a3 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetPresentationValues() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetPresentationValues())) for i, v := range m.GetPresentationValues() { @@ -243,6 +270,13 @@ func (m *GroupPolicyDefinitionValue) SetLastModifiedDateTime(value *i336074805fc panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *GroupPolicyDefinitionValue) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPresentationValues sets the presentationValues property value. The associated group policy presentation values with the definition value. func (m *GroupPolicyDefinitionValue) SetPresentationValues(value []GroupPolicyPresentationValueable)() { err := m.GetBackingStore().Set("presentationValues", value) @@ -259,11 +293,13 @@ type GroupPolicyDefinitionValueable interface { GetDefinition()(GroupPolicyDefinitionable) GetEnabled()(*bool) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetPresentationValues()([]GroupPolicyPresentationValueable) SetConfigurationType(value *GroupPolicyConfigurationType)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDefinition(value GroupPolicyDefinitionable)() SetEnabled(value *bool)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetPresentationValues(value []GroupPolicyPresentationValueable)() } diff --git a/models/group_policy_definition_value_collection_response.go b/models/group_policy_definition_value_collection_response.go index 9968b2a3b96..abed5ab86a8 100644 --- a/models/group_policy_definition_value_collection_response.go +++ b/models/group_policy_definition_value_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyDefinitionValueCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyDefinitionValueCollectionResponse instantiates a new GroupPolicyDefinitionValueCollectionResponse and sets the default values. +// NewGroupPolicyDefinitionValueCollectionResponse instantiates a new groupPolicyDefinitionValueCollectionResponse and sets the default values. func NewGroupPolicyDefinitionValueCollectionResponse()(*GroupPolicyDefinitionValueCollectionResponse) { m := &GroupPolicyDefinitionValueCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_migration_report.go b/models/group_policy_migration_report.go index 883bd7c6292..af80d9e9262 100644 --- a/models/group_policy_migration_report.go +++ b/models/group_policy_migration_report.go @@ -6,11 +6,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyMigrationReport +// GroupPolicyMigrationReport the Group Policy migration report. type GroupPolicyMigrationReport struct { Entity + // The OdataType property + OdataType *string } -// NewGroupPolicyMigrationReport instantiates a new GroupPolicyMigrationReport and sets the default values. +// NewGroupPolicyMigrationReport instantiates a new groupPolicyMigrationReport and sets the default values. func NewGroupPolicyMigrationReport()(*GroupPolicyMigrationReport) { m := &GroupPolicyMigrationReport{ Entity: *NewEntity(), diff --git a/models/group_policy_migration_report_collection_response.go b/models/group_policy_migration_report_collection_response.go index dd359adc376..4cb2a9e46a4 100644 --- a/models/group_policy_migration_report_collection_response.go +++ b/models/group_policy_migration_report_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyMigrationReportCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyMigrationReportCollectionResponse instantiates a new GroupPolicyMigrationReportCollectionResponse and sets the default values. +// NewGroupPolicyMigrationReportCollectionResponse instantiates a new groupPolicyMigrationReportCollectionResponse and sets the default values. func NewGroupPolicyMigrationReportCollectionResponse()(*GroupPolicyMigrationReportCollectionResponse) { m := &GroupPolicyMigrationReportCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_object_file.go b/models/group_policy_object_file.go index e86d44015a3..843c4215367 100644 --- a/models/group_policy_object_file.go +++ b/models/group_policy_object_file.go @@ -9,6 +9,8 @@ import ( // GroupPolicyObjectFile the Group Policy Object file uploaded by admin. type GroupPolicyObjectFile struct { Entity + // The OdataType property + OdataType *string } // NewGroupPolicyObjectFile instantiates a new groupPolicyObjectFile and sets the default values. func NewGroupPolicyObjectFile()(*GroupPolicyObjectFile) { diff --git a/models/group_policy_object_file_collection_response.go b/models/group_policy_object_file_collection_response.go index a9771f18343..7e58290a635 100644 --- a/models/group_policy_object_file_collection_response.go +++ b/models/group_policy_object_file_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyObjectFileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyObjectFileCollectionResponse instantiates a new GroupPolicyObjectFileCollectionResponse and sets the default values. +// NewGroupPolicyObjectFileCollectionResponse instantiates a new groupPolicyObjectFileCollectionResponse and sets the default values. func NewGroupPolicyObjectFileCollectionResponse()(*GroupPolicyObjectFileCollectionResponse) { m := &GroupPolicyObjectFileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_operation.go b/models/group_policy_operation.go index ee0e4f60508..e4981091883 100644 --- a/models/group_policy_operation.go +++ b/models/group_policy_operation.go @@ -8,6 +8,8 @@ import ( // GroupPolicyOperation the entity represents an group policy operation. type GroupPolicyOperation struct { Entity + // The OdataType property + OdataType *string } // NewGroupPolicyOperation instantiates a new groupPolicyOperation and sets the default values. func NewGroupPolicyOperation()(*GroupPolicyOperation) { diff --git a/models/group_policy_operation_collection_response.go b/models/group_policy_operation_collection_response.go index 3af35b62bf3..b4b8e779929 100644 --- a/models/group_policy_operation_collection_response.go +++ b/models/group_policy_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyOperationCollectionResponse instantiates a new GroupPolicyOperationCollectionResponse and sets the default values. +// NewGroupPolicyOperationCollectionResponse instantiates a new groupPolicyOperationCollectionResponse and sets the default values. func NewGroupPolicyOperationCollectionResponse()(*GroupPolicyOperationCollectionResponse) { m := &GroupPolicyOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_presentation.go b/models/group_policy_presentation.go index 4e57de4edf7..1f782d686bc 100644 --- a/models/group_policy_presentation.go +++ b/models/group_policy_presentation.go @@ -8,6 +8,8 @@ import ( // GroupPolicyPresentation the base entity for the display presentation of any of the additional options in a group policy definition. type GroupPolicyPresentation struct { Entity + // The OdataType property + OdataType *string } // NewGroupPolicyPresentation instantiates a new groupPolicyPresentation and sets the default values. func NewGroupPolicyPresentation()(*GroupPolicyPresentation) { diff --git a/models/group_policy_presentation_check_box.go b/models/group_policy_presentation_check_box.go index f6b367c09f4..d1bd98b04b0 100644 --- a/models/group_policy_presentation_check_box.go +++ b/models/group_policy_presentation_check_box.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationCheckBox +// GroupPolicyPresentationCheckBox represents an ADMX checkBox element and an ADMX boolean element. type GroupPolicyPresentationCheckBox struct { GroupPolicyUploadedPresentation } -// NewGroupPolicyPresentationCheckBox instantiates a new GroupPolicyPresentationCheckBox and sets the default values. +// NewGroupPolicyPresentationCheckBox instantiates a new groupPolicyPresentationCheckBox and sets the default values. func NewGroupPolicyPresentationCheckBox()(*GroupPolicyPresentationCheckBox) { m := &GroupPolicyPresentationCheckBox{ GroupPolicyUploadedPresentation: *NewGroupPolicyUploadedPresentation(), diff --git a/models/group_policy_presentation_collection_response.go b/models/group_policy_presentation_collection_response.go index 4cf3784e5c3..dce8c986afc 100644 --- a/models/group_policy_presentation_collection_response.go +++ b/models/group_policy_presentation_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyPresentationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyPresentationCollectionResponse instantiates a new GroupPolicyPresentationCollectionResponse and sets the default values. +// NewGroupPolicyPresentationCollectionResponse instantiates a new groupPolicyPresentationCollectionResponse and sets the default values. func NewGroupPolicyPresentationCollectionResponse()(*GroupPolicyPresentationCollectionResponse) { m := &GroupPolicyPresentationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_presentation_combo_box.go b/models/group_policy_presentation_combo_box.go index 52f909426cb..aeae44af227 100644 --- a/models/group_policy_presentation_combo_box.go +++ b/models/group_policy_presentation_combo_box.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationComboBox +// GroupPolicyPresentationComboBox represents an ADMX comboBox element and an ADMX text element. type GroupPolicyPresentationComboBox struct { GroupPolicyUploadedPresentation } -// NewGroupPolicyPresentationComboBox instantiates a new GroupPolicyPresentationComboBox and sets the default values. +// NewGroupPolicyPresentationComboBox instantiates a new groupPolicyPresentationComboBox and sets the default values. func NewGroupPolicyPresentationComboBox()(*GroupPolicyPresentationComboBox) { m := &GroupPolicyPresentationComboBox{ GroupPolicyUploadedPresentation: *NewGroupPolicyUploadedPresentation(), diff --git a/models/group_policy_presentation_decimal_text_box.go b/models/group_policy_presentation_decimal_text_box.go index 604285a3abb..948e5e0c752 100644 --- a/models/group_policy_presentation_decimal_text_box.go +++ b/models/group_policy_presentation_decimal_text_box.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationDecimalTextBox +// GroupPolicyPresentationDecimalTextBox represents an ADMX decimalTextBox element and an ADMX decimal element. type GroupPolicyPresentationDecimalTextBox struct { GroupPolicyUploadedPresentation } -// NewGroupPolicyPresentationDecimalTextBox instantiates a new GroupPolicyPresentationDecimalTextBox and sets the default values. +// NewGroupPolicyPresentationDecimalTextBox instantiates a new groupPolicyPresentationDecimalTextBox and sets the default values. func NewGroupPolicyPresentationDecimalTextBox()(*GroupPolicyPresentationDecimalTextBox) { m := &GroupPolicyPresentationDecimalTextBox{ GroupPolicyUploadedPresentation: *NewGroupPolicyUploadedPresentation(), diff --git a/models/group_policy_presentation_dropdown_list.go b/models/group_policy_presentation_dropdown_list.go index db2e4cb619e..aea255c619c 100644 --- a/models/group_policy_presentation_dropdown_list.go +++ b/models/group_policy_presentation_dropdown_list.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationDropdownList +// GroupPolicyPresentationDropdownList represents an ADMX dropdownList element and an ADMX enum element. type GroupPolicyPresentationDropdownList struct { GroupPolicyUploadedPresentation } -// NewGroupPolicyPresentationDropdownList instantiates a new GroupPolicyPresentationDropdownList and sets the default values. +// NewGroupPolicyPresentationDropdownList instantiates a new groupPolicyPresentationDropdownList and sets the default values. func NewGroupPolicyPresentationDropdownList()(*GroupPolicyPresentationDropdownList) { m := &GroupPolicyPresentationDropdownList{ GroupPolicyUploadedPresentation: *NewGroupPolicyUploadedPresentation(), diff --git a/models/group_policy_presentation_list_box.go b/models/group_policy_presentation_list_box.go index 97d146de646..0820dfa45d1 100644 --- a/models/group_policy_presentation_list_box.go +++ b/models/group_policy_presentation_list_box.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationListBox +// GroupPolicyPresentationListBox represents an ADMX listBox element and an ADMX list element. type GroupPolicyPresentationListBox struct { GroupPolicyUploadedPresentation } -// NewGroupPolicyPresentationListBox instantiates a new GroupPolicyPresentationListBox and sets the default values. +// NewGroupPolicyPresentationListBox instantiates a new groupPolicyPresentationListBox and sets the default values. func NewGroupPolicyPresentationListBox()(*GroupPolicyPresentationListBox) { m := &GroupPolicyPresentationListBox{ GroupPolicyUploadedPresentation: *NewGroupPolicyUploadedPresentation(), diff --git a/models/group_policy_presentation_long_decimal_text_box.go b/models/group_policy_presentation_long_decimal_text_box.go index 7ca4a5f455e..cf84bfaeafb 100644 --- a/models/group_policy_presentation_long_decimal_text_box.go +++ b/models/group_policy_presentation_long_decimal_text_box.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationLongDecimalTextBox +// GroupPolicyPresentationLongDecimalTextBox represents an ADMX longDecimalTextBox element and an ADMX longDecimal element. type GroupPolicyPresentationLongDecimalTextBox struct { GroupPolicyUploadedPresentation } -// NewGroupPolicyPresentationLongDecimalTextBox instantiates a new GroupPolicyPresentationLongDecimalTextBox and sets the default values. +// NewGroupPolicyPresentationLongDecimalTextBox instantiates a new groupPolicyPresentationLongDecimalTextBox and sets the default values. func NewGroupPolicyPresentationLongDecimalTextBox()(*GroupPolicyPresentationLongDecimalTextBox) { m := &GroupPolicyPresentationLongDecimalTextBox{ GroupPolicyUploadedPresentation: *NewGroupPolicyUploadedPresentation(), diff --git a/models/group_policy_presentation_multi_text_box.go b/models/group_policy_presentation_multi_text_box.go index b2c84419bfa..25a01c88861 100644 --- a/models/group_policy_presentation_multi_text_box.go +++ b/models/group_policy_presentation_multi_text_box.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationMultiTextBox +// GroupPolicyPresentationMultiTextBox represents an ADMX multiTextBox element and an ADMX multiText element. type GroupPolicyPresentationMultiTextBox struct { GroupPolicyUploadedPresentation } -// NewGroupPolicyPresentationMultiTextBox instantiates a new GroupPolicyPresentationMultiTextBox and sets the default values. +// NewGroupPolicyPresentationMultiTextBox instantiates a new groupPolicyPresentationMultiTextBox and sets the default values. func NewGroupPolicyPresentationMultiTextBox()(*GroupPolicyPresentationMultiTextBox) { m := &GroupPolicyPresentationMultiTextBox{ GroupPolicyUploadedPresentation: *NewGroupPolicyUploadedPresentation(), diff --git a/models/group_policy_presentation_text.go b/models/group_policy_presentation_text.go index 9bb4f52bd5c..7051f031078 100644 --- a/models/group_policy_presentation_text.go +++ b/models/group_policy_presentation_text.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationText +// GroupPolicyPresentationText represents an ADMX text element. type GroupPolicyPresentationText struct { GroupPolicyUploadedPresentation } -// NewGroupPolicyPresentationText instantiates a new GroupPolicyPresentationText and sets the default values. +// NewGroupPolicyPresentationText instantiates a new groupPolicyPresentationText and sets the default values. func NewGroupPolicyPresentationText()(*GroupPolicyPresentationText) { m := &GroupPolicyPresentationText{ GroupPolicyUploadedPresentation: *NewGroupPolicyUploadedPresentation(), diff --git a/models/group_policy_presentation_text_box.go b/models/group_policy_presentation_text_box.go index f3cf887ea2c..f042b0aaa00 100644 --- a/models/group_policy_presentation_text_box.go +++ b/models/group_policy_presentation_text_box.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationTextBox +// GroupPolicyPresentationTextBox represents an ADMX textBox element and an ADMX text element. type GroupPolicyPresentationTextBox struct { GroupPolicyUploadedPresentation } -// NewGroupPolicyPresentationTextBox instantiates a new GroupPolicyPresentationTextBox and sets the default values. +// NewGroupPolicyPresentationTextBox instantiates a new groupPolicyPresentationTextBox and sets the default values. func NewGroupPolicyPresentationTextBox()(*GroupPolicyPresentationTextBox) { m := &GroupPolicyPresentationTextBox{ GroupPolicyUploadedPresentation: *NewGroupPolicyUploadedPresentation(), diff --git a/models/group_policy_presentation_value.go b/models/group_policy_presentation_value.go index 6612534716b..a2ab16c0a94 100644 --- a/models/group_policy_presentation_value.go +++ b/models/group_policy_presentation_value.go @@ -103,6 +103,16 @@ func (m *GroupPolicyPresentationValue) GetFieldDeserializers()(map[string]func(i } 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["presentation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateGroupPolicyPresentationFromDiscriminatorValue) if err != nil { @@ -126,6 +136,17 @@ func (m *GroupPolicyPresentationValue) GetLastModifiedDateTime()(*i336074805fc85 } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *GroupPolicyPresentationValue) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPresentation gets the presentation property value. The group policy presentation associated with the presentation value. func (m *GroupPolicyPresentationValue) GetPresentation()(GroupPolicyPresentationable) { val, err := m.GetBackingStore().Get("presentation") @@ -161,6 +182,12 @@ func (m *GroupPolicyPresentationValue) Serialize(writer i878a80d2330e89d26896388 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("presentation", m.GetPresentation()) if err != nil { @@ -190,6 +217,13 @@ func (m *GroupPolicyPresentationValue) SetLastModifiedDateTime(value *i336074805 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *GroupPolicyPresentationValue) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPresentation sets the presentation property value. The group policy presentation associated with the presentation value. func (m *GroupPolicyPresentationValue) SetPresentation(value GroupPolicyPresentationable)() { err := m.GetBackingStore().Set("presentation", value) @@ -204,9 +238,11 @@ type GroupPolicyPresentationValueable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDefinitionValue()(GroupPolicyDefinitionValueable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetPresentation()(GroupPolicyPresentationable) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDefinitionValue(value GroupPolicyDefinitionValueable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetPresentation(value GroupPolicyPresentationable)() } diff --git a/models/group_policy_presentation_value_boolean.go b/models/group_policy_presentation_value_boolean.go index d1888775b8a..4e21d309537 100644 --- a/models/group_policy_presentation_value_boolean.go +++ b/models/group_policy_presentation_value_boolean.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationValueBoolean +// GroupPolicyPresentationValueBoolean the entity represents a Boolean value of a checkbox presentation on a policy definition. type GroupPolicyPresentationValueBoolean struct { GroupPolicyPresentationValue + // The OdataType property + OdataType *string } -// NewGroupPolicyPresentationValueBoolean instantiates a new GroupPolicyPresentationValueBoolean and sets the default values. +// NewGroupPolicyPresentationValueBoolean instantiates a new groupPolicyPresentationValueBoolean and sets the default values. func NewGroupPolicyPresentationValueBoolean()(*GroupPolicyPresentationValueBoolean) { m := &GroupPolicyPresentationValueBoolean{ GroupPolicyPresentationValue: *NewGroupPolicyPresentationValue(), diff --git a/models/group_policy_presentation_value_collection_response.go b/models/group_policy_presentation_value_collection_response.go index 526989b0ad6..c459f4d1d12 100644 --- a/models/group_policy_presentation_value_collection_response.go +++ b/models/group_policy_presentation_value_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyPresentationValueCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyPresentationValueCollectionResponse instantiates a new GroupPolicyPresentationValueCollectionResponse and sets the default values. +// NewGroupPolicyPresentationValueCollectionResponse instantiates a new groupPolicyPresentationValueCollectionResponse and sets the default values. func NewGroupPolicyPresentationValueCollectionResponse()(*GroupPolicyPresentationValueCollectionResponse) { m := &GroupPolicyPresentationValueCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_presentation_value_decimal.go b/models/group_policy_presentation_value_decimal.go index d18650e66a5..d28c044eb72 100644 --- a/models/group_policy_presentation_value_decimal.go +++ b/models/group_policy_presentation_value_decimal.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationValueDecimal +// GroupPolicyPresentationValueDecimal the entity represents an unsigned integer value of a decimal text box presentation on a policy definition. type GroupPolicyPresentationValueDecimal struct { GroupPolicyPresentationValue + // The OdataType property + OdataType *string } -// NewGroupPolicyPresentationValueDecimal instantiates a new GroupPolicyPresentationValueDecimal and sets the default values. +// NewGroupPolicyPresentationValueDecimal instantiates a new groupPolicyPresentationValueDecimal and sets the default values. func NewGroupPolicyPresentationValueDecimal()(*GroupPolicyPresentationValueDecimal) { m := &GroupPolicyPresentationValueDecimal{ GroupPolicyPresentationValue: *NewGroupPolicyPresentationValue(), diff --git a/models/group_policy_presentation_value_list.go b/models/group_policy_presentation_value_list.go index 7b060195709..ffd92592dbc 100644 --- a/models/group_policy_presentation_value_list.go +++ b/models/group_policy_presentation_value_list.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationValueList +// GroupPolicyPresentationValueList the entity represents a collection of name/value pairs of a list box presentation on a policy definition. type GroupPolicyPresentationValueList struct { GroupPolicyPresentationValue + // The OdataType property + OdataType *string } -// NewGroupPolicyPresentationValueList instantiates a new GroupPolicyPresentationValueList and sets the default values. +// NewGroupPolicyPresentationValueList instantiates a new groupPolicyPresentationValueList and sets the default values. func NewGroupPolicyPresentationValueList()(*GroupPolicyPresentationValueList) { m := &GroupPolicyPresentationValueList{ GroupPolicyPresentationValue: *NewGroupPolicyPresentationValue(), diff --git a/models/group_policy_presentation_value_long_decimal.go b/models/group_policy_presentation_value_long_decimal.go index 24c2b853619..aac4d64ad6b 100644 --- a/models/group_policy_presentation_value_long_decimal.go +++ b/models/group_policy_presentation_value_long_decimal.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationValueLongDecimal +// GroupPolicyPresentationValueLongDecimal the entity represents an unsigned long value of a long decimal text box presentation on a policy definition. type GroupPolicyPresentationValueLongDecimal struct { GroupPolicyPresentationValue + // The OdataType property + OdataType *string } -// NewGroupPolicyPresentationValueLongDecimal instantiates a new GroupPolicyPresentationValueLongDecimal and sets the default values. +// NewGroupPolicyPresentationValueLongDecimal instantiates a new groupPolicyPresentationValueLongDecimal and sets the default values. func NewGroupPolicyPresentationValueLongDecimal()(*GroupPolicyPresentationValueLongDecimal) { m := &GroupPolicyPresentationValueLongDecimal{ GroupPolicyPresentationValue: *NewGroupPolicyPresentationValue(), diff --git a/models/group_policy_presentation_value_multi_text.go b/models/group_policy_presentation_value_multi_text.go index 809200691b8..621114a59a8 100644 --- a/models/group_policy_presentation_value_multi_text.go +++ b/models/group_policy_presentation_value_multi_text.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationValueMultiText +// GroupPolicyPresentationValueMultiText the entity represents a string value of a multi-line text box presentation on a policy definition. type GroupPolicyPresentationValueMultiText struct { GroupPolicyPresentationValue + // The OdataType property + OdataType *string } -// NewGroupPolicyPresentationValueMultiText instantiates a new GroupPolicyPresentationValueMultiText and sets the default values. +// NewGroupPolicyPresentationValueMultiText instantiates a new groupPolicyPresentationValueMultiText and sets the default values. func NewGroupPolicyPresentationValueMultiText()(*GroupPolicyPresentationValueMultiText) { m := &GroupPolicyPresentationValueMultiText{ GroupPolicyPresentationValue: *NewGroupPolicyPresentationValue(), diff --git a/models/group_policy_presentation_value_text.go b/models/group_policy_presentation_value_text.go index bef7715ff6c..bdfe9b548fc 100644 --- a/models/group_policy_presentation_value_text.go +++ b/models/group_policy_presentation_value_text.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyPresentationValueText +// GroupPolicyPresentationValueText the entity represents a string value for a drop-down list, combo box, or text box presentation on a policy definition. type GroupPolicyPresentationValueText struct { GroupPolicyPresentationValue + // The OdataType property + OdataType *string } -// NewGroupPolicyPresentationValueText instantiates a new GroupPolicyPresentationValueText and sets the default values. +// NewGroupPolicyPresentationValueText instantiates a new groupPolicyPresentationValueText and sets the default values. func NewGroupPolicyPresentationValueText()(*GroupPolicyPresentationValueText) { m := &GroupPolicyPresentationValueText{ GroupPolicyPresentationValue: *NewGroupPolicyPresentationValue(), diff --git a/models/group_policy_setting_mapping.go b/models/group_policy_setting_mapping.go index 1b121305a2a..c0b512cae9a 100644 --- a/models/group_policy_setting_mapping.go +++ b/models/group_policy_setting_mapping.go @@ -7,6 +7,8 @@ import ( // GroupPolicySettingMapping the Group Policy setting to MDM/Intune mapping. type GroupPolicySettingMapping struct { Entity + // The OdataType property + OdataType *string } // NewGroupPolicySettingMapping instantiates a new groupPolicySettingMapping and sets the default values. func NewGroupPolicySettingMapping()(*GroupPolicySettingMapping) { diff --git a/models/group_policy_setting_mapping_collection_response.go b/models/group_policy_setting_mapping_collection_response.go index 7eb6a2cc945..bcabd9b4bd5 100644 --- a/models/group_policy_setting_mapping_collection_response.go +++ b/models/group_policy_setting_mapping_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicySettingMappingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicySettingMappingCollectionResponse instantiates a new GroupPolicySettingMappingCollectionResponse and sets the default values. +// NewGroupPolicySettingMappingCollectionResponse instantiates a new groupPolicySettingMappingCollectionResponse and sets the default values. func NewGroupPolicySettingMappingCollectionResponse()(*GroupPolicySettingMappingCollectionResponse) { m := &GroupPolicySettingMappingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_uploaded_definition_file.go b/models/group_policy_uploaded_definition_file.go index 5173e5a6a34..09a637efcb7 100644 --- a/models/group_policy_uploaded_definition_file.go +++ b/models/group_policy_uploaded_definition_file.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyUploadedDefinitionFile +// GroupPolicyUploadedDefinitionFile the entity represents an ADMX (Administrative Template) XML file uploaded by Administrator. The ADMX file contains a collection of group policy definitions and their locations by category path. The group policy definition file also contains the languages supported as determined by the language dependent ADML (Administrative Template) language files. type GroupPolicyUploadedDefinitionFile struct { GroupPolicyDefinitionFile } -// NewGroupPolicyUploadedDefinitionFile instantiates a new GroupPolicyUploadedDefinitionFile and sets the default values. +// NewGroupPolicyUploadedDefinitionFile instantiates a new groupPolicyUploadedDefinitionFile and sets the default values. func NewGroupPolicyUploadedDefinitionFile()(*GroupPolicyUploadedDefinitionFile) { m := &GroupPolicyUploadedDefinitionFile{ GroupPolicyDefinitionFile: *NewGroupPolicyDefinitionFile(), diff --git a/models/group_policy_uploaded_definition_file_collection_response.go b/models/group_policy_uploaded_definition_file_collection_response.go index 62dbb622f83..11601be1123 100644 --- a/models/group_policy_uploaded_definition_file_collection_response.go +++ b/models/group_policy_uploaded_definition_file_collection_response.go @@ -8,7 +8,7 @@ import ( type GroupPolicyUploadedDefinitionFileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewGroupPolicyUploadedDefinitionFileCollectionResponse instantiates a new GroupPolicyUploadedDefinitionFileCollectionResponse and sets the default values. +// NewGroupPolicyUploadedDefinitionFileCollectionResponse instantiates a new groupPolicyUploadedDefinitionFileCollectionResponse and sets the default values. func NewGroupPolicyUploadedDefinitionFileCollectionResponse()(*GroupPolicyUploadedDefinitionFileCollectionResponse) { m := &GroupPolicyUploadedDefinitionFileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/group_policy_uploaded_presentation.go b/models/group_policy_uploaded_presentation.go index 641df3ceef1..6828b71676d 100644 --- a/models/group_policy_uploaded_presentation.go +++ b/models/group_policy_uploaded_presentation.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupPolicyUploadedPresentation +// GroupPolicyUploadedPresentation represents an ADMX checkBox element and an ADMX boolean element. type GroupPolicyUploadedPresentation struct { GroupPolicyPresentation } -// NewGroupPolicyUploadedPresentation instantiates a new GroupPolicyUploadedPresentation and sets the default values. +// NewGroupPolicyUploadedPresentation instantiates a new groupPolicyUploadedPresentation and sets the default values. func NewGroupPolicyUploadedPresentation()(*GroupPolicyUploadedPresentation) { m := &GroupPolicyUploadedPresentation{ GroupPolicyPresentation: *NewGroupPolicyPresentation(), diff --git a/models/group_writeback_configuration.go b/models/group_writeback_configuration.go index 3f2b7f8ce9d..2fc96a433a9 100644 --- a/models/group_writeback_configuration.go +++ b/models/group_writeback_configuration.go @@ -8,7 +8,7 @@ import ( type GroupWritebackConfiguration struct { WritebackConfiguration } -// NewGroupWritebackConfiguration instantiates a new GroupWritebackConfiguration and sets the default values. +// NewGroupWritebackConfiguration instantiates a new groupWritebackConfiguration and sets the default values. func NewGroupWritebackConfiguration()(*GroupWritebackConfiguration) { m := &GroupWritebackConfiguration{ WritebackConfiguration: *NewWritebackConfiguration(), @@ -22,6 +22,16 @@ func CreateGroupWritebackConfigurationFromDiscriminatorValue(parseNode i878a80d2 // GetFieldDeserializers the deserialization information for the current model func (m *GroupWritebackConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.WritebackConfiguration.GetFieldDeserializers() + 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["onPremisesGroupType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -34,6 +44,17 @@ func (m *GroupWritebackConfiguration) GetFieldDeserializers()(map[string]func(i8 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *GroupWritebackConfiguration) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOnPremisesGroupType gets the onPremisesGroupType property value. Indicates the target on-premise group type the cloud object will be written back as. Nullable. The possible values are: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup.If the cloud group is a unified (Microsoft 365) group, this property can be one of the following: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup. Azure AD security groups can be written back as universalSecurityGroup. If isEnabled or the NewUnifiedGroupWritebackDefault group setting is true but this property is not explicitly configured: Microsoft 365 groups will be written back as universalDistributionGroup by defaultSecurity groups will be written back as universalSecurityGroup by default func (m *GroupWritebackConfiguration) GetOnPremisesGroupType()(*string) { val, err := m.GetBackingStore().Get("onPremisesGroupType") @@ -51,6 +72,12 @@ func (m *GroupWritebackConfiguration) Serialize(writer i878a80d2330e89d26896388a if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("onPremisesGroupType", m.GetOnPremisesGroupType()) if err != nil { @@ -59,6 +86,13 @@ func (m *GroupWritebackConfiguration) Serialize(writer i878a80d2330e89d26896388a } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *GroupWritebackConfiguration) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOnPremisesGroupType sets the onPremisesGroupType property value. Indicates the target on-premise group type the cloud object will be written back as. Nullable. The possible values are: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup.If the cloud group is a unified (Microsoft 365) group, this property can be one of the following: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup. Azure AD security groups can be written back as universalSecurityGroup. If isEnabled or the NewUnifiedGroupWritebackDefault group setting is true but this property is not explicitly configured: Microsoft 365 groups will be written back as universalDistributionGroup by defaultSecurity groups will be written back as universalSecurityGroup by default func (m *GroupWritebackConfiguration) SetOnPremisesGroupType(value *string)() { err := m.GetBackingStore().Set("onPremisesGroupType", value) @@ -70,6 +104,8 @@ func (m *GroupWritebackConfiguration) SetOnPremisesGroupType(value *string)() { type GroupWritebackConfigurationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable WritebackConfigurationable + GetOdataType()(*string) GetOnPremisesGroupType()(*string) + SetOdataType(value *string)() SetOnPremisesGroupType(value *string)() } diff --git a/models/home_realm_discovery_policy.go b/models/home_realm_discovery_policy.go index fe180f22d75..ebb6b45b884 100644 --- a/models/home_realm_discovery_policy.go +++ b/models/home_realm_discovery_policy.go @@ -8,7 +8,7 @@ import ( type HomeRealmDiscoveryPolicy struct { StsPolicy } -// NewHomeRealmDiscoveryPolicy instantiates a new HomeRealmDiscoveryPolicy and sets the default values. +// NewHomeRealmDiscoveryPolicy instantiates a new homeRealmDiscoveryPolicy and sets the default values. func NewHomeRealmDiscoveryPolicy()(*HomeRealmDiscoveryPolicy) { m := &HomeRealmDiscoveryPolicy{ StsPolicy: *NewStsPolicy(), diff --git a/models/home_realm_discovery_policy_collection_response.go b/models/home_realm_discovery_policy_collection_response.go index ab7841a0d0f..9ba75ee9fc8 100644 --- a/models/home_realm_discovery_policy_collection_response.go +++ b/models/home_realm_discovery_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type HomeRealmDiscoveryPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewHomeRealmDiscoveryPolicyCollectionResponse instantiates a new HomeRealmDiscoveryPolicyCollectionResponse and sets the default values. +// NewHomeRealmDiscoveryPolicyCollectionResponse instantiates a new homeRealmDiscoveryPolicyCollectionResponse and sets the default values. func NewHomeRealmDiscoveryPolicyCollectionResponse()(*HomeRealmDiscoveryPolicyCollectionResponse) { m := &HomeRealmDiscoveryPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/horizontal_section.go b/models/horizontal_section.go index 7a44583cd3e..7ac9fc21df2 100644 --- a/models/horizontal_section.go +++ b/models/horizontal_section.go @@ -7,6 +7,8 @@ import ( // HorizontalSection type HorizontalSection struct { Entity + // The OdataType property + OdataType *string } // NewHorizontalSection instantiates a new horizontalSection and sets the default values. func NewHorizontalSection()(*HorizontalSection) { diff --git a/models/horizontal_section_collection_response.go b/models/horizontal_section_collection_response.go index bbb63b9626c..6784b48c967 100644 --- a/models/horizontal_section_collection_response.go +++ b/models/horizontal_section_collection_response.go @@ -8,7 +8,7 @@ import ( type HorizontalSectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewHorizontalSectionCollectionResponse instantiates a new HorizontalSectionCollectionResponse and sets the default values. +// NewHorizontalSectionCollectionResponse instantiates a new horizontalSectionCollectionResponse and sets the default values. func NewHorizontalSectionCollectionResponse()(*HorizontalSectionCollectionResponse) { m := &HorizontalSectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/horizontal_section_column.go b/models/horizontal_section_column.go index cdee36fa4e2..ed4a6af4bac 100644 --- a/models/horizontal_section_column.go +++ b/models/horizontal_section_column.go @@ -7,6 +7,8 @@ import ( // HorizontalSectionColumn type HorizontalSectionColumn struct { Entity + // The OdataType property + OdataType *string } // NewHorizontalSectionColumn instantiates a new horizontalSectionColumn and sets the default values. func NewHorizontalSectionColumn()(*HorizontalSectionColumn) { diff --git a/models/horizontal_section_column_collection_response.go b/models/horizontal_section_column_collection_response.go index 2ece0a0e35b..1edb0c660c7 100644 --- a/models/horizontal_section_column_collection_response.go +++ b/models/horizontal_section_column_collection_response.go @@ -8,7 +8,7 @@ import ( type HorizontalSectionColumnCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewHorizontalSectionColumnCollectionResponse instantiates a new HorizontalSectionColumnCollectionResponse and sets the default values. +// NewHorizontalSectionColumnCollectionResponse instantiates a new horizontalSectionColumnCollectionResponse and sets the default values. func NewHorizontalSectionColumnCollectionResponse()(*HorizontalSectionColumnCollectionResponse) { m := &HorizontalSectionColumnCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/host_security_profile.go b/models/host_security_profile.go index a698ef458a3..b9a76baada4 100644 --- a/models/host_security_profile.go +++ b/models/host_security_profile.go @@ -8,8 +8,10 @@ import ( // HostSecurityProfile type HostSecurityProfile struct { Entity + // The OdataType property + OdataType *string } -// NewHostSecurityProfile instantiates a new HostSecurityProfile and sets the default values. +// NewHostSecurityProfile instantiates a new hostSecurityProfile and sets the default values. func NewHostSecurityProfile()(*HostSecurityProfile) { m := &HostSecurityProfile{ Entity: *NewEntity(), diff --git a/models/host_security_profile_collection_response.go b/models/host_security_profile_collection_response.go index 05006b81a52..f1ac0171e8d 100644 --- a/models/host_security_profile_collection_response.go +++ b/models/host_security_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type HostSecurityProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewHostSecurityProfileCollectionResponse instantiates a new HostSecurityProfileCollectionResponse and sets the default values. +// NewHostSecurityProfileCollectionResponse instantiates a new hostSecurityProfileCollectionResponse and sets the default values. func NewHostSecurityProfileCollectionResponse()(*HostSecurityProfileCollectionResponse) { m := &HostSecurityProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/http_request_endpoint.go b/models/http_request_endpoint.go index 271ac0e8959..91b496bea84 100644 --- a/models/http_request_endpoint.go +++ b/models/http_request_endpoint.go @@ -7,8 +7,10 @@ import ( // HttpRequestEndpoint type HttpRequestEndpoint struct { CustomExtensionEndpointConfiguration + // The OdataType property + OdataType *string } -// NewHttpRequestEndpoint instantiates a new HttpRequestEndpoint and sets the default values. +// NewHttpRequestEndpoint instantiates a new httpRequestEndpoint and sets the default values. func NewHttpRequestEndpoint()(*HttpRequestEndpoint) { m := &HttpRequestEndpoint{ CustomExtensionEndpointConfiguration: *NewCustomExtensionEndpointConfiguration(), diff --git a/models/i_pv4_cidr_range.go b/models/i_pv4_cidr_range.go index db68851e2f9..58334044464 100644 --- a/models/i_pv4_cidr_range.go +++ b/models/i_pv4_cidr_range.go @@ -7,8 +7,10 @@ import ( // IPv4CidrRange type IPv4CidrRange struct { IpRange + // The OdataType property + OdataType *string } -// NewIPv4CidrRange instantiates a new IPv4CidrRange and sets the default values. +// NewIPv4CidrRange instantiates a new iPv4CidrRange and sets the default values. func NewIPv4CidrRange()(*IPv4CidrRange) { m := &IPv4CidrRange{ IpRange: *NewIpRange(), diff --git a/models/i_pv4_range.go b/models/i_pv4_range.go index c78dc4208e9..14d3c01f0b5 100644 --- a/models/i_pv4_range.go +++ b/models/i_pv4_range.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IPv4Range +// IPv4Range iPv4 Range definition. type IPv4Range struct { IpRange + // The OdataType property + OdataType *string } -// NewIPv4Range instantiates a new IPv4Range and sets the default values. +// NewIPv4Range instantiates a new iPv4Range and sets the default values. func NewIPv4Range()(*IPv4Range) { m := &IPv4Range{ IpRange: *NewIpRange(), diff --git a/models/i_pv6_cidr_range.go b/models/i_pv6_cidr_range.go index cee95943165..4a0ebf51aa0 100644 --- a/models/i_pv6_cidr_range.go +++ b/models/i_pv6_cidr_range.go @@ -7,8 +7,10 @@ import ( // IPv6CidrRange type IPv6CidrRange struct { IpRange + // The OdataType property + OdataType *string } -// NewIPv6CidrRange instantiates a new IPv6CidrRange and sets the default values. +// NewIPv6CidrRange instantiates a new iPv6CidrRange and sets the default values. func NewIPv6CidrRange()(*IPv6CidrRange) { m := &IPv6CidrRange{ IpRange: *NewIpRange(), diff --git a/models/i_pv6_range.go b/models/i_pv6_range.go index bbc05788a88..d1d9258373b 100644 --- a/models/i_pv6_range.go +++ b/models/i_pv6_range.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IPv6Range +// IPv6Range iPv6 Range definition. type IPv6Range struct { IpRange + // The OdataType property + OdataType *string } -// NewIPv6Range instantiates a new IPv6Range and sets the default values. +// NewIPv6Range instantiates a new iPv6Range and sets the default values. func NewIPv6Range()(*IPv6Range) { m := &IPv6Range{ IpRange: *NewIpRange(), diff --git a/models/identity.go b/models/identity.go index 43cd6557bad..fd9693bf6a3 100644 --- a/models/identity.go +++ b/models/identity.go @@ -96,7 +96,7 @@ func (m *Identity) GetAdditionalData()(map[string]any) { func (m *Identity) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDisplayName gets the displayName property value. The display name of the identity. This property is read-only. +// GetDisplayName gets the displayName property value. The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. func (m *Identity) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { @@ -142,7 +142,7 @@ func (m *Identity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetId gets the id property value. The identifier of the identity. This property is read-only. +// GetId gets the id property value. Unique identifier for the identity. func (m *Identity) GetId()(*string) { val, err := m.GetBackingStore().Get("id") if err != nil { @@ -203,14 +203,14 @@ func (m *Identity) SetAdditionalData(value map[string]any)() { func (m *Identity) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDisplayName sets the displayName property value. The display name of the identity. This property is read-only. +// SetDisplayName sets the displayName property value. The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. func (m *Identity) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetId sets the id property value. The identifier of the identity. This property is read-only. +// SetId sets the id property value. Unique identifier for the identity. func (m *Identity) SetId(value *string)() { err := m.GetBackingStore().Set("id", value) if err != nil { diff --git a/models/identity_api_connector.go b/models/identity_api_connector.go index a9d31a92a1c..ae7c780c700 100644 --- a/models/identity_api_connector.go +++ b/models/identity_api_connector.go @@ -7,6 +7,8 @@ import ( // IdentityApiConnector type IdentityApiConnector struct { Entity + // The OdataType property + OdataType *string } // NewIdentityApiConnector instantiates a new identityApiConnector and sets the default values. func NewIdentityApiConnector()(*IdentityApiConnector) { diff --git a/models/identity_api_connector_collection_response.go b/models/identity_api_connector_collection_response.go index 4d3870678c2..9fc542d50e7 100644 --- a/models/identity_api_connector_collection_response.go +++ b/models/identity_api_connector_collection_response.go @@ -8,7 +8,7 @@ import ( type IdentityApiConnectorCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIdentityApiConnectorCollectionResponse instantiates a new IdentityApiConnectorCollectionResponse and sets the default values. +// NewIdentityApiConnectorCollectionResponse instantiates a new identityApiConnectorCollectionResponse and sets the default values. func NewIdentityApiConnectorCollectionResponse()(*IdentityApiConnectorCollectionResponse) { m := &IdentityApiConnectorCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/identity_built_in_user_flow_attribute.go b/models/identity_built_in_user_flow_attribute.go index dae3ae03620..27ba95127d4 100644 --- a/models/identity_built_in_user_flow_attribute.go +++ b/models/identity_built_in_user_flow_attribute.go @@ -8,7 +8,7 @@ import ( type IdentityBuiltInUserFlowAttribute struct { IdentityUserFlowAttribute } -// NewIdentityBuiltInUserFlowAttribute instantiates a new IdentityBuiltInUserFlowAttribute and sets the default values. +// NewIdentityBuiltInUserFlowAttribute instantiates a new identityBuiltInUserFlowAttribute and sets the default values. func NewIdentityBuiltInUserFlowAttribute()(*IdentityBuiltInUserFlowAttribute) { m := &IdentityBuiltInUserFlowAttribute{ IdentityUserFlowAttribute: *NewIdentityUserFlowAttribute(), diff --git a/models/identity_container.go b/models/identity_container.go index a54569712f5..720e73b4c29 100644 --- a/models/identity_container.go +++ b/models/identity_container.go @@ -10,7 +10,7 @@ type IdentityContainer struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewIdentityContainer instantiates a new IdentityContainer and sets the default values. +// NewIdentityContainer instantiates a new identityContainer and sets the default values. func NewIdentityContainer()(*IdentityContainer) { m := &IdentityContainer{ } diff --git a/models/identity_custom_user_flow_attribute.go b/models/identity_custom_user_flow_attribute.go index 53224804918..8ee0471c113 100644 --- a/models/identity_custom_user_flow_attribute.go +++ b/models/identity_custom_user_flow_attribute.go @@ -8,7 +8,7 @@ import ( type IdentityCustomUserFlowAttribute struct { IdentityUserFlowAttribute } -// NewIdentityCustomUserFlowAttribute instantiates a new IdentityCustomUserFlowAttribute and sets the default values. +// NewIdentityCustomUserFlowAttribute instantiates a new identityCustomUserFlowAttribute and sets the default values. func NewIdentityCustomUserFlowAttribute()(*IdentityCustomUserFlowAttribute) { m := &IdentityCustomUserFlowAttribute{ IdentityUserFlowAttribute: *NewIdentityUserFlowAttribute(), diff --git a/models/identity_governance.go b/models/identity_governance.go index fef3a82dcc9..f7877476a12 100644 --- a/models/identity_governance.go +++ b/models/identity_governance.go @@ -10,7 +10,7 @@ type IdentityGovernance struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewIdentityGovernance instantiates a new IdentityGovernance and sets the default values. +// NewIdentityGovernance instantiates a new identityGovernance and sets the default values. func NewIdentityGovernance()(*IdentityGovernance) { m := &IdentityGovernance{ } diff --git a/models/identity_protection_root.go b/models/identity_protection_root.go index 59c3aaaaeb7..83568145525 100644 --- a/models/identity_protection_root.go +++ b/models/identity_protection_root.go @@ -10,7 +10,7 @@ type IdentityProtectionRoot struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewIdentityProtectionRoot instantiates a new IdentityProtectionRoot and sets the default values. +// NewIdentityProtectionRoot instantiates a new identityProtectionRoot and sets the default values. func NewIdentityProtectionRoot()(*IdentityProtectionRoot) { m := &IdentityProtectionRoot{ } diff --git a/models/identity_provider.go b/models/identity_provider.go index 062a4000a37..6e4ae0d8fbd 100644 --- a/models/identity_provider.go +++ b/models/identity_provider.go @@ -7,6 +7,8 @@ import ( // IdentityProvider type IdentityProvider struct { Entity + // The OdataType property + OdataType *string } // NewIdentityProvider instantiates a new identityProvider and sets the default values. func NewIdentityProvider()(*IdentityProvider) { diff --git a/models/identity_provider_base.go b/models/identity_provider_base.go index 77df22dfd53..d16e2474385 100644 --- a/models/identity_provider_base.go +++ b/models/identity_provider_base.go @@ -7,6 +7,8 @@ import ( // IdentityProviderBase type IdentityProviderBase struct { Entity + // The OdataType property + OdataType *string } // NewIdentityProviderBase instantiates a new identityProviderBase and sets the default values. func NewIdentityProviderBase()(*IdentityProviderBase) { diff --git a/models/identity_provider_base_collection_response.go b/models/identity_provider_base_collection_response.go index ed4a7c338ba..dc8bd9a7abc 100644 --- a/models/identity_provider_base_collection_response.go +++ b/models/identity_provider_base_collection_response.go @@ -8,7 +8,7 @@ import ( type IdentityProviderBaseCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIdentityProviderBaseCollectionResponse instantiates a new IdentityProviderBaseCollectionResponse and sets the default values. +// NewIdentityProviderBaseCollectionResponse instantiates a new identityProviderBaseCollectionResponse and sets the default values. func NewIdentityProviderBaseCollectionResponse()(*IdentityProviderBaseCollectionResponse) { m := &IdentityProviderBaseCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/identity_provider_collection_response.go b/models/identity_provider_collection_response.go index b84101ff683..cdd598bb76b 100644 --- a/models/identity_provider_collection_response.go +++ b/models/identity_provider_collection_response.go @@ -8,7 +8,7 @@ import ( type IdentityProviderCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIdentityProviderCollectionResponse instantiates a new IdentityProviderCollectionResponse and sets the default values. +// NewIdentityProviderCollectionResponse instantiates a new identityProviderCollectionResponse and sets the default values. func NewIdentityProviderCollectionResponse()(*IdentityProviderCollectionResponse) { m := &IdentityProviderCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/identity_security_defaults_enforcement_policy.go b/models/identity_security_defaults_enforcement_policy.go index 6053f2d75be..fe35cfbd733 100644 --- a/models/identity_security_defaults_enforcement_policy.go +++ b/models/identity_security_defaults_enforcement_policy.go @@ -8,7 +8,7 @@ import ( type IdentitySecurityDefaultsEnforcementPolicy struct { PolicyBase } -// NewIdentitySecurityDefaultsEnforcementPolicy instantiates a new IdentitySecurityDefaultsEnforcementPolicy and sets the default values. +// NewIdentitySecurityDefaultsEnforcementPolicy instantiates a new identitySecurityDefaultsEnforcementPolicy and sets the default values. func NewIdentitySecurityDefaultsEnforcementPolicy()(*IdentitySecurityDefaultsEnforcementPolicy) { m := &IdentitySecurityDefaultsEnforcementPolicy{ PolicyBase: *NewPolicyBase(), diff --git a/models/identity_user_flow.go b/models/identity_user_flow.go index 5ae1e77b402..06ae614493f 100644 --- a/models/identity_user_flow.go +++ b/models/identity_user_flow.go @@ -7,6 +7,8 @@ import ( // IdentityUserFlow type IdentityUserFlow struct { Entity + // The OdataType property + OdataType *string } // NewIdentityUserFlow instantiates a new identityUserFlow and sets the default values. func NewIdentityUserFlow()(*IdentityUserFlow) { diff --git a/models/identity_user_flow_attribute.go b/models/identity_user_flow_attribute.go index 7d5ef43b0c0..d733c01d44a 100644 --- a/models/identity_user_flow_attribute.go +++ b/models/identity_user_flow_attribute.go @@ -7,6 +7,8 @@ import ( // IdentityUserFlowAttribute type IdentityUserFlowAttribute struct { Entity + // The OdataType property + OdataType *string } // NewIdentityUserFlowAttribute instantiates a new identityUserFlowAttribute and sets the default values. func NewIdentityUserFlowAttribute()(*IdentityUserFlowAttribute) { diff --git a/models/identity_user_flow_attribute_assignment.go b/models/identity_user_flow_attribute_assignment.go index bb642a897d3..92aef4e4b16 100644 --- a/models/identity_user_flow_attribute_assignment.go +++ b/models/identity_user_flow_attribute_assignment.go @@ -7,6 +7,8 @@ import ( // IdentityUserFlowAttributeAssignment type IdentityUserFlowAttributeAssignment struct { Entity + // The OdataType property + OdataType *string } // NewIdentityUserFlowAttributeAssignment instantiates a new identityUserFlowAttributeAssignment and sets the default values. func NewIdentityUserFlowAttributeAssignment()(*IdentityUserFlowAttributeAssignment) { diff --git a/models/identity_user_flow_attribute_assignment_collection_response.go b/models/identity_user_flow_attribute_assignment_collection_response.go index 08c60045fed..69b501efe76 100644 --- a/models/identity_user_flow_attribute_assignment_collection_response.go +++ b/models/identity_user_flow_attribute_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type IdentityUserFlowAttributeAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIdentityUserFlowAttributeAssignmentCollectionResponse instantiates a new IdentityUserFlowAttributeAssignmentCollectionResponse and sets the default values. +// NewIdentityUserFlowAttributeAssignmentCollectionResponse instantiates a new identityUserFlowAttributeAssignmentCollectionResponse and sets the default values. func NewIdentityUserFlowAttributeAssignmentCollectionResponse()(*IdentityUserFlowAttributeAssignmentCollectionResponse) { m := &IdentityUserFlowAttributeAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/identity_user_flow_attribute_collection_response.go b/models/identity_user_flow_attribute_collection_response.go index c43d5fe3617..fc1c5b574bd 100644 --- a/models/identity_user_flow_attribute_collection_response.go +++ b/models/identity_user_flow_attribute_collection_response.go @@ -8,7 +8,7 @@ import ( type IdentityUserFlowAttributeCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIdentityUserFlowAttributeCollectionResponse instantiates a new IdentityUserFlowAttributeCollectionResponse and sets the default values. +// NewIdentityUserFlowAttributeCollectionResponse instantiates a new identityUserFlowAttributeCollectionResponse and sets the default values. func NewIdentityUserFlowAttributeCollectionResponse()(*IdentityUserFlowAttributeCollectionResponse) { m := &IdentityUserFlowAttributeCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/identity_user_flow_collection_response.go b/models/identity_user_flow_collection_response.go index 188fd5b92c1..ccac7e4e2af 100644 --- a/models/identity_user_flow_collection_response.go +++ b/models/identity_user_flow_collection_response.go @@ -8,7 +8,7 @@ import ( type IdentityUserFlowCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIdentityUserFlowCollectionResponse instantiates a new IdentityUserFlowCollectionResponse and sets the default values. +// NewIdentityUserFlowCollectionResponse instantiates a new identityUserFlowCollectionResponse and sets the default values. func NewIdentityUserFlowCollectionResponse()(*IdentityUserFlowCollectionResponse) { m := &IdentityUserFlowCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/identitygovernance/custom_task_extension.go b/models/identitygovernance/custom_task_extension.go index 004cdb1aea6..b0fa39f4cb6 100644 --- a/models/identitygovernance/custom_task_extension.go +++ b/models/identitygovernance/custom_task_extension.go @@ -10,7 +10,7 @@ import ( type CustomTaskExtension struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtension } -// NewCustomTaskExtension instantiates a new CustomTaskExtension and sets the default values. +// NewCustomTaskExtension instantiates a new customTaskExtension and sets the default values. func NewCustomTaskExtension()(*CustomTaskExtension) { m := &CustomTaskExtension{ CustomCalloutExtension: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewCustomCalloutExtension(), diff --git a/models/identitygovernance/custom_task_extension_callback_configuration.go b/models/identitygovernance/custom_task_extension_callback_configuration.go index e057b175a6a..ad78cc3f1e2 100644 --- a/models/identitygovernance/custom_task_extension_callback_configuration.go +++ b/models/identitygovernance/custom_task_extension_callback_configuration.go @@ -8,8 +8,10 @@ import ( // CustomTaskExtensionCallbackConfiguration type CustomTaskExtensionCallbackConfiguration struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomExtensionCallbackConfiguration + // The OdataType property + OdataType *string } -// NewCustomTaskExtensionCallbackConfiguration instantiates a new CustomTaskExtensionCallbackConfiguration and sets the default values. +// NewCustomTaskExtensionCallbackConfiguration instantiates a new customTaskExtensionCallbackConfiguration and sets the default values. func NewCustomTaskExtensionCallbackConfiguration()(*CustomTaskExtensionCallbackConfiguration) { m := &CustomTaskExtensionCallbackConfiguration{ CustomExtensionCallbackConfiguration: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewCustomExtensionCallbackConfiguration(), diff --git a/models/identitygovernance/custom_task_extension_callback_data.go b/models/identitygovernance/custom_task_extension_callback_data.go index 1ffcce1b89f..05acf8f9950 100644 --- a/models/identitygovernance/custom_task_extension_callback_data.go +++ b/models/identitygovernance/custom_task_extension_callback_data.go @@ -9,7 +9,7 @@ import ( type CustomTaskExtensionCallbackData struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomExtensionData } -// NewCustomTaskExtensionCallbackData instantiates a new CustomTaskExtensionCallbackData and sets the default values. +// NewCustomTaskExtensionCallbackData instantiates a new customTaskExtensionCallbackData and sets the default values. func NewCustomTaskExtensionCallbackData()(*CustomTaskExtensionCallbackData) { m := &CustomTaskExtensionCallbackData{ CustomExtensionData: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewCustomExtensionData(), @@ -25,6 +25,16 @@ func CreateCustomTaskExtensionCallbackDataFromDiscriminatorValue(parseNode i878a // GetFieldDeserializers the deserialization information for the current model func (m *CustomTaskExtensionCallbackData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CustomExtensionData.GetFieldDeserializers() + 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["operationStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseCustomTaskExtensionOperationStatus) if err != nil { @@ -37,6 +47,17 @@ func (m *CustomTaskExtensionCallbackData) GetFieldDeserializers()(map[string]fun } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CustomTaskExtensionCallbackData) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // 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) { val, err := m.GetBackingStore().Get("operationStatus") @@ -54,6 +75,12 @@ func (m *CustomTaskExtensionCallbackData) Serialize(writer i878a80d2330e89d26896 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetOperationStatus() != nil { cast := (*m.GetOperationStatus()).String() err = writer.WriteStringValue("operationStatus", &cast) @@ -63,6 +90,13 @@ func (m *CustomTaskExtensionCallbackData) Serialize(writer i878a80d2330e89d26896 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CustomTaskExtensionCallbackData) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // 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)() { err := m.GetBackingStore().Set("operationStatus", value) @@ -74,6 +108,8 @@ func (m *CustomTaskExtensionCallbackData) SetOperationStatus(value *CustomTaskEx type CustomTaskExtensionCallbackDataable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomExtensionDataable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetOperationStatus()(*CustomTaskExtensionOperationStatus) + SetOdataType(value *string)() SetOperationStatus(value *CustomTaskExtensionOperationStatus)() } diff --git a/models/identitygovernance/custom_task_extension_callout_data.go b/models/identitygovernance/custom_task_extension_callout_data.go index d9798189302..92a09d5a95f 100644 --- a/models/identitygovernance/custom_task_extension_callout_data.go +++ b/models/identitygovernance/custom_task_extension_callout_data.go @@ -9,7 +9,7 @@ import ( type CustomTaskExtensionCalloutData struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomExtensionData } -// NewCustomTaskExtensionCalloutData instantiates a new CustomTaskExtensionCalloutData and sets the default values. +// NewCustomTaskExtensionCalloutData instantiates a new customTaskExtensionCalloutData and sets the default values. func NewCustomTaskExtensionCalloutData()(*CustomTaskExtensionCalloutData) { m := &CustomTaskExtensionCalloutData{ CustomExtensionData: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewCustomExtensionData(), @@ -25,6 +25,16 @@ func CreateCustomTaskExtensionCalloutDataFromDiscriminatorValue(parseNode i878a8 // GetFieldDeserializers the deserialization information for the current model func (m *CustomTaskExtensionCalloutData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CustomExtensionData.GetFieldDeserializers() + 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["subject"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateUserFromDiscriminatorValue) if err != nil { @@ -67,6 +77,17 @@ func (m *CustomTaskExtensionCalloutData) GetFieldDeserializers()(map[string]func } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CustomTaskExtensionCalloutData) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSubject gets the subject property value. The subject property func (m *CustomTaskExtensionCalloutData) GetSubject()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable) { val, err := m.GetBackingStore().Get("subject") @@ -117,6 +138,12 @@ func (m *CustomTaskExtensionCalloutData) Serialize(writer i878a80d2330e89d268963 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("subject", m.GetSubject()) if err != nil { @@ -143,6 +170,13 @@ func (m *CustomTaskExtensionCalloutData) Serialize(writer i878a80d2330e89d268963 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CustomTaskExtensionCalloutData) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSubject sets the subject property value. The subject property func (m *CustomTaskExtensionCalloutData) SetSubject(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable)() { err := m.GetBackingStore().Set("subject", value) @@ -175,10 +209,12 @@ func (m *CustomTaskExtensionCalloutData) SetWorkflow(value Workflowable)() { type CustomTaskExtensionCalloutDataable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomExtensionDataable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetSubject()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable) GetTask()(Taskable) GetTaskProcessingresult()(TaskProcessingResultable) GetWorkflow()(Workflowable) + SetOdataType(value *string)() SetSubject(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable)() SetTask(value Taskable)() SetTaskProcessingresult(value TaskProcessingResultable)() diff --git a/models/identitygovernance/custom_task_extension_collection_response.go b/models/identitygovernance/custom_task_extension_collection_response.go index 4f1861225a8..1e2fb25b511 100644 --- a/models/identitygovernance/custom_task_extension_collection_response.go +++ b/models/identitygovernance/custom_task_extension_collection_response.go @@ -9,7 +9,7 @@ import ( type CustomTaskExtensionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCustomTaskExtensionCollectionResponse instantiates a new CustomTaskExtensionCollectionResponse and sets the default values. +// NewCustomTaskExtensionCollectionResponse instantiates a new customTaskExtensionCollectionResponse and sets the default values. func NewCustomTaskExtensionCollectionResponse()(*CustomTaskExtensionCollectionResponse) { m := &CustomTaskExtensionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/identitygovernance/lifecycle_management_settings.go b/models/identitygovernance/lifecycle_management_settings.go index a0d0e19d10d..2989f761c50 100644 --- a/models/identitygovernance/lifecycle_management_settings.go +++ b/models/identitygovernance/lifecycle_management_settings.go @@ -8,8 +8,10 @@ import ( // LifecycleManagementSettings type LifecycleManagementSettings struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewLifecycleManagementSettings instantiates a new LifecycleManagementSettings and sets the default values. +// NewLifecycleManagementSettings instantiates a new lifecycleManagementSettings and sets the default values. func NewLifecycleManagementSettings()(*LifecycleManagementSettings) { m := &LifecycleManagementSettings{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/identitygovernance/lifecycle_workflows_container.go b/models/identitygovernance/lifecycle_workflows_container.go index 44c64b0745f..b250d35e421 100644 --- a/models/identitygovernance/lifecycle_workflows_container.go +++ b/models/identitygovernance/lifecycle_workflows_container.go @@ -8,8 +8,10 @@ import ( // LifecycleWorkflowsContainer type LifecycleWorkflowsContainer struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewLifecycleWorkflowsContainer instantiates a new LifecycleWorkflowsContainer and sets the default values. +// NewLifecycleWorkflowsContainer instantiates a new lifecycleWorkflowsContainer and sets the default values. func NewLifecycleWorkflowsContainer()(*LifecycleWorkflowsContainer) { m := &LifecycleWorkflowsContainer{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/identitygovernance/on_demand_execution_only.go b/models/identitygovernance/on_demand_execution_only.go index 49da46b1250..b8ef4439fcf 100644 --- a/models/identitygovernance/on_demand_execution_only.go +++ b/models/identitygovernance/on_demand_execution_only.go @@ -8,7 +8,7 @@ import ( type OnDemandExecutionOnly struct { WorkflowExecutionConditions } -// NewOnDemandExecutionOnly instantiates a new OnDemandExecutionOnly and sets the default values. +// NewOnDemandExecutionOnly instantiates a new onDemandExecutionOnly and sets the default values. func NewOnDemandExecutionOnly()(*OnDemandExecutionOnly) { m := &OnDemandExecutionOnly{ WorkflowExecutionConditions: *NewWorkflowExecutionConditions(), @@ -24,18 +24,54 @@ func CreateOnDemandExecutionOnlyFromDiscriminatorValue(parseNode i878a80d2330e89 // GetFieldDeserializers the deserialization information for the current model func (m *OnDemandExecutionOnly) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.WorkflowExecutionConditions.GetFieldDeserializers() + 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 *OnDemandExecutionOnly) 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 *OnDemandExecutionOnly) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.WorkflowExecutionConditions.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OnDemandExecutionOnly) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // OnDemandExecutionOnlyable type OnDemandExecutionOnlyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable WorkflowExecutionConditionsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/identitygovernance/parameter.go b/models/identitygovernance/parameter.go index 88e23b56c0b..b87877c582c 100644 --- a/models/identitygovernance/parameter.go +++ b/models/identitygovernance/parameter.go @@ -10,7 +10,7 @@ type Parameter struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewParameter instantiates a new Parameter and sets the default values. +// NewParameter instantiates a new parameter and sets the default values. func NewParameter()(*Parameter) { m := &Parameter{ } diff --git a/models/identitygovernance/rule_based_subject_set.go b/models/identitygovernance/rule_based_subject_set.go index 94de570c452..11f398be115 100644 --- a/models/identitygovernance/rule_based_subject_set.go +++ b/models/identitygovernance/rule_based_subject_set.go @@ -9,7 +9,7 @@ import ( type RuleBasedSubjectSet struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SubjectSet } -// NewRuleBasedSubjectSet instantiates a new RuleBasedSubjectSet and sets the default values. +// NewRuleBasedSubjectSet instantiates a new ruleBasedSubjectSet and sets the default values. func NewRuleBasedSubjectSet()(*RuleBasedSubjectSet) { m := &RuleBasedSubjectSet{ SubjectSet: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewSubjectSet(), @@ -25,6 +25,16 @@ func CreateRuleBasedSubjectSetFromDiscriminatorValue(parseNode i878a80d2330e89d2 // GetFieldDeserializers the deserialization information for the current model func (m *RuleBasedSubjectSet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.SubjectSet.GetFieldDeserializers() + 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["rule"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -37,6 +47,17 @@ func (m *RuleBasedSubjectSet) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RuleBasedSubjectSet) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRule gets the rule property value. The rule for the subject set. Lifecycle Workflows supports a rich set of user properties for configuring the rules using $filter query expressions. For more information, see supported user and query parameters. func (m *RuleBasedSubjectSet) GetRule()(*string) { val, err := m.GetBackingStore().Get("rule") @@ -54,6 +75,12 @@ func (m *RuleBasedSubjectSet) Serialize(writer i878a80d2330e89d26896388a3f487eef if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("rule", m.GetRule()) if err != nil { @@ -62,6 +89,13 @@ func (m *RuleBasedSubjectSet) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RuleBasedSubjectSet) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRule sets the rule property value. The rule for the subject set. Lifecycle Workflows supports a rich set of user properties for configuring the rules using $filter query expressions. For more information, see supported user and query parameters. func (m *RuleBasedSubjectSet) SetRule(value *string)() { err := m.GetBackingStore().Set("rule", value) @@ -73,6 +107,8 @@ func (m *RuleBasedSubjectSet) SetRule(value *string)() { type RuleBasedSubjectSetable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SubjectSetable + GetOdataType()(*string) GetRule()(*string) + SetOdataType(value *string)() SetRule(value *string)() } diff --git a/models/identitygovernance/run.go b/models/identitygovernance/run.go index bf5d39c5431..28eeff42a7c 100644 --- a/models/identitygovernance/run.go +++ b/models/identitygovernance/run.go @@ -9,8 +9,10 @@ import ( // Run type Run struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewRun instantiates a new Run and sets the default values. +// NewRun instantiates a new run and sets the default values. func NewRun()(*Run) { m := &Run{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/identitygovernance/run_collection_response.go b/models/identitygovernance/run_collection_response.go index 9f2ac6dc270..8956401d361 100644 --- a/models/identitygovernance/run_collection_response.go +++ b/models/identitygovernance/run_collection_response.go @@ -9,7 +9,7 @@ import ( type RunCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewRunCollectionResponse instantiates a new RunCollectionResponse and sets the default values. +// NewRunCollectionResponse instantiates a new runCollectionResponse and sets the default values. func NewRunCollectionResponse()(*RunCollectionResponse) { m := &RunCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/identitygovernance/task.go b/models/identitygovernance/task.go index 8ca2ee9c797..65a6aefacb2 100644 --- a/models/identitygovernance/task.go +++ b/models/identitygovernance/task.go @@ -8,8 +8,10 @@ import ( // Task type Task struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewTask instantiates a new Task and sets the default values. +// NewTask instantiates a new task and sets the default values. func NewTask()(*Task) { m := &Task{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/identitygovernance/task_collection_response.go b/models/identitygovernance/task_collection_response.go index 696830dfa2a..79df9932595 100644 --- a/models/identitygovernance/task_collection_response.go +++ b/models/identitygovernance/task_collection_response.go @@ -9,7 +9,7 @@ import ( type TaskCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewTaskCollectionResponse instantiates a new TaskCollectionResponse and sets the default values. +// NewTaskCollectionResponse instantiates a new taskCollectionResponse and sets the default values. func NewTaskCollectionResponse()(*TaskCollectionResponse) { m := &TaskCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/identitygovernance/task_definition.go b/models/identitygovernance/task_definition.go index 65ae5f47c2a..74fd3d7279e 100644 --- a/models/identitygovernance/task_definition.go +++ b/models/identitygovernance/task_definition.go @@ -8,8 +8,10 @@ import ( // TaskDefinition type TaskDefinition struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewTaskDefinition instantiates a new TaskDefinition and sets the default values. +// NewTaskDefinition instantiates a new taskDefinition and sets the default values. func NewTaskDefinition()(*TaskDefinition) { m := &TaskDefinition{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/identitygovernance/task_definition_collection_response.go b/models/identitygovernance/task_definition_collection_response.go index 0018859a81d..4fa698f1b89 100644 --- a/models/identitygovernance/task_definition_collection_response.go +++ b/models/identitygovernance/task_definition_collection_response.go @@ -9,7 +9,7 @@ import ( type TaskDefinitionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewTaskDefinitionCollectionResponse instantiates a new TaskDefinitionCollectionResponse and sets the default values. +// NewTaskDefinitionCollectionResponse instantiates a new taskDefinitionCollectionResponse and sets the default values. func NewTaskDefinitionCollectionResponse()(*TaskDefinitionCollectionResponse) { m := &TaskDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/identitygovernance/task_processing_result.go b/models/identitygovernance/task_processing_result.go index 2df353e2985..e195b4628f4 100644 --- a/models/identitygovernance/task_processing_result.go +++ b/models/identitygovernance/task_processing_result.go @@ -9,6 +9,8 @@ import ( // TaskProcessingResult type TaskProcessingResult struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewTaskProcessingResult instantiates a new taskProcessingResult and sets the default values. func NewTaskProcessingResult()(*TaskProcessingResult) { diff --git a/models/identitygovernance/task_processing_result_collection_response.go b/models/identitygovernance/task_processing_result_collection_response.go index a87d38f10d8..a9fe9705fe4 100644 --- a/models/identitygovernance/task_processing_result_collection_response.go +++ b/models/identitygovernance/task_processing_result_collection_response.go @@ -9,7 +9,7 @@ import ( type TaskProcessingResultCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewTaskProcessingResultCollectionResponse instantiates a new TaskProcessingResultCollectionResponse and sets the default values. +// NewTaskProcessingResultCollectionResponse instantiates a new taskProcessingResultCollectionResponse and sets the default values. func NewTaskProcessingResultCollectionResponse()(*TaskProcessingResultCollectionResponse) { m := &TaskProcessingResultCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/identitygovernance/task_report.go b/models/identitygovernance/task_report.go index cc8916be8e5..3fb3036c548 100644 --- a/models/identitygovernance/task_report.go +++ b/models/identitygovernance/task_report.go @@ -9,8 +9,10 @@ import ( // TaskReport type TaskReport struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewTaskReport instantiates a new TaskReport and sets the default values. +// NewTaskReport instantiates a new taskReport and sets the default values. func NewTaskReport()(*TaskReport) { m := &TaskReport{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/identitygovernance/task_report_collection_response.go b/models/identitygovernance/task_report_collection_response.go index 316c0d985f5..bf91405eace 100644 --- a/models/identitygovernance/task_report_collection_response.go +++ b/models/identitygovernance/task_report_collection_response.go @@ -9,7 +9,7 @@ import ( type TaskReportCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewTaskReportCollectionResponse instantiates a new TaskReportCollectionResponse and sets the default values. +// NewTaskReportCollectionResponse instantiates a new taskReportCollectionResponse and sets the default values. func NewTaskReportCollectionResponse()(*TaskReportCollectionResponse) { m := &TaskReportCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/identitygovernance/time_based_attribute_trigger.go b/models/identitygovernance/time_based_attribute_trigger.go index 34bdef730c0..282e639ad7b 100644 --- a/models/identitygovernance/time_based_attribute_trigger.go +++ b/models/identitygovernance/time_based_attribute_trigger.go @@ -7,8 +7,10 @@ import ( // TimeBasedAttributeTrigger type TimeBasedAttributeTrigger struct { WorkflowExecutionTrigger + // The OdataType property + OdataType *string } -// NewTimeBasedAttributeTrigger instantiates a new TimeBasedAttributeTrigger and sets the default values. +// NewTimeBasedAttributeTrigger instantiates a new timeBasedAttributeTrigger and sets the default values. func NewTimeBasedAttributeTrigger()(*TimeBasedAttributeTrigger) { m := &TimeBasedAttributeTrigger{ WorkflowExecutionTrigger: *NewWorkflowExecutionTrigger(), diff --git a/models/identitygovernance/trigger_and_scope_based_conditions.go b/models/identitygovernance/trigger_and_scope_based_conditions.go index a674b38067f..989875a2d10 100644 --- a/models/identitygovernance/trigger_and_scope_based_conditions.go +++ b/models/identitygovernance/trigger_and_scope_based_conditions.go @@ -8,8 +8,10 @@ import ( // TriggerAndScopeBasedConditions type TriggerAndScopeBasedConditions struct { WorkflowExecutionConditions + // The OdataType property + OdataType *string } -// NewTriggerAndScopeBasedConditions instantiates a new TriggerAndScopeBasedConditions and sets the default values. +// NewTriggerAndScopeBasedConditions instantiates a new triggerAndScopeBasedConditions and sets the default values. func NewTriggerAndScopeBasedConditions()(*TriggerAndScopeBasedConditions) { m := &TriggerAndScopeBasedConditions{ WorkflowExecutionConditions: *NewWorkflowExecutionConditions(), diff --git a/models/identitygovernance/user_processing_result.go b/models/identitygovernance/user_processing_result.go index 65236359f4b..5b1a64a6c48 100644 --- a/models/identitygovernance/user_processing_result.go +++ b/models/identitygovernance/user_processing_result.go @@ -9,6 +9,8 @@ import ( // UserProcessingResult type UserProcessingResult struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewUserProcessingResult instantiates a new userProcessingResult and sets the default values. func NewUserProcessingResult()(*UserProcessingResult) { diff --git a/models/identitygovernance/user_processing_result_collection_response.go b/models/identitygovernance/user_processing_result_collection_response.go index 5eede794b59..745681595b3 100644 --- a/models/identitygovernance/user_processing_result_collection_response.go +++ b/models/identitygovernance/user_processing_result_collection_response.go @@ -9,7 +9,7 @@ import ( type UserProcessingResultCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewUserProcessingResultCollectionResponse instantiates a new UserProcessingResultCollectionResponse and sets the default values. +// NewUserProcessingResultCollectionResponse instantiates a new userProcessingResultCollectionResponse and sets the default values. func NewUserProcessingResultCollectionResponse()(*UserProcessingResultCollectionResponse) { m := &UserProcessingResultCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/identitygovernance/workflow.go b/models/identitygovernance/workflow.go index 833dad5b00f..f5687012da8 100644 --- a/models/identitygovernance/workflow.go +++ b/models/identitygovernance/workflow.go @@ -8,8 +8,10 @@ import ( // Workflow type Workflow struct { WorkflowBase + // The OdataType property + OdataType *string } -// NewWorkflow instantiates a new Workflow and sets the default values. +// NewWorkflow instantiates a new workflow and sets the default values. func NewWorkflow()(*Workflow) { m := &Workflow{ WorkflowBase: *NewWorkflowBase(), diff --git a/models/identitygovernance/workflow_collection_response.go b/models/identitygovernance/workflow_collection_response.go index 292f81a5373..84d2f681af8 100644 --- a/models/identitygovernance/workflow_collection_response.go +++ b/models/identitygovernance/workflow_collection_response.go @@ -9,7 +9,7 @@ import ( type WorkflowCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewWorkflowCollectionResponse instantiates a new WorkflowCollectionResponse and sets the default values. +// NewWorkflowCollectionResponse instantiates a new workflowCollectionResponse and sets the default values. func NewWorkflowCollectionResponse()(*WorkflowCollectionResponse) { m := &WorkflowCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/identitygovernance/workflow_template.go b/models/identitygovernance/workflow_template.go index 22ef8c7e932..e7faa527156 100644 --- a/models/identitygovernance/workflow_template.go +++ b/models/identitygovernance/workflow_template.go @@ -8,8 +8,10 @@ import ( // WorkflowTemplate type WorkflowTemplate struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewWorkflowTemplate instantiates a new WorkflowTemplate and sets the default values. +// NewWorkflowTemplate instantiates a new workflowTemplate and sets the default values. func NewWorkflowTemplate()(*WorkflowTemplate) { m := &WorkflowTemplate{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/identitygovernance/workflow_template_collection_response.go b/models/identitygovernance/workflow_template_collection_response.go index 12f7c1cc62f..544bb9f2597 100644 --- a/models/identitygovernance/workflow_template_collection_response.go +++ b/models/identitygovernance/workflow_template_collection_response.go @@ -9,7 +9,7 @@ import ( type WorkflowTemplateCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewWorkflowTemplateCollectionResponse instantiates a new WorkflowTemplateCollectionResponse and sets the default values. +// NewWorkflowTemplateCollectionResponse instantiates a new workflowTemplateCollectionResponse and sets the default values. func NewWorkflowTemplateCollectionResponse()(*WorkflowTemplateCollectionResponse) { m := &WorkflowTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/identitygovernance/workflow_version.go b/models/identitygovernance/workflow_version.go index f5134ee48c0..14cfed67d1c 100644 --- a/models/identitygovernance/workflow_version.go +++ b/models/identitygovernance/workflow_version.go @@ -7,6 +7,8 @@ import ( // WorkflowVersion type WorkflowVersion struct { WorkflowBase + // The OdataType property + OdataType *string } // NewWorkflowVersion instantiates a new workflowVersion and sets the default values. func NewWorkflowVersion()(*WorkflowVersion) { diff --git a/models/identitygovernance/workflow_version_collection_response.go b/models/identitygovernance/workflow_version_collection_response.go index a0e6d556bc0..7109b867c53 100644 --- a/models/identitygovernance/workflow_version_collection_response.go +++ b/models/identitygovernance/workflow_version_collection_response.go @@ -9,7 +9,7 @@ import ( type WorkflowVersionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewWorkflowVersionCollectionResponse instantiates a new WorkflowVersionCollectionResponse and sets the default values. +// NewWorkflowVersionCollectionResponse instantiates a new workflowVersionCollectionResponse and sets the default values. func NewWorkflowVersionCollectionResponse()(*WorkflowVersionCollectionResponse) { m := &WorkflowVersionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/impacted_resource.go b/models/impacted_resource.go index 91b798c92c6..178936a4192 100644 --- a/models/impacted_resource.go +++ b/models/impacted_resource.go @@ -8,6 +8,8 @@ import ( // ImpactedResource type ImpactedResource struct { Entity + // The OdataType property + OdataType *string } // NewImpactedResource instantiates a new impactedResource and sets the default values. func NewImpactedResource()(*ImpactedResource) { diff --git a/models/impacted_resource_collection_response.go b/models/impacted_resource_collection_response.go index ccce42b3833..d5e34cac123 100644 --- a/models/impacted_resource_collection_response.go +++ b/models/impacted_resource_collection_response.go @@ -8,7 +8,7 @@ import ( type ImpactedResourceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewImpactedResourceCollectionResponse instantiates a new ImpactedResourceCollectionResponse and sets the default values. +// NewImpactedResourceCollectionResponse instantiates a new impactedResourceCollectionResponse and sets the default values. func NewImpactedResourceCollectionResponse()(*ImpactedResourceCollectionResponse) { m := &ImpactedResourceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/imported_apple_device_identity.go b/models/imported_apple_device_identity.go index 77dc8ca013f..e626c629a06 100644 --- a/models/imported_apple_device_identity.go +++ b/models/imported_apple_device_identity.go @@ -8,6 +8,8 @@ import ( // ImportedAppleDeviceIdentity the importedAppleDeviceIdentity resource represents the imported device identity of an Apple device . type ImportedAppleDeviceIdentity struct { Entity + // The OdataType property + OdataType *string } // NewImportedAppleDeviceIdentity instantiates a new importedAppleDeviceIdentity and sets the default values. func NewImportedAppleDeviceIdentity()(*ImportedAppleDeviceIdentity) { diff --git a/models/imported_apple_device_identity_collection_response.go b/models/imported_apple_device_identity_collection_response.go index cc2856ca98a..bfaf1840b2d 100644 --- a/models/imported_apple_device_identity_collection_response.go +++ b/models/imported_apple_device_identity_collection_response.go @@ -8,7 +8,7 @@ import ( type ImportedAppleDeviceIdentityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewImportedAppleDeviceIdentityCollectionResponse instantiates a new ImportedAppleDeviceIdentityCollectionResponse and sets the default values. +// NewImportedAppleDeviceIdentityCollectionResponse instantiates a new importedAppleDeviceIdentityCollectionResponse and sets the default values. func NewImportedAppleDeviceIdentityCollectionResponse()(*ImportedAppleDeviceIdentityCollectionResponse) { m := &ImportedAppleDeviceIdentityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/imported_apple_device_identity_result.go b/models/imported_apple_device_identity_result.go index bdd56a728a5..e400e4d2e77 100644 --- a/models/imported_apple_device_identity_result.go +++ b/models/imported_apple_device_identity_result.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ImportedAppleDeviceIdentityResult +// ImportedAppleDeviceIdentityResult the importedAppleDeviceIdentityResult resource represents the result of attempting to import Apple devices identities. type ImportedAppleDeviceIdentityResult struct { ImportedAppleDeviceIdentity } -// NewImportedAppleDeviceIdentityResult instantiates a new ImportedAppleDeviceIdentityResult and sets the default values. +// NewImportedAppleDeviceIdentityResult instantiates a new importedAppleDeviceIdentityResult and sets the default values. func NewImportedAppleDeviceIdentityResult()(*ImportedAppleDeviceIdentityResult) { m := &ImportedAppleDeviceIdentityResult{ ImportedAppleDeviceIdentity: *NewImportedAppleDeviceIdentity(), diff --git a/models/imported_device_identity.go b/models/imported_device_identity.go index 5cffa0d768a..d1ef83be9c7 100644 --- a/models/imported_device_identity.go +++ b/models/imported_device_identity.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ImportedDeviceIdentity +// ImportedDeviceIdentity the importedDeviceIdentity resource represents a unique hardware identity of a device that has been pre-staged for pre-enrollment configuration. type ImportedDeviceIdentity struct { Entity + // The OdataType property + OdataType *string } -// NewImportedDeviceIdentity instantiates a new ImportedDeviceIdentity and sets the default values. +// NewImportedDeviceIdentity instantiates a new importedDeviceIdentity and sets the default values. func NewImportedDeviceIdentity()(*ImportedDeviceIdentity) { m := &ImportedDeviceIdentity{ Entity: *NewEntity(), diff --git a/models/imported_device_identity_collection_response.go b/models/imported_device_identity_collection_response.go index 937936ed56e..4d0a6d9e672 100644 --- a/models/imported_device_identity_collection_response.go +++ b/models/imported_device_identity_collection_response.go @@ -8,7 +8,7 @@ import ( type ImportedDeviceIdentityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewImportedDeviceIdentityCollectionResponse instantiates a new ImportedDeviceIdentityCollectionResponse and sets the default values. +// NewImportedDeviceIdentityCollectionResponse instantiates a new importedDeviceIdentityCollectionResponse and sets the default values. func NewImportedDeviceIdentityCollectionResponse()(*ImportedDeviceIdentityCollectionResponse) { m := &ImportedDeviceIdentityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/imported_device_identity_result.go b/models/imported_device_identity_result.go index 4b233f27564..c0c9f0baee4 100644 --- a/models/imported_device_identity_result.go +++ b/models/imported_device_identity_result.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ImportedDeviceIdentityResult +// ImportedDeviceIdentityResult the importedDeviceIdentityResult resource represents the result of attempting to import a device identity. type ImportedDeviceIdentityResult struct { ImportedDeviceIdentity } -// NewImportedDeviceIdentityResult instantiates a new ImportedDeviceIdentityResult and sets the default values. +// NewImportedDeviceIdentityResult instantiates a new importedDeviceIdentityResult and sets the default values. func NewImportedDeviceIdentityResult()(*ImportedDeviceIdentityResult) { m := &ImportedDeviceIdentityResult{ ImportedDeviceIdentity: *NewImportedDeviceIdentity(), diff --git a/models/imported_windows_autopilot_device_identity.go b/models/imported_windows_autopilot_device_identity.go index 0425a1b3b4f..7fedf5b1ecf 100644 --- a/models/imported_windows_autopilot_device_identity.go +++ b/models/imported_windows_autopilot_device_identity.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ImportedWindowsAutopilotDeviceIdentity +// ImportedWindowsAutopilotDeviceIdentity imported windows autopilot devices. type ImportedWindowsAutopilotDeviceIdentity struct { Entity + // The OdataType property + OdataType *string } -// NewImportedWindowsAutopilotDeviceIdentity instantiates a new ImportedWindowsAutopilotDeviceIdentity and sets the default values. +// NewImportedWindowsAutopilotDeviceIdentity instantiates a new importedWindowsAutopilotDeviceIdentity and sets the default values. func NewImportedWindowsAutopilotDeviceIdentity()(*ImportedWindowsAutopilotDeviceIdentity) { m := &ImportedWindowsAutopilotDeviceIdentity{ Entity: *NewEntity(), diff --git a/models/imported_windows_autopilot_device_identity_collection_response.go b/models/imported_windows_autopilot_device_identity_collection_response.go index bf877cc2269..f291b5bda94 100644 --- a/models/imported_windows_autopilot_device_identity_collection_response.go +++ b/models/imported_windows_autopilot_device_identity_collection_response.go @@ -8,7 +8,7 @@ import ( type ImportedWindowsAutopilotDeviceIdentityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewImportedWindowsAutopilotDeviceIdentityCollectionResponse instantiates a new ImportedWindowsAutopilotDeviceIdentityCollectionResponse and sets the default values. +// NewImportedWindowsAutopilotDeviceIdentityCollectionResponse instantiates a new importedWindowsAutopilotDeviceIdentityCollectionResponse and sets the default values. func NewImportedWindowsAutopilotDeviceIdentityCollectionResponse()(*ImportedWindowsAutopilotDeviceIdentityCollectionResponse) { m := &ImportedWindowsAutopilotDeviceIdentityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/imported_windows_autopilot_device_identity_upload.go b/models/imported_windows_autopilot_device_identity_upload.go index aa73ad1cff4..96966c277aa 100644 --- a/models/imported_windows_autopilot_device_identity_upload.go +++ b/models/imported_windows_autopilot_device_identity_upload.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ImportedWindowsAutopilotDeviceIdentityUpload +// ImportedWindowsAutopilotDeviceIdentityUpload import windows autopilot devices using upload. type ImportedWindowsAutopilotDeviceIdentityUpload struct { Entity + // The OdataType property + OdataType *string } -// NewImportedWindowsAutopilotDeviceIdentityUpload instantiates a new ImportedWindowsAutopilotDeviceIdentityUpload and sets the default values. +// NewImportedWindowsAutopilotDeviceIdentityUpload instantiates a new importedWindowsAutopilotDeviceIdentityUpload and sets the default values. func NewImportedWindowsAutopilotDeviceIdentityUpload()(*ImportedWindowsAutopilotDeviceIdentityUpload) { m := &ImportedWindowsAutopilotDeviceIdentityUpload{ Entity: *NewEntity(), diff --git a/models/inbound_shared_user_profile.go b/models/inbound_shared_user_profile.go index 296e3a900ac..39974b3c0cb 100644 --- a/models/inbound_shared_user_profile.go +++ b/models/inbound_shared_user_profile.go @@ -10,7 +10,7 @@ type InboundSharedUserProfile struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewInboundSharedUserProfile instantiates a new InboundSharedUserProfile and sets the default values. +// NewInboundSharedUserProfile instantiates a new inboundSharedUserProfile and sets the default values. func NewInboundSharedUserProfile()(*InboundSharedUserProfile) { m := &InboundSharedUserProfile{ } diff --git a/models/inbound_shared_user_profile_collection_response.go b/models/inbound_shared_user_profile_collection_response.go index a8aa244c604..7d3c6dd0ee3 100644 --- a/models/inbound_shared_user_profile_collection_response.go +++ b/models/inbound_shared_user_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type InboundSharedUserProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewInboundSharedUserProfileCollectionResponse instantiates a new InboundSharedUserProfileCollectionResponse and sets the default values. +// NewInboundSharedUserProfileCollectionResponse instantiates a new inboundSharedUserProfileCollectionResponse and sets the default values. func NewInboundSharedUserProfileCollectionResponse()(*InboundSharedUserProfileCollectionResponse) { m := &InboundSharedUserProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/include_all_account_target_content.go b/models/include_all_account_target_content.go index 01145dba00f..e7c09d736cf 100644 --- a/models/include_all_account_target_content.go +++ b/models/include_all_account_target_content.go @@ -7,8 +7,10 @@ import ( // IncludeAllAccountTargetContent type IncludeAllAccountTargetContent struct { AccountTargetContent + // The OdataType property + OdataType *string } -// NewIncludeAllAccountTargetContent instantiates a new IncludeAllAccountTargetContent and sets the default values. +// NewIncludeAllAccountTargetContent instantiates a new includeAllAccountTargetContent and sets the default values. func NewIncludeAllAccountTargetContent()(*IncludeAllAccountTargetContent) { m := &IncludeAllAccountTargetContent{ AccountTargetContent: *NewAccountTargetContent(), diff --git a/models/include_target.go b/models/include_target.go index 588570860e2..7559b55e12e 100644 --- a/models/include_target.go +++ b/models/include_target.go @@ -10,7 +10,7 @@ type IncludeTarget struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewIncludeTarget instantiates a new IncludeTarget and sets the default values. +// NewIncludeTarget instantiates a new includeTarget and sets the default values. func NewIncludeTarget()(*IncludeTarget) { m := &IncludeTarget{ } diff --git a/models/incoming_call_options.go b/models/incoming_call_options.go index ba87e384950..8619443233e 100644 --- a/models/incoming_call_options.go +++ b/models/incoming_call_options.go @@ -7,8 +7,10 @@ import ( // IncomingCallOptions type IncomingCallOptions struct { CallOptions + // The OdataType property + OdataType *string } -// NewIncomingCallOptions instantiates a new IncomingCallOptions and sets the default values. +// NewIncomingCallOptions instantiates a new incomingCallOptions and sets the default values. func NewIncomingCallOptions()(*IncomingCallOptions) { m := &IncomingCallOptions{ CallOptions: *NewCallOptions(), diff --git a/models/industrydata/azure_data_lake_connector.go b/models/industrydata/azure_data_lake_connector.go index 8f75481291d..8808793edd3 100644 --- a/models/industrydata/azure_data_lake_connector.go +++ b/models/industrydata/azure_data_lake_connector.go @@ -8,7 +8,7 @@ import ( type AzureDataLakeConnector struct { FileDataConnector } -// NewAzureDataLakeConnector instantiates a new AzureDataLakeConnector and sets the default values. +// NewAzureDataLakeConnector instantiates a new azureDataLakeConnector and sets the default values. func NewAzureDataLakeConnector()(*AzureDataLakeConnector) { m := &AzureDataLakeConnector{ FileDataConnector: *NewFileDataConnector(), diff --git a/models/industrydata/file_data_connector.go b/models/industrydata/file_data_connector.go index 0e6b96d7533..c2f70aaf731 100644 --- a/models/industrydata/file_data_connector.go +++ b/models/industrydata/file_data_connector.go @@ -8,7 +8,7 @@ import ( type FileDataConnector struct { IndustryDataConnector } -// NewFileDataConnector instantiates a new FileDataConnector and sets the default values. +// NewFileDataConnector instantiates a new fileDataConnector and sets the default values. func NewFileDataConnector()(*FileDataConnector) { m := &FileDataConnector{ IndustryDataConnector: *NewIndustryDataConnector(), diff --git a/models/industrydata/file_validate_operation.go b/models/industrydata/file_validate_operation.go index 8cf3e35d5fd..120ada36108 100644 --- a/models/industrydata/file_validate_operation.go +++ b/models/industrydata/file_validate_operation.go @@ -8,7 +8,7 @@ import ( type FileValidateOperation struct { ValidateOperation } -// NewFileValidateOperation instantiates a new FileValidateOperation and sets the default values. +// NewFileValidateOperation instantiates a new fileValidateOperation and sets the default values. func NewFileValidateOperation()(*FileValidateOperation) { m := &FileValidateOperation{ ValidateOperation: *NewValidateOperation(), diff --git a/models/industrydata/identifier_type_reference_value.go b/models/industrydata/identifier_type_reference_value.go index 868564496ca..3750c49a9b2 100644 --- a/models/industrydata/identifier_type_reference_value.go +++ b/models/industrydata/identifier_type_reference_value.go @@ -8,7 +8,7 @@ import ( type IdentifierTypeReferenceValue struct { ReferenceValue } -// NewIdentifierTypeReferenceValue instantiates a new IdentifierTypeReferenceValue and sets the default values. +// NewIdentifierTypeReferenceValue instantiates a new identifierTypeReferenceValue and sets the default values. func NewIdentifierTypeReferenceValue()(*IdentifierTypeReferenceValue) { m := &IdentifierTypeReferenceValue{ ReferenceValue: *NewReferenceValue(), @@ -24,18 +24,54 @@ func CreateIdentifierTypeReferenceValueFromDiscriminatorValue(parseNode i878a80d // GetFieldDeserializers the deserialization information for the current model func (m *IdentifierTypeReferenceValue) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ReferenceValue.GetFieldDeserializers() + 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 *IdentifierTypeReferenceValue) 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 *IdentifierTypeReferenceValue) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ReferenceValue.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IdentifierTypeReferenceValue) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // IdentifierTypeReferenceValueable type IdentifierTypeReferenceValueable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ReferenceValueable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/industrydata/inbound_activity_results.go b/models/industrydata/inbound_activity_results.go index 867d5f5dda7..9eea076e3d1 100644 --- a/models/industrydata/inbound_activity_results.go +++ b/models/industrydata/inbound_activity_results.go @@ -8,7 +8,7 @@ import ( type InboundActivityResults struct { IndustryDataActivityStatistics } -// NewInboundActivityResults instantiates a new InboundActivityResults and sets the default values. +// NewInboundActivityResults instantiates a new inboundActivityResults and sets the default values. func NewInboundActivityResults()(*InboundActivityResults) { m := &InboundActivityResults{ IndustryDataActivityStatistics: *NewIndustryDataActivityStatistics(), @@ -81,6 +81,16 @@ func (m *InboundActivityResults) GetFieldDeserializers()(map[string]func(i878a80 } 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["organizations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateIndustryDataRunEntityCountMetricFromDiscriminatorValue) if err != nil { @@ -162,6 +172,17 @@ func (m *InboundActivityResults) GetMemberships()(IndustryDataRunEntityCountMetr } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *InboundActivityResults) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOrganizations gets the organizations property value. Counts of active and inactive organizations processed by the inbound flow. func (m *InboundActivityResults) GetOrganizations()(IndustryDataRunEntityCountMetricable) { val, err := m.GetBackingStore().Get("organizations") @@ -212,6 +233,12 @@ func (m *InboundActivityResults) Serialize(writer i878a80d2330e89d26896388a3f487 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetErrors sets the errors property value. Number of errors encountered while processing the inbound flow. @@ -242,6 +269,13 @@ func (m *InboundActivityResults) SetMemberships(value IndustryDataRunEntityCount panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *InboundActivityResults) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOrganizations sets the organizations property value. Counts of active and inactive organizations processed by the inbound flow. func (m *InboundActivityResults) SetOrganizations(value IndustryDataRunEntityCountMetricable)() { err := m.GetBackingStore().Set("organizations", value) @@ -278,6 +312,7 @@ type InboundActivityResultsable interface { GetGroups()(IndustryDataRunEntityCountMetricable) GetMatchedPeopleByRole()([]IndustryDataRunRoleCountMetricable) GetMemberships()(IndustryDataRunEntityCountMetricable) + GetOdataType()(*string) GetOrganizations()(IndustryDataRunEntityCountMetricable) GetPeople()(IndustryDataRunEntityCountMetricable) GetUnmatchedPeopleByRole()([]IndustryDataRunRoleCountMetricable) @@ -286,6 +321,7 @@ type InboundActivityResultsable interface { SetGroups(value IndustryDataRunEntityCountMetricable)() SetMatchedPeopleByRole(value []IndustryDataRunRoleCountMetricable)() SetMemberships(value IndustryDataRunEntityCountMetricable)() + SetOdataType(value *string)() SetOrganizations(value IndustryDataRunEntityCountMetricable)() SetPeople(value IndustryDataRunEntityCountMetricable)() SetUnmatchedPeopleByRole(value []IndustryDataRunRoleCountMetricable)() diff --git a/models/industrydata/inbound_file_flow.go b/models/industrydata/inbound_file_flow.go index 9cf5491064a..a6cbed553a6 100644 --- a/models/industrydata/inbound_file_flow.go +++ b/models/industrydata/inbound_file_flow.go @@ -8,7 +8,7 @@ import ( type InboundFileFlow struct { InboundFlow } -// NewInboundFileFlow instantiates a new InboundFileFlow and sets the default values. +// NewInboundFileFlow instantiates a new inboundFileFlow and sets the default values. func NewInboundFileFlow()(*InboundFileFlow) { m := &InboundFileFlow{ InboundFlow: *NewInboundFlow(), diff --git a/models/industrydata/inbound_flow.go b/models/industrydata/inbound_flow.go index 29b738d5334..4dd4c6aad59 100644 --- a/models/industrydata/inbound_flow.go +++ b/models/industrydata/inbound_flow.go @@ -9,7 +9,7 @@ import ( type InboundFlow struct { IndustryDataActivity } -// NewInboundFlow instantiates a new InboundFlow and sets the default values. +// NewInboundFlow instantiates a new inboundFlow and sets the default values. func NewInboundFlow()(*InboundFlow) { m := &InboundFlow{ IndustryDataActivity: *NewIndustryDataActivity(), diff --git a/models/industrydata/inbound_flow_activity.go b/models/industrydata/inbound_flow_activity.go index d777c529d0f..029fb0d937f 100644 --- a/models/industrydata/inbound_flow_activity.go +++ b/models/industrydata/inbound_flow_activity.go @@ -8,7 +8,7 @@ import ( type InboundFlowActivity struct { IndustryDataRunActivity } -// NewInboundFlowActivity instantiates a new InboundFlowActivity and sets the default values. +// NewInboundFlowActivity instantiates a new inboundFlowActivity and sets the default values. func NewInboundFlowActivity()(*InboundFlowActivity) { m := &InboundFlowActivity{ IndustryDataRunActivity: *NewIndustryDataRunActivity(), diff --git a/models/industrydata/inbound_flow_collection_response.go b/models/industrydata/inbound_flow_collection_response.go index 6bd2a613ae0..0b42dd117be 100644 --- a/models/industrydata/inbound_flow_collection_response.go +++ b/models/industrydata/inbound_flow_collection_response.go @@ -9,7 +9,7 @@ import ( type InboundFlowCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewInboundFlowCollectionResponse instantiates a new InboundFlowCollectionResponse and sets the default values. +// NewInboundFlowCollectionResponse instantiates a new inboundFlowCollectionResponse and sets the default values. func NewInboundFlowCollectionResponse()(*InboundFlowCollectionResponse) { m := &InboundFlowCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/industrydata/industry_data_activity.go b/models/industrydata/industry_data_activity.go index 55ec2e47771..b5825a863fe 100644 --- a/models/industrydata/industry_data_activity.go +++ b/models/industrydata/industry_data_activity.go @@ -8,6 +8,8 @@ import ( // IndustryDataActivity type IndustryDataActivity struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewIndustryDataActivity instantiates a new industryDataActivity and sets the default values. func NewIndustryDataActivity()(*IndustryDataActivity) { diff --git a/models/industrydata/industry_data_activity_statistics.go b/models/industrydata/industry_data_activity_statistics.go index cc359ac7197..5c36736fe7c 100644 --- a/models/industrydata/industry_data_activity_statistics.go +++ b/models/industrydata/industry_data_activity_statistics.go @@ -10,7 +10,7 @@ type IndustryDataActivityStatistics struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewIndustryDataActivityStatistics instantiates a new IndustryDataActivityStatistics and sets the default values. +// NewIndustryDataActivityStatistics instantiates a new industryDataActivityStatistics and sets the default values. func NewIndustryDataActivityStatistics()(*IndustryDataActivityStatistics) { m := &IndustryDataActivityStatistics{ } diff --git a/models/industrydata/industry_data_connector.go b/models/industrydata/industry_data_connector.go index 08576324df4..70b583cf44d 100644 --- a/models/industrydata/industry_data_connector.go +++ b/models/industrydata/industry_data_connector.go @@ -8,6 +8,8 @@ import ( // IndustryDataConnector type IndustryDataConnector struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewIndustryDataConnector instantiates a new industryDataConnector and sets the default values. func NewIndustryDataConnector()(*IndustryDataConnector) { diff --git a/models/industrydata/industry_data_connector_collection_response.go b/models/industrydata/industry_data_connector_collection_response.go index 35afe8105de..0adccb4f54d 100644 --- a/models/industrydata/industry_data_connector_collection_response.go +++ b/models/industrydata/industry_data_connector_collection_response.go @@ -9,7 +9,7 @@ import ( type IndustryDataConnectorCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewIndustryDataConnectorCollectionResponse instantiates a new IndustryDataConnectorCollectionResponse and sets the default values. +// NewIndustryDataConnectorCollectionResponse instantiates a new industryDataConnectorCollectionResponse and sets the default values. func NewIndustryDataConnectorCollectionResponse()(*IndustryDataConnectorCollectionResponse) { m := &IndustryDataConnectorCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/industrydata/industry_data_root.go b/models/industrydata/industry_data_root.go index 393ea14b0f1..11e07fb6ad4 100644 --- a/models/industrydata/industry_data_root.go +++ b/models/industrydata/industry_data_root.go @@ -8,8 +8,10 @@ import ( // IndustryDataRoot type IndustryDataRoot struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewIndustryDataRoot instantiates a new IndustryDataRoot and sets the default values. +// NewIndustryDataRoot instantiates a new industryDataRoot and sets the default values. func NewIndustryDataRoot()(*IndustryDataRoot) { m := &IndustryDataRoot{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/industrydata/industry_data_run.go b/models/industrydata/industry_data_run.go index 7af2f0d12d5..53e0995b3fb 100644 --- a/models/industrydata/industry_data_run.go +++ b/models/industrydata/industry_data_run.go @@ -9,8 +9,10 @@ import ( // IndustryDataRun type IndustryDataRun struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewIndustryDataRun instantiates a new IndustryDataRun and sets the default values. +// NewIndustryDataRun instantiates a new industryDataRun and sets the default values. func NewIndustryDataRun()(*IndustryDataRun) { m := &IndustryDataRun{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/industrydata/industry_data_run_activity.go b/models/industrydata/industry_data_run_activity.go index 87db55383ae..6e0fb4a555f 100644 --- a/models/industrydata/industry_data_run_activity.go +++ b/models/industrydata/industry_data_run_activity.go @@ -8,6 +8,8 @@ import ( // IndustryDataRunActivity type IndustryDataRunActivity struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewIndustryDataRunActivity instantiates a new industryDataRunActivity and sets the default values. func NewIndustryDataRunActivity()(*IndustryDataRunActivity) { diff --git a/models/industrydata/industry_data_run_activity_collection_response.go b/models/industrydata/industry_data_run_activity_collection_response.go index 6f7b55d9d2c..ebc74252ed6 100644 --- a/models/industrydata/industry_data_run_activity_collection_response.go +++ b/models/industrydata/industry_data_run_activity_collection_response.go @@ -9,7 +9,7 @@ import ( type IndustryDataRunActivityCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewIndustryDataRunActivityCollectionResponse instantiates a new IndustryDataRunActivityCollectionResponse and sets the default values. +// NewIndustryDataRunActivityCollectionResponse instantiates a new industryDataRunActivityCollectionResponse and sets the default values. func NewIndustryDataRunActivityCollectionResponse()(*IndustryDataRunActivityCollectionResponse) { m := &IndustryDataRunActivityCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/industrydata/industry_data_run_collection_response.go b/models/industrydata/industry_data_run_collection_response.go index c782251d758..0bb1cce056a 100644 --- a/models/industrydata/industry_data_run_collection_response.go +++ b/models/industrydata/industry_data_run_collection_response.go @@ -9,7 +9,7 @@ import ( type IndustryDataRunCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewIndustryDataRunCollectionResponse instantiates a new IndustryDataRunCollectionResponse and sets the default values. +// NewIndustryDataRunCollectionResponse instantiates a new industryDataRunCollectionResponse and sets the default values. func NewIndustryDataRunCollectionResponse()(*IndustryDataRunCollectionResponse) { m := &IndustryDataRunCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/industrydata/industry_data_run_role_count_metric.go b/models/industrydata/industry_data_run_role_count_metric.go index 0c3f25310a2..b8c2c6fb6b1 100644 --- a/models/industrydata/industry_data_run_role_count_metric.go +++ b/models/industrydata/industry_data_run_role_count_metric.go @@ -10,7 +10,7 @@ type IndustryDataRunRoleCountMetric struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewIndustryDataRunRoleCountMetric instantiates a new IndustryDataRunRoleCountMetric and sets the default values. +// NewIndustryDataRunRoleCountMetric instantiates a new industryDataRunRoleCountMetric and sets the default values. func NewIndustryDataRunRoleCountMetric()(*IndustryDataRunRoleCountMetric) { m := &IndustryDataRunRoleCountMetric{ } diff --git a/models/industrydata/outbound_flow_activity.go b/models/industrydata/outbound_flow_activity.go index c1e13b73e95..77a167e9cb6 100644 --- a/models/industrydata/outbound_flow_activity.go +++ b/models/industrydata/outbound_flow_activity.go @@ -8,7 +8,7 @@ import ( type OutboundFlowActivity struct { IndustryDataRunActivity } -// NewOutboundFlowActivity instantiates a new OutboundFlowActivity and sets the default values. +// NewOutboundFlowActivity instantiates a new outboundFlowActivity and sets the default values. func NewOutboundFlowActivity()(*OutboundFlowActivity) { m := &OutboundFlowActivity{ IndustryDataRunActivity: *NewIndustryDataRunActivity(), diff --git a/models/industrydata/reference_definition.go b/models/industrydata/reference_definition.go index ad5fb74e11e..844c18ea319 100644 --- a/models/industrydata/reference_definition.go +++ b/models/industrydata/reference_definition.go @@ -9,6 +9,8 @@ import ( // ReferenceDefinition type ReferenceDefinition struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewReferenceDefinition instantiates a new referenceDefinition and sets the default values. func NewReferenceDefinition()(*ReferenceDefinition) { diff --git a/models/industrydata/reference_definition_collection_response.go b/models/industrydata/reference_definition_collection_response.go index 683f9ef670a..71f577c4e5e 100644 --- a/models/industrydata/reference_definition_collection_response.go +++ b/models/industrydata/reference_definition_collection_response.go @@ -9,7 +9,7 @@ import ( type ReferenceDefinitionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewReferenceDefinitionCollectionResponse instantiates a new ReferenceDefinitionCollectionResponse and sets the default values. +// NewReferenceDefinitionCollectionResponse instantiates a new referenceDefinitionCollectionResponse and sets the default values. func NewReferenceDefinitionCollectionResponse()(*ReferenceDefinitionCollectionResponse) { m := &ReferenceDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/industrydata/role_group.go b/models/industrydata/role_group.go index 86412f2ea5f..17169508348 100644 --- a/models/industrydata/role_group.go +++ b/models/industrydata/role_group.go @@ -8,6 +8,8 @@ import ( // RoleGroup type RoleGroup struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewRoleGroup instantiates a new roleGroup and sets the default values. func NewRoleGroup()(*RoleGroup) { diff --git a/models/industrydata/role_group_collection_response.go b/models/industrydata/role_group_collection_response.go index c123761d491..091b7fd64f7 100644 --- a/models/industrydata/role_group_collection_response.go +++ b/models/industrydata/role_group_collection_response.go @@ -9,7 +9,7 @@ import ( type RoleGroupCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewRoleGroupCollectionResponse instantiates a new RoleGroupCollectionResponse and sets the default values. +// NewRoleGroupCollectionResponse instantiates a new roleGroupCollectionResponse and sets the default values. func NewRoleGroupCollectionResponse()(*RoleGroupCollectionResponse) { m := &RoleGroupCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/industrydata/role_reference_value.go b/models/industrydata/role_reference_value.go index 53871e2a1da..a9315e3a132 100644 --- a/models/industrydata/role_reference_value.go +++ b/models/industrydata/role_reference_value.go @@ -8,7 +8,7 @@ import ( type RoleReferenceValue struct { ReferenceValue } -// NewRoleReferenceValue instantiates a new RoleReferenceValue and sets the default values. +// NewRoleReferenceValue instantiates a new roleReferenceValue and sets the default values. func NewRoleReferenceValue()(*RoleReferenceValue) { m := &RoleReferenceValue{ ReferenceValue: *NewReferenceValue(), @@ -24,18 +24,54 @@ func CreateRoleReferenceValueFromDiscriminatorValue(parseNode i878a80d2330e89d26 // GetFieldDeserializers the deserialization information for the current model func (m *RoleReferenceValue) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ReferenceValue.GetFieldDeserializers() + 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 *RoleReferenceValue) 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 *RoleReferenceValue) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ReferenceValue.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RoleReferenceValue) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // RoleReferenceValueable type RoleReferenceValueable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ReferenceValueable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/industrydata/source_system_definition.go b/models/industrydata/source_system_definition.go index b04f7864cd5..d750ec663d9 100644 --- a/models/industrydata/source_system_definition.go +++ b/models/industrydata/source_system_definition.go @@ -8,6 +8,8 @@ import ( // SourceSystemDefinition type SourceSystemDefinition struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSourceSystemDefinition instantiates a new sourceSystemDefinition and sets the default values. func NewSourceSystemDefinition()(*SourceSystemDefinition) { diff --git a/models/industrydata/source_system_definition_collection_response.go b/models/industrydata/source_system_definition_collection_response.go index 85621b01971..40b1c70b054 100644 --- a/models/industrydata/source_system_definition_collection_response.go +++ b/models/industrydata/source_system_definition_collection_response.go @@ -9,7 +9,7 @@ import ( type SourceSystemDefinitionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewSourceSystemDefinitionCollectionResponse instantiates a new SourceSystemDefinitionCollectionResponse and sets the default values. +// NewSourceSystemDefinitionCollectionResponse instantiates a new sourceSystemDefinitionCollectionResponse and sets the default values. func NewSourceSystemDefinitionCollectionResponse()(*SourceSystemDefinitionCollectionResponse) { m := &SourceSystemDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/industrydata/user_match_target_reference_value.go b/models/industrydata/user_match_target_reference_value.go index 821e9105d94..0bf91a65852 100644 --- a/models/industrydata/user_match_target_reference_value.go +++ b/models/industrydata/user_match_target_reference_value.go @@ -7,8 +7,10 @@ import ( // UserMatchTargetReferenceValue type UserMatchTargetReferenceValue struct { ReferenceValue + // The OdataType property + OdataType *string } -// NewUserMatchTargetReferenceValue instantiates a new UserMatchTargetReferenceValue and sets the default values. +// NewUserMatchTargetReferenceValue instantiates a new userMatchTargetReferenceValue and sets the default values. func NewUserMatchTargetReferenceValue()(*UserMatchTargetReferenceValue) { m := &UserMatchTargetReferenceValue{ ReferenceValue: *NewReferenceValue(), diff --git a/models/industrydata/validate_operation.go b/models/industrydata/validate_operation.go index 523fa172bf2..f6298ff2092 100644 --- a/models/industrydata/validate_operation.go +++ b/models/industrydata/validate_operation.go @@ -9,7 +9,7 @@ import ( type ValidateOperation struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperation } -// NewValidateOperation instantiates a new ValidateOperation and sets the default values. +// NewValidateOperation instantiates a new validateOperation and sets the default values. func NewValidateOperation()(*ValidateOperation) { m := &ValidateOperation{ LongRunningOperation: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewLongRunningOperation(), diff --git a/models/industrydata/year_reference_value.go b/models/industrydata/year_reference_value.go index 67052653da0..5ba859e13e8 100644 --- a/models/industrydata/year_reference_value.go +++ b/models/industrydata/year_reference_value.go @@ -7,8 +7,10 @@ import ( // YearReferenceValue type YearReferenceValue struct { ReferenceValue + // The OdataType property + OdataType *string } -// NewYearReferenceValue instantiates a new YearReferenceValue and sets the default values. +// NewYearReferenceValue instantiates a new yearReferenceValue and sets the default values. func NewYearReferenceValue()(*YearReferenceValue) { m := &YearReferenceValue{ ReferenceValue: *NewReferenceValue(), diff --git a/models/industrydata/year_time_period_definition.go b/models/industrydata/year_time_period_definition.go index b40c845538d..4e7440e818d 100644 --- a/models/industrydata/year_time_period_definition.go +++ b/models/industrydata/year_time_period_definition.go @@ -8,6 +8,8 @@ import ( // YearTimePeriodDefinition type YearTimePeriodDefinition struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewYearTimePeriodDefinition instantiates a new yearTimePeriodDefinition and sets the default values. func NewYearTimePeriodDefinition()(*YearTimePeriodDefinition) { diff --git a/models/industrydata/year_time_period_definition_collection_response.go b/models/industrydata/year_time_period_definition_collection_response.go index 1157f798b84..4264c2356e3 100644 --- a/models/industrydata/year_time_period_definition_collection_response.go +++ b/models/industrydata/year_time_period_definition_collection_response.go @@ -9,7 +9,7 @@ import ( type YearTimePeriodDefinitionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewYearTimePeriodDefinitionCollectionResponse instantiates a new YearTimePeriodDefinitionCollectionResponse and sets the default values. +// NewYearTimePeriodDefinitionCollectionResponse instantiates a new yearTimePeriodDefinitionCollectionResponse and sets the default values. func NewYearTimePeriodDefinitionCollectionResponse()(*YearTimePeriodDefinitionCollectionResponse) { m := &YearTimePeriodDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/inference_classification.go b/models/inference_classification.go index ffee7c7775c..a2cba27b629 100644 --- a/models/inference_classification.go +++ b/models/inference_classification.go @@ -7,6 +7,8 @@ import ( // InferenceClassification type InferenceClassification struct { Entity + // The OdataType property + OdataType *string } // NewInferenceClassification instantiates a new inferenceClassification and sets the default values. func NewInferenceClassification()(*InferenceClassification) { diff --git a/models/inference_classification_override.go b/models/inference_classification_override.go index c59a1ecadb4..7f4df26d056 100644 --- a/models/inference_classification_override.go +++ b/models/inference_classification_override.go @@ -7,6 +7,8 @@ import ( // InferenceClassificationOverride type InferenceClassificationOverride struct { Entity + // The OdataType property + OdataType *string } // NewInferenceClassificationOverride instantiates a new inferenceClassificationOverride and sets the default values. func NewInferenceClassificationOverride()(*InferenceClassificationOverride) { diff --git a/models/inference_classification_override_collection_response.go b/models/inference_classification_override_collection_response.go index b78d4d5bd43..4917f2bdb60 100644 --- a/models/inference_classification_override_collection_response.go +++ b/models/inference_classification_override_collection_response.go @@ -8,7 +8,7 @@ import ( type InferenceClassificationOverrideCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewInferenceClassificationOverrideCollectionResponse instantiates a new InferenceClassificationOverrideCollectionResponse and sets the default values. +// NewInferenceClassificationOverrideCollectionResponse instantiates a new inferenceClassificationOverrideCollectionResponse and sets the default values. func NewInferenceClassificationOverrideCollectionResponse()(*InferenceClassificationOverrideCollectionResponse) { m := &InferenceClassificationOverrideCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/information_protection.go b/models/information_protection.go index adaa24ecb73..64edfea4d13 100644 --- a/models/information_protection.go +++ b/models/information_protection.go @@ -7,6 +7,8 @@ import ( // InformationProtection type InformationProtection struct { Entity + // The OdataType property + OdataType *string } // NewInformationProtection instantiates a new informationProtection and sets the default values. func NewInformationProtection()(*InformationProtection) { diff --git a/models/information_protection_action.go b/models/information_protection_action.go index 84b54fc1c0d..0d0987a7778 100644 --- a/models/information_protection_action.go +++ b/models/information_protection_action.go @@ -10,7 +10,7 @@ type InformationProtectionAction struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewInformationProtectionAction instantiates a new InformationProtectionAction and sets the default values. +// NewInformationProtectionAction instantiates a new informationProtectionAction and sets the default values. func NewInformationProtectionAction()(*InformationProtectionAction) { m := &InformationProtectionAction{ } diff --git a/models/information_protection_label.go b/models/information_protection_label.go index b8978d9ad22..beefe0c06da 100644 --- a/models/information_protection_label.go +++ b/models/information_protection_label.go @@ -7,6 +7,8 @@ import ( // InformationProtectionLabel type InformationProtectionLabel struct { Entity + // The OdataType property + OdataType *string } // NewInformationProtectionLabel instantiates a new informationProtectionLabel and sets the default values. func NewInformationProtectionLabel()(*InformationProtectionLabel) { diff --git a/models/information_protection_label_collection_response.go b/models/information_protection_label_collection_response.go index 249766d99ab..3f24bd13a99 100644 --- a/models/information_protection_label_collection_response.go +++ b/models/information_protection_label_collection_response.go @@ -8,7 +8,7 @@ import ( type InformationProtectionLabelCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewInformationProtectionLabelCollectionResponse instantiates a new InformationProtectionLabelCollectionResponse and sets the default values. +// NewInformationProtectionLabelCollectionResponse instantiates a new informationProtectionLabelCollectionResponse and sets the default values. func NewInformationProtectionLabelCollectionResponse()(*InformationProtectionLabelCollectionResponse) { m := &InformationProtectionLabelCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/information_protection_policy.go b/models/information_protection_policy.go index b581fa75812..8edaab83858 100644 --- a/models/information_protection_policy.go +++ b/models/information_protection_policy.go @@ -7,6 +7,8 @@ import ( // InformationProtectionPolicy type InformationProtectionPolicy struct { Entity + // The OdataType property + OdataType *string } // NewInformationProtectionPolicy instantiates a new informationProtectionPolicy and sets the default values. func NewInformationProtectionPolicy()(*InformationProtectionPolicy) { diff --git a/models/initiator.go b/models/initiator.go index 77efadd42d3..2d14077daf5 100644 --- a/models/initiator.go +++ b/models/initiator.go @@ -7,8 +7,10 @@ import ( // Initiator type Initiator struct { Identity + // The OdataType property + OdataType *string } -// NewInitiator instantiates a new Initiator and sets the default values. +// NewInitiator instantiates a new initiator and sets the default values. func NewInitiator()(*Initiator) { m := &Initiator{ Identity: *NewIdentity(), diff --git a/models/insight_value_double.go b/models/insight_value_double.go index fca473cdcf1..71d9b221f17 100644 --- a/models/insight_value_double.go +++ b/models/insight_value_double.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// InsightValueDouble +// InsightValueDouble the value in an user experience analytics insight. type InsightValueDouble struct { UserExperienceAnalyticsInsightValue + // The OdataType property + OdataType *string } -// NewInsightValueDouble instantiates a new InsightValueDouble and sets the default values. +// NewInsightValueDouble instantiates a new insightValueDouble and sets the default values. func NewInsightValueDouble()(*InsightValueDouble) { m := &InsightValueDouble{ UserExperienceAnalyticsInsightValue: *NewUserExperienceAnalyticsInsightValue(), diff --git a/models/insight_value_int.go b/models/insight_value_int.go index f5604215c06..8e132d93bb7 100644 --- a/models/insight_value_int.go +++ b/models/insight_value_int.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// InsightValueInt +// InsightValueInt the value in an user experience analytics insight. type InsightValueInt struct { UserExperienceAnalyticsInsightValue } -// NewInsightValueInt instantiates a new InsightValueInt and sets the default values. +// NewInsightValueInt instantiates a new insightValueInt and sets the default values. func NewInsightValueInt()(*InsightValueInt) { m := &InsightValueInt{ UserExperienceAnalyticsInsightValue: *NewUserExperienceAnalyticsInsightValue(), @@ -24,6 +24,16 @@ func CreateInsightValueIntFromDiscriminatorValue(parseNode i878a80d2330e89d26896 // GetFieldDeserializers the deserialization information for the current model func (m *InsightValueInt) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.UserExperienceAnalyticsInsightValue.GetFieldDeserializers() + 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["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -36,6 +46,17 @@ func (m *InsightValueInt) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *InsightValueInt) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetValue gets the value property value. The int value of the user experience analytics insight. func (m *InsightValueInt) GetValue()(*int32) { val, err := m.GetBackingStore().Get("value") @@ -53,6 +74,12 @@ func (m *InsightValueInt) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("value", m.GetValue()) if err != nil { @@ -61,6 +88,13 @@ func (m *InsightValueInt) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *InsightValueInt) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetValue sets the value property value. The int value of the user experience analytics insight. func (m *InsightValueInt) SetValue(value *int32)() { err := m.GetBackingStore().Set("value", value) @@ -72,6 +106,8 @@ func (m *InsightValueInt) SetValue(value *int32)() { type InsightValueIntable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable UserExperienceAnalyticsInsightValueable + GetOdataType()(*string) GetValue()(*int32) + SetOdataType(value *string)() SetValue(value *int32)() } diff --git a/models/insights_settings.go b/models/insights_settings.go index e199c866c2a..e97535289b5 100644 --- a/models/insights_settings.go +++ b/models/insights_settings.go @@ -7,6 +7,8 @@ import ( // InsightsSettings type InsightsSettings struct { Entity + // The OdataType property + OdataType *string } // NewInsightsSettings instantiates a new insightsSettings and sets the default values. func NewInsightsSettings()(*InsightsSettings) { diff --git a/models/institution_data.go b/models/institution_data.go index 978a55e4520..81d4e5069e0 100644 --- a/models/institution_data.go +++ b/models/institution_data.go @@ -10,7 +10,7 @@ type InstitutionData struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewInstitutionData instantiates a new InstitutionData and sets the default values. +// NewInstitutionData instantiates a new institutionData and sets the default values. func NewInstitutionData()(*InstitutionData) { m := &InstitutionData{ } diff --git a/models/internal_domain_federation.go b/models/internal_domain_federation.go index e55f1b838c8..f7926dcd76f 100644 --- a/models/internal_domain_federation.go +++ b/models/internal_domain_federation.go @@ -8,7 +8,7 @@ import ( type InternalDomainFederation struct { SamlOrWsFedProvider } -// NewInternalDomainFederation instantiates a new InternalDomainFederation and sets the default values. +// NewInternalDomainFederation instantiates a new internalDomainFederation and sets the default values. func NewInternalDomainFederation()(*InternalDomainFederation) { m := &InternalDomainFederation{ SamlOrWsFedProvider: *NewSamlOrWsFedProvider(), diff --git a/models/internal_domain_federation_collection_response.go b/models/internal_domain_federation_collection_response.go index 7aad2828638..1e503c83870 100644 --- a/models/internal_domain_federation_collection_response.go +++ b/models/internal_domain_federation_collection_response.go @@ -8,7 +8,7 @@ import ( type InternalDomainFederationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewInternalDomainFederationCollectionResponse instantiates a new InternalDomainFederationCollectionResponse and sets the default values. +// NewInternalDomainFederationCollectionResponse instantiates a new internalDomainFederationCollectionResponse and sets the default values. func NewInternalDomainFederationCollectionResponse()(*InternalDomainFederationCollectionResponse) { m := &InternalDomainFederationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/internal_sponsors.go b/models/internal_sponsors.go index e187ab778c7..8b3490824f8 100644 --- a/models/internal_sponsors.go +++ b/models/internal_sponsors.go @@ -8,7 +8,7 @@ import ( type InternalSponsors struct { UserSet } -// NewInternalSponsors instantiates a new InternalSponsors and sets the default values. +// NewInternalSponsors instantiates a new internalSponsors and sets the default values. func NewInternalSponsors()(*InternalSponsors) { m := &InternalSponsors{ UserSet: *NewUserSet(), @@ -24,18 +24,54 @@ func CreateInternalSponsorsFromDiscriminatorValue(parseNode i878a80d2330e89d2689 // GetFieldDeserializers the deserialization information for the current model func (m *InternalSponsors) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.UserSet.GetFieldDeserializers() + 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 *InternalSponsors) 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 *InternalSponsors) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.UserSet.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *InternalSponsors) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // InternalSponsorsable type InternalSponsorsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable UserSetable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/internet_explorer_mode.go b/models/internet_explorer_mode.go index 023bb45e5ce..cb6d7d60b8c 100644 --- a/models/internet_explorer_mode.go +++ b/models/internet_explorer_mode.go @@ -7,6 +7,8 @@ import ( // InternetExplorerMode type InternetExplorerMode struct { Entity + // The OdataType property + OdataType *string } // NewInternetExplorerMode instantiates a new internetExplorerMode and sets the default values. func NewInternetExplorerMode()(*InternetExplorerMode) { diff --git a/models/intune_branding_profile.go b/models/intune_branding_profile.go index 0d4b5bf501b..e8e4fa3301f 100644 --- a/models/intune_branding_profile.go +++ b/models/intune_branding_profile.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IntuneBrandingProfile +// IntuneBrandingProfile this entity contains data which is used in customizing the tenant level appearance of the Company Portal applications as well as the end user web portal. type IntuneBrandingProfile struct { Entity + // The OdataType property + OdataType *string } -// NewIntuneBrandingProfile instantiates a new IntuneBrandingProfile and sets the default values. +// NewIntuneBrandingProfile instantiates a new intuneBrandingProfile and sets the default values. func NewIntuneBrandingProfile()(*IntuneBrandingProfile) { m := &IntuneBrandingProfile{ Entity: *NewEntity(), diff --git a/models/intune_branding_profile_assignment.go b/models/intune_branding_profile_assignment.go index d92f7699fb4..dd88016b912 100644 --- a/models/intune_branding_profile_assignment.go +++ b/models/intune_branding_profile_assignment.go @@ -7,6 +7,8 @@ import ( // IntuneBrandingProfileAssignment this entity contains the properties used to assign a branding profile to a group. type IntuneBrandingProfileAssignment struct { Entity + // The OdataType property + OdataType *string } // NewIntuneBrandingProfileAssignment instantiates a new intuneBrandingProfileAssignment and sets the default values. func NewIntuneBrandingProfileAssignment()(*IntuneBrandingProfileAssignment) { diff --git a/models/intune_branding_profile_assignment_collection_response.go b/models/intune_branding_profile_assignment_collection_response.go index c493e704940..78cbe64a997 100644 --- a/models/intune_branding_profile_assignment_collection_response.go +++ b/models/intune_branding_profile_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type IntuneBrandingProfileAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIntuneBrandingProfileAssignmentCollectionResponse instantiates a new IntuneBrandingProfileAssignmentCollectionResponse and sets the default values. +// NewIntuneBrandingProfileAssignmentCollectionResponse instantiates a new intuneBrandingProfileAssignmentCollectionResponse and sets the default values. func NewIntuneBrandingProfileAssignmentCollectionResponse()(*IntuneBrandingProfileAssignmentCollectionResponse) { m := &IntuneBrandingProfileAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/intune_branding_profile_collection_response.go b/models/intune_branding_profile_collection_response.go index 89a38b464a9..5329c081bd0 100644 --- a/models/intune_branding_profile_collection_response.go +++ b/models/intune_branding_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type IntuneBrandingProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIntuneBrandingProfileCollectionResponse instantiates a new IntuneBrandingProfileCollectionResponse and sets the default values. +// NewIntuneBrandingProfileCollectionResponse instantiates a new intuneBrandingProfileCollectionResponse and sets the default values. func NewIntuneBrandingProfileCollectionResponse()(*IntuneBrandingProfileCollectionResponse) { m := &IntuneBrandingProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/invalid_license_alert_configuration.go b/models/invalid_license_alert_configuration.go index 252a20a36ff..5cde509b015 100644 --- a/models/invalid_license_alert_configuration.go +++ b/models/invalid_license_alert_configuration.go @@ -8,7 +8,7 @@ import ( type InvalidLicenseAlertConfiguration struct { UnifiedRoleManagementAlertConfiguration } -// NewInvalidLicenseAlertConfiguration instantiates a new InvalidLicenseAlertConfiguration and sets the default values. +// NewInvalidLicenseAlertConfiguration instantiates a new invalidLicenseAlertConfiguration and sets the default values. func NewInvalidLicenseAlertConfiguration()(*InvalidLicenseAlertConfiguration) { m := &InvalidLicenseAlertConfiguration{ UnifiedRoleManagementAlertConfiguration: *NewUnifiedRoleManagementAlertConfiguration(), diff --git a/models/invalid_license_alert_incident.go b/models/invalid_license_alert_incident.go index 147e56e3a44..474186db721 100644 --- a/models/invalid_license_alert_incident.go +++ b/models/invalid_license_alert_incident.go @@ -8,7 +8,7 @@ import ( type InvalidLicenseAlertIncident struct { UnifiedRoleManagementAlertIncident } -// NewInvalidLicenseAlertIncident instantiates a new InvalidLicenseAlertIncident and sets the default values. +// NewInvalidLicenseAlertIncident instantiates a new invalidLicenseAlertIncident and sets the default values. func NewInvalidLicenseAlertIncident()(*InvalidLicenseAlertIncident) { m := &InvalidLicenseAlertIncident{ UnifiedRoleManagementAlertIncident: *NewUnifiedRoleManagementAlertIncident(), diff --git a/models/invitation.go b/models/invitation.go index 08c8d2ceb5c..fda45718ee0 100644 --- a/models/invitation.go +++ b/models/invitation.go @@ -7,8 +7,10 @@ import ( // Invitation type Invitation struct { Entity + // The OdataType property + OdataType *string } -// NewInvitation instantiates a new Invitation and sets the default values. +// NewInvitation instantiates a new invitation and sets the default values. func NewInvitation()(*Invitation) { m := &Invitation{ Entity: *NewEntity(), diff --git a/models/invitation_collection_response.go b/models/invitation_collection_response.go index 733e891b592..79c3a2dcc26 100644 --- a/models/invitation_collection_response.go +++ b/models/invitation_collection_response.go @@ -8,7 +8,7 @@ import ( type InvitationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewInvitationCollectionResponse instantiates a new InvitationCollectionResponse and sets the default values. +// NewInvitationCollectionResponse instantiates a new invitationCollectionResponse and sets the default values. func NewInvitationCollectionResponse()(*InvitationCollectionResponse) { m := &InvitationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/invitation_participant_info.go b/models/invitation_participant_info.go index 2dc1134decd..b72aa478aaa 100644 --- a/models/invitation_participant_info.go +++ b/models/invitation_participant_info.go @@ -10,7 +10,7 @@ type InvitationParticipantInfo struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewInvitationParticipantInfo instantiates a new InvitationParticipantInfo and sets the default values. +// NewInvitationParticipantInfo instantiates a new invitationParticipantInfo and sets the default values. func NewInvitationParticipantInfo()(*InvitationParticipantInfo) { m := &InvitationParticipantInfo{ } diff --git a/models/invite_participants_operation.go b/models/invite_participants_operation.go index 354a1b42308..96f514e659c 100644 --- a/models/invite_participants_operation.go +++ b/models/invite_participants_operation.go @@ -8,7 +8,7 @@ import ( type InviteParticipantsOperation struct { CommsOperation } -// NewInviteParticipantsOperation instantiates a new InviteParticipantsOperation and sets the default values. +// NewInviteParticipantsOperation instantiates a new inviteParticipantsOperation and sets the default values. func NewInviteParticipantsOperation()(*InviteParticipantsOperation) { m := &InviteParticipantsOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/invoke_user_flow_listener.go b/models/invoke_user_flow_listener.go index 8c6d718e14e..1ebe307ca44 100644 --- a/models/invoke_user_flow_listener.go +++ b/models/invoke_user_flow_listener.go @@ -8,7 +8,7 @@ import ( type InvokeUserFlowListener struct { AuthenticationListener } -// NewInvokeUserFlowListener instantiates a new InvokeUserFlowListener and sets the default values. +// NewInvokeUserFlowListener instantiates a new invokeUserFlowListener and sets the default values. func NewInvokeUserFlowListener()(*InvokeUserFlowListener) { m := &InvokeUserFlowListener{ AuthenticationListener: *NewAuthenticationListener(), diff --git a/models/ios_azure_ad_single_sign_on_extension.go b/models/ios_azure_ad_single_sign_on_extension.go index 65b63d35b90..961ebe42c71 100644 --- a/models/ios_azure_ad_single_sign_on_extension.go +++ b/models/ios_azure_ad_single_sign_on_extension.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosAzureAdSingleSignOnExtension +// IosAzureAdSingleSignOnExtension represents an Azure AD-type Single Sign-On extension profile for iOS devices. type IosAzureAdSingleSignOnExtension struct { IosSingleSignOnExtension + // The OdataType property + OdataType *string } -// NewIosAzureAdSingleSignOnExtension instantiates a new IosAzureAdSingleSignOnExtension and sets the default values. +// NewIosAzureAdSingleSignOnExtension instantiates a new iosAzureAdSingleSignOnExtension and sets the default values. func NewIosAzureAdSingleSignOnExtension()(*IosAzureAdSingleSignOnExtension) { m := &IosAzureAdSingleSignOnExtension{ IosSingleSignOnExtension: *NewIosSingleSignOnExtension(), diff --git a/models/ios_certificate_profile.go b/models/ios_certificate_profile.go index 62338bb9ebf..cb21fcf90ff 100644 --- a/models/ios_certificate_profile.go +++ b/models/ios_certificate_profile.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosCertificateProfile +// IosCertificateProfile device Configuration. type IosCertificateProfile struct { DeviceConfiguration } diff --git a/models/ios_certificate_profile_base.go b/models/ios_certificate_profile_base.go index c11b87c35dd..729745b74cb 100644 --- a/models/ios_certificate_profile_base.go +++ b/models/ios_certificate_profile_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosCertificateProfileBase +// IosCertificateProfileBase iOS certificate profile base. type IosCertificateProfileBase struct { IosCertificateProfile } -// NewIosCertificateProfileBase instantiates a new IosCertificateProfileBase and sets the default values. +// NewIosCertificateProfileBase instantiates a new iosCertificateProfileBase and sets the default values. func NewIosCertificateProfileBase()(*IosCertificateProfileBase) { m := &IosCertificateProfileBase{ IosCertificateProfile: *NewIosCertificateProfile(), diff --git a/models/ios_compliance_policy.go b/models/ios_compliance_policy.go index 3d23fa65874..e2a97c21523 100644 --- a/models/ios_compliance_policy.go +++ b/models/ios_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosCompliancePolicy +// IosCompliancePolicy this class contains compliance settings for IOS. type IosCompliancePolicy struct { DeviceCompliancePolicy } -// NewIosCompliancePolicy instantiates a new IosCompliancePolicy and sets the default values. +// NewIosCompliancePolicy instantiates a new iosCompliancePolicy and sets the default values. func NewIosCompliancePolicy()(*IosCompliancePolicy) { m := &IosCompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/ios_credential_single_sign_on_extension.go b/models/ios_credential_single_sign_on_extension.go index 81ca4037b52..341e021c60b 100644 --- a/models/ios_credential_single_sign_on_extension.go +++ b/models/ios_credential_single_sign_on_extension.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosCredentialSingleSignOnExtension +// IosCredentialSingleSignOnExtension represents a Credential-type Single Sign-On extension profile for iOS devices. type IosCredentialSingleSignOnExtension struct { IosSingleSignOnExtension + // The OdataType property + OdataType *string } -// NewIosCredentialSingleSignOnExtension instantiates a new IosCredentialSingleSignOnExtension and sets the default values. +// NewIosCredentialSingleSignOnExtension instantiates a new iosCredentialSingleSignOnExtension and sets the default values. func NewIosCredentialSingleSignOnExtension()(*IosCredentialSingleSignOnExtension) { m := &IosCredentialSingleSignOnExtension{ IosSingleSignOnExtension: *NewIosSingleSignOnExtension(), diff --git a/models/ios_custom_configuration.go b/models/ios_custom_configuration.go index c85a527cfb4..19546f09826 100644 --- a/models/ios_custom_configuration.go +++ b/models/ios_custom_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosCustomConfiguration +// IosCustomConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the iosCustomConfiguration resource. type IosCustomConfiguration struct { DeviceConfiguration } -// NewIosCustomConfiguration instantiates a new IosCustomConfiguration and sets the default values. +// NewIosCustomConfiguration instantiates a new iosCustomConfiguration and sets the default values. func NewIosCustomConfiguration()(*IosCustomConfiguration) { m := &IosCustomConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/ios_derived_credential_authentication_configuration.go b/models/ios_derived_credential_authentication_configuration.go index 8c7766706f9..eca5ed1a077 100644 --- a/models/ios_derived_credential_authentication_configuration.go +++ b/models/ios_derived_credential_authentication_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosDerivedCredentialAuthenticationConfiguration +// IosDerivedCredentialAuthenticationConfiguration iOS Derived Credential profile. type IosDerivedCredentialAuthenticationConfiguration struct { DeviceConfiguration } -// NewIosDerivedCredentialAuthenticationConfiguration instantiates a new IosDerivedCredentialAuthenticationConfiguration and sets the default values. +// NewIosDerivedCredentialAuthenticationConfiguration instantiates a new iosDerivedCredentialAuthenticationConfiguration and sets the default values. func NewIosDerivedCredentialAuthenticationConfiguration()(*IosDerivedCredentialAuthenticationConfiguration) { m := &IosDerivedCredentialAuthenticationConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/ios_device_features_configuration.go b/models/ios_device_features_configuration.go index f75b657d43e..ac18b182c10 100644 --- a/models/ios_device_features_configuration.go +++ b/models/ios_device_features_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosDeviceFeaturesConfiguration +// IosDeviceFeaturesConfiguration iOS Device Features Configuration Profile. type IosDeviceFeaturesConfiguration struct { AppleDeviceFeaturesConfigurationBase } -// NewIosDeviceFeaturesConfiguration instantiates a new IosDeviceFeaturesConfiguration and sets the default values. +// NewIosDeviceFeaturesConfiguration instantiates a new iosDeviceFeaturesConfiguration and sets the default values. func NewIosDeviceFeaturesConfiguration()(*IosDeviceFeaturesConfiguration) { m := &IosDeviceFeaturesConfiguration{ AppleDeviceFeaturesConfigurationBase: *NewAppleDeviceFeaturesConfigurationBase(), diff --git a/models/ios_device_type.go b/models/ios_device_type.go index 6977228f4d1..71fd272853d 100644 --- a/models/ios_device_type.go +++ b/models/ios_device_type.go @@ -10,7 +10,7 @@ type IosDeviceType struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewIosDeviceType instantiates a new IosDeviceType and sets the default values. +// NewIosDeviceType instantiates a new iosDeviceType and sets the default values. func NewIosDeviceType()(*IosDeviceType) { m := &IosDeviceType{ } diff --git a/models/ios_eas_email_profile_configuration.go b/models/ios_eas_email_profile_configuration.go index 09eaa884a25..bb9ba156760 100644 --- a/models/ios_eas_email_profile_configuration.go +++ b/models/ios_eas_email_profile_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosEasEmailProfileConfiguration +// IosEasEmailProfileConfiguration by providing configurations in this profile you can instruct the native email client on iOS devices to communicate with an Exchange server and get email, contacts, calendar, reminders, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync. type IosEasEmailProfileConfiguration struct { EasEmailProfileConfigurationBase } -// NewIosEasEmailProfileConfiguration instantiates a new IosEasEmailProfileConfiguration and sets the default values. +// NewIosEasEmailProfileConfiguration instantiates a new iosEasEmailProfileConfiguration and sets the default values. func NewIosEasEmailProfileConfiguration()(*IosEasEmailProfileConfiguration) { m := &IosEasEmailProfileConfiguration{ EasEmailProfileConfigurationBase: *NewEasEmailProfileConfigurationBase(), diff --git a/models/ios_edu_device_configuration.go b/models/ios_edu_device_configuration.go index 733ccbfdfac..6b59fde4a9b 100644 --- a/models/ios_edu_device_configuration.go +++ b/models/ios_edu_device_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosEduDeviceConfiguration +// IosEduDeviceConfiguration iOS Education device configuration type IosEduDeviceConfiguration struct { DeviceConfiguration } -// NewIosEduDeviceConfiguration instantiates a new IosEduDeviceConfiguration and sets the default values. +// NewIosEduDeviceConfiguration instantiates a new iosEduDeviceConfiguration and sets the default values. func NewIosEduDeviceConfiguration()(*IosEduDeviceConfiguration) { m := &IosEduDeviceConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/ios_education_device_configuration.go b/models/ios_education_device_configuration.go index 819d501c26a..cd2b7c512d7 100644 --- a/models/ios_education_device_configuration.go +++ b/models/ios_education_device_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosEducationDeviceConfiguration +// IosEducationDeviceConfiguration iOS Education configuration profile type IosEducationDeviceConfiguration struct { DeviceConfiguration } -// NewIosEducationDeviceConfiguration instantiates a new IosEducationDeviceConfiguration and sets the default values. +// NewIosEducationDeviceConfiguration instantiates a new iosEducationDeviceConfiguration and sets the default values. func NewIosEducationDeviceConfiguration()(*IosEducationDeviceConfiguration) { m := &IosEducationDeviceConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/ios_enterprise_wi_fi_configuration.go b/models/ios_enterprise_wi_fi_configuration.go index ab74fd547f3..aa5bb6d7957 100644 --- a/models/ios_enterprise_wi_fi_configuration.go +++ b/models/ios_enterprise_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosEnterpriseWiFiConfiguration +// IosEnterpriseWiFiConfiguration by providing the configurations in this profile you can instruct the iOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. type IosEnterpriseWiFiConfiguration struct { IosWiFiConfiguration } -// NewIosEnterpriseWiFiConfiguration instantiates a new IosEnterpriseWiFiConfiguration and sets the default values. +// NewIosEnterpriseWiFiConfiguration instantiates a new iosEnterpriseWiFiConfiguration and sets the default values. func NewIosEnterpriseWiFiConfiguration()(*IosEnterpriseWiFiConfiguration) { m := &IosEnterpriseWiFiConfiguration{ IosWiFiConfiguration: *NewIosWiFiConfiguration(), diff --git a/models/ios_expedited_checkin_configuration.go b/models/ios_expedited_checkin_configuration.go index 708ab94ed5e..99e4cb5b9b8 100644 --- a/models/ios_expedited_checkin_configuration.go +++ b/models/ios_expedited_checkin_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosExpeditedCheckinConfiguration +// IosExpeditedCheckinConfiguration experimental profile to increase the rate of device check-ins per day of iOS devices. This profile type is deprecated. type IosExpeditedCheckinConfiguration struct { AppleExpeditedCheckinConfigurationBase } -// NewIosExpeditedCheckinConfiguration instantiates a new IosExpeditedCheckinConfiguration and sets the default values. +// NewIosExpeditedCheckinConfiguration instantiates a new iosExpeditedCheckinConfiguration and sets the default values. func NewIosExpeditedCheckinConfiguration()(*IosExpeditedCheckinConfiguration) { m := &IosExpeditedCheckinConfiguration{ AppleExpeditedCheckinConfigurationBase: *NewAppleExpeditedCheckinConfigurationBase(), diff --git a/models/ios_general_device_configuration.go b/models/ios_general_device_configuration.go index ccd03d4bed4..78c1285db48 100644 --- a/models/ios_general_device_configuration.go +++ b/models/ios_general_device_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosGeneralDeviceConfiguration +// IosGeneralDeviceConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the iosGeneralDeviceConfiguration resource. type IosGeneralDeviceConfiguration struct { DeviceConfiguration } -// NewIosGeneralDeviceConfiguration instantiates a new IosGeneralDeviceConfiguration and sets the default values. +// NewIosGeneralDeviceConfiguration instantiates a new iosGeneralDeviceConfiguration and sets the default values. func NewIosGeneralDeviceConfiguration()(*IosGeneralDeviceConfiguration) { m := &IosGeneralDeviceConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/ios_home_screen_app.go b/models/ios_home_screen_app.go index cd9726cb864..fe33183183f 100644 --- a/models/ios_home_screen_app.go +++ b/models/ios_home_screen_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosHomeScreenApp +// IosHomeScreenApp represents an icon for an app on the Home Screen type IosHomeScreenApp struct { IosHomeScreenItem } -// NewIosHomeScreenApp instantiates a new IosHomeScreenApp and sets the default values. +// NewIosHomeScreenApp instantiates a new iosHomeScreenApp and sets the default values. func NewIosHomeScreenApp()(*IosHomeScreenApp) { m := &IosHomeScreenApp{ IosHomeScreenItem: *NewIosHomeScreenItem(), @@ -55,6 +55,16 @@ func (m *IosHomeScreenApp) GetFieldDeserializers()(map[string]func(i878a80d2330e } 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 } // GetIsWebClip gets the isWebClip property value. When true, the bundle ID will be handled as a URL for a web clip. @@ -68,6 +78,17 @@ func (m *IosHomeScreenApp) GetIsWebClip()(*bool) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *IosHomeScreenApp) 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 *IosHomeScreenApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.IosHomeScreenItem.Serialize(writer) @@ -86,6 +107,12 @@ func (m *IosHomeScreenApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetBundleID sets the bundleID property value. BundleID of the app if isWebClip is false or the URL of a web clip if isWebClip is true. @@ -102,12 +129,21 @@ func (m *IosHomeScreenApp) SetIsWebClip(value *bool)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IosHomeScreenApp) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // IosHomeScreenAppable type IosHomeScreenAppable interface { IosHomeScreenItemable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBundleID()(*string) GetIsWebClip()(*bool) + GetOdataType()(*string) SetBundleID(value *string)() SetIsWebClip(value *bool)() + SetOdataType(value *string)() } diff --git a/models/ios_home_screen_folder.go b/models/ios_home_screen_folder.go index 3bbb42bac55..179d01c656f 100644 --- a/models/ios_home_screen_folder.go +++ b/models/ios_home_screen_folder.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosHomeScreenFolder +// IosHomeScreenFolder a folder containing pages of apps and web clips on the Home Screen. type IosHomeScreenFolder struct { IosHomeScreenItem } -// NewIosHomeScreenFolder instantiates a new IosHomeScreenFolder and sets the default values. +// NewIosHomeScreenFolder instantiates a new iosHomeScreenFolder and sets the default values. func NewIosHomeScreenFolder()(*IosHomeScreenFolder) { m := &IosHomeScreenFolder{ IosHomeScreenItem: *NewIosHomeScreenItem(), @@ -24,6 +24,16 @@ func CreateIosHomeScreenFolderFromDiscriminatorValue(parseNode i878a80d2330e89d2 // GetFieldDeserializers the deserialization information for the current model func (m *IosHomeScreenFolder) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.IosHomeScreenItem.GetFieldDeserializers() + 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["pages"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateIosHomeScreenFolderPageFromDiscriminatorValue) if err != nil { @@ -42,6 +52,17 @@ func (m *IosHomeScreenFolder) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *IosHomeScreenFolder) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPages gets the pages property value. Pages of Home Screen Layout Icons which must be applications or web clips. This collection can contain a maximum of 500 elements. func (m *IosHomeScreenFolder) GetPages()([]IosHomeScreenFolderPageable) { val, err := m.GetBackingStore().Get("pages") @@ -59,6 +80,12 @@ func (m *IosHomeScreenFolder) Serialize(writer i878a80d2330e89d26896388a3f487eef if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetPages() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetPages())) for i, v := range m.GetPages() { @@ -73,6 +100,13 @@ func (m *IosHomeScreenFolder) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IosHomeScreenFolder) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPages sets the pages property value. Pages of Home Screen Layout Icons which must be applications or web clips. This collection can contain a maximum of 500 elements. func (m *IosHomeScreenFolder) SetPages(value []IosHomeScreenFolderPageable)() { err := m.GetBackingStore().Set("pages", value) @@ -84,6 +118,8 @@ func (m *IosHomeScreenFolder) SetPages(value []IosHomeScreenFolderPageable)() { type IosHomeScreenFolderable interface { IosHomeScreenItemable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetPages()([]IosHomeScreenFolderPageable) + SetOdataType(value *string)() SetPages(value []IosHomeScreenFolderPageable)() } diff --git a/models/ios_home_screen_folder_page.go b/models/ios_home_screen_folder_page.go index b67e9e7b0e2..58e4510a66b 100644 --- a/models/ios_home_screen_folder_page.go +++ b/models/ios_home_screen_folder_page.go @@ -10,7 +10,7 @@ type IosHomeScreenFolderPage struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewIosHomeScreenFolderPage instantiates a new IosHomeScreenFolderPage and sets the default values. +// NewIosHomeScreenFolderPage instantiates a new iosHomeScreenFolderPage and sets the default values. func NewIosHomeScreenFolderPage()(*IosHomeScreenFolderPage) { m := &IosHomeScreenFolderPage{ } diff --git a/models/ios_imported_p_f_x_certificate_profile.go b/models/ios_imported_p_f_x_certificate_profile.go index 83be46a0909..d6ed600046f 100644 --- a/models/ios_imported_p_f_x_certificate_profile.go +++ b/models/ios_imported_p_f_x_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosImportedPFXCertificateProfile +// IosImportedPFXCertificateProfile iOS PFX Import certificate profile type IosImportedPFXCertificateProfile struct { IosCertificateProfile } -// NewIosImportedPFXCertificateProfile instantiates a new IosImportedPFXCertificateProfile and sets the default values. +// NewIosImportedPFXCertificateProfile instantiates a new iosImportedPFXCertificateProfile and sets the default values. func NewIosImportedPFXCertificateProfile()(*IosImportedPFXCertificateProfile) { m := &IosImportedPFXCertificateProfile{ IosCertificateProfile: *NewIosCertificateProfile(), diff --git a/models/ios_kerberos_single_sign_on_extension.go b/models/ios_kerberos_single_sign_on_extension.go index 36db511e3b0..547978db9cd 100644 --- a/models/ios_kerberos_single_sign_on_extension.go +++ b/models/ios_kerberos_single_sign_on_extension.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosKerberosSingleSignOnExtension +// IosKerberosSingleSignOnExtension represents a Kerberos-type Single Sign-On extension profile for iOS devices. type IosKerberosSingleSignOnExtension struct { IosSingleSignOnExtension + // The OdataType property + OdataType *string } -// NewIosKerberosSingleSignOnExtension instantiates a new IosKerberosSingleSignOnExtension and sets the default values. +// NewIosKerberosSingleSignOnExtension instantiates a new iosKerberosSingleSignOnExtension and sets the default values. func NewIosKerberosSingleSignOnExtension()(*IosKerberosSingleSignOnExtension) { m := &IosKerberosSingleSignOnExtension{ IosSingleSignOnExtension: *NewIosSingleSignOnExtension(), diff --git a/models/ios_lob_app.go b/models/ios_lob_app.go index 026b92a7b88..04308006da3 100644 --- a/models/ios_lob_app.go +++ b/models/ios_lob_app.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosLobApp +// IosLobApp contains properties and inherited properties for iOS Line Of Business apps. type IosLobApp struct { MobileLobApp } -// NewIosLobApp instantiates a new IosLobApp and sets the default values. +// NewIosLobApp instantiates a new iosLobApp and sets the default values. func NewIosLobApp()(*IosLobApp) { m := &IosLobApp{ MobileLobApp: *NewMobileLobApp(), diff --git a/models/ios_lob_app_assignment_settings.go b/models/ios_lob_app_assignment_settings.go index a4a7e8b6336..741cd752bd4 100644 --- a/models/ios_lob_app_assignment_settings.go +++ b/models/ios_lob_app_assignment_settings.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosLobAppAssignmentSettings +// IosLobAppAssignmentSettings contains properties used to assign an iOS LOB mobile app to a group. type IosLobAppAssignmentSettings struct { MobileAppAssignmentSettings + // The OdataType property + OdataType *string } -// NewIosLobAppAssignmentSettings instantiates a new IosLobAppAssignmentSettings and sets the default values. +// NewIosLobAppAssignmentSettings instantiates a new iosLobAppAssignmentSettings and sets the default values. func NewIosLobAppAssignmentSettings()(*IosLobAppAssignmentSettings) { m := &IosLobAppAssignmentSettings{ MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), diff --git a/models/ios_lob_app_provisioning_configuration.go b/models/ios_lob_app_provisioning_configuration.go index fbef448d8ab..2cac2925a0c 100644 --- a/models/ios_lob_app_provisioning_configuration.go +++ b/models/ios_lob_app_provisioning_configuration.go @@ -8,6 +8,8 @@ import ( // IosLobAppProvisioningConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the iOS Lob App Provisioning Configuration resource. type IosLobAppProvisioningConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewIosLobAppProvisioningConfiguration instantiates a new iosLobAppProvisioningConfiguration and sets the default values. func NewIosLobAppProvisioningConfiguration()(*IosLobAppProvisioningConfiguration) { diff --git a/models/ios_lob_app_provisioning_configuration_assignment.go b/models/ios_lob_app_provisioning_configuration_assignment.go index ba39822c366..beba9729e5a 100644 --- a/models/ios_lob_app_provisioning_configuration_assignment.go +++ b/models/ios_lob_app_provisioning_configuration_assignment.go @@ -7,6 +7,8 @@ import ( // IosLobAppProvisioningConfigurationAssignment a class containing the properties used for Group Assignment of an iOS LOB App Provisioning and Configuration. type IosLobAppProvisioningConfigurationAssignment struct { Entity + // The OdataType property + OdataType *string } // NewIosLobAppProvisioningConfigurationAssignment instantiates a new iosLobAppProvisioningConfigurationAssignment and sets the default values. func NewIosLobAppProvisioningConfigurationAssignment()(*IosLobAppProvisioningConfigurationAssignment) { diff --git a/models/ios_lob_app_provisioning_configuration_assignment_collection_response.go b/models/ios_lob_app_provisioning_configuration_assignment_collection_response.go index 12f4907d641..227743fd08c 100644 --- a/models/ios_lob_app_provisioning_configuration_assignment_collection_response.go +++ b/models/ios_lob_app_provisioning_configuration_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type IosLobAppProvisioningConfigurationAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIosLobAppProvisioningConfigurationAssignmentCollectionResponse instantiates a new IosLobAppProvisioningConfigurationAssignmentCollectionResponse and sets the default values. +// NewIosLobAppProvisioningConfigurationAssignmentCollectionResponse instantiates a new iosLobAppProvisioningConfigurationAssignmentCollectionResponse and sets the default values. func NewIosLobAppProvisioningConfigurationAssignmentCollectionResponse()(*IosLobAppProvisioningConfigurationAssignmentCollectionResponse) { m := &IosLobAppProvisioningConfigurationAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/ios_lob_app_provisioning_configuration_collection_response.go b/models/ios_lob_app_provisioning_configuration_collection_response.go index 0d25b9002de..d582167afdb 100644 --- a/models/ios_lob_app_provisioning_configuration_collection_response.go +++ b/models/ios_lob_app_provisioning_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type IosLobAppProvisioningConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIosLobAppProvisioningConfigurationCollectionResponse instantiates a new IosLobAppProvisioningConfigurationCollectionResponse and sets the default values. +// NewIosLobAppProvisioningConfigurationCollectionResponse instantiates a new iosLobAppProvisioningConfigurationCollectionResponse and sets the default values. func NewIosLobAppProvisioningConfigurationCollectionResponse()(*IosLobAppProvisioningConfigurationCollectionResponse) { m := &IosLobAppProvisioningConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/ios_lob_app_provisioning_configuration_policy_set_item.go b/models/ios_lob_app_provisioning_configuration_policy_set_item.go index 644d4937dba..0d12900d39e 100644 --- a/models/ios_lob_app_provisioning_configuration_policy_set_item.go +++ b/models/ios_lob_app_provisioning_configuration_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosLobAppProvisioningConfigurationPolicySetItem +// IosLobAppProvisioningConfigurationPolicySetItem a class containing the properties used for iOS lob app provisioning configuration PolicySetItem. type IosLobAppProvisioningConfigurationPolicySetItem struct { PolicySetItem } -// NewIosLobAppProvisioningConfigurationPolicySetItem instantiates a new IosLobAppProvisioningConfigurationPolicySetItem and sets the default values. +// NewIosLobAppProvisioningConfigurationPolicySetItem instantiates a new iosLobAppProvisioningConfigurationPolicySetItem and sets the default values. func NewIosLobAppProvisioningConfigurationPolicySetItem()(*IosLobAppProvisioningConfigurationPolicySetItem) { m := &IosLobAppProvisioningConfigurationPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/ios_managed_app_protection.go b/models/ios_managed_app_protection.go index 96dd617de6b..503ae3c5660 100644 --- a/models/ios_managed_app_protection.go +++ b/models/ios_managed_app_protection.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosManagedAppProtection +// IosManagedAppProtection policy used to configure detailed management settings targeted to specific security groups and for a specified set of apps on an iOS device type IosManagedAppProtection struct { TargetedManagedAppProtection } -// NewIosManagedAppProtection instantiates a new IosManagedAppProtection and sets the default values. +// NewIosManagedAppProtection instantiates a new iosManagedAppProtection and sets the default values. func NewIosManagedAppProtection()(*IosManagedAppProtection) { m := &IosManagedAppProtection{ TargetedManagedAppProtection: *NewTargetedManagedAppProtection(), diff --git a/models/ios_managed_app_protection_collection_response.go b/models/ios_managed_app_protection_collection_response.go index 2262f58efbf..52886e58a20 100644 --- a/models/ios_managed_app_protection_collection_response.go +++ b/models/ios_managed_app_protection_collection_response.go @@ -8,7 +8,7 @@ import ( type IosManagedAppProtectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIosManagedAppProtectionCollectionResponse instantiates a new IosManagedAppProtectionCollectionResponse and sets the default values. +// NewIosManagedAppProtectionCollectionResponse instantiates a new iosManagedAppProtectionCollectionResponse and sets the default values. func NewIosManagedAppProtectionCollectionResponse()(*IosManagedAppProtectionCollectionResponse) { m := &IosManagedAppProtectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/ios_managed_app_registration.go b/models/ios_managed_app_registration.go index 427f8333d11..656a8bee118 100644 --- a/models/ios_managed_app_registration.go +++ b/models/ios_managed_app_registration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosManagedAppRegistration +// IosManagedAppRegistration represents the synchronization details of an ios app, with management capabilities, for a specific user. type IosManagedAppRegistration struct { ManagedAppRegistration } -// NewIosManagedAppRegistration instantiates a new IosManagedAppRegistration and sets the default values. +// NewIosManagedAppRegistration instantiates a new iosManagedAppRegistration and sets the default values. func NewIosManagedAppRegistration()(*IosManagedAppRegistration) { m := &IosManagedAppRegistration{ ManagedAppRegistration: *NewManagedAppRegistration(), diff --git a/models/ios_mobile_app_configuration.go b/models/ios_mobile_app_configuration.go index 1d561471c33..ebe930db7ae 100644 --- a/models/ios_mobile_app_configuration.go +++ b/models/ios_mobile_app_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosMobileAppConfiguration +// IosMobileAppConfiguration contains properties, inherited properties and actions for iOS mobile app configurations. type IosMobileAppConfiguration struct { ManagedDeviceMobileAppConfiguration } -// NewIosMobileAppConfiguration instantiates a new IosMobileAppConfiguration and sets the default values. +// NewIosMobileAppConfiguration instantiates a new iosMobileAppConfiguration and sets the default values. func NewIosMobileAppConfiguration()(*IosMobileAppConfiguration) { m := &IosMobileAppConfiguration{ ManagedDeviceMobileAppConfiguration: *NewManagedDeviceMobileAppConfiguration(), diff --git a/models/ios_mobile_app_identifier.go b/models/ios_mobile_app_identifier.go index ac1e3963077..e5d03f28858 100644 --- a/models/ios_mobile_app_identifier.go +++ b/models/ios_mobile_app_identifier.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosMobileAppIdentifier +// IosMobileAppIdentifier the identifier for an iOS app. type IosMobileAppIdentifier struct { MobileAppIdentifier } -// NewIosMobileAppIdentifier instantiates a new IosMobileAppIdentifier and sets the default values. +// NewIosMobileAppIdentifier instantiates a new iosMobileAppIdentifier and sets the default values. func NewIosMobileAppIdentifier()(*IosMobileAppIdentifier) { m := &IosMobileAppIdentifier{ MobileAppIdentifier: *NewMobileAppIdentifier(), @@ -45,8 +45,29 @@ func (m *IosMobileAppIdentifier) GetFieldDeserializers()(map[string]func(i878a80 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *IosMobileAppIdentifier) 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 *IosMobileAppIdentifier) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.MobileAppIdentifier.Serialize(writer) @@ -59,6 +80,12 @@ func (m *IosMobileAppIdentifier) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetBundleId sets the bundleId property value. The identifier for an app, as specified in the app store. @@ -68,10 +95,19 @@ func (m *IosMobileAppIdentifier) SetBundleId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IosMobileAppIdentifier) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // IosMobileAppIdentifierable type IosMobileAppIdentifierable interface { MobileAppIdentifierable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBundleId()(*string) + GetOdataType()(*string) SetBundleId(value *string)() + SetOdataType(value *string)() } diff --git a/models/ios_pkcs_certificate_profile.go b/models/ios_pkcs_certificate_profile.go index 8f43c3f0d4a..954a0064eff 100644 --- a/models/ios_pkcs_certificate_profile.go +++ b/models/ios_pkcs_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosPkcsCertificateProfile +// IosPkcsCertificateProfile iOS PKCS certificate profile. type IosPkcsCertificateProfile struct { IosCertificateProfileBase } -// NewIosPkcsCertificateProfile instantiates a new IosPkcsCertificateProfile and sets the default values. +// NewIosPkcsCertificateProfile instantiates a new iosPkcsCertificateProfile and sets the default values. func NewIosPkcsCertificateProfile()(*IosPkcsCertificateProfile) { m := &IosPkcsCertificateProfile{ IosCertificateProfileBase: *NewIosCertificateProfileBase(), diff --git a/models/ios_redirect_single_sign_on_extension.go b/models/ios_redirect_single_sign_on_extension.go index 723602eef87..2dabac40611 100644 --- a/models/ios_redirect_single_sign_on_extension.go +++ b/models/ios_redirect_single_sign_on_extension.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosRedirectSingleSignOnExtension +// IosRedirectSingleSignOnExtension represents a Redirect-type Single Sign-On extension profile for iOS devices. type IosRedirectSingleSignOnExtension struct { IosSingleSignOnExtension + // The OdataType property + OdataType *string } -// NewIosRedirectSingleSignOnExtension instantiates a new IosRedirectSingleSignOnExtension and sets the default values. +// NewIosRedirectSingleSignOnExtension instantiates a new iosRedirectSingleSignOnExtension and sets the default values. func NewIosRedirectSingleSignOnExtension()(*IosRedirectSingleSignOnExtension) { m := &IosRedirectSingleSignOnExtension{ IosSingleSignOnExtension: *NewIosSingleSignOnExtension(), diff --git a/models/ios_scep_certificate_profile.go b/models/ios_scep_certificate_profile.go index 0e605a47d1d..d6990d4ef15 100644 --- a/models/ios_scep_certificate_profile.go +++ b/models/ios_scep_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosScepCertificateProfile +// IosScepCertificateProfile iOS SCEP certificate profile. type IosScepCertificateProfile struct { IosCertificateProfileBase } -// NewIosScepCertificateProfile instantiates a new IosScepCertificateProfile and sets the default values. +// NewIosScepCertificateProfile instantiates a new iosScepCertificateProfile and sets the default values. func NewIosScepCertificateProfile()(*IosScepCertificateProfile) { m := &IosScepCertificateProfile{ IosCertificateProfileBase: *NewIosCertificateProfileBase(), diff --git a/models/ios_single_sign_on_extension.go b/models/ios_single_sign_on_extension.go index 32d581d9ea0..8209826d2e6 100644 --- a/models/ios_single_sign_on_extension.go +++ b/models/ios_single_sign_on_extension.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosSingleSignOnExtension +// IosSingleSignOnExtension an abstract base class for all iOS-specific single sign-on extension types. type IosSingleSignOnExtension struct { SingleSignOnExtension } -// NewIosSingleSignOnExtension instantiates a new IosSingleSignOnExtension and sets the default values. +// NewIosSingleSignOnExtension instantiates a new iosSingleSignOnExtension and sets the default values. func NewIosSingleSignOnExtension()(*IosSingleSignOnExtension) { m := &IosSingleSignOnExtension{ SingleSignOnExtension: *NewSingleSignOnExtension(), @@ -48,18 +48,54 @@ func CreateIosSingleSignOnExtensionFromDiscriminatorValue(parseNode i878a80d2330 // GetFieldDeserializers the deserialization information for the current model func (m *IosSingleSignOnExtension) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.SingleSignOnExtension.GetFieldDeserializers() + 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 *IosSingleSignOnExtension) 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 *IosSingleSignOnExtension) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.SingleSignOnExtension.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IosSingleSignOnExtension) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // IosSingleSignOnExtensionable type IosSingleSignOnExtensionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable SingleSignOnExtensionable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/ios_store_app.go b/models/ios_store_app.go index 816c179f1f0..4d02bad390c 100644 --- a/models/ios_store_app.go +++ b/models/ios_store_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosStoreApp +// IosStoreApp contains properties and inherited properties for iOS store apps. type IosStoreApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewIosStoreApp instantiates a new IosStoreApp and sets the default values. +// NewIosStoreApp instantiates a new iosStoreApp and sets the default values. func NewIosStoreApp()(*IosStoreApp) { m := &IosStoreApp{ MobileApp: *NewMobileApp(), diff --git a/models/ios_store_app_assignment_settings.go b/models/ios_store_app_assignment_settings.go index 9959c2acf74..2ac909f8937 100644 --- a/models/ios_store_app_assignment_settings.go +++ b/models/ios_store_app_assignment_settings.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosStoreAppAssignmentSettings +// IosStoreAppAssignmentSettings contains properties used to assign an iOS Store mobile app to a group. type IosStoreAppAssignmentSettings struct { MobileAppAssignmentSettings } -// NewIosStoreAppAssignmentSettings instantiates a new IosStoreAppAssignmentSettings and sets the default values. +// NewIosStoreAppAssignmentSettings instantiates a new iosStoreAppAssignmentSettings and sets the default values. func NewIosStoreAppAssignmentSettings()(*IosStoreAppAssignmentSettings) { m := &IosStoreAppAssignmentSettings{ MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), @@ -34,6 +34,16 @@ func (m *IosStoreAppAssignmentSettings) GetFieldDeserializers()(map[string]func( } 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["preventManagedAppBackup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -77,6 +87,17 @@ func (m *IosStoreAppAssignmentSettings) GetIsRemovable()(*bool) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *IosStoreAppAssignmentSettings) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPreventManagedAppBackup gets the preventManagedAppBackup property value. When TRUE, indicates that the app should not be backed up to iCloud. When FALSE, indicates that the app may be backed up to iCloud. By default, this property is set to null which internally is treated as FALSE. func (m *IosStoreAppAssignmentSettings) GetPreventManagedAppBackup()(*bool) { val, err := m.GetBackingStore().Get("preventManagedAppBackup") @@ -122,6 +143,12 @@ func (m *IosStoreAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("preventManagedAppBackup", m.GetPreventManagedAppBackup()) if err != nil { @@ -149,6 +176,13 @@ func (m *IosStoreAppAssignmentSettings) SetIsRemovable(value *bool)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IosStoreAppAssignmentSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPreventManagedAppBackup sets the preventManagedAppBackup property value. When TRUE, indicates that the app should not be backed up to iCloud. When FALSE, indicates that the app may be backed up to iCloud. By default, this property is set to null which internally is treated as FALSE. func (m *IosStoreAppAssignmentSettings) SetPreventManagedAppBackup(value *bool)() { err := m.GetBackingStore().Set("preventManagedAppBackup", value) @@ -175,10 +209,12 @@ type IosStoreAppAssignmentSettingsable interface { MobileAppAssignmentSettingsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIsRemovable()(*bool) + GetOdataType()(*string) GetPreventManagedAppBackup()(*bool) GetUninstallOnDeviceRemoval()(*bool) GetVpnConfigurationId()(*string) SetIsRemovable(value *bool)() + SetOdataType(value *string)() SetPreventManagedAppBackup(value *bool)() SetUninstallOnDeviceRemoval(value *bool)() SetVpnConfigurationId(value *string)() diff --git a/models/ios_trusted_root_certificate.go b/models/ios_trusted_root_certificate.go index dbf3323bddf..a0c4b735705 100644 --- a/models/ios_trusted_root_certificate.go +++ b/models/ios_trusted_root_certificate.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosTrustedRootCertificate +// IosTrustedRootCertificate iOS Trusted Root Certificate configuration profile. type IosTrustedRootCertificate struct { DeviceConfiguration } diff --git a/models/ios_update_configuration.go b/models/ios_update_configuration.go index e4c11c68bbd..4dc66019502 100644 --- a/models/ios_update_configuration.go +++ b/models/ios_update_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosUpdateConfiguration +// IosUpdateConfiguration iOS Update Configuration, allows you to configure time window within week to install iOS updates type IosUpdateConfiguration struct { DeviceConfiguration } -// NewIosUpdateConfiguration instantiates a new IosUpdateConfiguration and sets the default values. +// NewIosUpdateConfiguration instantiates a new iosUpdateConfiguration and sets the default values. func NewIosUpdateConfiguration()(*IosUpdateConfiguration) { m := &IosUpdateConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/ios_update_device_status.go b/models/ios_update_device_status.go index 2c49f687e53..f314dc75a8c 100644 --- a/models/ios_update_device_status.go +++ b/models/ios_update_device_status.go @@ -8,6 +8,8 @@ import ( // IosUpdateDeviceStatus type IosUpdateDeviceStatus struct { Entity + // The OdataType property + OdataType *string } // NewIosUpdateDeviceStatus instantiates a new iosUpdateDeviceStatus and sets the default values. func NewIosUpdateDeviceStatus()(*IosUpdateDeviceStatus) { diff --git a/models/ios_update_device_status_collection_response.go b/models/ios_update_device_status_collection_response.go index ad5c7fef176..b4f7405af64 100644 --- a/models/ios_update_device_status_collection_response.go +++ b/models/ios_update_device_status_collection_response.go @@ -8,7 +8,7 @@ import ( type IosUpdateDeviceStatusCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIosUpdateDeviceStatusCollectionResponse instantiates a new IosUpdateDeviceStatusCollectionResponse and sets the default values. +// NewIosUpdateDeviceStatusCollectionResponse instantiates a new iosUpdateDeviceStatusCollectionResponse and sets the default values. func NewIosUpdateDeviceStatusCollectionResponse()(*IosUpdateDeviceStatusCollectionResponse) { m := &IosUpdateDeviceStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/ios_vpn_configuration.go b/models/ios_vpn_configuration.go index 290b14ee0fc..eb6498a8d26 100644 --- a/models/ios_vpn_configuration.go +++ b/models/ios_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosVpnConfiguration +// IosVpnConfiguration by providing the configurations in this profile you can instruct the iOS device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. type IosVpnConfiguration struct { AppleVpnConfiguration } -// NewIosVpnConfiguration instantiates a new IosVpnConfiguration and sets the default values. +// NewIosVpnConfiguration instantiates a new iosVpnConfiguration and sets the default values. func NewIosVpnConfiguration()(*IosVpnConfiguration) { m := &IosVpnConfiguration{ AppleVpnConfiguration: *NewAppleVpnConfiguration(), diff --git a/models/ios_vpp_app.go b/models/ios_vpp_app.go index 09de79c86aa..8cc4efe320d 100644 --- a/models/ios_vpp_app.go +++ b/models/ios_vpp_app.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosVppApp +// IosVppApp contains properties and inherited properties for iOS Volume-Purchased Program (VPP) Apps. type IosVppApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewIosVppApp instantiates a new IosVppApp and sets the default values. +// NewIosVppApp instantiates a new iosVppApp and sets the default values. func NewIosVppApp()(*IosVppApp) { m := &IosVppApp{ MobileApp: *NewMobileApp(), diff --git a/models/ios_vpp_app_assigned_device_license.go b/models/ios_vpp_app_assigned_device_license.go index 584ef082f4f..787d8aa2654 100644 --- a/models/ios_vpp_app_assigned_device_license.go +++ b/models/ios_vpp_app_assigned_device_license.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosVppAppAssignedDeviceLicense +// IosVppAppAssignedDeviceLicense iOS Volume Purchase Program device license assignment. This class does not support Create, Delete, or Update. type IosVppAppAssignedDeviceLicense struct { IosVppAppAssignedLicense } -// NewIosVppAppAssignedDeviceLicense instantiates a new IosVppAppAssignedDeviceLicense and sets the default values. +// NewIosVppAppAssignedDeviceLicense instantiates a new iosVppAppAssignedDeviceLicense and sets the default values. func NewIosVppAppAssignedDeviceLicense()(*IosVppAppAssignedDeviceLicense) { m := &IosVppAppAssignedDeviceLicense{ IosVppAppAssignedLicense: *NewIosVppAppAssignedLicense(), diff --git a/models/ios_vpp_app_assigned_license.go b/models/ios_vpp_app_assigned_license.go index 76faa8217d9..bf628c270bc 100644 --- a/models/ios_vpp_app_assigned_license.go +++ b/models/ios_vpp_app_assigned_license.go @@ -7,6 +7,8 @@ import ( // IosVppAppAssignedLicense iOS Volume Purchase Program license assignment. This class does not support Create, Delete, or Update. type IosVppAppAssignedLicense struct { Entity + // The OdataType property + OdataType *string } // NewIosVppAppAssignedLicense instantiates a new iosVppAppAssignedLicense and sets the default values. func NewIosVppAppAssignedLicense()(*IosVppAppAssignedLicense) { diff --git a/models/ios_vpp_app_assigned_user_license.go b/models/ios_vpp_app_assigned_user_license.go index 4a214ea7498..58168aeed19 100644 --- a/models/ios_vpp_app_assigned_user_license.go +++ b/models/ios_vpp_app_assigned_user_license.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosVppAppAssignedUserLicense +// IosVppAppAssignedUserLicense iOS Volume Purchase Program user license assignment. This class does not support Create, Delete, or Update. type IosVppAppAssignedUserLicense struct { IosVppAppAssignedLicense } -// NewIosVppAppAssignedUserLicense instantiates a new IosVppAppAssignedUserLicense and sets the default values. +// NewIosVppAppAssignedUserLicense instantiates a new iosVppAppAssignedUserLicense and sets the default values. func NewIosVppAppAssignedUserLicense()(*IosVppAppAssignedUserLicense) { m := &IosVppAppAssignedUserLicense{ IosVppAppAssignedLicense: *NewIosVppAppAssignedLicense(), diff --git a/models/ios_vpp_app_assignment_settings.go b/models/ios_vpp_app_assignment_settings.go index b6836112a8a..07c9df3441e 100644 --- a/models/ios_vpp_app_assignment_settings.go +++ b/models/ios_vpp_app_assignment_settings.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosVppAppAssignmentSettings +// IosVppAppAssignmentSettings contains properties used to assign an iOS VPP mobile app to a group. type IosVppAppAssignmentSettings struct { MobileAppAssignmentSettings } -// NewIosVppAppAssignmentSettings instantiates a new IosVppAppAssignmentSettings and sets the default values. +// NewIosVppAppAssignmentSettings instantiates a new iosVppAppAssignmentSettings and sets the default values. func NewIosVppAppAssignmentSettings()(*IosVppAppAssignmentSettings) { m := &IosVppAppAssignmentSettings{ MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), @@ -34,6 +34,16 @@ func (m *IosVppAppAssignmentSettings) GetFieldDeserializers()(map[string]func(i8 } 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["preventAutoAppUpdate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -97,6 +107,17 @@ func (m *IosVppAppAssignmentSettings) GetIsRemovable()(*bool) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *IosVppAppAssignmentSettings) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPreventAutoAppUpdate gets the preventAutoAppUpdate property value. When TRUE, indicates that the app should not be automatically updated with the latest version from Apple app store. When FALSE, indicates that the app may be auto updated. By default, this property is set to null which internally is treated as FALSE. func (m *IosVppAppAssignmentSettings) GetPreventAutoAppUpdate()(*bool) { val, err := m.GetBackingStore().Get("preventAutoAppUpdate") @@ -164,6 +185,12 @@ func (m *IosVppAppAssignmentSettings) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("preventAutoAppUpdate", m.GetPreventAutoAppUpdate()) if err != nil { @@ -203,6 +230,13 @@ func (m *IosVppAppAssignmentSettings) SetIsRemovable(value *bool)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IosVppAppAssignmentSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPreventAutoAppUpdate sets the preventAutoAppUpdate property value. When TRUE, indicates that the app should not be automatically updated with the latest version from Apple app store. When FALSE, indicates that the app may be auto updated. By default, this property is set to null which internally is treated as FALSE. func (m *IosVppAppAssignmentSettings) SetPreventAutoAppUpdate(value *bool)() { err := m.GetBackingStore().Set("preventAutoAppUpdate", value) @@ -243,12 +277,14 @@ type IosVppAppAssignmentSettingsable interface { MobileAppAssignmentSettingsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIsRemovable()(*bool) + GetOdataType()(*string) GetPreventAutoAppUpdate()(*bool) GetPreventManagedAppBackup()(*bool) GetUninstallOnDeviceRemoval()(*bool) GetUseDeviceLicensing()(*bool) GetVpnConfigurationId()(*string) SetIsRemovable(value *bool)() + SetOdataType(value *string)() SetPreventAutoAppUpdate(value *bool)() SetPreventManagedAppBackup(value *bool)() SetUninstallOnDeviceRemoval(value *bool)() diff --git a/models/ios_vpp_e_book.go b/models/ios_vpp_e_book.go index a3f2a991161..c89cfb0c7de 100644 --- a/models/ios_vpp_e_book.go +++ b/models/ios_vpp_e_book.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosVppEBook +// IosVppEBook a class containing the properties for iOS Vpp eBook. type IosVppEBook struct { ManagedEBook } -// NewIosVppEBook instantiates a new IosVppEBook and sets the default values. +// NewIosVppEBook instantiates a new iosVppEBook and sets the default values. func NewIosVppEBook()(*IosVppEBook) { m := &IosVppEBook{ ManagedEBook: *NewManagedEBook(), diff --git a/models/ios_vpp_e_book_assignment.go b/models/ios_vpp_e_book_assignment.go index 1e07c0ed440..f1114728d1a 100644 --- a/models/ios_vpp_e_book_assignment.go +++ b/models/ios_vpp_e_book_assignment.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosVppEBookAssignment +// IosVppEBookAssignment contains properties used to assign an iOS VPP EBook to a group. type IosVppEBookAssignment struct { ManagedEBookAssignment } -// NewIosVppEBookAssignment instantiates a new IosVppEBookAssignment and sets the default values. +// NewIosVppEBookAssignment instantiates a new iosVppEBookAssignment and sets the default values. func NewIosVppEBookAssignment()(*IosVppEBookAssignment) { m := &IosVppEBookAssignment{ ManagedEBookAssignment: *NewManagedEBookAssignment(), diff --git a/models/ios_web_content_filter_auto_filter.go b/models/ios_web_content_filter_auto_filter.go index 43ba9d53d98..09054451e6c 100644 --- a/models/ios_web_content_filter_auto_filter.go +++ b/models/ios_web_content_filter_auto_filter.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosWebContentFilterAutoFilter +// IosWebContentFilterAutoFilter represents an iOS Web Content Filter setting type, which enables iOS automatic filter feature and allows for additional URL access control. When constructed with no property values, the iOS device will enable the automatic filter regardless. type IosWebContentFilterAutoFilter struct { IosWebContentFilterBase } -// NewIosWebContentFilterAutoFilter instantiates a new IosWebContentFilterAutoFilter and sets the default values. +// NewIosWebContentFilterAutoFilter instantiates a new iosWebContentFilterAutoFilter and sets the default values. func NewIosWebContentFilterAutoFilter()(*IosWebContentFilterAutoFilter) { m := &IosWebContentFilterAutoFilter{ IosWebContentFilterBase: *NewIosWebContentFilterBase(), @@ -78,8 +78,29 @@ func (m *IosWebContentFilterAutoFilter) GetFieldDeserializers()(map[string]func( } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *IosWebContentFilterAutoFilter) 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 *IosWebContentFilterAutoFilter) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.IosWebContentFilterBase.Serialize(writer) @@ -98,6 +119,12 @@ func (m *IosWebContentFilterAutoFilter) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAllowedUrls sets the allowedUrls property value. Additional URLs allowed for access @@ -114,12 +141,21 @@ func (m *IosWebContentFilterAutoFilter) SetBlockedUrls(value []string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IosWebContentFilterAutoFilter) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // IosWebContentFilterAutoFilterable type IosWebContentFilterAutoFilterable interface { IosWebContentFilterBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowedUrls()([]string) GetBlockedUrls()([]string) + GetOdataType()(*string) SetAllowedUrls(value []string)() SetBlockedUrls(value []string)() + SetOdataType(value *string)() } diff --git a/models/ios_web_content_filter_specific_websites_access.go b/models/ios_web_content_filter_specific_websites_access.go index 653ac57dd72..1d64905c6d7 100644 --- a/models/ios_web_content_filter_specific_websites_access.go +++ b/models/ios_web_content_filter_specific_websites_access.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosWebContentFilterSpecificWebsitesAccess +// IosWebContentFilterSpecificWebsitesAccess represents an iOS Web Content Filter setting type, which installs URL bookmarks into iOS built-in browser. An example scenario is in the classroom where teachers would like the students to navigate websites through browser bookmarks configured on their iOS devices, and no access to other sites. type IosWebContentFilterSpecificWebsitesAccess struct { IosWebContentFilterBase } -// NewIosWebContentFilterSpecificWebsitesAccess instantiates a new IosWebContentFilterSpecificWebsitesAccess and sets the default values. +// NewIosWebContentFilterSpecificWebsitesAccess instantiates a new iosWebContentFilterSpecificWebsitesAccess and sets the default values. func NewIosWebContentFilterSpecificWebsitesAccess()(*IosWebContentFilterSpecificWebsitesAccess) { m := &IosWebContentFilterSpecificWebsitesAccess{ IosWebContentFilterBase: *NewIosWebContentFilterBase(), @@ -24,6 +24,16 @@ func CreateIosWebContentFilterSpecificWebsitesAccessFromDiscriminatorValue(parse // GetFieldDeserializers the deserialization information for the current model func (m *IosWebContentFilterSpecificWebsitesAccess) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.IosWebContentFilterBase.GetFieldDeserializers() + 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["specificWebsitesOnly"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateIosBookmarkFromDiscriminatorValue) if err != nil { @@ -58,6 +68,17 @@ func (m *IosWebContentFilterSpecificWebsitesAccess) GetFieldDeserializers()(map[ } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *IosWebContentFilterSpecificWebsitesAccess) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSpecificWebsitesOnly gets the specificWebsitesOnly property value. URL bookmarks which will be installed into built-in browser and user is only allowed to access websites through bookmarks. This collection can contain a maximum of 500 elements. func (m *IosWebContentFilterSpecificWebsitesAccess) GetSpecificWebsitesOnly()([]IosBookmarkable) { val, err := m.GetBackingStore().Get("specificWebsitesOnly") @@ -86,6 +107,12 @@ func (m *IosWebContentFilterSpecificWebsitesAccess) Serialize(writer i878a80d233 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetSpecificWebsitesOnly() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSpecificWebsitesOnly())) for i, v := range m.GetSpecificWebsitesOnly() { @@ -112,6 +139,13 @@ func (m *IosWebContentFilterSpecificWebsitesAccess) Serialize(writer i878a80d233 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IosWebContentFilterSpecificWebsitesAccess) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSpecificWebsitesOnly sets the specificWebsitesOnly property value. URL bookmarks which will be installed into built-in browser and user is only allowed to access websites through bookmarks. This collection can contain a maximum of 500 elements. func (m *IosWebContentFilterSpecificWebsitesAccess) SetSpecificWebsitesOnly(value []IosBookmarkable)() { err := m.GetBackingStore().Set("specificWebsitesOnly", value) @@ -130,8 +164,10 @@ func (m *IosWebContentFilterSpecificWebsitesAccess) SetWebsiteList(value []IosBo type IosWebContentFilterSpecificWebsitesAccessable interface { IosWebContentFilterBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetSpecificWebsitesOnly()([]IosBookmarkable) GetWebsiteList()([]IosBookmarkable) + SetOdataType(value *string)() SetSpecificWebsitesOnly(value []IosBookmarkable)() SetWebsiteList(value []IosBookmarkable)() } diff --git a/models/ios_wi_fi_configuration.go b/models/ios_wi_fi_configuration.go index bfe255fcefe..64e702e1196 100644 --- a/models/ios_wi_fi_configuration.go +++ b/models/ios_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosWiFiConfiguration +// IosWiFiConfiguration by providing the configurations in this profile you can instruct the iOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile. type IosWiFiConfiguration struct { DeviceConfiguration } -// NewIosWiFiConfiguration instantiates a new IosWiFiConfiguration and sets the default values. +// NewIosWiFiConfiguration instantiates a new iosWiFiConfiguration and sets the default values. func NewIosWiFiConfiguration()(*IosWiFiConfiguration) { m := &IosWiFiConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/iosi_pad_o_s_web_clip.go b/models/iosi_pad_o_s_web_clip.go index 988f32cc861..06290b9a973 100644 --- a/models/iosi_pad_o_s_web_clip.go +++ b/models/iosi_pad_o_s_web_clip.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosiPadOSWebClip +// IosiPadOSWebClip contains properties and inherited properties for iOS web apps. type IosiPadOSWebClip struct { MobileApp + // The OdataType property + OdataType *string } -// NewIosiPadOSWebClip instantiates a new IosiPadOSWebClip and sets the default values. +// NewIosiPadOSWebClip instantiates a new iosiPadOSWebClip and sets the default values. func NewIosiPadOSWebClip()(*IosiPadOSWebClip) { m := &IosiPadOSWebClip{ MobileApp: *NewMobileApp(), @@ -119,7 +121,7 @@ func (m *IosiPadOSWebClip) GetIgnoreManifestScope()(*bool) { } return nil } -// GetPreComposedIconEnabled gets the preComposedIconEnabled property value. Whether or not the icon for the app is precomosed. Defaults to false. If TRUE, prevents SpringBoard from adding "shine" to the icon. If FALSE, SpringBoard can add "shine". +// GetPreComposedIconEnabled gets the preComposedIconEnabled property value. Whether or not the icon for the app is precomosed. Defaults to false. If TRUE, prevents SpringBoard from adding 'shine' to the icon. If FALSE, SpringBoard can add 'shine'. func (m *IosiPadOSWebClip) GetPreComposedIconEnabled()(*bool) { val, err := m.GetBackingStore().Get("preComposedIconEnabled") if err != nil { @@ -217,7 +219,7 @@ func (m *IosiPadOSWebClip) SetIgnoreManifestScope(value *bool)() { panic(err) } } -// SetPreComposedIconEnabled sets the preComposedIconEnabled property value. Whether or not the icon for the app is precomosed. Defaults to false. If TRUE, prevents SpringBoard from adding "shine" to the icon. If FALSE, SpringBoard can add "shine". +// SetPreComposedIconEnabled sets the preComposedIconEnabled property value. Whether or not the icon for the app is precomosed. Defaults to false. If TRUE, prevents SpringBoard from adding 'shine' to the icon. If FALSE, SpringBoard can add 'shine'. func (m *IosiPadOSWebClip) SetPreComposedIconEnabled(value *bool)() { err := m.GetBackingStore().Set("preComposedIconEnabled", value) if err != nil { diff --git a/models/iosik_ev2_vpn_configuration.go b/models/iosik_ev2_vpn_configuration.go index 58ab0b5bb5f..2ae124f3f5e 100644 --- a/models/iosik_ev2_vpn_configuration.go +++ b/models/iosik_ev2_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosikEv2VpnConfiguration +// IosikEv2VpnConfiguration by providing the configurations in this profile you can instruct the iOS device to connect to desired IKEv2 VPN endpoint. type IosikEv2VpnConfiguration struct { IosVpnConfiguration } -// NewIosikEv2VpnConfiguration instantiates a new IosikEv2VpnConfiguration and sets the default values. +// NewIosikEv2VpnConfiguration instantiates a new iosikEv2VpnConfiguration and sets the default values. func NewIosikEv2VpnConfiguration()(*IosikEv2VpnConfiguration) { m := &IosikEv2VpnConfiguration{ IosVpnConfiguration: *NewIosVpnConfiguration(), diff --git a/models/ip_application_segment.go b/models/ip_application_segment.go index 741ab6a0e67..b06750599a3 100644 --- a/models/ip_application_segment.go +++ b/models/ip_application_segment.go @@ -8,7 +8,7 @@ import ( type IpApplicationSegment struct { ApplicationSegment } -// NewIpApplicationSegment instantiates a new IpApplicationSegment and sets the default values. +// NewIpApplicationSegment instantiates a new ipApplicationSegment and sets the default values. func NewIpApplicationSegment()(*IpApplicationSegment) { m := &IpApplicationSegment{ ApplicationSegment: *NewApplicationSegment(), diff --git a/models/ip_named_location.go b/models/ip_named_location.go index 0c4e451897d..96b068bf2a7 100644 --- a/models/ip_named_location.go +++ b/models/ip_named_location.go @@ -8,7 +8,7 @@ import ( type IpNamedLocation struct { NamedLocation } -// NewIpNamedLocation instantiates a new IpNamedLocation and sets the default values. +// NewIpNamedLocation instantiates a new ipNamedLocation and sets the default values. func NewIpNamedLocation()(*IpNamedLocation) { m := &IpNamedLocation{ NamedLocation: *NewNamedLocation(), diff --git a/models/ip_range.go b/models/ip_range.go index 0092394ff5d..984d7a27bad 100644 --- a/models/ip_range.go +++ b/models/ip_range.go @@ -10,7 +10,7 @@ type IpRange struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewIpRange instantiates a new IpRange and sets the default values. +// NewIpRange instantiates a new ipRange and sets the default values. func NewIpRange()(*IpRange) { m := &IpRange{ } diff --git a/models/ip_security_profile.go b/models/ip_security_profile.go index ab94d45defe..5c1874cdc57 100644 --- a/models/ip_security_profile.go +++ b/models/ip_security_profile.go @@ -8,8 +8,10 @@ import ( // IpSecurityProfile type IpSecurityProfile struct { Entity + // The OdataType property + OdataType *string } -// NewIpSecurityProfile instantiates a new IpSecurityProfile and sets the default values. +// NewIpSecurityProfile instantiates a new ipSecurityProfile and sets the default values. func NewIpSecurityProfile()(*IpSecurityProfile) { m := &IpSecurityProfile{ Entity: *NewEntity(), diff --git a/models/ip_security_profile_collection_response.go b/models/ip_security_profile_collection_response.go index c335912f56a..8557ae92858 100644 --- a/models/ip_security_profile_collection_response.go +++ b/models/ip_security_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type IpSecurityProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewIpSecurityProfileCollectionResponse instantiates a new IpSecurityProfileCollectionResponse and sets the default values. +// NewIpSecurityProfileCollectionResponse instantiates a new ipSecurityProfileCollectionResponse and sets the default values. func NewIpSecurityProfileCollectionResponse()(*IpSecurityProfileCollectionResponse) { m := &IpSecurityProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/ip_segment_configuration.go b/models/ip_segment_configuration.go index f63c6d300e2..4d1b74bc6d7 100644 --- a/models/ip_segment_configuration.go +++ b/models/ip_segment_configuration.go @@ -7,8 +7,10 @@ import ( // IpSegmentConfiguration type IpSegmentConfiguration struct { SegmentConfiguration + // The OdataType property + OdataType *string } -// NewIpSegmentConfiguration instantiates a new IpSegmentConfiguration and sets the default values. +// NewIpSegmentConfiguration instantiates a new ipSegmentConfiguration and sets the default values. func NewIpSegmentConfiguration()(*IpSegmentConfiguration) { m := &IpSegmentConfiguration{ SegmentConfiguration: *NewSegmentConfiguration(), diff --git a/models/item_activity.go b/models/item_activity.go index 1e87deb800e..a35377cde9b 100644 --- a/models/item_activity.go +++ b/models/item_activity.go @@ -8,6 +8,8 @@ import ( // ItemActivity type ItemActivity struct { Entity + // The OdataType property + OdataType *string } // NewItemActivity instantiates a new itemActivity and sets the default values. func NewItemActivity()(*ItemActivity) { diff --git a/models/item_activity_collection_response.go b/models/item_activity_collection_response.go index ef1d311eb93..94a050a6ceb 100644 --- a/models/item_activity_collection_response.go +++ b/models/item_activity_collection_response.go @@ -8,7 +8,7 @@ import ( type ItemActivityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewItemActivityCollectionResponse instantiates a new ItemActivityCollectionResponse and sets the default values. +// NewItemActivityCollectionResponse instantiates a new itemActivityCollectionResponse and sets the default values. func NewItemActivityCollectionResponse()(*ItemActivityCollectionResponse) { m := &ItemActivityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/item_activity_o_l_d.go b/models/item_activity_o_l_d.go index a63f195f9d5..84900c32eec 100644 --- a/models/item_activity_o_l_d.go +++ b/models/item_activity_o_l_d.go @@ -7,6 +7,8 @@ import ( // ItemActivityOLD type ItemActivityOLD struct { Entity + // The OdataType property + OdataType *string } // NewItemActivityOLD instantiates a new itemActivityOLD and sets the default values. func NewItemActivityOLD()(*ItemActivityOLD) { diff --git a/models/item_activity_o_l_d_collection_response.go b/models/item_activity_o_l_d_collection_response.go index ed43e6e2cf7..8510da07e7a 100644 --- a/models/item_activity_o_l_d_collection_response.go +++ b/models/item_activity_o_l_d_collection_response.go @@ -8,7 +8,7 @@ import ( type ItemActivityOLDCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewItemActivityOLDCollectionResponse instantiates a new ItemActivityOLDCollectionResponse and sets the default values. +// NewItemActivityOLDCollectionResponse instantiates a new itemActivityOLDCollectionResponse and sets the default values. func NewItemActivityOLDCollectionResponse()(*ItemActivityOLDCollectionResponse) { m := &ItemActivityOLDCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/item_activity_stat.go b/models/item_activity_stat.go index 41ece9a5eb3..318f97dd4c0 100644 --- a/models/item_activity_stat.go +++ b/models/item_activity_stat.go @@ -8,6 +8,8 @@ import ( // ItemActivityStat type ItemActivityStat struct { Entity + // The OdataType property + OdataType *string } // NewItemActivityStat instantiates a new itemActivityStat and sets the default values. func NewItemActivityStat()(*ItemActivityStat) { diff --git a/models/item_activity_stat_collection_response.go b/models/item_activity_stat_collection_response.go index b6a20354968..d3e93789237 100644 --- a/models/item_activity_stat_collection_response.go +++ b/models/item_activity_stat_collection_response.go @@ -8,7 +8,7 @@ import ( type ItemActivityStatCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewItemActivityStatCollectionResponse instantiates a new ItemActivityStatCollectionResponse and sets the default values. +// NewItemActivityStatCollectionResponse instantiates a new itemActivityStatCollectionResponse and sets the default values. func NewItemActivityStatCollectionResponse()(*ItemActivityStatCollectionResponse) { m := &ItemActivityStatCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/item_address.go b/models/item_address.go index 795849f07d9..92a4dbfb7b6 100644 --- a/models/item_address.go +++ b/models/item_address.go @@ -8,7 +8,7 @@ import ( type ItemAddress struct { ItemFacet } -// NewItemAddress instantiates a new ItemAddress and sets the default values. +// NewItemAddress instantiates a new itemAddress and sets the default values. func NewItemAddress()(*ItemAddress) { m := &ItemAddress{ ItemFacet: *NewItemFacet(), diff --git a/models/item_address_collection_response.go b/models/item_address_collection_response.go index 1a294a9bf19..a546e6c91b4 100644 --- a/models/item_address_collection_response.go +++ b/models/item_address_collection_response.go @@ -8,7 +8,7 @@ import ( type ItemAddressCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewItemAddressCollectionResponse instantiates a new ItemAddressCollectionResponse and sets the default values. +// NewItemAddressCollectionResponse instantiates a new itemAddressCollectionResponse and sets the default values. func NewItemAddressCollectionResponse()(*ItemAddressCollectionResponse) { m := &ItemAddressCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/item_analytics.go b/models/item_analytics.go index 344fec1b5b9..3bd8b66d6ca 100644 --- a/models/item_analytics.go +++ b/models/item_analytics.go @@ -7,6 +7,8 @@ import ( // ItemAnalytics type ItemAnalytics struct { Entity + // The OdataType property + OdataType *string } // NewItemAnalytics instantiates a new itemAnalytics and sets the default values. func NewItemAnalytics()(*ItemAnalytics) { diff --git a/models/item_attachment.go b/models/item_attachment.go index 952a771a287..d91692ce876 100644 --- a/models/item_attachment.go +++ b/models/item_attachment.go @@ -7,8 +7,10 @@ import ( // ItemAttachment type ItemAttachment struct { Attachment + // The OdataType property + OdataType *string } -// NewItemAttachment instantiates a new ItemAttachment and sets the default values. +// NewItemAttachment instantiates a new itemAttachment and sets the default values. func NewItemAttachment()(*ItemAttachment) { m := &ItemAttachment{ Attachment: *NewAttachment(), diff --git a/models/item_category_collection_response.go b/models/item_category_collection_response.go index ff7d2428e7b..841899f803c 100644 --- a/models/item_category_collection_response.go +++ b/models/item_category_collection_response.go @@ -8,7 +8,7 @@ import ( type ItemCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewItemCategoryCollectionResponse instantiates a new ItemCategoryCollectionResponse and sets the default values. +// NewItemCategoryCollectionResponse instantiates a new itemCategoryCollectionResponse and sets the default values. func NewItemCategoryCollectionResponse()(*ItemCategoryCollectionResponse) { m := &ItemCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/item_collection_response.go b/models/item_collection_response.go index 0ee4b8d6605..50709492788 100644 --- a/models/item_collection_response.go +++ b/models/item_collection_response.go @@ -8,7 +8,7 @@ import ( type ItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewItemCollectionResponse instantiates a new ItemCollectionResponse and sets the default values. +// NewItemCollectionResponse instantiates a new itemCollectionResponse and sets the default values. func NewItemCollectionResponse()(*ItemCollectionResponse) { m := &ItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/item_email.go b/models/item_email.go index 495d7ba1ac1..75786045e48 100644 --- a/models/item_email.go +++ b/models/item_email.go @@ -8,7 +8,7 @@ import ( type ItemEmail struct { ItemFacet } -// NewItemEmail instantiates a new ItemEmail and sets the default values. +// NewItemEmail instantiates a new itemEmail and sets the default values. func NewItemEmail()(*ItemEmail) { m := &ItemEmail{ ItemFacet: *NewItemFacet(), diff --git a/models/item_email_collection_response.go b/models/item_email_collection_response.go index be62e0bcd57..a68cf3ae235 100644 --- a/models/item_email_collection_response.go +++ b/models/item_email_collection_response.go @@ -8,7 +8,7 @@ import ( type ItemEmailCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewItemEmailCollectionResponse instantiates a new ItemEmailCollectionResponse and sets the default values. +// NewItemEmailCollectionResponse instantiates a new itemEmailCollectionResponse and sets the default values. func NewItemEmailCollectionResponse()(*ItemEmailCollectionResponse) { m := &ItemEmailCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/item_facet.go b/models/item_facet.go index 0c8a58d1ce0..08f58a61245 100644 --- a/models/item_facet.go +++ b/models/item_facet.go @@ -8,6 +8,8 @@ import ( // ItemFacet type ItemFacet struct { Entity + // The OdataType property + OdataType *string } // NewItemFacet instantiates a new itemFacet and sets the default values. func NewItemFacet()(*ItemFacet) { diff --git a/models/item_insights.go b/models/item_insights.go index 973f7937c2f..84276f0be4c 100644 --- a/models/item_insights.go +++ b/models/item_insights.go @@ -8,7 +8,7 @@ import ( type ItemInsights struct { OfficeGraphInsights } -// NewItemInsights instantiates a new ItemInsights and sets the default values. +// NewItemInsights instantiates a new itemInsights and sets the default values. func NewItemInsights()(*ItemInsights) { m := &ItemInsights{ OfficeGraphInsights: *NewOfficeGraphInsights(), diff --git a/models/item_patent.go b/models/item_patent.go index 134760e3da4..974fcd1c540 100644 --- a/models/item_patent.go +++ b/models/item_patent.go @@ -8,7 +8,7 @@ import ( type ItemPatent struct { ItemFacet } -// NewItemPatent instantiates a new ItemPatent and sets the default values. +// NewItemPatent instantiates a new itemPatent and sets the default values. func NewItemPatent()(*ItemPatent) { m := &ItemPatent{ ItemFacet: *NewItemFacet(), diff --git a/models/item_patent_collection_response.go b/models/item_patent_collection_response.go index 98e4856694d..22c7df5c868 100644 --- a/models/item_patent_collection_response.go +++ b/models/item_patent_collection_response.go @@ -8,7 +8,7 @@ import ( type ItemPatentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewItemPatentCollectionResponse instantiates a new ItemPatentCollectionResponse and sets the default values. +// NewItemPatentCollectionResponse instantiates a new itemPatentCollectionResponse and sets the default values. func NewItemPatentCollectionResponse()(*ItemPatentCollectionResponse) { m := &ItemPatentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/item_phone.go b/models/item_phone.go index cb8e9ee0214..00d7ab97af5 100644 --- a/models/item_phone.go +++ b/models/item_phone.go @@ -8,7 +8,7 @@ import ( type ItemPhone struct { ItemFacet } -// NewItemPhone instantiates a new ItemPhone and sets the default values. +// NewItemPhone instantiates a new itemPhone and sets the default values. func NewItemPhone()(*ItemPhone) { m := &ItemPhone{ ItemFacet: *NewItemFacet(), diff --git a/models/item_phone_collection_response.go b/models/item_phone_collection_response.go index b265d851912..7e9e3410b58 100644 --- a/models/item_phone_collection_response.go +++ b/models/item_phone_collection_response.go @@ -8,7 +8,7 @@ import ( type ItemPhoneCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewItemPhoneCollectionResponse instantiates a new ItemPhoneCollectionResponse and sets the default values. +// NewItemPhoneCollectionResponse instantiates a new itemPhoneCollectionResponse and sets the default values. func NewItemPhoneCollectionResponse()(*ItemPhoneCollectionResponse) { m := &ItemPhoneCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/item_publication.go b/models/item_publication.go index 2bd13b58731..4f9d6c0ba05 100644 --- a/models/item_publication.go +++ b/models/item_publication.go @@ -8,7 +8,7 @@ import ( type ItemPublication struct { ItemFacet } -// NewItemPublication instantiates a new ItemPublication and sets the default values. +// NewItemPublication instantiates a new itemPublication and sets the default values. func NewItemPublication()(*ItemPublication) { m := &ItemPublication{ ItemFacet: *NewItemFacet(), diff --git a/models/item_publication_collection_response.go b/models/item_publication_collection_response.go index f3ff59039f3..be6b1d142dd 100644 --- a/models/item_publication_collection_response.go +++ b/models/item_publication_collection_response.go @@ -8,7 +8,7 @@ import ( type ItemPublicationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewItemPublicationCollectionResponse instantiates a new ItemPublicationCollectionResponse and sets the default values. +// NewItemPublicationCollectionResponse instantiates a new itemPublicationCollectionResponse and sets the default values. func NewItemPublicationCollectionResponse()(*ItemPublicationCollectionResponse) { m := &ItemPublicationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/item_retention_label.go b/models/item_retention_label.go index efb92f8e012..6c9c8da5970 100644 --- a/models/item_retention_label.go +++ b/models/item_retention_label.go @@ -8,6 +8,8 @@ import ( // ItemRetentionLabel type ItemRetentionLabel struct { Entity + // The OdataType property + OdataType *string } // NewItemRetentionLabel instantiates a new itemRetentionLabel and sets the default values. func NewItemRetentionLabel()(*ItemRetentionLabel) { diff --git a/models/job_response_base.go b/models/job_response_base.go index 70a2bb025f6..bcb0ab37986 100644 --- a/models/job_response_base.go +++ b/models/job_response_base.go @@ -8,6 +8,8 @@ import ( // JobResponseBase type JobResponseBase struct { Entity + // The OdataType property + OdataType *string } // NewJobResponseBase instantiates a new jobResponseBase and sets the default values. func NewJobResponseBase()(*JobResponseBase) { diff --git a/models/job_response_base_collection_response.go b/models/job_response_base_collection_response.go index 3fcb683fd61..1da2e95ad1d 100644 --- a/models/job_response_base_collection_response.go +++ b/models/job_response_base_collection_response.go @@ -8,7 +8,7 @@ import ( type JobResponseBaseCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewJobResponseBaseCollectionResponse instantiates a new JobResponseBaseCollectionResponse and sets the default values. +// NewJobResponseBaseCollectionResponse instantiates a new jobResponseBaseCollectionResponse and sets the default values. func NewJobResponseBaseCollectionResponse()(*JobResponseBaseCollectionResponse) { m := &JobResponseBaseCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/join_meeting_id_meeting_info.go b/models/join_meeting_id_meeting_info.go index e0e46332241..59b9f3b2fdb 100644 --- a/models/join_meeting_id_meeting_info.go +++ b/models/join_meeting_id_meeting_info.go @@ -7,8 +7,10 @@ import ( // JoinMeetingIdMeetingInfo type JoinMeetingIdMeetingInfo struct { MeetingInfo + // The OdataType property + OdataType *string } -// NewJoinMeetingIdMeetingInfo instantiates a new JoinMeetingIdMeetingInfo and sets the default values. +// NewJoinMeetingIdMeetingInfo instantiates a new joinMeetingIdMeetingInfo and sets the default values. func NewJoinMeetingIdMeetingInfo()(*JoinMeetingIdMeetingInfo) { m := &JoinMeetingIdMeetingInfo{ MeetingInfo: *NewMeetingInfo(), diff --git a/models/journal.go b/models/journal.go index e8933ea9a9f..e5c9ce28718 100644 --- a/models/journal.go +++ b/models/journal.go @@ -12,7 +12,7 @@ type Journal struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewJournal instantiates a new Journal and sets the default values. +// NewJournal instantiates a new journal and sets the default values. func NewJournal()(*Journal) { m := &Journal{ } diff --git a/models/journal_collection_response.go b/models/journal_collection_response.go index fca0d6bb5af..826f233dc72 100644 --- a/models/journal_collection_response.go +++ b/models/journal_collection_response.go @@ -8,7 +8,7 @@ import ( type JournalCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewJournalCollectionResponse instantiates a new JournalCollectionResponse and sets the default values. +// NewJournalCollectionResponse instantiates a new journalCollectionResponse and sets the default values. func NewJournalCollectionResponse()(*JournalCollectionResponse) { m := &JournalCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/journal_line.go b/models/journal_line.go index 1850eaf8808..4be0e0864ac 100644 --- a/models/journal_line.go +++ b/models/journal_line.go @@ -12,7 +12,7 @@ type JournalLine struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewJournalLine instantiates a new JournalLine and sets the default values. +// NewJournalLine instantiates a new journalLine and sets the default values. func NewJournalLine()(*JournalLine) { m := &JournalLine{ } diff --git a/models/journal_line_collection_response.go b/models/journal_line_collection_response.go index 67829409aa0..87501de6535 100644 --- a/models/journal_line_collection_response.go +++ b/models/journal_line_collection_response.go @@ -8,7 +8,7 @@ import ( type JournalLineCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewJournalLineCollectionResponse instantiates a new JournalLineCollectionResponse and sets the default values. +// NewJournalLineCollectionResponse instantiates a new journalLineCollectionResponse and sets the default values. func NewJournalLineCollectionResponse()(*JournalLineCollectionResponse) { m := &JournalLineCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/justify_action.go b/models/justify_action.go index da60567ca06..1dd8fb945d2 100644 --- a/models/justify_action.go +++ b/models/justify_action.go @@ -8,7 +8,7 @@ import ( type JustifyAction struct { InformationProtectionAction } -// NewJustifyAction instantiates a new JustifyAction and sets the default values. +// NewJustifyAction instantiates a new justifyAction and sets the default values. func NewJustifyAction()(*JustifyAction) { m := &JustifyAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,18 +24,54 @@ func CreateJustifyActionFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 // GetFieldDeserializers the deserialization information for the current model func (m *JustifyAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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 *JustifyAction) 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 *JustifyAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.InformationProtectionAction.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *JustifyAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // JustifyActionable type JustifyActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/kerberos_single_sign_on_extension.go b/models/kerberos_single_sign_on_extension.go index eef92da92cf..c9dd972f24f 100644 --- a/models/kerberos_single_sign_on_extension.go +++ b/models/kerberos_single_sign_on_extension.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// KerberosSingleSignOnExtension +// KerberosSingleSignOnExtension represents a Kerberos-type Single Sign-On extension profile. type KerberosSingleSignOnExtension struct { SingleSignOnExtension + // The OdataType property + OdataType *string } -// NewKerberosSingleSignOnExtension instantiates a new KerberosSingleSignOnExtension and sets the default values. +// NewKerberosSingleSignOnExtension instantiates a new kerberosSingleSignOnExtension and sets the default values. func NewKerberosSingleSignOnExtension()(*KerberosSingleSignOnExtension) { m := &KerberosSingleSignOnExtension{ SingleSignOnExtension: *NewSingleSignOnExtension(), diff --git a/models/key_boolean_value_pair.go b/models/key_boolean_value_pair.go index 0a34eede322..022cbf0af6b 100644 --- a/models/key_boolean_value_pair.go +++ b/models/key_boolean_value_pair.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// KeyBooleanValuePair +// KeyBooleanValuePair a key-value pair with a string key and a Boolean value. type KeyBooleanValuePair struct { KeyTypedValuePair } -// NewKeyBooleanValuePair instantiates a new KeyBooleanValuePair and sets the default values. +// NewKeyBooleanValuePair instantiates a new keyBooleanValuePair and sets the default values. func NewKeyBooleanValuePair()(*KeyBooleanValuePair) { m := &KeyBooleanValuePair{ KeyTypedValuePair: *NewKeyTypedValuePair(), @@ -24,6 +24,16 @@ func CreateKeyBooleanValuePairFromDiscriminatorValue(parseNode i878a80d2330e89d2 // GetFieldDeserializers the deserialization information for the current model func (m *KeyBooleanValuePair) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.KeyTypedValuePair.GetFieldDeserializers() + 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["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -36,6 +46,17 @@ func (m *KeyBooleanValuePair) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *KeyBooleanValuePair) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetValue gets the value property value. The Boolean value of the key-value pair. func (m *KeyBooleanValuePair) GetValue()(*bool) { val, err := m.GetBackingStore().Get("value") @@ -53,6 +74,12 @@ func (m *KeyBooleanValuePair) Serialize(writer i878a80d2330e89d26896388a3f487eef if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("value", m.GetValue()) if err != nil { @@ -61,6 +88,13 @@ func (m *KeyBooleanValuePair) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *KeyBooleanValuePair) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetValue sets the value property value. The Boolean value of the key-value pair. func (m *KeyBooleanValuePair) SetValue(value *bool)() { err := m.GetBackingStore().Set("value", value) @@ -72,6 +106,8 @@ func (m *KeyBooleanValuePair) SetValue(value *bool)() { type KeyBooleanValuePairable interface { KeyTypedValuePairable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetValue()(*bool) + SetOdataType(value *string)() SetValue(value *bool)() } diff --git a/models/key_credential.go b/models/key_credential.go index 7ef017b7afc..c878925a827 100644 --- a/models/key_credential.go +++ b/models/key_credential.go @@ -12,7 +12,7 @@ type KeyCredential struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewKeyCredential instantiates a new KeyCredential and sets the default values. +// NewKeyCredential instantiates a new keyCredential and sets the default values. func NewKeyCredential()(*KeyCredential) { m := &KeyCredential{ } diff --git a/models/key_integer_value_pair.go b/models/key_integer_value_pair.go index e7548383c76..0c4d137675f 100644 --- a/models/key_integer_value_pair.go +++ b/models/key_integer_value_pair.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// KeyIntegerValuePair +// KeyIntegerValuePair a key-value pair with a string key and an integer value. type KeyIntegerValuePair struct { KeyTypedValuePair + // The OdataType property + OdataType *string } -// NewKeyIntegerValuePair instantiates a new KeyIntegerValuePair and sets the default values. +// NewKeyIntegerValuePair instantiates a new keyIntegerValuePair and sets the default values. func NewKeyIntegerValuePair()(*KeyIntegerValuePair) { m := &KeyIntegerValuePair{ KeyTypedValuePair: *NewKeyTypedValuePair(), diff --git a/models/key_real_value_pair.go b/models/key_real_value_pair.go index 6659a049889..3e9c6c5c24f 100644 --- a/models/key_real_value_pair.go +++ b/models/key_real_value_pair.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// KeyRealValuePair +// KeyRealValuePair a key-value pair with a string key and a real (floating-point) value. type KeyRealValuePair struct { KeyTypedValuePair } -// NewKeyRealValuePair instantiates a new KeyRealValuePair and sets the default values. +// NewKeyRealValuePair instantiates a new keyRealValuePair and sets the default values. func NewKeyRealValuePair()(*KeyRealValuePair) { m := &KeyRealValuePair{ KeyTypedValuePair: *NewKeyTypedValuePair(), @@ -24,6 +24,16 @@ func CreateKeyRealValuePairFromDiscriminatorValue(parseNode i878a80d2330e89d2689 // GetFieldDeserializers the deserialization information for the current model func (m *KeyRealValuePair) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.KeyTypedValuePair.GetFieldDeserializers() + 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["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetFloat64Value() if err != nil { @@ -36,6 +46,17 @@ func (m *KeyRealValuePair) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *KeyRealValuePair) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetValue gets the value property value. The real (floating-point) value of the key-value pair. func (m *KeyRealValuePair) GetValue()(*float64) { val, err := m.GetBackingStore().Get("value") @@ -53,6 +74,12 @@ func (m *KeyRealValuePair) Serialize(writer i878a80d2330e89d26896388a3f487eef27b if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteFloat64Value("value", m.GetValue()) if err != nil { @@ -61,6 +88,13 @@ func (m *KeyRealValuePair) Serialize(writer i878a80d2330e89d26896388a3f487eef27b } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *KeyRealValuePair) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetValue sets the value property value. The real (floating-point) value of the key-value pair. func (m *KeyRealValuePair) SetValue(value *float64)() { err := m.GetBackingStore().Set("value", value) @@ -72,6 +106,8 @@ func (m *KeyRealValuePair) SetValue(value *float64)() { type KeyRealValuePairable interface { KeyTypedValuePairable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetValue()(*float64) + SetOdataType(value *string)() SetValue(value *float64)() } diff --git a/models/key_string_value_pair.go b/models/key_string_value_pair.go index 9bd4b201690..747388e12e8 100644 --- a/models/key_string_value_pair.go +++ b/models/key_string_value_pair.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// KeyStringValuePair +// KeyStringValuePair a key-value pair with a string key and a string value. type KeyStringValuePair struct { KeyTypedValuePair } -// NewKeyStringValuePair instantiates a new KeyStringValuePair and sets the default values. +// NewKeyStringValuePair instantiates a new keyStringValuePair and sets the default values. func NewKeyStringValuePair()(*KeyStringValuePair) { m := &KeyStringValuePair{ KeyTypedValuePair: *NewKeyTypedValuePair(), @@ -24,6 +24,16 @@ func CreateKeyStringValuePairFromDiscriminatorValue(parseNode i878a80d2330e89d26 // GetFieldDeserializers the deserialization information for the current model func (m *KeyStringValuePair) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.KeyTypedValuePair.GetFieldDeserializers() + 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["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,6 +46,17 @@ func (m *KeyStringValuePair) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *KeyStringValuePair) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetValue gets the value property value. The string value of the key-value pair. func (m *KeyStringValuePair) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") @@ -53,6 +74,12 @@ func (m *KeyStringValuePair) Serialize(writer i878a80d2330e89d26896388a3f487eef2 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("value", m.GetValue()) if err != nil { @@ -61,6 +88,13 @@ func (m *KeyStringValuePair) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *KeyStringValuePair) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetValue sets the value property value. The string value of the key-value pair. func (m *KeyStringValuePair) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) @@ -72,6 +106,8 @@ func (m *KeyStringValuePair) SetValue(value *string)() { type KeyStringValuePairable interface { KeyTypedValuePairable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetValue()(*string) + SetOdataType(value *string)() SetValue(value *string)() } diff --git a/models/key_value.go b/models/key_value.go index b9bdb59b3d2..6962803724a 100644 --- a/models/key_value.go +++ b/models/key_value.go @@ -10,7 +10,7 @@ type KeyValue struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewKeyValue instantiates a new KeyValue and sets the default values. +// NewKeyValue instantiates a new keyValue and sets the default values. func NewKeyValue()(*KeyValue) { m := &KeyValue{ } @@ -73,7 +73,7 @@ func (m *KeyValue) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetKey gets the key property value. Key. +// GetKey gets the key property value. Contains the name of the field that a value is associated with. func (m *KeyValue) GetKey()(*string) { val, err := m.GetBackingStore().Get("key") if err != nil { @@ -95,7 +95,7 @@ func (m *KeyValue) GetOdataType()(*string) { } return nil } -// GetValue gets the value property value. Value. +// GetValue gets the value property value. Contains the corresponding value for the specified key. func (m *KeyValue) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") if err != nil { @@ -145,7 +145,7 @@ func (m *KeyValue) SetAdditionalData(value map[string]any)() { func (m *KeyValue) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetKey sets the key property value. Key. +// SetKey sets the key property value. Contains the name of the field that a value is associated with. func (m *KeyValue) SetKey(value *string)() { err := m.GetBackingStore().Set("key", value) if err != nil { @@ -159,7 +159,7 @@ func (m *KeyValue) SetOdataType(value *string)() { panic(err) } } -// SetValue sets the value property value. Value. +// SetValue sets the value property value. Contains the corresponding value for the specified key. func (m *KeyValue) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { diff --git a/models/key_value_pair.go b/models/key_value_pair.go index 6055adee496..999a9f32133 100644 --- a/models/key_value_pair.go +++ b/models/key_value_pair.go @@ -10,7 +10,7 @@ type KeyValuePair struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewKeyValuePair instantiates a new KeyValuePair and sets the default values. +// NewKeyValuePair instantiates a new keyValuePair and sets the default values. func NewKeyValuePair()(*KeyValuePair) { m := &KeyValuePair{ } diff --git a/models/label_details.go b/models/label_details.go index f0038aedb14..034c9c02349 100644 --- a/models/label_details.go +++ b/models/label_details.go @@ -7,8 +7,10 @@ import ( // LabelDetails type LabelDetails struct { ParentLabelDetails + // The OdataType property + OdataType *string } -// NewLabelDetails instantiates a new LabelDetails and sets the default values. +// NewLabelDetails instantiates a new labelDetails and sets the default values. func NewLabelDetails()(*LabelDetails) { m := &LabelDetails{ ParentLabelDetails: *NewParentLabelDetails(), diff --git a/models/labeling_options.go b/models/labeling_options.go index ac2e912a4be..ba431dc62dc 100644 --- a/models/labeling_options.go +++ b/models/labeling_options.go @@ -10,7 +10,7 @@ type LabelingOptions struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewLabelingOptions instantiates a new LabelingOptions and sets the default values. +// NewLabelingOptions instantiates a new labelingOptions and sets the default values. func NewLabelingOptions()(*LabelingOptions) { m := &LabelingOptions{ } diff --git a/models/landing_page.go b/models/landing_page.go index 7fd1ca435c4..3cfa94251d8 100644 --- a/models/landing_page.go +++ b/models/landing_page.go @@ -164,6 +164,16 @@ func (m *LandingPage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } 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["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseSimulationContentSource) if err != nil { @@ -235,6 +245,17 @@ func (m *LandingPage) GetLocale()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *LandingPage) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSource gets the source property value. The source property func (m *LandingPage) GetSource()(*SimulationContentSource) { val, err := m.GetBackingStore().Get("source") @@ -328,6 +349,12 @@ func (m *LandingPage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetSource() != nil { cast := (*m.GetSource()).String() err = writer.WriteStringValue("source", &cast) @@ -406,6 +433,13 @@ func (m *LandingPage) SetLocale(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *LandingPage) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSource sets the source property value. The source property func (m *LandingPage) SetSource(value *SimulationContentSource)() { err := m.GetBackingStore().Set("source", value) @@ -439,6 +473,7 @@ type LandingPageable interface { GetLastModifiedBy()(EmailIdentityable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLocale()(*string) + GetOdataType()(*string) GetSource()(*SimulationContentSource) GetStatus()(*SimulationContentStatus) GetSupportedLocales()([]string) @@ -450,6 +485,7 @@ type LandingPageable interface { SetLastModifiedBy(value EmailIdentityable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLocale(value *string)() + SetOdataType(value *string)() SetSource(value *SimulationContentSource)() SetStatus(value *SimulationContentStatus)() SetSupportedLocales(value []string)() diff --git a/models/landing_page_collection_response.go b/models/landing_page_collection_response.go index 0d790a81bec..9bae00b872f 100644 --- a/models/landing_page_collection_response.go +++ b/models/landing_page_collection_response.go @@ -8,7 +8,7 @@ import ( type LandingPageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewLandingPageCollectionResponse instantiates a new LandingPageCollectionResponse and sets the default values. +// NewLandingPageCollectionResponse instantiates a new landingPageCollectionResponse and sets the default values. func NewLandingPageCollectionResponse()(*LandingPageCollectionResponse) { m := &LandingPageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/landing_page_detail.go b/models/landing_page_detail.go index 4d6d401e64f..878f11585a7 100644 --- a/models/landing_page_detail.go +++ b/models/landing_page_detail.go @@ -7,6 +7,8 @@ import ( // LandingPageDetail type LandingPageDetail struct { Entity + // The OdataType property + OdataType *string } // NewLandingPageDetail instantiates a new landingPageDetail and sets the default values. func NewLandingPageDetail()(*LandingPageDetail) { diff --git a/models/landing_page_detail_collection_response.go b/models/landing_page_detail_collection_response.go index 2ad676fe4eb..e4d7fdcd964 100644 --- a/models/landing_page_detail_collection_response.go +++ b/models/landing_page_detail_collection_response.go @@ -8,7 +8,7 @@ import ( type LandingPageDetailCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewLandingPageDetailCollectionResponse instantiates a new LandingPageDetailCollectionResponse and sets the default values. +// NewLandingPageDetailCollectionResponse instantiates a new landingPageDetailCollectionResponse and sets the default values. func NewLandingPageDetailCollectionResponse()(*LandingPageDetailCollectionResponse) { m := &LandingPageDetailCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/language_proficiency.go b/models/language_proficiency.go index dacc762c4a0..4654df38cf0 100644 --- a/models/language_proficiency.go +++ b/models/language_proficiency.go @@ -8,7 +8,7 @@ import ( type LanguageProficiency struct { ItemFacet } -// NewLanguageProficiency instantiates a new LanguageProficiency and sets the default values. +// NewLanguageProficiency instantiates a new languageProficiency and sets the default values. func NewLanguageProficiency()(*LanguageProficiency) { m := &LanguageProficiency{ ItemFacet: *NewItemFacet(), diff --git a/models/language_proficiency_collection_response.go b/models/language_proficiency_collection_response.go index 6d46167823b..3770694f65c 100644 --- a/models/language_proficiency_collection_response.go +++ b/models/language_proficiency_collection_response.go @@ -8,7 +8,7 @@ import ( type LanguageProficiencyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewLanguageProficiencyCollectionResponse instantiates a new LanguageProficiencyCollectionResponse and sets the default values. +// NewLanguageProficiencyCollectionResponse instantiates a new languageProficiencyCollectionResponse and sets the default values. func NewLanguageProficiencyCollectionResponse()(*LanguageProficiencyCollectionResponse) { m := &LanguageProficiencyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/learning_assignment.go b/models/learning_assignment.go index 34a44de5794..b3dee4b652a 100644 --- a/models/learning_assignment.go +++ b/models/learning_assignment.go @@ -9,7 +9,7 @@ import ( type LearningAssignment struct { LearningCourseActivity } -// NewLearningAssignment instantiates a new LearningAssignment and sets the default values. +// NewLearningAssignment instantiates a new learningAssignment and sets the default values. func NewLearningAssignment()(*LearningAssignment) { m := &LearningAssignment{ LearningCourseActivity: *NewLearningCourseActivity(), diff --git a/models/learning_content.go b/models/learning_content.go index c633cff9606..e269c405368 100644 --- a/models/learning_content.go +++ b/models/learning_content.go @@ -8,6 +8,8 @@ import ( // LearningContent type LearningContent struct { Entity + // The OdataType property + OdataType *string } // NewLearningContent instantiates a new learningContent and sets the default values. func NewLearningContent()(*LearningContent) { diff --git a/models/learning_content_collection_response.go b/models/learning_content_collection_response.go index f60d81c863b..6fded2b2368 100644 --- a/models/learning_content_collection_response.go +++ b/models/learning_content_collection_response.go @@ -8,7 +8,7 @@ import ( type LearningContentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewLearningContentCollectionResponse instantiates a new LearningContentCollectionResponse and sets the default values. +// NewLearningContentCollectionResponse instantiates a new learningContentCollectionResponse and sets the default values. func NewLearningContentCollectionResponse()(*LearningContentCollectionResponse) { m := &LearningContentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/learning_course_activity.go b/models/learning_course_activity.go index 7922224a829..66a47c7b641 100644 --- a/models/learning_course_activity.go +++ b/models/learning_course_activity.go @@ -8,6 +8,8 @@ import ( // LearningCourseActivity type LearningCourseActivity struct { Entity + // The OdataType property + OdataType *string } // NewLearningCourseActivity instantiates a new learningCourseActivity and sets the default values. func NewLearningCourseActivity()(*LearningCourseActivity) { diff --git a/models/learning_course_activity_collection_response.go b/models/learning_course_activity_collection_response.go index 87b1feefa71..c3eacf28cf4 100644 --- a/models/learning_course_activity_collection_response.go +++ b/models/learning_course_activity_collection_response.go @@ -8,7 +8,7 @@ import ( type LearningCourseActivityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewLearningCourseActivityCollectionResponse instantiates a new LearningCourseActivityCollectionResponse and sets the default values. +// NewLearningCourseActivityCollectionResponse instantiates a new learningCourseActivityCollectionResponse and sets the default values. func NewLearningCourseActivityCollectionResponse()(*LearningCourseActivityCollectionResponse) { m := &LearningCourseActivityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/learning_provider.go b/models/learning_provider.go index 8ca1ba0d680..2b802c28809 100644 --- a/models/learning_provider.go +++ b/models/learning_provider.go @@ -7,8 +7,10 @@ import ( // LearningProvider type LearningProvider struct { Entity + // The OdataType property + OdataType *string } -// NewLearningProvider instantiates a new LearningProvider and sets the default values. +// NewLearningProvider instantiates a new learningProvider and sets the default values. func NewLearningProvider()(*LearningProvider) { m := &LearningProvider{ Entity: *NewEntity(), diff --git a/models/learning_provider_collection_response.go b/models/learning_provider_collection_response.go index 6f4fe8f00f5..45004ffc1be 100644 --- a/models/learning_provider_collection_response.go +++ b/models/learning_provider_collection_response.go @@ -8,7 +8,7 @@ import ( type LearningProviderCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewLearningProviderCollectionResponse instantiates a new LearningProviderCollectionResponse and sets the default values. +// NewLearningProviderCollectionResponse instantiates a new learningProviderCollectionResponse and sets the default values. func NewLearningProviderCollectionResponse()(*LearningProviderCollectionResponse) { m := &LearningProviderCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/learning_self_initiated_course.go b/models/learning_self_initiated_course.go index 3dd117e58b4..61100dd1446 100644 --- a/models/learning_self_initiated_course.go +++ b/models/learning_self_initiated_course.go @@ -9,7 +9,7 @@ import ( type LearningSelfInitiatedCourse struct { LearningCourseActivity } -// NewLearningSelfInitiatedCourse instantiates a new LearningSelfInitiatedCourse and sets the default values. +// NewLearningSelfInitiatedCourse instantiates a new learningSelfInitiatedCourse and sets the default values. func NewLearningSelfInitiatedCourse()(*LearningSelfInitiatedCourse) { m := &LearningSelfInitiatedCourse{ LearningCourseActivity: *NewLearningCourseActivity(), diff --git a/models/license_details.go b/models/license_details.go index 3b602a51666..19f0134e3f3 100644 --- a/models/license_details.go +++ b/models/license_details.go @@ -8,6 +8,8 @@ import ( // LicenseDetails type LicenseDetails struct { Entity + // The OdataType property + OdataType *string } // NewLicenseDetails instantiates a new licenseDetails and sets the default values. func NewLicenseDetails()(*LicenseDetails) { diff --git a/models/license_details_collection_response.go b/models/license_details_collection_response.go index ab4a3ee1f99..7ad1cae7639 100644 --- a/models/license_details_collection_response.go +++ b/models/license_details_collection_response.go @@ -8,7 +8,7 @@ import ( type LicenseDetailsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewLicenseDetailsCollectionResponse instantiates a new LicenseDetailsCollectionResponse and sets the default values. +// NewLicenseDetailsCollectionResponse instantiates a new licenseDetailsCollectionResponse and sets the default values. func NewLicenseDetailsCollectionResponse()(*LicenseDetailsCollectionResponse) { m := &LicenseDetailsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/linked_resource.go b/models/linked_resource.go index dca32a3af4d..1408f90cbf7 100644 --- a/models/linked_resource.go +++ b/models/linked_resource.go @@ -7,6 +7,8 @@ import ( // LinkedResource type LinkedResource struct { Entity + // The OdataType property + OdataType *string } // NewLinkedResource instantiates a new linkedResource and sets the default values. func NewLinkedResource()(*LinkedResource) { diff --git a/models/linked_resource_collection_response.go b/models/linked_resource_collection_response.go index 81b90911e12..e961cf2f13a 100644 --- a/models/linked_resource_collection_response.go +++ b/models/linked_resource_collection_response.go @@ -8,7 +8,7 @@ import ( type LinkedResourceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewLinkedResourceCollectionResponse instantiates a new LinkedResourceCollectionResponse and sets the default values. +// NewLinkedResourceCollectionResponse instantiates a new linkedResourceCollectionResponse and sets the default values. func NewLinkedResourceCollectionResponse()(*LinkedResourceCollectionResponse) { m := &LinkedResourceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/list.go b/models/list.go index 7678c1eb389..ce1ee24076d 100644 --- a/models/list.go +++ b/models/list.go @@ -7,6 +7,8 @@ import ( // List type List struct { BaseItem + // The OdataType property + OdataType *string } // NewList instantiates a new list and sets the default values. func NewList()(*List) { diff --git a/models/list_collection_response.go b/models/list_collection_response.go index e48a88e811b..7a991729433 100644 --- a/models/list_collection_response.go +++ b/models/list_collection_response.go @@ -8,7 +8,7 @@ import ( type ListCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewListCollectionResponse instantiates a new ListCollectionResponse and sets the default values. +// NewListCollectionResponse instantiates a new listCollectionResponse and sets the default values. func NewListCollectionResponse()(*ListCollectionResponse) { m := &ListCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/list_item.go b/models/list_item.go index 9c33fc07834..7722f789456 100644 --- a/models/list_item.go +++ b/models/list_item.go @@ -7,6 +7,8 @@ import ( // ListItem type ListItem struct { BaseItem + // The OdataType property + OdataType *string } // NewListItem instantiates a new listItem and sets the default values. func NewListItem()(*ListItem) { diff --git a/models/list_item_collection_response.go b/models/list_item_collection_response.go index 35df18add38..6b6d84545bb 100644 --- a/models/list_item_collection_response.go +++ b/models/list_item_collection_response.go @@ -8,7 +8,7 @@ import ( type ListItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewListItemCollectionResponse instantiates a new ListItemCollectionResponse and sets the default values. +// NewListItemCollectionResponse instantiates a new listItemCollectionResponse and sets the default values. func NewListItemCollectionResponse()(*ListItemCollectionResponse) { m := &ListItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/list_item_version.go b/models/list_item_version.go index 869862638bf..2018141cd01 100644 --- a/models/list_item_version.go +++ b/models/list_item_version.go @@ -8,7 +8,7 @@ import ( type ListItemVersion struct { BaseItemVersion } -// NewListItemVersion instantiates a new ListItemVersion and sets the default values. +// NewListItemVersion instantiates a new listItemVersion and sets the default values. func NewListItemVersion()(*ListItemVersion) { m := &ListItemVersion{ BaseItemVersion: *NewBaseItemVersion(), diff --git a/models/list_item_version_collection_response.go b/models/list_item_version_collection_response.go index 120b8fab212..e6ce1d81bda 100644 --- a/models/list_item_version_collection_response.go +++ b/models/list_item_version_collection_response.go @@ -8,7 +8,7 @@ import ( type ListItemVersionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewListItemVersionCollectionResponse instantiates a new ListItemVersionCollectionResponse and sets the default values. +// NewListItemVersionCollectionResponse instantiates a new listItemVersionCollectionResponse and sets the default values. func NewListItemVersionCollectionResponse()(*ListItemVersionCollectionResponse) { m := &ListItemVersionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/localized_notification_message.go b/models/localized_notification_message.go index 73edce2944f..f5e31cd401a 100644 --- a/models/localized_notification_message.go +++ b/models/localized_notification_message.go @@ -8,6 +8,8 @@ import ( // LocalizedNotificationMessage the text content of a Notification Message Template for the specified locale. type LocalizedNotificationMessage struct { Entity + // The OdataType property + OdataType *string } // NewLocalizedNotificationMessage instantiates a new localizedNotificationMessage and sets the default values. func NewLocalizedNotificationMessage()(*LocalizedNotificationMessage) { diff --git a/models/localized_notification_message_collection_response.go b/models/localized_notification_message_collection_response.go index f9640c4de40..1e081b41bb8 100644 --- a/models/localized_notification_message_collection_response.go +++ b/models/localized_notification_message_collection_response.go @@ -8,7 +8,7 @@ import ( type LocalizedNotificationMessageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewLocalizedNotificationMessageCollectionResponse instantiates a new LocalizedNotificationMessageCollectionResponse and sets the default values. +// NewLocalizedNotificationMessageCollectionResponse instantiates a new localizedNotificationMessageCollectionResponse and sets the default values. func NewLocalizedNotificationMessageCollectionResponse()(*LocalizedNotificationMessageCollectionResponse) { m := &LocalizedNotificationMessageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/locate_device_action_result.go b/models/locate_device_action_result.go index cd41f9d1362..8a2ae70c1f4 100644 --- a/models/locate_device_action_result.go +++ b/models/locate_device_action_result.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// LocateDeviceActionResult +// LocateDeviceActionResult locate device action result type LocateDeviceActionResult struct { DeviceActionResult + // The OdataType property + OdataType *string } -// NewLocateDeviceActionResult instantiates a new LocateDeviceActionResult and sets the default values. +// NewLocateDeviceActionResult instantiates a new locateDeviceActionResult and sets the default values. func NewLocateDeviceActionResult()(*LocateDeviceActionResult) { m := &LocateDeviceActionResult{ DeviceActionResult: *NewDeviceActionResult(), diff --git a/models/location_constraint_item.go b/models/location_constraint_item.go index c7faa44db98..58a40194a9a 100644 --- a/models/location_constraint_item.go +++ b/models/location_constraint_item.go @@ -8,7 +8,7 @@ import ( type LocationConstraintItem struct { Location } -// NewLocationConstraintItem instantiates a new LocationConstraintItem and sets the default values. +// NewLocationConstraintItem instantiates a new locationConstraintItem and sets the default values. func NewLocationConstraintItem()(*LocationConstraintItem) { m := &LocationConstraintItem{ Location: *NewLocation(), @@ -24,6 +24,16 @@ func CreateLocationConstraintItemFromDiscriminatorValue(parseNode i878a80d2330e8 // GetFieldDeserializers the deserialization information for the current model func (m *LocationConstraintItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Location.GetFieldDeserializers() + 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["resolveAvailability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -36,6 +46,17 @@ func (m *LocationConstraintItem) GetFieldDeserializers()(map[string]func(i878a80 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *LocationConstraintItem) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetResolveAvailability gets the resolveAvailability property value. If set to true and the specified resource is busy, findMeetingTimes looks for another resource that is free. If set to false and the specified resource is busy, findMeetingTimes returns the resource best ranked in the user's cache without checking if it's free. Default is true. func (m *LocationConstraintItem) GetResolveAvailability()(*bool) { val, err := m.GetBackingStore().Get("resolveAvailability") @@ -53,6 +74,12 @@ func (m *LocationConstraintItem) Serialize(writer i878a80d2330e89d26896388a3f487 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("resolveAvailability", m.GetResolveAvailability()) if err != nil { @@ -61,6 +88,13 @@ func (m *LocationConstraintItem) Serialize(writer i878a80d2330e89d26896388a3f487 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *LocationConstraintItem) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetResolveAvailability sets the resolveAvailability property value. If set to true and the specified resource is busy, findMeetingTimes looks for another resource that is free. If set to false and the specified resource is busy, findMeetingTimes returns the resource best ranked in the user's cache without checking if it's free. Default is true. func (m *LocationConstraintItem) SetResolveAvailability(value *bool)() { err := m.GetBackingStore().Set("resolveAvailability", value) @@ -72,6 +106,8 @@ func (m *LocationConstraintItem) SetResolveAvailability(value *bool)() { type LocationConstraintItemable interface { Locationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetResolveAvailability()(*bool) + SetOdataType(value *string)() SetResolveAvailability(value *bool)() } diff --git a/models/logic_app_trigger_endpoint_configuration.go b/models/logic_app_trigger_endpoint_configuration.go index aef6f9a526f..ccfe7952db9 100644 --- a/models/logic_app_trigger_endpoint_configuration.go +++ b/models/logic_app_trigger_endpoint_configuration.go @@ -8,7 +8,7 @@ import ( type LogicAppTriggerEndpointConfiguration struct { CustomExtensionEndpointConfiguration } -// NewLogicAppTriggerEndpointConfiguration instantiates a new LogicAppTriggerEndpointConfiguration and sets the default values. +// NewLogicAppTriggerEndpointConfiguration instantiates a new logicAppTriggerEndpointConfiguration and sets the default values. func NewLogicAppTriggerEndpointConfiguration()(*LogicAppTriggerEndpointConfiguration) { m := &LogicAppTriggerEndpointConfiguration{ CustomExtensionEndpointConfiguration: *NewCustomExtensionEndpointConfiguration(), @@ -34,6 +34,16 @@ func (m *LogicAppTriggerEndpointConfiguration) GetFieldDeserializers()(map[strin } 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["resourceGroupName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -77,6 +87,17 @@ func (m *LogicAppTriggerEndpointConfiguration) GetLogicAppWorkflowName()(*string } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *LogicAppTriggerEndpointConfiguration) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetResourceGroupName gets the resourceGroupName property value. The Azure resource group name for the logic app. func (m *LogicAppTriggerEndpointConfiguration) GetResourceGroupName()(*string) { val, err := m.GetBackingStore().Get("resourceGroupName") @@ -122,6 +143,12 @@ func (m *LogicAppTriggerEndpointConfiguration) Serialize(writer i878a80d2330e89d return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("resourceGroupName", m.GetResourceGroupName()) if err != nil { @@ -149,6 +176,13 @@ func (m *LogicAppTriggerEndpointConfiguration) SetLogicAppWorkflowName(value *st panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *LogicAppTriggerEndpointConfiguration) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetResourceGroupName sets the resourceGroupName property value. The Azure resource group name for the logic app. func (m *LogicAppTriggerEndpointConfiguration) SetResourceGroupName(value *string)() { err := m.GetBackingStore().Set("resourceGroupName", value) @@ -175,10 +209,12 @@ type LogicAppTriggerEndpointConfigurationable interface { CustomExtensionEndpointConfigurationable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetLogicAppWorkflowName()(*string) + GetOdataType()(*string) GetResourceGroupName()(*string) GetSubscriptionId()(*string) GetUrl()(*string) SetLogicAppWorkflowName(value *string)() + SetOdataType(value *string)() SetResourceGroupName(value *string)() SetSubscriptionId(value *string)() SetUrl(value *string)() diff --git a/models/login_page.go b/models/login_page.go index 5e9b97805cb..2eee93711b3 100644 --- a/models/login_page.go +++ b/models/login_page.go @@ -8,6 +8,8 @@ import ( // LoginPage type LoginPage struct { Entity + // The OdataType property + OdataType *string } // NewLoginPage instantiates a new loginPage and sets the default values. func NewLoginPage()(*LoginPage) { diff --git a/models/login_page_collection_response.go b/models/login_page_collection_response.go index de7e8f197fd..ff699ff9934 100644 --- a/models/login_page_collection_response.go +++ b/models/login_page_collection_response.go @@ -8,7 +8,7 @@ import ( type LoginPageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewLoginPageCollectionResponse instantiates a new LoginPageCollectionResponse and sets the default values. +// NewLoginPageCollectionResponse instantiates a new loginPageCollectionResponse and sets the default values. func NewLoginPageCollectionResponse()(*LoginPageCollectionResponse) { m := &LoginPageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/long_running_operation.go b/models/long_running_operation.go index f5c324d699e..f0d8653b309 100644 --- a/models/long_running_operation.go +++ b/models/long_running_operation.go @@ -8,6 +8,8 @@ import ( // LongRunningOperation type LongRunningOperation struct { Entity + // The OdataType property + OdataType *string } // NewLongRunningOperation instantiates a new longRunningOperation and sets the default values. func NewLongRunningOperation()(*LongRunningOperation) { diff --git a/models/long_running_operation_collection_response.go b/models/long_running_operation_collection_response.go index 40a829e5da2..33c61dd6a40 100644 --- a/models/long_running_operation_collection_response.go +++ b/models/long_running_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type LongRunningOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewLongRunningOperationCollectionResponse instantiates a new LongRunningOperationCollectionResponse and sets the default values. +// NewLongRunningOperationCollectionResponse instantiates a new longRunningOperationCollectionResponse and sets the default values. func NewLongRunningOperationCollectionResponse()(*LongRunningOperationCollectionResponse) { m := &LongRunningOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/lookup_result_row.go b/models/lookup_result_row.go index 88bc3ce0eec..94ce8f88ba3 100644 --- a/models/lookup_result_row.go +++ b/models/lookup_result_row.go @@ -7,6 +7,8 @@ import ( // LookupResultRow type LookupResultRow struct { Entity + // The OdataType property + OdataType *string } // NewLookupResultRow instantiates a new lookupResultRow and sets the default values. func NewLookupResultRow()(*LookupResultRow) { diff --git a/models/mac_app_identifier.go b/models/mac_app_identifier.go index 827805ecec4..e258205be9e 100644 --- a/models/mac_app_identifier.go +++ b/models/mac_app_identifier.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacAppIdentifier +// MacAppIdentifier the identifier for a Mac app. type MacAppIdentifier struct { MobileAppIdentifier } -// NewMacAppIdentifier instantiates a new MacAppIdentifier and sets the default values. +// NewMacAppIdentifier instantiates a new macAppIdentifier and sets the default values. func NewMacAppIdentifier()(*MacAppIdentifier) { m := &MacAppIdentifier{ MobileAppIdentifier: *NewMobileAppIdentifier(), @@ -45,8 +45,29 @@ func (m *MacAppIdentifier) GetFieldDeserializers()(map[string]func(i878a80d2330e } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MacAppIdentifier) 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 *MacAppIdentifier) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.MobileAppIdentifier.Serialize(writer) @@ -59,6 +80,12 @@ func (m *MacAppIdentifier) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetBundleId sets the bundleId property value. The identifier for an app, as specified in the app store. @@ -68,10 +95,19 @@ func (m *MacAppIdentifier) SetBundleId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MacAppIdentifier) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // MacAppIdentifierable type MacAppIdentifierable interface { MobileAppIdentifierable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBundleId()(*string) + GetOdataType()(*string) SetBundleId(value *string)() + SetOdataType(value *string)() } diff --git a/models/mac_o_s_azure_ad_single_sign_on_extension.go b/models/mac_o_s_azure_ad_single_sign_on_extension.go index 6f31913211c..4e1c9a5a161 100644 --- a/models/mac_o_s_azure_ad_single_sign_on_extension.go +++ b/models/mac_o_s_azure_ad_single_sign_on_extension.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSAzureAdSingleSignOnExtension +// MacOSAzureAdSingleSignOnExtension represents an Azure AD-type Single Sign-On extension profile for macOS devices. type MacOSAzureAdSingleSignOnExtension struct { MacOSSingleSignOnExtension } -// NewMacOSAzureAdSingleSignOnExtension instantiates a new MacOSAzureAdSingleSignOnExtension and sets the default values. +// NewMacOSAzureAdSingleSignOnExtension instantiates a new macOSAzureAdSingleSignOnExtension and sets the default values. func NewMacOSAzureAdSingleSignOnExtension()(*MacOSAzureAdSingleSignOnExtension) { m := &MacOSAzureAdSingleSignOnExtension{ MacOSSingleSignOnExtension: *NewMacOSSingleSignOnExtension(), diff --git a/models/mac_o_s_certificate_profile_base.go b/models/mac_o_s_certificate_profile_base.go index e8101c2b53d..96ee0563ef3 100644 --- a/models/mac_o_s_certificate_profile_base.go +++ b/models/mac_o_s_certificate_profile_base.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSCertificateProfileBase +// MacOSCertificateProfileBase mac OS certificate profile. type MacOSCertificateProfileBase struct { DeviceConfiguration } diff --git a/models/mac_o_s_compliance_policy.go b/models/mac_o_s_compliance_policy.go index 480c0ce7d74..b88a34d0c4c 100644 --- a/models/mac_o_s_compliance_policy.go +++ b/models/mac_o_s_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSCompliancePolicy +// MacOSCompliancePolicy this class contains compliance settings for Mac OS. type MacOSCompliancePolicy struct { DeviceCompliancePolicy } -// NewMacOSCompliancePolicy instantiates a new MacOSCompliancePolicy and sets the default values. +// NewMacOSCompliancePolicy instantiates a new macOSCompliancePolicy and sets the default values. func NewMacOSCompliancePolicy()(*MacOSCompliancePolicy) { m := &MacOSCompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/mac_o_s_credential_single_sign_on_extension.go b/models/mac_o_s_credential_single_sign_on_extension.go index 154f31d5c46..5b6d2d6b2af 100644 --- a/models/mac_o_s_credential_single_sign_on_extension.go +++ b/models/mac_o_s_credential_single_sign_on_extension.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSCredentialSingleSignOnExtension +// MacOSCredentialSingleSignOnExtension represents a Credential-type Single Sign-On extension profile for macOS devices. type MacOSCredentialSingleSignOnExtension struct { MacOSSingleSignOnExtension } -// NewMacOSCredentialSingleSignOnExtension instantiates a new MacOSCredentialSingleSignOnExtension and sets the default values. +// NewMacOSCredentialSingleSignOnExtension instantiates a new macOSCredentialSingleSignOnExtension and sets the default values. func NewMacOSCredentialSingleSignOnExtension()(*MacOSCredentialSingleSignOnExtension) { m := &MacOSCredentialSingleSignOnExtension{ MacOSSingleSignOnExtension: *NewMacOSSingleSignOnExtension(), diff --git a/models/mac_o_s_custom_app_configuration.go b/models/mac_o_s_custom_app_configuration.go index 9b2614d4bf7..e9b1761422e 100644 --- a/models/mac_o_s_custom_app_configuration.go +++ b/models/mac_o_s_custom_app_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSCustomAppConfiguration +// MacOSCustomAppConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the macOSCustomAppConfiguration resource. type MacOSCustomAppConfiguration struct { DeviceConfiguration } -// NewMacOSCustomAppConfiguration instantiates a new MacOSCustomAppConfiguration and sets the default values. +// NewMacOSCustomAppConfiguration instantiates a new macOSCustomAppConfiguration and sets the default values. func NewMacOSCustomAppConfiguration()(*MacOSCustomAppConfiguration) { m := &MacOSCustomAppConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/mac_o_s_custom_configuration.go b/models/mac_o_s_custom_configuration.go index e665f62ba98..17fcd934a03 100644 --- a/models/mac_o_s_custom_configuration.go +++ b/models/mac_o_s_custom_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSCustomConfiguration +// MacOSCustomConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the macOSCustomConfiguration resource. type MacOSCustomConfiguration struct { DeviceConfiguration } -// NewMacOSCustomConfiguration instantiates a new MacOSCustomConfiguration and sets the default values. +// NewMacOSCustomConfiguration instantiates a new macOSCustomConfiguration and sets the default values. func NewMacOSCustomConfiguration()(*MacOSCustomConfiguration) { m := &MacOSCustomConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/mac_o_s_device_features_configuration.go b/models/mac_o_s_device_features_configuration.go index 378f1d14de8..b0c68ec37b8 100644 --- a/models/mac_o_s_device_features_configuration.go +++ b/models/mac_o_s_device_features_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSDeviceFeaturesConfiguration +// MacOSDeviceFeaturesConfiguration macOS device features configuration profile. type MacOSDeviceFeaturesConfiguration struct { AppleDeviceFeaturesConfigurationBase } -// NewMacOSDeviceFeaturesConfiguration instantiates a new MacOSDeviceFeaturesConfiguration and sets the default values. +// NewMacOSDeviceFeaturesConfiguration instantiates a new macOSDeviceFeaturesConfiguration and sets the default values. func NewMacOSDeviceFeaturesConfiguration()(*MacOSDeviceFeaturesConfiguration) { m := &MacOSDeviceFeaturesConfiguration{ AppleDeviceFeaturesConfigurationBase: *NewAppleDeviceFeaturesConfigurationBase(), diff --git a/models/mac_o_s_dmg_app.go b/models/mac_o_s_dmg_app.go index 958d0d67696..3a792ccf3d5 100644 --- a/models/mac_o_s_dmg_app.go +++ b/models/mac_o_s_dmg_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSDmgApp +// MacOSDmgApp contains properties and inherited properties for the MacOS DMG App. type MacOSDmgApp struct { MobileLobApp } -// NewMacOSDmgApp instantiates a new MacOSDmgApp and sets the default values. +// NewMacOSDmgApp instantiates a new macOSDmgApp and sets the default values. func NewMacOSDmgApp()(*MacOSDmgApp) { m := &MacOSDmgApp{ MobileLobApp: *NewMobileLobApp(), diff --git a/models/mac_o_s_endpoint_protection_configuration.go b/models/mac_o_s_endpoint_protection_configuration.go index 7d3643fb437..dc6f4e3aef0 100644 --- a/models/mac_o_s_endpoint_protection_configuration.go +++ b/models/mac_o_s_endpoint_protection_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSEndpointProtectionConfiguration +// MacOSEndpointProtectionConfiguration macOS endpoint protection configuration profile. type MacOSEndpointProtectionConfiguration struct { DeviceConfiguration } -// NewMacOSEndpointProtectionConfiguration instantiates a new MacOSEndpointProtectionConfiguration and sets the default values. +// NewMacOSEndpointProtectionConfiguration instantiates a new macOSEndpointProtectionConfiguration and sets the default values. func NewMacOSEndpointProtectionConfiguration()(*MacOSEndpointProtectionConfiguration) { m := &MacOSEndpointProtectionConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/mac_o_s_enterprise_wi_fi_configuration.go b/models/mac_o_s_enterprise_wi_fi_configuration.go index 435c3b6f545..ed6f968c4a9 100644 --- a/models/mac_o_s_enterprise_wi_fi_configuration.go +++ b/models/mac_o_s_enterprise_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSEnterpriseWiFiConfiguration +// MacOSEnterpriseWiFiConfiguration macOS Wi-Fi WPA-Enterprise/WPA2-Enterprise configuration profile. type MacOSEnterpriseWiFiConfiguration struct { MacOSWiFiConfiguration } -// NewMacOSEnterpriseWiFiConfiguration instantiates a new MacOSEnterpriseWiFiConfiguration and sets the default values. +// NewMacOSEnterpriseWiFiConfiguration instantiates a new macOSEnterpriseWiFiConfiguration and sets the default values. func NewMacOSEnterpriseWiFiConfiguration()(*MacOSEnterpriseWiFiConfiguration) { m := &MacOSEnterpriseWiFiConfiguration{ MacOSWiFiConfiguration: *NewMacOSWiFiConfiguration(), diff --git a/models/mac_o_s_extensions_configuration.go b/models/mac_o_s_extensions_configuration.go index dedcddf6745..4988b3a3a8b 100644 --- a/models/mac_o_s_extensions_configuration.go +++ b/models/mac_o_s_extensions_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSExtensionsConfiguration +// MacOSExtensionsConfiguration macOS extensions configuration profile. type MacOSExtensionsConfiguration struct { DeviceConfiguration } -// NewMacOSExtensionsConfiguration instantiates a new MacOSExtensionsConfiguration and sets the default values. +// NewMacOSExtensionsConfiguration instantiates a new macOSExtensionsConfiguration and sets the default values. func NewMacOSExtensionsConfiguration()(*MacOSExtensionsConfiguration) { m := &MacOSExtensionsConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/mac_o_s_general_device_configuration.go b/models/mac_o_s_general_device_configuration.go index d52f01376cd..380d189f2d0 100644 --- a/models/mac_o_s_general_device_configuration.go +++ b/models/mac_o_s_general_device_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSGeneralDeviceConfiguration +// MacOSGeneralDeviceConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the macOSGeneralDeviceConfiguration resource. type MacOSGeneralDeviceConfiguration struct { DeviceConfiguration } -// NewMacOSGeneralDeviceConfiguration instantiates a new MacOSGeneralDeviceConfiguration and sets the default values. +// NewMacOSGeneralDeviceConfiguration instantiates a new macOSGeneralDeviceConfiguration and sets the default values. func NewMacOSGeneralDeviceConfiguration()(*MacOSGeneralDeviceConfiguration) { m := &MacOSGeneralDeviceConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/mac_o_s_imported_p_f_x_certificate_profile.go b/models/mac_o_s_imported_p_f_x_certificate_profile.go index 6c968f0849f..1e589ae613d 100644 --- a/models/mac_o_s_imported_p_f_x_certificate_profile.go +++ b/models/mac_o_s_imported_p_f_x_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSImportedPFXCertificateProfile +// MacOSImportedPFXCertificateProfile macOS PFX Import certificate profile type MacOSImportedPFXCertificateProfile struct { MacOSCertificateProfileBase } -// NewMacOSImportedPFXCertificateProfile instantiates a new MacOSImportedPFXCertificateProfile and sets the default values. +// NewMacOSImportedPFXCertificateProfile instantiates a new macOSImportedPFXCertificateProfile and sets the default values. func NewMacOSImportedPFXCertificateProfile()(*MacOSImportedPFXCertificateProfile) { m := &MacOSImportedPFXCertificateProfile{ MacOSCertificateProfileBase: *NewMacOSCertificateProfileBase(), diff --git a/models/mac_o_s_included_app.go b/models/mac_o_s_included_app.go index 95357042472..f33073cadb9 100644 --- a/models/mac_o_s_included_app.go +++ b/models/mac_o_s_included_app.go @@ -10,7 +10,7 @@ type MacOSIncludedApp struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewMacOSIncludedApp instantiates a new MacOSIncludedApp and sets the default values. +// NewMacOSIncludedApp instantiates a new macOSIncludedApp and sets the default values. func NewMacOSIncludedApp()(*MacOSIncludedApp) { m := &MacOSIncludedApp{ } diff --git a/models/mac_o_s_kerberos_single_sign_on_extension.go b/models/mac_o_s_kerberos_single_sign_on_extension.go index d35b3ee6027..862e2c9dce4 100644 --- a/models/mac_o_s_kerberos_single_sign_on_extension.go +++ b/models/mac_o_s_kerberos_single_sign_on_extension.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSKerberosSingleSignOnExtension +// MacOSKerberosSingleSignOnExtension represents a Kerberos-type Single Sign-On extension profile for macOS devices. type MacOSKerberosSingleSignOnExtension struct { MacOSSingleSignOnExtension } -// NewMacOSKerberosSingleSignOnExtension instantiates a new MacOSKerberosSingleSignOnExtension and sets the default values. +// NewMacOSKerberosSingleSignOnExtension instantiates a new macOSKerberosSingleSignOnExtension and sets the default values. func NewMacOSKerberosSingleSignOnExtension()(*MacOSKerberosSingleSignOnExtension) { m := &MacOSKerberosSingleSignOnExtension{ MacOSSingleSignOnExtension: *NewMacOSSingleSignOnExtension(), diff --git a/models/mac_o_s_lob_app.go b/models/mac_o_s_lob_app.go index fa7f3779ceb..0a7a065cc99 100644 --- a/models/mac_o_s_lob_app.go +++ b/models/mac_o_s_lob_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSLobApp +// MacOSLobApp contains properties and inherited properties for the macOS LOB App. type MacOSLobApp struct { MobileLobApp } -// NewMacOSLobApp instantiates a new MacOSLobApp and sets the default values. +// NewMacOSLobApp instantiates a new macOSLobApp and sets the default values. func NewMacOSLobApp()(*MacOSLobApp) { m := &MacOSLobApp{ MobileLobApp: *NewMobileLobApp(), diff --git a/models/mac_o_s_mdatp_app.go b/models/mac_o_s_mdatp_app.go index 83ad7eab509..8260e26da74 100644 --- a/models/mac_o_s_mdatp_app.go +++ b/models/mac_o_s_mdatp_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSMdatpApp +// MacOSMdatpApp contains properties and inherited properties for the macOS Microsoft Defender Advanced Threat Protection (MDATP) App. This is deprecated for MacOSMicrosoftDefenderApp in 2305 (May 2023). type MacOSMdatpApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewMacOSMdatpApp instantiates a new MacOSMdatpApp and sets the default values. +// NewMacOSMdatpApp instantiates a new macOSMdatpApp and sets the default values. func NewMacOSMdatpApp()(*MacOSMdatpApp) { m := &MacOSMdatpApp{ MobileApp: *NewMobileApp(), diff --git a/models/mac_o_s_microsoft_defender_app.go b/models/mac_o_s_microsoft_defender_app.go index d5c38cd5501..786e4d752a1 100644 --- a/models/mac_o_s_microsoft_defender_app.go +++ b/models/mac_o_s_microsoft_defender_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSMicrosoftDefenderApp +// MacOSMicrosoftDefenderApp contains properties and inherited properties for the macOS Microsoft Defender App. type MacOSMicrosoftDefenderApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewMacOSMicrosoftDefenderApp instantiates a new MacOSMicrosoftDefenderApp and sets the default values. +// NewMacOSMicrosoftDefenderApp instantiates a new macOSMicrosoftDefenderApp and sets the default values. func NewMacOSMicrosoftDefenderApp()(*MacOSMicrosoftDefenderApp) { m := &MacOSMicrosoftDefenderApp{ MobileApp: *NewMobileApp(), diff --git a/models/mac_o_s_microsoft_edge_app.go b/models/mac_o_s_microsoft_edge_app.go index b154a05a272..ed4ef000b14 100644 --- a/models/mac_o_s_microsoft_edge_app.go +++ b/models/mac_o_s_microsoft_edge_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSMicrosoftEdgeApp +// MacOSMicrosoftEdgeApp contains properties and inherited properties for the macOS Microsoft Edge App. type MacOSMicrosoftEdgeApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewMacOSMicrosoftEdgeApp instantiates a new MacOSMicrosoftEdgeApp and sets the default values. +// NewMacOSMicrosoftEdgeApp instantiates a new macOSMicrosoftEdgeApp and sets the default values. func NewMacOSMicrosoftEdgeApp()(*MacOSMicrosoftEdgeApp) { m := &MacOSMicrosoftEdgeApp{ MobileApp: *NewMobileApp(), diff --git a/models/mac_o_s_office_suite_app.go b/models/mac_o_s_office_suite_app.go index d8c44fc689f..c6b0d91fb7e 100644 --- a/models/mac_o_s_office_suite_app.go +++ b/models/mac_o_s_office_suite_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSOfficeSuiteApp +// MacOSOfficeSuiteApp contains properties and inherited properties for the MacOS Office Suite App. type MacOSOfficeSuiteApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewMacOSOfficeSuiteApp instantiates a new MacOSOfficeSuiteApp and sets the default values. +// NewMacOSOfficeSuiteApp instantiates a new macOSOfficeSuiteApp and sets the default values. func NewMacOSOfficeSuiteApp()(*MacOSOfficeSuiteApp) { m := &MacOSOfficeSuiteApp{ MobileApp: *NewMobileApp(), diff --git a/models/mac_o_s_pkcs_certificate_profile.go b/models/mac_o_s_pkcs_certificate_profile.go index d882cb1aa12..ce9c152c039 100644 --- a/models/mac_o_s_pkcs_certificate_profile.go +++ b/models/mac_o_s_pkcs_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSPkcsCertificateProfile +// MacOSPkcsCertificateProfile macOS PKCS certificate profile. type MacOSPkcsCertificateProfile struct { MacOSCertificateProfileBase } -// NewMacOSPkcsCertificateProfile instantiates a new MacOSPkcsCertificateProfile and sets the default values. +// NewMacOSPkcsCertificateProfile instantiates a new macOSPkcsCertificateProfile and sets the default values. func NewMacOSPkcsCertificateProfile()(*MacOSPkcsCertificateProfile) { m := &MacOSPkcsCertificateProfile{ MacOSCertificateProfileBase: *NewMacOSCertificateProfileBase(), diff --git a/models/mac_o_s_pkg_app.go b/models/mac_o_s_pkg_app.go index d4e3f9f69c8..1b82debdf1e 100644 --- a/models/mac_o_s_pkg_app.go +++ b/models/mac_o_s_pkg_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSPkgApp +// MacOSPkgApp contains properties and inherited properties for the MacOSPkgApp. type MacOSPkgApp struct { MobileLobApp } -// NewMacOSPkgApp instantiates a new MacOSPkgApp and sets the default values. +// NewMacOSPkgApp instantiates a new macOSPkgApp and sets the default values. func NewMacOSPkgApp()(*MacOSPkgApp) { m := &MacOSPkgApp{ MobileLobApp: *NewMobileLobApp(), diff --git a/models/mac_o_s_redirect_single_sign_on_extension.go b/models/mac_o_s_redirect_single_sign_on_extension.go index 58baff3f12b..87513cbb10b 100644 --- a/models/mac_o_s_redirect_single_sign_on_extension.go +++ b/models/mac_o_s_redirect_single_sign_on_extension.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSRedirectSingleSignOnExtension +// MacOSRedirectSingleSignOnExtension represents a Redirect-type Single Sign-On extension profile for macOS devices. type MacOSRedirectSingleSignOnExtension struct { MacOSSingleSignOnExtension } -// NewMacOSRedirectSingleSignOnExtension instantiates a new MacOSRedirectSingleSignOnExtension and sets the default values. +// NewMacOSRedirectSingleSignOnExtension instantiates a new macOSRedirectSingleSignOnExtension and sets the default values. func NewMacOSRedirectSingleSignOnExtension()(*MacOSRedirectSingleSignOnExtension) { m := &MacOSRedirectSingleSignOnExtension{ MacOSSingleSignOnExtension: *NewMacOSSingleSignOnExtension(), diff --git a/models/mac_o_s_scep_certificate_profile.go b/models/mac_o_s_scep_certificate_profile.go index 91ce3ee4685..1bf71602bc9 100644 --- a/models/mac_o_s_scep_certificate_profile.go +++ b/models/mac_o_s_scep_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSScepCertificateProfile +// MacOSScepCertificateProfile mac OS SCEP certificate profile. type MacOSScepCertificateProfile struct { MacOSCertificateProfileBase } -// NewMacOSScepCertificateProfile instantiates a new MacOSScepCertificateProfile and sets the default values. +// NewMacOSScepCertificateProfile instantiates a new macOSScepCertificateProfile and sets the default values. func NewMacOSScepCertificateProfile()(*MacOSScepCertificateProfile) { m := &MacOSScepCertificateProfile{ MacOSCertificateProfileBase: *NewMacOSCertificateProfileBase(), diff --git a/models/mac_o_s_single_sign_on_extension.go b/models/mac_o_s_single_sign_on_extension.go index 558e21a3d1e..cec6e6a3cbf 100644 --- a/models/mac_o_s_single_sign_on_extension.go +++ b/models/mac_o_s_single_sign_on_extension.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSSingleSignOnExtension +// MacOSSingleSignOnExtension an abstract base class for all macOS-specific single sign-on extension types. type MacOSSingleSignOnExtension struct { SingleSignOnExtension + // The OdataType property + OdataType *string } // NewMacOSSingleSignOnExtension instantiates a new macOSSingleSignOnExtension and sets the default values. func NewMacOSSingleSignOnExtension()(*MacOSSingleSignOnExtension) { diff --git a/models/mac_o_s_software_update_account_summary.go b/models/mac_o_s_software_update_account_summary.go index 1941d9484c3..1b0e6689ba4 100644 --- a/models/mac_o_s_software_update_account_summary.go +++ b/models/mac_o_s_software_update_account_summary.go @@ -8,6 +8,8 @@ import ( // MacOSSoftwareUpdateAccountSummary macOS software update account summary report for a device and user type MacOSSoftwareUpdateAccountSummary struct { Entity + // The OdataType property + OdataType *string } // NewMacOSSoftwareUpdateAccountSummary instantiates a new macOSSoftwareUpdateAccountSummary and sets the default values. func NewMacOSSoftwareUpdateAccountSummary()(*MacOSSoftwareUpdateAccountSummary) { diff --git a/models/mac_o_s_software_update_account_summary_collection_response.go b/models/mac_o_s_software_update_account_summary_collection_response.go index f2a98e150b9..029d487d300 100644 --- a/models/mac_o_s_software_update_account_summary_collection_response.go +++ b/models/mac_o_s_software_update_account_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type MacOSSoftwareUpdateAccountSummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMacOSSoftwareUpdateAccountSummaryCollectionResponse instantiates a new MacOSSoftwareUpdateAccountSummaryCollectionResponse and sets the default values. +// NewMacOSSoftwareUpdateAccountSummaryCollectionResponse instantiates a new macOSSoftwareUpdateAccountSummaryCollectionResponse and sets the default values. func NewMacOSSoftwareUpdateAccountSummaryCollectionResponse()(*MacOSSoftwareUpdateAccountSummaryCollectionResponse) { m := &MacOSSoftwareUpdateAccountSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mac_o_s_software_update_category_summary.go b/models/mac_o_s_software_update_category_summary.go index eccbe365221..2ed955556b5 100644 --- a/models/mac_o_s_software_update_category_summary.go +++ b/models/mac_o_s_software_update_category_summary.go @@ -8,6 +8,8 @@ import ( // MacOSSoftwareUpdateCategorySummary macOS software update category summary report for a device and user type MacOSSoftwareUpdateCategorySummary struct { Entity + // The OdataType property + OdataType *string } // NewMacOSSoftwareUpdateCategorySummary instantiates a new macOSSoftwareUpdateCategorySummary and sets the default values. func NewMacOSSoftwareUpdateCategorySummary()(*MacOSSoftwareUpdateCategorySummary) { diff --git a/models/mac_o_s_software_update_category_summary_collection_response.go b/models/mac_o_s_software_update_category_summary_collection_response.go index fdcd7b23040..fcc6a2b3e09 100644 --- a/models/mac_o_s_software_update_category_summary_collection_response.go +++ b/models/mac_o_s_software_update_category_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type MacOSSoftwareUpdateCategorySummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMacOSSoftwareUpdateCategorySummaryCollectionResponse instantiates a new MacOSSoftwareUpdateCategorySummaryCollectionResponse and sets the default values. +// NewMacOSSoftwareUpdateCategorySummaryCollectionResponse instantiates a new macOSSoftwareUpdateCategorySummaryCollectionResponse and sets the default values. func NewMacOSSoftwareUpdateCategorySummaryCollectionResponse()(*MacOSSoftwareUpdateCategorySummaryCollectionResponse) { m := &MacOSSoftwareUpdateCategorySummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mac_o_s_software_update_configuration.go b/models/mac_o_s_software_update_configuration.go index 3215c0a0f20..3ad41a23813 100644 --- a/models/mac_o_s_software_update_configuration.go +++ b/models/mac_o_s_software_update_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSSoftwareUpdateConfiguration +// MacOSSoftwareUpdateConfiguration macOS Software Update Configuration type MacOSSoftwareUpdateConfiguration struct { DeviceConfiguration } -// NewMacOSSoftwareUpdateConfiguration instantiates a new MacOSSoftwareUpdateConfiguration and sets the default values. +// NewMacOSSoftwareUpdateConfiguration instantiates a new macOSSoftwareUpdateConfiguration and sets the default values. func NewMacOSSoftwareUpdateConfiguration()(*MacOSSoftwareUpdateConfiguration) { m := &MacOSSoftwareUpdateConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/mac_o_s_software_update_state_summary.go b/models/mac_o_s_software_update_state_summary.go index 3a582cff7f6..d1c625c7901 100644 --- a/models/mac_o_s_software_update_state_summary.go +++ b/models/mac_o_s_software_update_state_summary.go @@ -8,6 +8,8 @@ import ( // MacOSSoftwareUpdateStateSummary macOS software update state summary for a device and user type MacOSSoftwareUpdateStateSummary struct { Entity + // The OdataType property + OdataType *string } // NewMacOSSoftwareUpdateStateSummary instantiates a new macOSSoftwareUpdateStateSummary and sets the default values. func NewMacOSSoftwareUpdateStateSummary()(*MacOSSoftwareUpdateStateSummary) { diff --git a/models/mac_o_s_software_update_state_summary_collection_response.go b/models/mac_o_s_software_update_state_summary_collection_response.go index 0d50a54fdfb..af81e132899 100644 --- a/models/mac_o_s_software_update_state_summary_collection_response.go +++ b/models/mac_o_s_software_update_state_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type MacOSSoftwareUpdateStateSummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMacOSSoftwareUpdateStateSummaryCollectionResponse instantiates a new MacOSSoftwareUpdateStateSummaryCollectionResponse and sets the default values. +// NewMacOSSoftwareUpdateStateSummaryCollectionResponse instantiates a new macOSSoftwareUpdateStateSummaryCollectionResponse and sets the default values. func NewMacOSSoftwareUpdateStateSummaryCollectionResponse()(*MacOSSoftwareUpdateStateSummaryCollectionResponse) { m := &MacOSSoftwareUpdateStateSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mac_o_s_trusted_root_certificate.go b/models/mac_o_s_trusted_root_certificate.go index 8e5d1c6db46..9e73de414f8 100644 --- a/models/mac_o_s_trusted_root_certificate.go +++ b/models/mac_o_s_trusted_root_certificate.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSTrustedRootCertificate +// MacOSTrustedRootCertificate oS X Trusted Root Certificate configuration profile. type MacOSTrustedRootCertificate struct { DeviceConfiguration } diff --git a/models/mac_o_s_vpn_configuration.go b/models/mac_o_s_vpn_configuration.go index fcab9ef1e55..2fad43ffdb8 100644 --- a/models/mac_o_s_vpn_configuration.go +++ b/models/mac_o_s_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSVpnConfiguration +// MacOSVpnConfiguration by providing the configurations in this profile you can instruct the Mac device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. type MacOSVpnConfiguration struct { AppleVpnConfiguration } -// NewMacOSVpnConfiguration instantiates a new MacOSVpnConfiguration and sets the default values. +// NewMacOSVpnConfiguration instantiates a new macOSVpnConfiguration and sets the default values. func NewMacOSVpnConfiguration()(*MacOSVpnConfiguration) { m := &MacOSVpnConfiguration{ AppleVpnConfiguration: *NewAppleVpnConfiguration(), diff --git a/models/mac_o_s_wi_fi_configuration.go b/models/mac_o_s_wi_fi_configuration.go index 354aa7a2a9a..131092cd274 100644 --- a/models/mac_o_s_wi_fi_configuration.go +++ b/models/mac_o_s_wi_fi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSWiFiConfiguration +// MacOSWiFiConfiguration by providing the configurations in this profile you can instruct the macOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. type MacOSWiFiConfiguration struct { DeviceConfiguration } -// NewMacOSWiFiConfiguration instantiates a new MacOSWiFiConfiguration and sets the default values. +// NewMacOSWiFiConfiguration instantiates a new macOSWiFiConfiguration and sets the default values. func NewMacOSWiFiConfiguration()(*MacOSWiFiConfiguration) { m := &MacOSWiFiConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/mac_o_s_wired_network_configuration.go b/models/mac_o_s_wired_network_configuration.go index 19233177e81..07d52feaefd 100644 --- a/models/mac_o_s_wired_network_configuration.go +++ b/models/mac_o_s_wired_network_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOSWiredNetworkConfiguration +// MacOSWiredNetworkConfiguration macOS wired network configuration profile. type MacOSWiredNetworkConfiguration struct { DeviceConfiguration } -// NewMacOSWiredNetworkConfiguration instantiates a new MacOSWiredNetworkConfiguration and sets the default values. +// NewMacOSWiredNetworkConfiguration instantiates a new macOSWiredNetworkConfiguration and sets the default values. func NewMacOSWiredNetworkConfiguration()(*MacOSWiredNetworkConfiguration) { m := &MacOSWiredNetworkConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/mac_os_lob_app_assignment_settings.go b/models/mac_os_lob_app_assignment_settings.go index 10f448c9329..fceff30486f 100644 --- a/models/mac_os_lob_app_assignment_settings.go +++ b/models/mac_os_lob_app_assignment_settings.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOsLobAppAssignmentSettings +// MacOsLobAppAssignmentSettings contains properties used to assign a macOS LOB app to a group. type MacOsLobAppAssignmentSettings struct { MobileAppAssignmentSettings } -// NewMacOsLobAppAssignmentSettings instantiates a new MacOsLobAppAssignmentSettings and sets the default values. +// NewMacOsLobAppAssignmentSettings instantiates a new macOsLobAppAssignmentSettings and sets the default values. func NewMacOsLobAppAssignmentSettings()(*MacOsLobAppAssignmentSettings) { m := &MacOsLobAppAssignmentSettings{ MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), @@ -24,6 +24,16 @@ func CreateMacOsLobAppAssignmentSettingsFromDiscriminatorValue(parseNode i878a80 // GetFieldDeserializers the deserialization information for the current model func (m *MacOsLobAppAssignmentSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MobileAppAssignmentSettings.GetFieldDeserializers() + 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["uninstallOnDeviceRemoval"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -36,7 +46,18 @@ func (m *MacOsLobAppAssignmentSettings) GetFieldDeserializers()(map[string]func( } return res } -// GetUninstallOnDeviceRemoval gets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MacOsLobAppAssignmentSettings) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUninstallOnDeviceRemoval gets the uninstallOnDeviceRemoval property value. When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. func (m *MacOsLobAppAssignmentSettings) GetUninstallOnDeviceRemoval()(*bool) { val, err := m.GetBackingStore().Get("uninstallOnDeviceRemoval") if err != nil { @@ -53,6 +74,12 @@ func (m *MacOsLobAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689638 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("uninstallOnDeviceRemoval", m.GetUninstallOnDeviceRemoval()) if err != nil { @@ -61,7 +88,14 @@ func (m *MacOsLobAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689638 } return nil } -// SetUninstallOnDeviceRemoval sets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MacOsLobAppAssignmentSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetUninstallOnDeviceRemoval sets the uninstallOnDeviceRemoval property value. When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. func (m *MacOsLobAppAssignmentSettings) SetUninstallOnDeviceRemoval(value *bool)() { err := m.GetBackingStore().Set("uninstallOnDeviceRemoval", value) if err != nil { @@ -72,6 +106,8 @@ func (m *MacOsLobAppAssignmentSettings) SetUninstallOnDeviceRemoval(value *bool) type MacOsLobAppAssignmentSettingsable interface { MobileAppAssignmentSettingsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUninstallOnDeviceRemoval()(*bool) + SetOdataType(value *string)() SetUninstallOnDeviceRemoval(value *bool)() } diff --git a/models/mac_os_vpp_app.go b/models/mac_os_vpp_app.go index 9ef82e4b3a2..f71c3889581 100644 --- a/models/mac_os_vpp_app.go +++ b/models/mac_os_vpp_app.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOsVppApp +// MacOsVppApp contains properties and inherited properties for MacOS Volume-Purchased Program (VPP) Apps. type MacOsVppApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewMacOsVppApp instantiates a new MacOsVppApp and sets the default values. +// NewMacOsVppApp instantiates a new macOsVppApp and sets the default values. func NewMacOsVppApp()(*MacOsVppApp) { m := &MacOsVppApp{ MobileApp: *NewMobileApp(), diff --git a/models/mac_os_vpp_app_assigned_license.go b/models/mac_os_vpp_app_assigned_license.go index dddadcf6aaf..28e3872e910 100644 --- a/models/mac_os_vpp_app_assigned_license.go +++ b/models/mac_os_vpp_app_assigned_license.go @@ -7,6 +7,8 @@ import ( // MacOsVppAppAssignedLicense macOS Volume Purchase Program license assignment. This class does not support Create, Delete, or Update. type MacOsVppAppAssignedLicense struct { Entity + // The OdataType property + OdataType *string } // NewMacOsVppAppAssignedLicense instantiates a new macOsVppAppAssignedLicense and sets the default values. func NewMacOsVppAppAssignedLicense()(*MacOsVppAppAssignedLicense) { diff --git a/models/mac_os_vpp_app_assignment_settings.go b/models/mac_os_vpp_app_assignment_settings.go index f5be6baa8c9..0c19d90580c 100644 --- a/models/mac_os_vpp_app_assignment_settings.go +++ b/models/mac_os_vpp_app_assignment_settings.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MacOsVppAppAssignmentSettings +// MacOsVppAppAssignmentSettings contains properties used to assign an Mac VPP mobile app to a group. type MacOsVppAppAssignmentSettings struct { MobileAppAssignmentSettings + // The OdataType property + OdataType *string } -// NewMacOsVppAppAssignmentSettings instantiates a new MacOsVppAppAssignmentSettings and sets the default values. +// NewMacOsVppAppAssignmentSettings instantiates a new macOsVppAppAssignmentSettings and sets the default values. func NewMacOsVppAppAssignmentSettings()(*MacOsVppAppAssignmentSettings) { m := &MacOsVppAppAssignmentSettings{ MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), diff --git a/models/machine_learning_detected_sensitive_content.go b/models/machine_learning_detected_sensitive_content.go index beaa4667765..5cdf0ea1958 100644 --- a/models/machine_learning_detected_sensitive_content.go +++ b/models/machine_learning_detected_sensitive_content.go @@ -8,7 +8,7 @@ import ( type MachineLearningDetectedSensitiveContent struct { DetectedSensitiveContent } -// NewMachineLearningDetectedSensitiveContent instantiates a new MachineLearningDetectedSensitiveContent and sets the default values. +// NewMachineLearningDetectedSensitiveContent instantiates a new machineLearningDetectedSensitiveContent and sets the default values. func NewMachineLearningDetectedSensitiveContent()(*MachineLearningDetectedSensitiveContent) { m := &MachineLearningDetectedSensitiveContent{ DetectedSensitiveContent: *NewDetectedSensitiveContent(), @@ -42,6 +42,16 @@ func (m *MachineLearningDetectedSensitiveContent) GetFieldDeserializers()(map[st } 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 } // GetMatchTolerance gets the matchTolerance property value. The matchTolerance property @@ -66,6 +76,17 @@ func (m *MachineLearningDetectedSensitiveContent) GetModelVersion()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MachineLearningDetectedSensitiveContent) 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 *MachineLearningDetectedSensitiveContent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DetectedSensitiveContent.Serialize(writer) @@ -85,6 +106,12 @@ func (m *MachineLearningDetectedSensitiveContent) Serialize(writer i878a80d2330e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetMatchTolerance sets the matchTolerance property value. The matchTolerance property @@ -101,12 +128,21 @@ func (m *MachineLearningDetectedSensitiveContent) SetModelVersion(value *string) panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MachineLearningDetectedSensitiveContent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // MachineLearningDetectedSensitiveContentable type MachineLearningDetectedSensitiveContentable interface { DetectedSensitiveContentable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetMatchTolerance()(*MlClassificationMatchTolerance) GetModelVersion()(*string) + GetOdataType()(*string) SetMatchTolerance(value *MlClassificationMatchTolerance)() SetModelVersion(value *string)() + SetOdataType(value *string)() } diff --git a/models/mail_assessment_request.go b/models/mail_assessment_request.go index 0b57744771f..ad21e95f576 100644 --- a/models/mail_assessment_request.go +++ b/models/mail_assessment_request.go @@ -8,7 +8,7 @@ import ( type MailAssessmentRequest struct { ThreatAssessmentRequest } -// NewMailAssessmentRequest instantiates a new MailAssessmentRequest and sets the default values. +// NewMailAssessmentRequest instantiates a new mailAssessmentRequest and sets the default values. func NewMailAssessmentRequest()(*MailAssessmentRequest) { m := &MailAssessmentRequest{ ThreatAssessmentRequest: *NewThreatAssessmentRequest(), diff --git a/models/mail_folder.go b/models/mail_folder.go index c8ab410276e..4a734f8b46e 100644 --- a/models/mail_folder.go +++ b/models/mail_folder.go @@ -7,6 +7,8 @@ import ( // MailFolder type MailFolder struct { Entity + // The OdataType property + OdataType *string } // NewMailFolder instantiates a new mailFolder and sets the default values. func NewMailFolder()(*MailFolder) { diff --git a/models/mail_folder_collection_response.go b/models/mail_folder_collection_response.go index a98f701a36a..5045f9f184e 100644 --- a/models/mail_folder_collection_response.go +++ b/models/mail_folder_collection_response.go @@ -8,7 +8,7 @@ import ( type MailFolderCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMailFolderCollectionResponse instantiates a new MailFolderCollectionResponse and sets the default values. +// NewMailFolderCollectionResponse instantiates a new mailFolderCollectionResponse and sets the default values. func NewMailFolderCollectionResponse()(*MailFolderCollectionResponse) { m := &MailFolderCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mail_search_folder.go b/models/mail_search_folder.go index 282c91af182..a59b881d02d 100644 --- a/models/mail_search_folder.go +++ b/models/mail_search_folder.go @@ -8,7 +8,7 @@ import ( type MailSearchFolder struct { MailFolder } -// NewMailSearchFolder instantiates a new MailSearchFolder and sets the default values. +// NewMailSearchFolder instantiates a new mailSearchFolder and sets the default values. func NewMailSearchFolder()(*MailSearchFolder) { m := &MailSearchFolder{ MailFolder: *NewMailFolder(), diff --git a/models/mail_tips.go b/models/mail_tips.go index 75e2cfc740a..006a9ce2e6b 100644 --- a/models/mail_tips.go +++ b/models/mail_tips.go @@ -10,7 +10,7 @@ type MailTips struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewMailTips instantiates a new MailTips and sets the default values. +// NewMailTips instantiates a new mailTips and sets the default values. func NewMailTips()(*MailTips) { m := &MailTips{ } diff --git a/models/malware_state_for_windows_device.go b/models/malware_state_for_windows_device.go index 5bfdde19ed5..8cd45ac3dea 100644 --- a/models/malware_state_for_windows_device.go +++ b/models/malware_state_for_windows_device.go @@ -8,6 +8,8 @@ import ( // MalwareStateForWindowsDevice malware state for a windows device type MalwareStateForWindowsDevice struct { Entity + // The OdataType property + OdataType *string } // NewMalwareStateForWindowsDevice instantiates a new malwareStateForWindowsDevice and sets the default values. func NewMalwareStateForWindowsDevice()(*MalwareStateForWindowsDevice) { diff --git a/models/malware_state_for_windows_device_collection_response.go b/models/malware_state_for_windows_device_collection_response.go index 665031fbc6f..46997769857 100644 --- a/models/malware_state_for_windows_device_collection_response.go +++ b/models/malware_state_for_windows_device_collection_response.go @@ -8,7 +8,7 @@ import ( type MalwareStateForWindowsDeviceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMalwareStateForWindowsDeviceCollectionResponse instantiates a new MalwareStateForWindowsDeviceCollectionResponse and sets the default values. +// NewMalwareStateForWindowsDeviceCollectionResponse instantiates a new malwareStateForWindowsDeviceCollectionResponse and sets the default values. func NewMalwareStateForWindowsDeviceCollectionResponse()(*MalwareStateForWindowsDeviceCollectionResponse) { m := &MalwareStateForWindowsDeviceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_all_device_certificate_state.go b/models/managed_all_device_certificate_state.go index f55409961d3..b295c56715f 100644 --- a/models/managed_all_device_certificate_state.go +++ b/models/managed_all_device_certificate_state.go @@ -8,6 +8,8 @@ import ( // ManagedAllDeviceCertificateState type ManagedAllDeviceCertificateState struct { Entity + // The OdataType property + OdataType *string } // NewManagedAllDeviceCertificateState instantiates a new managedAllDeviceCertificateState and sets the default values. func NewManagedAllDeviceCertificateState()(*ManagedAllDeviceCertificateState) { diff --git a/models/managed_all_device_certificate_state_collection_response.go b/models/managed_all_device_certificate_state_collection_response.go index a16fb392766..7fa5fd3d9b5 100644 --- a/models/managed_all_device_certificate_state_collection_response.go +++ b/models/managed_all_device_certificate_state_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedAllDeviceCertificateStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedAllDeviceCertificateStateCollectionResponse instantiates a new ManagedAllDeviceCertificateStateCollectionResponse and sets the default values. +// NewManagedAllDeviceCertificateStateCollectionResponse instantiates a new managedAllDeviceCertificateStateCollectionResponse and sets the default values. func NewManagedAllDeviceCertificateStateCollectionResponse()(*ManagedAllDeviceCertificateStateCollectionResponse) { m := &ManagedAllDeviceCertificateStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_android_lob_app.go b/models/managed_android_lob_app.go index afb5cbaa15b..576fc96a367 100644 --- a/models/managed_android_lob_app.go +++ b/models/managed_android_lob_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedAndroidLobApp +// ManagedAndroidLobApp contains properties and inherited properties for Managed Android Line Of Business apps. type ManagedAndroidLobApp struct { ManagedMobileLobApp } -// NewManagedAndroidLobApp instantiates a new ManagedAndroidLobApp and sets the default values. +// NewManagedAndroidLobApp instantiates a new managedAndroidLobApp and sets the default values. func NewManagedAndroidLobApp()(*ManagedAndroidLobApp) { m := &ManagedAndroidLobApp{ ManagedMobileLobApp: *NewManagedMobileLobApp(), diff --git a/models/managed_android_store_app.go b/models/managed_android_store_app.go index cd15b2b4dab..ff411868e46 100644 --- a/models/managed_android_store_app.go +++ b/models/managed_android_store_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedAndroidStoreApp +// ManagedAndroidStoreApp contains properties and inherited properties for Android store apps that you can manage with an Intune app protection policy. type ManagedAndroidStoreApp struct { ManagedApp } -// NewManagedAndroidStoreApp instantiates a new ManagedAndroidStoreApp and sets the default values. +// NewManagedAndroidStoreApp instantiates a new managedAndroidStoreApp and sets the default values. func NewManagedAndroidStoreApp()(*ManagedAndroidStoreApp) { m := &ManagedAndroidStoreApp{ ManagedApp: *NewManagedApp(), diff --git a/models/managed_app.go b/models/managed_app.go index d47420f94c7..5f29ae3f276 100644 --- a/models/managed_app.go +++ b/models/managed_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedApp +// ManagedApp abstract class that contains properties and inherited properties for apps that you can manage with an Intune app protection policy. type ManagedApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewManagedApp instantiates a new ManagedApp and sets the default values. +// NewManagedApp instantiates a new managedApp and sets the default values. func NewManagedApp()(*ManagedApp) { m := &ManagedApp{ MobileApp: *NewMobileApp(), diff --git a/models/managed_app_configuration.go b/models/managed_app_configuration.go index e84cc481c62..77a5a8182c7 100644 --- a/models/managed_app_configuration.go +++ b/models/managed_app_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedAppConfiguration +// ManagedAppConfiguration configuration used to deliver a set of custom settings as-is to apps for users to whom the configuration is scoped type ManagedAppConfiguration struct { ManagedAppPolicy } -// NewManagedAppConfiguration instantiates a new ManagedAppConfiguration and sets the default values. +// NewManagedAppConfiguration instantiates a new managedAppConfiguration and sets the default values. func NewManagedAppConfiguration()(*ManagedAppConfiguration) { m := &ManagedAppConfiguration{ ManagedAppPolicy: *NewManagedAppPolicy(), diff --git a/models/managed_app_operation.go b/models/managed_app_operation.go index e3584176b10..dcc07a1b405 100644 --- a/models/managed_app_operation.go +++ b/models/managed_app_operation.go @@ -8,6 +8,8 @@ import ( // ManagedAppOperation represents an operation applied against an app registration. type ManagedAppOperation struct { Entity + // The OdataType property + OdataType *string } // NewManagedAppOperation instantiates a new managedAppOperation and sets the default values. func NewManagedAppOperation()(*ManagedAppOperation) { diff --git a/models/managed_app_operation_collection_response.go b/models/managed_app_operation_collection_response.go index 2dc4c42cef5..79879f440df 100644 --- a/models/managed_app_operation_collection_response.go +++ b/models/managed_app_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedAppOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedAppOperationCollectionResponse instantiates a new ManagedAppOperationCollectionResponse and sets the default values. +// NewManagedAppOperationCollectionResponse instantiates a new managedAppOperationCollectionResponse and sets the default values. func NewManagedAppOperationCollectionResponse()(*ManagedAppOperationCollectionResponse) { m := &ManagedAppOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_app_policy.go b/models/managed_app_policy.go index e33ebe0401b..60c8bf81451 100644 --- a/models/managed_app_policy.go +++ b/models/managed_app_policy.go @@ -8,6 +8,8 @@ import ( // ManagedAppPolicy the ManagedAppPolicy resource represents a base type for platform specific policies. type ManagedAppPolicy struct { Entity + // The OdataType property + OdataType *string } // NewManagedAppPolicy instantiates a new managedAppPolicy and sets the default values. func NewManagedAppPolicy()(*ManagedAppPolicy) { diff --git a/models/managed_app_policy_collection_response.go b/models/managed_app_policy_collection_response.go index 590d9b68ee2..fb9101fd71e 100644 --- a/models/managed_app_policy_collection_response.go +++ b/models/managed_app_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedAppPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedAppPolicyCollectionResponse instantiates a new ManagedAppPolicyCollectionResponse and sets the default values. +// NewManagedAppPolicyCollectionResponse instantiates a new managedAppPolicyCollectionResponse and sets the default values. func NewManagedAppPolicyCollectionResponse()(*ManagedAppPolicyCollectionResponse) { m := &ManagedAppPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_app_policy_deployment_summary.go b/models/managed_app_policy_deployment_summary.go index 07d8d4badb7..899ce522396 100644 --- a/models/managed_app_policy_deployment_summary.go +++ b/models/managed_app_policy_deployment_summary.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedAppPolicyDeploymentSummary +// ManagedAppPolicyDeploymentSummary the ManagedAppEntity is the base entity type for all other entity types under app management workflow. type ManagedAppPolicyDeploymentSummary struct { Entity + // The OdataType property + OdataType *string } // NewManagedAppPolicyDeploymentSummary instantiates a new managedAppPolicyDeploymentSummary and sets the default values. func NewManagedAppPolicyDeploymentSummary()(*ManagedAppPolicyDeploymentSummary) { diff --git a/models/managed_app_protection.go b/models/managed_app_protection.go index c4d7b9a2703..e1ad9bc4b44 100644 --- a/models/managed_app_protection.go +++ b/models/managed_app_protection.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedAppProtection +// ManagedAppProtection policy used to configure detailed management settings for a specified set of apps type ManagedAppProtection struct { ManagedAppPolicy } -// NewManagedAppProtection instantiates a new ManagedAppProtection and sets the default values. +// NewManagedAppProtection instantiates a new managedAppProtection and sets the default values. func NewManagedAppProtection()(*ManagedAppProtection) { m := &ManagedAppProtection{ ManagedAppPolicy: *NewManagedAppPolicy(), diff --git a/models/managed_app_protection_policy_set_item.go b/models/managed_app_protection_policy_set_item.go index 4c927aafcf6..f24720c5da2 100644 --- a/models/managed_app_protection_policy_set_item.go +++ b/models/managed_app_protection_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedAppProtectionPolicySetItem +// ManagedAppProtectionPolicySetItem a class containing the properties used for managed app protection PolicySetItem. type ManagedAppProtectionPolicySetItem struct { PolicySetItem } -// NewManagedAppProtectionPolicySetItem instantiates a new ManagedAppProtectionPolicySetItem and sets the default values. +// NewManagedAppProtectionPolicySetItem instantiates a new managedAppProtectionPolicySetItem and sets the default values. func NewManagedAppProtectionPolicySetItem()(*ManagedAppProtectionPolicySetItem) { m := &ManagedAppProtectionPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/managed_app_registration.go b/models/managed_app_registration.go index 7cb06e97098..412df329300 100644 --- a/models/managed_app_registration.go +++ b/models/managed_app_registration.go @@ -8,6 +8,8 @@ import ( // ManagedAppRegistration the ManagedAppEntity is the base entity type for all other entity types under app management workflow. type ManagedAppRegistration struct { Entity + // The OdataType property + OdataType *string } // NewManagedAppRegistration instantiates a new managedAppRegistration and sets the default values. func NewManagedAppRegistration()(*ManagedAppRegistration) { diff --git a/models/managed_app_registration_collection_response.go b/models/managed_app_registration_collection_response.go index 348ca1735a6..3569a79ca07 100644 --- a/models/managed_app_registration_collection_response.go +++ b/models/managed_app_registration_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedAppRegistrationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedAppRegistrationCollectionResponse instantiates a new ManagedAppRegistrationCollectionResponse and sets the default values. +// NewManagedAppRegistrationCollectionResponse instantiates a new managedAppRegistrationCollectionResponse and sets the default values. func NewManagedAppRegistrationCollectionResponse()(*ManagedAppRegistrationCollectionResponse) { m := &ManagedAppRegistrationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_app_status.go b/models/managed_app_status.go index 1d13eccc53d..b97581d9a5b 100644 --- a/models/managed_app_status.go +++ b/models/managed_app_status.go @@ -7,6 +7,8 @@ import ( // ManagedAppStatus represents app protection and configuration status for the organization. type ManagedAppStatus struct { Entity + // The OdataType property + OdataType *string } // NewManagedAppStatus instantiates a new managedAppStatus and sets the default values. func NewManagedAppStatus()(*ManagedAppStatus) { diff --git a/models/managed_app_status_collection_response.go b/models/managed_app_status_collection_response.go index d7828ad6887..5fdbbd369d1 100644 --- a/models/managed_app_status_collection_response.go +++ b/models/managed_app_status_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedAppStatusCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedAppStatusCollectionResponse instantiates a new ManagedAppStatusCollectionResponse and sets the default values. +// NewManagedAppStatusCollectionResponse instantiates a new managedAppStatusCollectionResponse and sets the default values. func NewManagedAppStatusCollectionResponse()(*ManagedAppStatusCollectionResponse) { m := &ManagedAppStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_app_status_raw.go b/models/managed_app_status_raw.go index 282fb08492a..a8e31c3850f 100644 --- a/models/managed_app_status_raw.go +++ b/models/managed_app_status_raw.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedAppStatusRaw +// ManagedAppStatusRaw represents an un-typed status report about organizations app protection and configuration. type ManagedAppStatusRaw struct { ManagedAppStatus } -// NewManagedAppStatusRaw instantiates a new ManagedAppStatusRaw and sets the default values. +// NewManagedAppStatusRaw instantiates a new managedAppStatusRaw and sets the default values. func NewManagedAppStatusRaw()(*ManagedAppStatusRaw) { m := &ManagedAppStatusRaw{ ManagedAppStatus: *NewManagedAppStatus(), diff --git a/models/managed_device.go b/models/managed_device.go index bd340cc01da..7f716443db1 100644 --- a/models/managed_device.go +++ b/models/managed_device.go @@ -8,6 +8,8 @@ import ( // ManagedDevice devices that are managed or pre-enrolled through Intune type ManagedDevice struct { Entity + // The OdataType property + OdataType *string } // NewManagedDevice instantiates a new managedDevice and sets the default values. func NewManagedDevice()(*ManagedDevice) { diff --git a/models/managed_device_certificate_state.go b/models/managed_device_certificate_state.go index 2c6ce320cb6..8b46ccb5977 100644 --- a/models/managed_device_certificate_state.go +++ b/models/managed_device_certificate_state.go @@ -8,6 +8,8 @@ import ( // ManagedDeviceCertificateState type ManagedDeviceCertificateState struct { Entity + // The OdataType property + OdataType *string } // NewManagedDeviceCertificateState instantiates a new managedDeviceCertificateState and sets the default values. func NewManagedDeviceCertificateState()(*ManagedDeviceCertificateState) { diff --git a/models/managed_device_collection_response.go b/models/managed_device_collection_response.go index 50bfc7cb8e7..44c39ad7fbb 100644 --- a/models/managed_device_collection_response.go +++ b/models/managed_device_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedDeviceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedDeviceCollectionResponse instantiates a new ManagedDeviceCollectionResponse and sets the default values. +// NewManagedDeviceCollectionResponse instantiates a new managedDeviceCollectionResponse and sets the default values. func NewManagedDeviceCollectionResponse()(*ManagedDeviceCollectionResponse) { m := &ManagedDeviceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_device_encryption_state.go b/models/managed_device_encryption_state.go index dbf8eea5514..357d54bcd0e 100644 --- a/models/managed_device_encryption_state.go +++ b/models/managed_device_encryption_state.go @@ -7,6 +7,8 @@ import ( // ManagedDeviceEncryptionState encryption report per device type ManagedDeviceEncryptionState struct { Entity + // The OdataType property + OdataType *string } // NewManagedDeviceEncryptionState instantiates a new managedDeviceEncryptionState and sets the default values. func NewManagedDeviceEncryptionState()(*ManagedDeviceEncryptionState) { diff --git a/models/managed_device_encryption_state_collection_response.go b/models/managed_device_encryption_state_collection_response.go index a34cb0f476e..3bb2b0517c9 100644 --- a/models/managed_device_encryption_state_collection_response.go +++ b/models/managed_device_encryption_state_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedDeviceEncryptionStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedDeviceEncryptionStateCollectionResponse instantiates a new ManagedDeviceEncryptionStateCollectionResponse and sets the default values. +// NewManagedDeviceEncryptionStateCollectionResponse instantiates a new managedDeviceEncryptionStateCollectionResponse and sets the default values. func NewManagedDeviceEncryptionStateCollectionResponse()(*ManagedDeviceEncryptionStateCollectionResponse) { m := &ManagedDeviceEncryptionStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_device_mobile_app_configuration.go b/models/managed_device_mobile_app_configuration.go index c056f4fdbd2..b85be77f073 100644 --- a/models/managed_device_mobile_app_configuration.go +++ b/models/managed_device_mobile_app_configuration.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedDeviceMobileAppConfiguration +// ManagedDeviceMobileAppConfiguration an abstract class for Mobile app configuration for enrolled devices. type ManagedDeviceMobileAppConfiguration struct { Entity + // The OdataType property + OdataType *string } -// NewManagedDeviceMobileAppConfiguration instantiates a new ManagedDeviceMobileAppConfiguration and sets the default values. +// NewManagedDeviceMobileAppConfiguration instantiates a new managedDeviceMobileAppConfiguration and sets the default values. func NewManagedDeviceMobileAppConfiguration()(*ManagedDeviceMobileAppConfiguration) { m := &ManagedDeviceMobileAppConfiguration{ Entity: *NewEntity(), diff --git a/models/managed_device_mobile_app_configuration_assignment.go b/models/managed_device_mobile_app_configuration_assignment.go index f8cd12e63a3..f6350d2f16d 100644 --- a/models/managed_device_mobile_app_configuration_assignment.go +++ b/models/managed_device_mobile_app_configuration_assignment.go @@ -7,6 +7,8 @@ import ( // ManagedDeviceMobileAppConfigurationAssignment contains the properties used to assign an MDM app configuration to a group. type ManagedDeviceMobileAppConfigurationAssignment struct { Entity + // The OdataType property + OdataType *string } // NewManagedDeviceMobileAppConfigurationAssignment instantiates a new managedDeviceMobileAppConfigurationAssignment and sets the default values. func NewManagedDeviceMobileAppConfigurationAssignment()(*ManagedDeviceMobileAppConfigurationAssignment) { diff --git a/models/managed_device_mobile_app_configuration_assignment_collection_response.go b/models/managed_device_mobile_app_configuration_assignment_collection_response.go index 654afd5e81a..2b4aa2badba 100644 --- a/models/managed_device_mobile_app_configuration_assignment_collection_response.go +++ b/models/managed_device_mobile_app_configuration_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedDeviceMobileAppConfigurationAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedDeviceMobileAppConfigurationAssignmentCollectionResponse instantiates a new ManagedDeviceMobileAppConfigurationAssignmentCollectionResponse and sets the default values. +// NewManagedDeviceMobileAppConfigurationAssignmentCollectionResponse instantiates a new managedDeviceMobileAppConfigurationAssignmentCollectionResponse and sets the default values. func NewManagedDeviceMobileAppConfigurationAssignmentCollectionResponse()(*ManagedDeviceMobileAppConfigurationAssignmentCollectionResponse) { m := &ManagedDeviceMobileAppConfigurationAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_device_mobile_app_configuration_collection_response.go b/models/managed_device_mobile_app_configuration_collection_response.go index ccf11ec4661..a6dcc83ce2d 100644 --- a/models/managed_device_mobile_app_configuration_collection_response.go +++ b/models/managed_device_mobile_app_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedDeviceMobileAppConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedDeviceMobileAppConfigurationCollectionResponse instantiates a new ManagedDeviceMobileAppConfigurationCollectionResponse and sets the default values. +// NewManagedDeviceMobileAppConfigurationCollectionResponse instantiates a new managedDeviceMobileAppConfigurationCollectionResponse and sets the default values. func NewManagedDeviceMobileAppConfigurationCollectionResponse()(*ManagedDeviceMobileAppConfigurationCollectionResponse) { m := &ManagedDeviceMobileAppConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_device_mobile_app_configuration_device_status.go b/models/managed_device_mobile_app_configuration_device_status.go index a9ad5828a67..93debe07e4b 100644 --- a/models/managed_device_mobile_app_configuration_device_status.go +++ b/models/managed_device_mobile_app_configuration_device_status.go @@ -8,6 +8,8 @@ import ( // ManagedDeviceMobileAppConfigurationDeviceStatus contains properties, inherited properties and actions for an MDM mobile app configuration status for a device. type ManagedDeviceMobileAppConfigurationDeviceStatus struct { Entity + // The OdataType property + OdataType *string } // NewManagedDeviceMobileAppConfigurationDeviceStatus instantiates a new managedDeviceMobileAppConfigurationDeviceStatus and sets the default values. func NewManagedDeviceMobileAppConfigurationDeviceStatus()(*ManagedDeviceMobileAppConfigurationDeviceStatus) { diff --git a/models/managed_device_mobile_app_configuration_device_status_collection_response.go b/models/managed_device_mobile_app_configuration_device_status_collection_response.go index bd9a6e0ab92..91d8a68359d 100644 --- a/models/managed_device_mobile_app_configuration_device_status_collection_response.go +++ b/models/managed_device_mobile_app_configuration_device_status_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse instantiates a new ManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse and sets the default values. +// NewManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse instantiates a new managedDeviceMobileAppConfigurationDeviceStatusCollectionResponse and sets the default values. func NewManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse()(*ManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse) { m := &ManagedDeviceMobileAppConfigurationDeviceStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_device_mobile_app_configuration_device_summary.go b/models/managed_device_mobile_app_configuration_device_summary.go index e1601bd0710..537138f9021 100644 --- a/models/managed_device_mobile_app_configuration_device_summary.go +++ b/models/managed_device_mobile_app_configuration_device_summary.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedDeviceMobileAppConfigurationDeviceSummary +// ManagedDeviceMobileAppConfigurationDeviceSummary contains properties, inherited properties and actions for an MDM mobile app configuration device status summary. type ManagedDeviceMobileAppConfigurationDeviceSummary struct { Entity + // The OdataType property + OdataType *string } // NewManagedDeviceMobileAppConfigurationDeviceSummary instantiates a new managedDeviceMobileAppConfigurationDeviceSummary and sets the default values. func NewManagedDeviceMobileAppConfigurationDeviceSummary()(*ManagedDeviceMobileAppConfigurationDeviceSummary) { diff --git a/models/managed_device_mobile_app_configuration_policy_set_item.go b/models/managed_device_mobile_app_configuration_policy_set_item.go index db8939e49dd..c125ae08992 100644 --- a/models/managed_device_mobile_app_configuration_policy_set_item.go +++ b/models/managed_device_mobile_app_configuration_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedDeviceMobileAppConfigurationPolicySetItem +// ManagedDeviceMobileAppConfigurationPolicySetItem a class containing the properties used for managed device mobile app configuration PolicySetItem. type ManagedDeviceMobileAppConfigurationPolicySetItem struct { PolicySetItem } -// NewManagedDeviceMobileAppConfigurationPolicySetItem instantiates a new ManagedDeviceMobileAppConfigurationPolicySetItem and sets the default values. +// NewManagedDeviceMobileAppConfigurationPolicySetItem instantiates a new managedDeviceMobileAppConfigurationPolicySetItem and sets the default values. func NewManagedDeviceMobileAppConfigurationPolicySetItem()(*ManagedDeviceMobileAppConfigurationPolicySetItem) { m := &ManagedDeviceMobileAppConfigurationPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/managed_device_mobile_app_configuration_state.go b/models/managed_device_mobile_app_configuration_state.go index d19c89a56c4..9267e1c5107 100644 --- a/models/managed_device_mobile_app_configuration_state.go +++ b/models/managed_device_mobile_app_configuration_state.go @@ -7,6 +7,8 @@ import ( // ManagedDeviceMobileAppConfigurationState managed Device Mobile App Configuration State for a given device. type ManagedDeviceMobileAppConfigurationState struct { Entity + // The OdataType property + OdataType *string } // NewManagedDeviceMobileAppConfigurationState instantiates a new managedDeviceMobileAppConfigurationState and sets the default values. func NewManagedDeviceMobileAppConfigurationState()(*ManagedDeviceMobileAppConfigurationState) { diff --git a/models/managed_device_mobile_app_configuration_state_collection_response.go b/models/managed_device_mobile_app_configuration_state_collection_response.go index 804134987a3..9267cfaf5fa 100644 --- a/models/managed_device_mobile_app_configuration_state_collection_response.go +++ b/models/managed_device_mobile_app_configuration_state_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedDeviceMobileAppConfigurationStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedDeviceMobileAppConfigurationStateCollectionResponse instantiates a new ManagedDeviceMobileAppConfigurationStateCollectionResponse and sets the default values. +// NewManagedDeviceMobileAppConfigurationStateCollectionResponse instantiates a new managedDeviceMobileAppConfigurationStateCollectionResponse and sets the default values. func NewManagedDeviceMobileAppConfigurationStateCollectionResponse()(*ManagedDeviceMobileAppConfigurationStateCollectionResponse) { m := &ManagedDeviceMobileAppConfigurationStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_device_mobile_app_configuration_user_status.go b/models/managed_device_mobile_app_configuration_user_status.go index 4946c1dca61..aea063363f0 100644 --- a/models/managed_device_mobile_app_configuration_user_status.go +++ b/models/managed_device_mobile_app_configuration_user_status.go @@ -8,6 +8,8 @@ import ( // ManagedDeviceMobileAppConfigurationUserStatus contains properties, inherited properties and actions for an MDM mobile app configuration status for a user. type ManagedDeviceMobileAppConfigurationUserStatus struct { Entity + // The OdataType property + OdataType *string } // NewManagedDeviceMobileAppConfigurationUserStatus instantiates a new managedDeviceMobileAppConfigurationUserStatus and sets the default values. func NewManagedDeviceMobileAppConfigurationUserStatus()(*ManagedDeviceMobileAppConfigurationUserStatus) { diff --git a/models/managed_device_mobile_app_configuration_user_status_collection_response.go b/models/managed_device_mobile_app_configuration_user_status_collection_response.go index 7156d3593ba..fd005be67ec 100644 --- a/models/managed_device_mobile_app_configuration_user_status_collection_response.go +++ b/models/managed_device_mobile_app_configuration_user_status_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedDeviceMobileAppConfigurationUserStatusCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedDeviceMobileAppConfigurationUserStatusCollectionResponse instantiates a new ManagedDeviceMobileAppConfigurationUserStatusCollectionResponse and sets the default values. +// NewManagedDeviceMobileAppConfigurationUserStatusCollectionResponse instantiates a new managedDeviceMobileAppConfigurationUserStatusCollectionResponse and sets the default values. func NewManagedDeviceMobileAppConfigurationUserStatusCollectionResponse()(*ManagedDeviceMobileAppConfigurationUserStatusCollectionResponse) { m := &ManagedDeviceMobileAppConfigurationUserStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_device_mobile_app_configuration_user_summary.go b/models/managed_device_mobile_app_configuration_user_summary.go index eae264b7256..6a64bcbe6dc 100644 --- a/models/managed_device_mobile_app_configuration_user_summary.go +++ b/models/managed_device_mobile_app_configuration_user_summary.go @@ -5,7 +5,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedDeviceMobileAppConfigurationUserSummary +// ManagedDeviceMobileAppConfigurationUserSummary contains properties, inherited properties and actions for an MDM mobile app configuration user status summary. type ManagedDeviceMobileAppConfigurationUserSummary struct { Entity } @@ -127,6 +127,16 @@ func (m *ManagedDeviceMobileAppConfigurationUserSummary) GetFieldDeserializers() } 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["pendingCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -171,6 +181,17 @@ func (m *ManagedDeviceMobileAppConfigurationUserSummary) GetNotApplicableCount() } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ManagedDeviceMobileAppConfigurationUserSummary) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPendingCount gets the pendingCount property value. Number of pending Users func (m *ManagedDeviceMobileAppConfigurationUserSummary) GetPendingCount()(*int32) { val, err := m.GetBackingStore().Get("pendingCount") @@ -235,6 +256,12 @@ func (m *ManagedDeviceMobileAppConfigurationUserSummary) Serialize(writer i878a8 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("pendingCount", m.GetPendingCount()) if err != nil { @@ -291,6 +318,13 @@ func (m *ManagedDeviceMobileAppConfigurationUserSummary) SetNotApplicableCount(v panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ManagedDeviceMobileAppConfigurationUserSummary) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPendingCount sets the pendingCount property value. Number of pending Users func (m *ManagedDeviceMobileAppConfigurationUserSummary) SetPendingCount(value *int32)() { err := m.GetBackingStore().Set("pendingCount", value) @@ -315,6 +349,7 @@ type ManagedDeviceMobileAppConfigurationUserSummaryable interface { GetFailedCount()(*int32) GetLastUpdateDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetNotApplicableCount()(*int32) + GetOdataType()(*string) GetPendingCount()(*int32) GetSuccessCount()(*int32) SetConfigurationVersion(value *int32)() @@ -323,6 +358,7 @@ type ManagedDeviceMobileAppConfigurationUserSummaryable interface { SetFailedCount(value *int32)() SetLastUpdateDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetNotApplicableCount(value *int32)() + SetOdataType(value *string)() SetPendingCount(value *int32)() SetSuccessCount(value *int32)() } diff --git a/models/managed_device_overview.go b/models/managed_device_overview.go index dcc9c14fc2a..7504a6b3874 100644 --- a/models/managed_device_overview.go +++ b/models/managed_device_overview.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedDeviceOverview +// ManagedDeviceOverview summary data for managed devices type ManagedDeviceOverview struct { Entity + // The OdataType property + OdataType *string } // NewManagedDeviceOverview instantiates a new managedDeviceOverview and sets the default values. func NewManagedDeviceOverview()(*ManagedDeviceOverview) { diff --git a/models/managed_device_reported_app.go b/models/managed_device_reported_app.go index 7d4e4bb95dd..7d57b6ad992 100644 --- a/models/managed_device_reported_app.go +++ b/models/managed_device_reported_app.go @@ -10,7 +10,7 @@ type ManagedDeviceReportedApp struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewManagedDeviceReportedApp instantiates a new ManagedDeviceReportedApp and sets the default values. +// NewManagedDeviceReportedApp instantiates a new managedDeviceReportedApp and sets the default values. func NewManagedDeviceReportedApp()(*ManagedDeviceReportedApp) { m := &ManagedDeviceReportedApp{ } diff --git a/models/managed_e_book.go b/models/managed_e_book.go index 4bb55e3a8db..2ca4b8ce3c4 100644 --- a/models/managed_e_book.go +++ b/models/managed_e_book.go @@ -8,6 +8,8 @@ import ( // ManagedEBook an abstract class containing the base properties for Managed eBook. type ManagedEBook struct { Entity + // The OdataType property + OdataType *string } // NewManagedEBook instantiates a new managedEBook and sets the default values. func NewManagedEBook()(*ManagedEBook) { diff --git a/models/managed_e_book_assignment.go b/models/managed_e_book_assignment.go index 952a66031c8..9cf6e9f63f5 100644 --- a/models/managed_e_book_assignment.go +++ b/models/managed_e_book_assignment.go @@ -7,6 +7,8 @@ import ( // ManagedEBookAssignment contains properties used to assign a eBook to a group. type ManagedEBookAssignment struct { Entity + // The OdataType property + OdataType *string } // NewManagedEBookAssignment instantiates a new managedEBookAssignment and sets the default values. func NewManagedEBookAssignment()(*ManagedEBookAssignment) { diff --git a/models/managed_e_book_assignment_collection_response.go b/models/managed_e_book_assignment_collection_response.go index e3155751d5e..51c1e2b1d5c 100644 --- a/models/managed_e_book_assignment_collection_response.go +++ b/models/managed_e_book_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedEBookAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedEBookAssignmentCollectionResponse instantiates a new ManagedEBookAssignmentCollectionResponse and sets the default values. +// NewManagedEBookAssignmentCollectionResponse instantiates a new managedEBookAssignmentCollectionResponse and sets the default values. func NewManagedEBookAssignmentCollectionResponse()(*ManagedEBookAssignmentCollectionResponse) { m := &ManagedEBookAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_e_book_category.go b/models/managed_e_book_category.go index f5561e1b9ba..7f839ba9787 100644 --- a/models/managed_e_book_category.go +++ b/models/managed_e_book_category.go @@ -8,6 +8,8 @@ import ( // ManagedEBookCategory contains properties for a single Intune eBook category. type ManagedEBookCategory struct { Entity + // The OdataType property + OdataType *string } // NewManagedEBookCategory instantiates a new managedEBookCategory and sets the default values. func NewManagedEBookCategory()(*ManagedEBookCategory) { diff --git a/models/managed_e_book_category_collection_response.go b/models/managed_e_book_category_collection_response.go index 89973cf0b97..76dbd1a0130 100644 --- a/models/managed_e_book_category_collection_response.go +++ b/models/managed_e_book_category_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedEBookCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedEBookCategoryCollectionResponse instantiates a new ManagedEBookCategoryCollectionResponse and sets the default values. +// NewManagedEBookCategoryCollectionResponse instantiates a new managedEBookCategoryCollectionResponse and sets the default values. func NewManagedEBookCategoryCollectionResponse()(*ManagedEBookCategoryCollectionResponse) { m := &ManagedEBookCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_e_book_collection_response.go b/models/managed_e_book_collection_response.go index 859a5c66fb7..ebaef867a95 100644 --- a/models/managed_e_book_collection_response.go +++ b/models/managed_e_book_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedEBookCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedEBookCollectionResponse instantiates a new ManagedEBookCollectionResponse and sets the default values. +// NewManagedEBookCollectionResponse instantiates a new managedEBookCollectionResponse and sets the default values. func NewManagedEBookCollectionResponse()(*ManagedEBookCollectionResponse) { m := &ManagedEBookCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_i_o_s_lob_app.go b/models/managed_i_o_s_lob_app.go index 48ca68c41e3..5b8af1abea8 100644 --- a/models/managed_i_o_s_lob_app.go +++ b/models/managed_i_o_s_lob_app.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedIOSLobApp +// ManagedIOSLobApp contains properties and inherited properties for Managed iOS Line Of Business apps. type ManagedIOSLobApp struct { ManagedMobileLobApp } -// NewManagedIOSLobApp instantiates a new ManagedIOSLobApp and sets the default values. +// NewManagedIOSLobApp instantiates a new managedIOSLobApp and sets the default values. func NewManagedIOSLobApp()(*ManagedIOSLobApp) { m := &ManagedIOSLobApp{ ManagedMobileLobApp: *NewManagedMobileLobApp(), diff --git a/models/managed_i_o_s_store_app.go b/models/managed_i_o_s_store_app.go index 050bd201c0b..ba480d43dbe 100644 --- a/models/managed_i_o_s_store_app.go +++ b/models/managed_i_o_s_store_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedIOSStoreApp +// ManagedIOSStoreApp contains properties and inherited properties for an iOS store app that you can manage with an Intune app protection policy. type ManagedIOSStoreApp struct { ManagedApp } -// NewManagedIOSStoreApp instantiates a new ManagedIOSStoreApp and sets the default values. +// NewManagedIOSStoreApp instantiates a new managedIOSStoreApp and sets the default values. func NewManagedIOSStoreApp()(*ManagedIOSStoreApp) { m := &ManagedIOSStoreApp{ ManagedApp: *NewManagedApp(), diff --git a/models/managed_mobile_app.go b/models/managed_mobile_app.go index 2cc464d9716..7e336a8eacd 100644 --- a/models/managed_mobile_app.go +++ b/models/managed_mobile_app.go @@ -7,6 +7,8 @@ import ( // ManagedMobileApp the identifier for the deployment an app. type ManagedMobileApp struct { Entity + // The OdataType property + OdataType *string } // NewManagedMobileApp instantiates a new managedMobileApp and sets the default values. func NewManagedMobileApp()(*ManagedMobileApp) { diff --git a/models/managed_mobile_app_collection_response.go b/models/managed_mobile_app_collection_response.go index f7578d9ac3a..5201d5488e0 100644 --- a/models/managed_mobile_app_collection_response.go +++ b/models/managed_mobile_app_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedMobileAppCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedMobileAppCollectionResponse instantiates a new ManagedMobileAppCollectionResponse and sets the default values. +// NewManagedMobileAppCollectionResponse instantiates a new managedMobileAppCollectionResponse and sets the default values. func NewManagedMobileAppCollectionResponse()(*ManagedMobileAppCollectionResponse) { m := &ManagedMobileAppCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managed_mobile_lob_app.go b/models/managed_mobile_lob_app.go index 9ce59b53472..018a10cfd27 100644 --- a/models/managed_mobile_lob_app.go +++ b/models/managed_mobile_lob_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ManagedMobileLobApp +// ManagedMobileLobApp an abstract base class containing properties for all managed mobile line of business apps. type ManagedMobileLobApp struct { ManagedApp } -// NewManagedMobileLobApp instantiates a new ManagedMobileLobApp and sets the default values. +// NewManagedMobileLobApp instantiates a new managedMobileLobApp and sets the default values. func NewManagedMobileLobApp()(*ManagedMobileLobApp) { m := &ManagedMobileLobApp{ ManagedApp: *NewManagedApp(), diff --git a/models/managed_mobile_lob_app_collection_response.go b/models/managed_mobile_lob_app_collection_response.go index e4f01e4d0ed..f29d22d28dc 100644 --- a/models/managed_mobile_lob_app_collection_response.go +++ b/models/managed_mobile_lob_app_collection_response.go @@ -8,7 +8,7 @@ import ( type ManagedMobileLobAppCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewManagedMobileLobAppCollectionResponse instantiates a new ManagedMobileLobAppCollectionResponse and sets the default values. +// NewManagedMobileLobAppCollectionResponse instantiates a new managedMobileLobAppCollectionResponse and sets the default values. func NewManagedMobileLobAppCollectionResponse()(*ManagedMobileLobAppCollectionResponse) { m := &ManagedMobileLobAppCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/aggregated_policy_compliance.go b/models/managedtenants/aggregated_policy_compliance.go index 96afa81d524..309114a3bb7 100644 --- a/models/managedtenants/aggregated_policy_compliance.go +++ b/models/managedtenants/aggregated_policy_compliance.go @@ -9,6 +9,8 @@ import ( // AggregatedPolicyCompliance type AggregatedPolicyCompliance struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewAggregatedPolicyCompliance instantiates a new aggregatedPolicyCompliance and sets the default values. func NewAggregatedPolicyCompliance()(*AggregatedPolicyCompliance) { diff --git a/models/managedtenants/aggregated_policy_compliance_collection_response.go b/models/managedtenants/aggregated_policy_compliance_collection_response.go index e87ad5256c9..2abae47f9cc 100644 --- a/models/managedtenants/aggregated_policy_compliance_collection_response.go +++ b/models/managedtenants/aggregated_policy_compliance_collection_response.go @@ -9,7 +9,7 @@ import ( type AggregatedPolicyComplianceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewAggregatedPolicyComplianceCollectionResponse instantiates a new AggregatedPolicyComplianceCollectionResponse and sets the default values. +// NewAggregatedPolicyComplianceCollectionResponse instantiates a new aggregatedPolicyComplianceCollectionResponse and sets the default values. func NewAggregatedPolicyComplianceCollectionResponse()(*AggregatedPolicyComplianceCollectionResponse) { m := &AggregatedPolicyComplianceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/app_performance.go b/models/managedtenants/app_performance.go index b3d0ec817d8..343f5b41cb6 100644 --- a/models/managedtenants/app_performance.go +++ b/models/managedtenants/app_performance.go @@ -9,6 +9,8 @@ import ( // AppPerformance type AppPerformance struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewAppPerformance instantiates a new appPerformance and sets the default values. func NewAppPerformance()(*AppPerformance) { diff --git a/models/managedtenants/app_performance_collection_response.go b/models/managedtenants/app_performance_collection_response.go index 0dbe70b0eef..d36df4e2404 100644 --- a/models/managedtenants/app_performance_collection_response.go +++ b/models/managedtenants/app_performance_collection_response.go @@ -9,7 +9,7 @@ import ( type AppPerformanceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewAppPerformanceCollectionResponse instantiates a new AppPerformanceCollectionResponse and sets the default values. +// NewAppPerformanceCollectionResponse instantiates a new appPerformanceCollectionResponse and sets the default values. func NewAppPerformanceCollectionResponse()(*AppPerformanceCollectionResponse) { m := &AppPerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/audit_event.go b/models/managedtenants/audit_event.go index 0ba00be8112..ee1a1d87df0 100644 --- a/models/managedtenants/audit_event.go +++ b/models/managedtenants/audit_event.go @@ -9,6 +9,8 @@ import ( // AuditEvent type AuditEvent struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewAuditEvent instantiates a new auditEvent and sets the default values. func NewAuditEvent()(*AuditEvent) { diff --git a/models/managedtenants/audit_event_collection_response.go b/models/managedtenants/audit_event_collection_response.go index 3992466cb5d..427b1342a3f 100644 --- a/models/managedtenants/audit_event_collection_response.go +++ b/models/managedtenants/audit_event_collection_response.go @@ -9,7 +9,7 @@ import ( type AuditEventCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewAuditEventCollectionResponse instantiates a new AuditEventCollectionResponse and sets the default values. +// NewAuditEventCollectionResponse instantiates a new auditEventCollectionResponse and sets the default values. func NewAuditEventCollectionResponse()(*AuditEventCollectionResponse) { m := &AuditEventCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/cloud_pc_connection.go b/models/managedtenants/cloud_pc_connection.go index f3ded304131..39db715dc29 100644 --- a/models/managedtenants/cloud_pc_connection.go +++ b/models/managedtenants/cloud_pc_connection.go @@ -9,6 +9,8 @@ import ( // CloudPcConnection type CloudPcConnection struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCloudPcConnection instantiates a new cloudPcConnection and sets the default values. func NewCloudPcConnection()(*CloudPcConnection) { diff --git a/models/managedtenants/cloud_pc_connection_collection_response.go b/models/managedtenants/cloud_pc_connection_collection_response.go index 2d42e744a28..e3d44f3b612 100644 --- a/models/managedtenants/cloud_pc_connection_collection_response.go +++ b/models/managedtenants/cloud_pc_connection_collection_response.go @@ -9,7 +9,7 @@ import ( type CloudPcConnectionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCloudPcConnectionCollectionResponse instantiates a new CloudPcConnectionCollectionResponse and sets the default values. +// NewCloudPcConnectionCollectionResponse instantiates a new cloudPcConnectionCollectionResponse and sets the default values. func NewCloudPcConnectionCollectionResponse()(*CloudPcConnectionCollectionResponse) { m := &CloudPcConnectionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/cloud_pc_device.go b/models/managedtenants/cloud_pc_device.go index 148cff4d5fe..9576e4be912 100644 --- a/models/managedtenants/cloud_pc_device.go +++ b/models/managedtenants/cloud_pc_device.go @@ -9,6 +9,8 @@ import ( // CloudPcDevice type CloudPcDevice struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCloudPcDevice instantiates a new cloudPcDevice and sets the default values. func NewCloudPcDevice()(*CloudPcDevice) { diff --git a/models/managedtenants/cloud_pc_device_collection_response.go b/models/managedtenants/cloud_pc_device_collection_response.go index c342e0bbbdc..9b1d2963727 100644 --- a/models/managedtenants/cloud_pc_device_collection_response.go +++ b/models/managedtenants/cloud_pc_device_collection_response.go @@ -9,7 +9,7 @@ import ( type CloudPcDeviceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCloudPcDeviceCollectionResponse instantiates a new CloudPcDeviceCollectionResponse and sets the default values. +// NewCloudPcDeviceCollectionResponse instantiates a new cloudPcDeviceCollectionResponse and sets the default values. func NewCloudPcDeviceCollectionResponse()(*CloudPcDeviceCollectionResponse) { m := &CloudPcDeviceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/cloud_pc_overview.go b/models/managedtenants/cloud_pc_overview.go index 1a63285bb69..cc4ee94c1bd 100644 --- a/models/managedtenants/cloud_pc_overview.go +++ b/models/managedtenants/cloud_pc_overview.go @@ -9,6 +9,8 @@ import ( // CloudPcOverview type CloudPcOverview struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCloudPcOverview instantiates a new cloudPcOverview and sets the default values. func NewCloudPcOverview()(*CloudPcOverview) { diff --git a/models/managedtenants/cloud_pc_overview_collection_response.go b/models/managedtenants/cloud_pc_overview_collection_response.go index cc9c66403f0..6ed3226e4ea 100644 --- a/models/managedtenants/cloud_pc_overview_collection_response.go +++ b/models/managedtenants/cloud_pc_overview_collection_response.go @@ -9,7 +9,7 @@ import ( type CloudPcOverviewCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCloudPcOverviewCollectionResponse instantiates a new CloudPcOverviewCollectionResponse and sets the default values. +// NewCloudPcOverviewCollectionResponse instantiates a new cloudPcOverviewCollectionResponse and sets the default values. func NewCloudPcOverviewCollectionResponse()(*CloudPcOverviewCollectionResponse) { m := &CloudPcOverviewCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/conditional_access_policy_coverage.go b/models/managedtenants/conditional_access_policy_coverage.go index 04181238c5a..5e72657aaab 100644 --- a/models/managedtenants/conditional_access_policy_coverage.go +++ b/models/managedtenants/conditional_access_policy_coverage.go @@ -9,6 +9,8 @@ import ( // ConditionalAccessPolicyCoverage type ConditionalAccessPolicyCoverage struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewConditionalAccessPolicyCoverage instantiates a new conditionalAccessPolicyCoverage and sets the default values. func NewConditionalAccessPolicyCoverage()(*ConditionalAccessPolicyCoverage) { diff --git a/models/managedtenants/conditional_access_policy_coverage_collection_response.go b/models/managedtenants/conditional_access_policy_coverage_collection_response.go index 3f3889a866b..aa47b2384b3 100644 --- a/models/managedtenants/conditional_access_policy_coverage_collection_response.go +++ b/models/managedtenants/conditional_access_policy_coverage_collection_response.go @@ -9,7 +9,7 @@ import ( type ConditionalAccessPolicyCoverageCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewConditionalAccessPolicyCoverageCollectionResponse instantiates a new ConditionalAccessPolicyCoverageCollectionResponse and sets the default values. +// NewConditionalAccessPolicyCoverageCollectionResponse instantiates a new conditionalAccessPolicyCoverageCollectionResponse and sets the default values. func NewConditionalAccessPolicyCoverageCollectionResponse()(*ConditionalAccessPolicyCoverageCollectionResponse) { m := &ConditionalAccessPolicyCoverageCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/credential_user_registrations_summary.go b/models/managedtenants/credential_user_registrations_summary.go index 847f53b1098..32fdf4b21d7 100644 --- a/models/managedtenants/credential_user_registrations_summary.go +++ b/models/managedtenants/credential_user_registrations_summary.go @@ -9,6 +9,8 @@ import ( // CredentialUserRegistrationsSummary type CredentialUserRegistrationsSummary struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCredentialUserRegistrationsSummary instantiates a new credentialUserRegistrationsSummary and sets the default values. func NewCredentialUserRegistrationsSummary()(*CredentialUserRegistrationsSummary) { diff --git a/models/managedtenants/credential_user_registrations_summary_collection_response.go b/models/managedtenants/credential_user_registrations_summary_collection_response.go index b3739947c7e..9badfae0d1a 100644 --- a/models/managedtenants/credential_user_registrations_summary_collection_response.go +++ b/models/managedtenants/credential_user_registrations_summary_collection_response.go @@ -9,7 +9,7 @@ import ( type CredentialUserRegistrationsSummaryCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCredentialUserRegistrationsSummaryCollectionResponse instantiates a new CredentialUserRegistrationsSummaryCollectionResponse and sets the default values. +// NewCredentialUserRegistrationsSummaryCollectionResponse instantiates a new credentialUserRegistrationsSummaryCollectionResponse and sets the default values. func NewCredentialUserRegistrationsSummaryCollectionResponse()(*CredentialUserRegistrationsSummaryCollectionResponse) { m := &CredentialUserRegistrationsSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/device_app_performance.go b/models/managedtenants/device_app_performance.go index bf223be8612..60aea8697b1 100644 --- a/models/managedtenants/device_app_performance.go +++ b/models/managedtenants/device_app_performance.go @@ -9,6 +9,8 @@ import ( // DeviceAppPerformance type DeviceAppPerformance struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDeviceAppPerformance instantiates a new deviceAppPerformance and sets the default values. func NewDeviceAppPerformance()(*DeviceAppPerformance) { diff --git a/models/managedtenants/device_app_performance_collection_response.go b/models/managedtenants/device_app_performance_collection_response.go index 22f7905f9f5..b55d23d52d6 100644 --- a/models/managedtenants/device_app_performance_collection_response.go +++ b/models/managedtenants/device_app_performance_collection_response.go @@ -9,7 +9,7 @@ import ( type DeviceAppPerformanceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewDeviceAppPerformanceCollectionResponse instantiates a new DeviceAppPerformanceCollectionResponse and sets the default values. +// NewDeviceAppPerformanceCollectionResponse instantiates a new deviceAppPerformanceCollectionResponse and sets the default values. func NewDeviceAppPerformanceCollectionResponse()(*DeviceAppPerformanceCollectionResponse) { m := &DeviceAppPerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/device_compliance_policy_setting_state_summary.go b/models/managedtenants/device_compliance_policy_setting_state_summary.go index 44dcb0c12f0..a86e47b8f12 100644 --- a/models/managedtenants/device_compliance_policy_setting_state_summary.go +++ b/models/managedtenants/device_compliance_policy_setting_state_summary.go @@ -9,6 +9,8 @@ import ( // DeviceCompliancePolicySettingStateSummary type DeviceCompliancePolicySettingStateSummary struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDeviceCompliancePolicySettingStateSummary instantiates a new deviceCompliancePolicySettingStateSummary and sets the default values. func NewDeviceCompliancePolicySettingStateSummary()(*DeviceCompliancePolicySettingStateSummary) { diff --git a/models/managedtenants/device_compliance_policy_setting_state_summary_collection_response.go b/models/managedtenants/device_compliance_policy_setting_state_summary_collection_response.go index d4c41acb00b..9d867f99723 100644 --- a/models/managedtenants/device_compliance_policy_setting_state_summary_collection_response.go +++ b/models/managedtenants/device_compliance_policy_setting_state_summary_collection_response.go @@ -9,7 +9,7 @@ import ( type DeviceCompliancePolicySettingStateSummaryCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewDeviceCompliancePolicySettingStateSummaryCollectionResponse instantiates a new DeviceCompliancePolicySettingStateSummaryCollectionResponse and sets the default values. +// NewDeviceCompliancePolicySettingStateSummaryCollectionResponse instantiates a new deviceCompliancePolicySettingStateSummaryCollectionResponse and sets the default values. func NewDeviceCompliancePolicySettingStateSummaryCollectionResponse()(*DeviceCompliancePolicySettingStateSummaryCollectionResponse) { m := &DeviceCompliancePolicySettingStateSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/device_health_status.go b/models/managedtenants/device_health_status.go index 7ad64ea21d2..8bf247d706f 100644 --- a/models/managedtenants/device_health_status.go +++ b/models/managedtenants/device_health_status.go @@ -9,6 +9,8 @@ import ( // DeviceHealthStatus type DeviceHealthStatus struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDeviceHealthStatus instantiates a new deviceHealthStatus and sets the default values. func NewDeviceHealthStatus()(*DeviceHealthStatus) { diff --git a/models/managedtenants/device_health_status_collection_response.go b/models/managedtenants/device_health_status_collection_response.go index 5de8ddf7534..7ad9f03b984 100644 --- a/models/managedtenants/device_health_status_collection_response.go +++ b/models/managedtenants/device_health_status_collection_response.go @@ -9,7 +9,7 @@ import ( type DeviceHealthStatusCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewDeviceHealthStatusCollectionResponse instantiates a new DeviceHealthStatusCollectionResponse and sets the default values. +// NewDeviceHealthStatusCollectionResponse instantiates a new deviceHealthStatusCollectionResponse and sets the default values. func NewDeviceHealthStatusCollectionResponse()(*DeviceHealthStatusCollectionResponse) { m := &DeviceHealthStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/email.go b/models/managedtenants/email.go index eb64870fd29..9705689bdca 100644 --- a/models/managedtenants/email.go +++ b/models/managedtenants/email.go @@ -10,7 +10,7 @@ type Email struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewEmail instantiates a new Email and sets the default values. +// NewEmail instantiates a new email and sets the default values. func NewEmail()(*Email) { m := &Email{ } diff --git a/models/managedtenants/managed_device_compliance.go b/models/managedtenants/managed_device_compliance.go index ed450b08f96..5ee05d2f76b 100644 --- a/models/managedtenants/managed_device_compliance.go +++ b/models/managedtenants/managed_device_compliance.go @@ -9,6 +9,8 @@ import ( // ManagedDeviceCompliance type ManagedDeviceCompliance struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagedDeviceCompliance instantiates a new managedDeviceCompliance and sets the default values. func NewManagedDeviceCompliance()(*ManagedDeviceCompliance) { diff --git a/models/managedtenants/managed_device_compliance_collection_response.go b/models/managedtenants/managed_device_compliance_collection_response.go index 3bf2332423e..c96a262effb 100644 --- a/models/managedtenants/managed_device_compliance_collection_response.go +++ b/models/managedtenants/managed_device_compliance_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagedDeviceComplianceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagedDeviceComplianceCollectionResponse instantiates a new ManagedDeviceComplianceCollectionResponse and sets the default values. +// NewManagedDeviceComplianceCollectionResponse instantiates a new managedDeviceComplianceCollectionResponse and sets the default values. func NewManagedDeviceComplianceCollectionResponse()(*ManagedDeviceComplianceCollectionResponse) { m := &ManagedDeviceComplianceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/managed_device_compliance_trend.go b/models/managedtenants/managed_device_compliance_trend.go index ca4b79c1337..76137a8b23d 100644 --- a/models/managedtenants/managed_device_compliance_trend.go +++ b/models/managedtenants/managed_device_compliance_trend.go @@ -8,6 +8,8 @@ import ( // ManagedDeviceComplianceTrend type ManagedDeviceComplianceTrend struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagedDeviceComplianceTrend instantiates a new managedDeviceComplianceTrend and sets the default values. func NewManagedDeviceComplianceTrend()(*ManagedDeviceComplianceTrend) { diff --git a/models/managedtenants/managed_device_compliance_trend_collection_response.go b/models/managedtenants/managed_device_compliance_trend_collection_response.go index 83fa9bc60fa..645a6bc2c4a 100644 --- a/models/managedtenants/managed_device_compliance_trend_collection_response.go +++ b/models/managedtenants/managed_device_compliance_trend_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagedDeviceComplianceTrendCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagedDeviceComplianceTrendCollectionResponse instantiates a new ManagedDeviceComplianceTrendCollectionResponse and sets the default values. +// NewManagedDeviceComplianceTrendCollectionResponse instantiates a new managedDeviceComplianceTrendCollectionResponse and sets the default values. func NewManagedDeviceComplianceTrendCollectionResponse()(*ManagedDeviceComplianceTrendCollectionResponse) { m := &ManagedDeviceComplianceTrendCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/managed_tenant.go b/models/managedtenants/managed_tenant.go index 76367a3cdf1..28988818ecb 100644 --- a/models/managedtenants/managed_tenant.go +++ b/models/managedtenants/managed_tenant.go @@ -8,8 +8,10 @@ import ( // ManagedTenant type ManagedTenant struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewManagedTenant instantiates a new ManagedTenant and sets the default values. +// NewManagedTenant instantiates a new managedTenant and sets the default values. func NewManagedTenant()(*ManagedTenant) { m := &ManagedTenant{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/managedtenants/managed_tenant_alert.go b/models/managedtenants/managed_tenant_alert.go index b1050324941..900762eb907 100644 --- a/models/managedtenants/managed_tenant_alert.go +++ b/models/managedtenants/managed_tenant_alert.go @@ -9,6 +9,8 @@ import ( // ManagedTenantAlert type ManagedTenantAlert struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagedTenantAlert instantiates a new managedTenantAlert and sets the default values. func NewManagedTenantAlert()(*ManagedTenantAlert) { diff --git a/models/managedtenants/managed_tenant_alert_collection_response.go b/models/managedtenants/managed_tenant_alert_collection_response.go index 191a86901eb..3767331d89d 100644 --- a/models/managedtenants/managed_tenant_alert_collection_response.go +++ b/models/managedtenants/managed_tenant_alert_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagedTenantAlertCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagedTenantAlertCollectionResponse instantiates a new ManagedTenantAlertCollectionResponse and sets the default values. +// NewManagedTenantAlertCollectionResponse instantiates a new managedTenantAlertCollectionResponse and sets the default values. func NewManagedTenantAlertCollectionResponse()(*ManagedTenantAlertCollectionResponse) { m := &ManagedTenantAlertCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/managed_tenant_alert_log.go b/models/managedtenants/managed_tenant_alert_log.go index 0562cb11c41..987996f6a05 100644 --- a/models/managedtenants/managed_tenant_alert_log.go +++ b/models/managedtenants/managed_tenant_alert_log.go @@ -9,6 +9,8 @@ import ( // ManagedTenantAlertLog type ManagedTenantAlertLog struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagedTenantAlertLog instantiates a new managedTenantAlertLog and sets the default values. func NewManagedTenantAlertLog()(*ManagedTenantAlertLog) { diff --git a/models/managedtenants/managed_tenant_alert_log_collection_response.go b/models/managedtenants/managed_tenant_alert_log_collection_response.go index e477bfcfce5..b4cb046eb26 100644 --- a/models/managedtenants/managed_tenant_alert_log_collection_response.go +++ b/models/managedtenants/managed_tenant_alert_log_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagedTenantAlertLogCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagedTenantAlertLogCollectionResponse instantiates a new ManagedTenantAlertLogCollectionResponse and sets the default values. +// NewManagedTenantAlertLogCollectionResponse instantiates a new managedTenantAlertLogCollectionResponse and sets the default values. func NewManagedTenantAlertLogCollectionResponse()(*ManagedTenantAlertLogCollectionResponse) { m := &ManagedTenantAlertLogCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/managed_tenant_alert_rule.go b/models/managedtenants/managed_tenant_alert_rule.go index e4a8d6142f1..fd32362db59 100644 --- a/models/managedtenants/managed_tenant_alert_rule.go +++ b/models/managedtenants/managed_tenant_alert_rule.go @@ -9,6 +9,8 @@ import ( // ManagedTenantAlertRule type ManagedTenantAlertRule struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagedTenantAlertRule instantiates a new managedTenantAlertRule and sets the default values. func NewManagedTenantAlertRule()(*ManagedTenantAlertRule) { diff --git a/models/managedtenants/managed_tenant_alert_rule_collection_response.go b/models/managedtenants/managed_tenant_alert_rule_collection_response.go index c9bf9ec0bd0..593be0a999b 100644 --- a/models/managedtenants/managed_tenant_alert_rule_collection_response.go +++ b/models/managedtenants/managed_tenant_alert_rule_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagedTenantAlertRuleCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagedTenantAlertRuleCollectionResponse instantiates a new ManagedTenantAlertRuleCollectionResponse and sets the default values. +// NewManagedTenantAlertRuleCollectionResponse instantiates a new managedTenantAlertRuleCollectionResponse and sets the default values. func NewManagedTenantAlertRuleCollectionResponse()(*ManagedTenantAlertRuleCollectionResponse) { m := &ManagedTenantAlertRuleCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/managed_tenant_alert_rule_definition.go b/models/managedtenants/managed_tenant_alert_rule_definition.go index 83bb2e3a855..c0859a5b442 100644 --- a/models/managedtenants/managed_tenant_alert_rule_definition.go +++ b/models/managedtenants/managed_tenant_alert_rule_definition.go @@ -9,6 +9,8 @@ import ( // ManagedTenantAlertRuleDefinition type ManagedTenantAlertRuleDefinition struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagedTenantAlertRuleDefinition instantiates a new managedTenantAlertRuleDefinition and sets the default values. func NewManagedTenantAlertRuleDefinition()(*ManagedTenantAlertRuleDefinition) { diff --git a/models/managedtenants/managed_tenant_alert_rule_definition_collection_response.go b/models/managedtenants/managed_tenant_alert_rule_definition_collection_response.go index 9a3dfe41cd1..72f0f19a9f6 100644 --- a/models/managedtenants/managed_tenant_alert_rule_definition_collection_response.go +++ b/models/managedtenants/managed_tenant_alert_rule_definition_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagedTenantAlertRuleDefinitionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagedTenantAlertRuleDefinitionCollectionResponse instantiates a new ManagedTenantAlertRuleDefinitionCollectionResponse and sets the default values. +// NewManagedTenantAlertRuleDefinitionCollectionResponse instantiates a new managedTenantAlertRuleDefinitionCollectionResponse and sets the default values. func NewManagedTenantAlertRuleDefinitionCollectionResponse()(*ManagedTenantAlertRuleDefinitionCollectionResponse) { m := &ManagedTenantAlertRuleDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/managed_tenant_api_notification.go b/models/managedtenants/managed_tenant_api_notification.go index ba8e7921b10..a6c78e88665 100644 --- a/models/managedtenants/managed_tenant_api_notification.go +++ b/models/managedtenants/managed_tenant_api_notification.go @@ -9,6 +9,8 @@ import ( // ManagedTenantApiNotification type ManagedTenantApiNotification struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagedTenantApiNotification instantiates a new managedTenantApiNotification and sets the default values. func NewManagedTenantApiNotification()(*ManagedTenantApiNotification) { diff --git a/models/managedtenants/managed_tenant_api_notification_collection_response.go b/models/managedtenants/managed_tenant_api_notification_collection_response.go index ef41d3bb9bc..eec07d65185 100644 --- a/models/managedtenants/managed_tenant_api_notification_collection_response.go +++ b/models/managedtenants/managed_tenant_api_notification_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagedTenantApiNotificationCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagedTenantApiNotificationCollectionResponse instantiates a new ManagedTenantApiNotificationCollectionResponse and sets the default values. +// NewManagedTenantApiNotificationCollectionResponse instantiates a new managedTenantApiNotificationCollectionResponse and sets the default values. func NewManagedTenantApiNotificationCollectionResponse()(*ManagedTenantApiNotificationCollectionResponse) { m := &ManagedTenantApiNotificationCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/managed_tenant_email_notification.go b/models/managedtenants/managed_tenant_email_notification.go index 4f1fbd5c35a..0d94ada999e 100644 --- a/models/managedtenants/managed_tenant_email_notification.go +++ b/models/managedtenants/managed_tenant_email_notification.go @@ -9,6 +9,8 @@ import ( // ManagedTenantEmailNotification type ManagedTenantEmailNotification struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagedTenantEmailNotification instantiates a new managedTenantEmailNotification and sets the default values. func NewManagedTenantEmailNotification()(*ManagedTenantEmailNotification) { diff --git a/models/managedtenants/managed_tenant_email_notification_collection_response.go b/models/managedtenants/managed_tenant_email_notification_collection_response.go index a7195a3f89b..27449d1d701 100644 --- a/models/managedtenants/managed_tenant_email_notification_collection_response.go +++ b/models/managedtenants/managed_tenant_email_notification_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagedTenantEmailNotificationCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagedTenantEmailNotificationCollectionResponse instantiates a new ManagedTenantEmailNotificationCollectionResponse and sets the default values. +// NewManagedTenantEmailNotificationCollectionResponse instantiates a new managedTenantEmailNotificationCollectionResponse and sets the default values. func NewManagedTenantEmailNotificationCollectionResponse()(*ManagedTenantEmailNotificationCollectionResponse) { m := &ManagedTenantEmailNotificationCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/managed_tenant_ticketing_endpoint.go b/models/managedtenants/managed_tenant_ticketing_endpoint.go index dba2bd8be1e..0214bbe5000 100644 --- a/models/managedtenants/managed_tenant_ticketing_endpoint.go +++ b/models/managedtenants/managed_tenant_ticketing_endpoint.go @@ -9,6 +9,8 @@ import ( // ManagedTenantTicketingEndpoint type ManagedTenantTicketingEndpoint struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagedTenantTicketingEndpoint instantiates a new managedTenantTicketingEndpoint and sets the default values. func NewManagedTenantTicketingEndpoint()(*ManagedTenantTicketingEndpoint) { diff --git a/models/managedtenants/managed_tenant_ticketing_endpoint_collection_response.go b/models/managedtenants/managed_tenant_ticketing_endpoint_collection_response.go index fdadee8637f..2fe9d0f1645 100644 --- a/models/managedtenants/managed_tenant_ticketing_endpoint_collection_response.go +++ b/models/managedtenants/managed_tenant_ticketing_endpoint_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagedTenantTicketingEndpointCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagedTenantTicketingEndpointCollectionResponse instantiates a new ManagedTenantTicketingEndpointCollectionResponse and sets the default values. +// NewManagedTenantTicketingEndpointCollectionResponse instantiates a new managedTenantTicketingEndpointCollectionResponse and sets the default values. func NewManagedTenantTicketingEndpointCollectionResponse()(*ManagedTenantTicketingEndpointCollectionResponse) { m := &ManagedTenantTicketingEndpointCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/management_action.go b/models/managedtenants/management_action.go index 8128cf19946..5b76ac94024 100644 --- a/models/managedtenants/management_action.go +++ b/models/managedtenants/management_action.go @@ -8,6 +8,8 @@ import ( // ManagementAction type ManagementAction struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagementAction instantiates a new managementAction and sets the default values. func NewManagementAction()(*ManagementAction) { diff --git a/models/managedtenants/management_action_collection_response.go b/models/managedtenants/management_action_collection_response.go index 3b424980342..dfc0e638b9d 100644 --- a/models/managedtenants/management_action_collection_response.go +++ b/models/managedtenants/management_action_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagementActionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagementActionCollectionResponse instantiates a new ManagementActionCollectionResponse and sets the default values. +// NewManagementActionCollectionResponse instantiates a new managementActionCollectionResponse and sets the default values. func NewManagementActionCollectionResponse()(*ManagementActionCollectionResponse) { m := &ManagementActionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/management_action_tenant_deployment_status.go b/models/managedtenants/management_action_tenant_deployment_status.go index 553db3d7150..bf6b52377e3 100644 --- a/models/managedtenants/management_action_tenant_deployment_status.go +++ b/models/managedtenants/management_action_tenant_deployment_status.go @@ -8,6 +8,8 @@ import ( // ManagementActionTenantDeploymentStatus type ManagementActionTenantDeploymentStatus struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagementActionTenantDeploymentStatus instantiates a new managementActionTenantDeploymentStatus and sets the default values. func NewManagementActionTenantDeploymentStatus()(*ManagementActionTenantDeploymentStatus) { diff --git a/models/managedtenants/management_action_tenant_deployment_status_collection_response.go b/models/managedtenants/management_action_tenant_deployment_status_collection_response.go index e570493e4b2..5759a2f5f0a 100644 --- a/models/managedtenants/management_action_tenant_deployment_status_collection_response.go +++ b/models/managedtenants/management_action_tenant_deployment_status_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagementActionTenantDeploymentStatusCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagementActionTenantDeploymentStatusCollectionResponse instantiates a new ManagementActionTenantDeploymentStatusCollectionResponse and sets the default values. +// NewManagementActionTenantDeploymentStatusCollectionResponse instantiates a new managementActionTenantDeploymentStatusCollectionResponse and sets the default values. func NewManagementActionTenantDeploymentStatusCollectionResponse()(*ManagementActionTenantDeploymentStatusCollectionResponse) { m := &ManagementActionTenantDeploymentStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/management_intent.go b/models/managedtenants/management_intent.go index f7f0a6e329f..1fa000eac2e 100644 --- a/models/managedtenants/management_intent.go +++ b/models/managedtenants/management_intent.go @@ -8,6 +8,8 @@ import ( // ManagementIntent type ManagementIntent struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagementIntent instantiates a new managementIntent and sets the default values. func NewManagementIntent()(*ManagementIntent) { diff --git a/models/managedtenants/management_intent_collection_response.go b/models/managedtenants/management_intent_collection_response.go index 09c5188ff89..ae2fb145be6 100644 --- a/models/managedtenants/management_intent_collection_response.go +++ b/models/managedtenants/management_intent_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagementIntentCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagementIntentCollectionResponse instantiates a new ManagementIntentCollectionResponse and sets the default values. +// NewManagementIntentCollectionResponse instantiates a new managementIntentCollectionResponse and sets the default values. func NewManagementIntentCollectionResponse()(*ManagementIntentCollectionResponse) { m := &ManagementIntentCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/management_template.go b/models/managedtenants/management_template.go index 563f28f1e55..a13bdc0d902 100644 --- a/models/managedtenants/management_template.go +++ b/models/managedtenants/management_template.go @@ -9,6 +9,8 @@ import ( // ManagementTemplate type ManagementTemplate struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagementTemplate instantiates a new managementTemplate and sets the default values. func NewManagementTemplate()(*ManagementTemplate) { diff --git a/models/managedtenants/management_template_collection.go b/models/managedtenants/management_template_collection.go index ccfafd68568..eb99c977e79 100644 --- a/models/managedtenants/management_template_collection.go +++ b/models/managedtenants/management_template_collection.go @@ -9,6 +9,8 @@ import ( // ManagementTemplateCollection type ManagementTemplateCollection struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagementTemplateCollection instantiates a new managementTemplateCollection and sets the default values. func NewManagementTemplateCollection()(*ManagementTemplateCollection) { diff --git a/models/managedtenants/management_template_collection_collection_response.go b/models/managedtenants/management_template_collection_collection_response.go index b98ec4c00db..847f5ba4572 100644 --- a/models/managedtenants/management_template_collection_collection_response.go +++ b/models/managedtenants/management_template_collection_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagementTemplateCollectionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagementTemplateCollectionCollectionResponse instantiates a new ManagementTemplateCollectionCollectionResponse and sets the default values. +// NewManagementTemplateCollectionCollectionResponse instantiates a new managementTemplateCollectionCollectionResponse and sets the default values. func NewManagementTemplateCollectionCollectionResponse()(*ManagementTemplateCollectionCollectionResponse) { m := &ManagementTemplateCollectionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/management_template_collection_response.go b/models/managedtenants/management_template_collection_response.go index d74e2cd5bdd..4d20b9ec304 100644 --- a/models/managedtenants/management_template_collection_response.go +++ b/models/managedtenants/management_template_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagementTemplateCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagementTemplateCollectionResponse instantiates a new ManagementTemplateCollectionResponse and sets the default values. +// NewManagementTemplateCollectionResponse instantiates a new managementTemplateCollectionResponse and sets the default values. func NewManagementTemplateCollectionResponse()(*ManagementTemplateCollectionResponse) { m := &ManagementTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/management_template_collection_tenant_summary.go b/models/managedtenants/management_template_collection_tenant_summary.go index 9bec86278a3..1b7ed50629c 100644 --- a/models/managedtenants/management_template_collection_tenant_summary.go +++ b/models/managedtenants/management_template_collection_tenant_summary.go @@ -9,6 +9,8 @@ import ( // ManagementTemplateCollectionTenantSummary type ManagementTemplateCollectionTenantSummary struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagementTemplateCollectionTenantSummary instantiates a new managementTemplateCollectionTenantSummary and sets the default values. func NewManagementTemplateCollectionTenantSummary()(*ManagementTemplateCollectionTenantSummary) { diff --git a/models/managedtenants/management_template_collection_tenant_summary_collection_response.go b/models/managedtenants/management_template_collection_tenant_summary_collection_response.go index e844150f3b2..d6b7181e0c4 100644 --- a/models/managedtenants/management_template_collection_tenant_summary_collection_response.go +++ b/models/managedtenants/management_template_collection_tenant_summary_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagementTemplateCollectionTenantSummaryCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagementTemplateCollectionTenantSummaryCollectionResponse instantiates a new ManagementTemplateCollectionTenantSummaryCollectionResponse and sets the default values. +// NewManagementTemplateCollectionTenantSummaryCollectionResponse instantiates a new managementTemplateCollectionTenantSummaryCollectionResponse and sets the default values. func NewManagementTemplateCollectionTenantSummaryCollectionResponse()(*ManagementTemplateCollectionTenantSummaryCollectionResponse) { m := &ManagementTemplateCollectionTenantSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/management_template_step.go b/models/managedtenants/management_template_step.go index 1a1a8ee5a69..1ce1955a6b7 100644 --- a/models/managedtenants/management_template_step.go +++ b/models/managedtenants/management_template_step.go @@ -9,6 +9,8 @@ import ( // ManagementTemplateStep type ManagementTemplateStep struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagementTemplateStep instantiates a new managementTemplateStep and sets the default values. func NewManagementTemplateStep()(*ManagementTemplateStep) { diff --git a/models/managedtenants/management_template_step_collection_response.go b/models/managedtenants/management_template_step_collection_response.go index 0db06c114ca..2ac9510c9cd 100644 --- a/models/managedtenants/management_template_step_collection_response.go +++ b/models/managedtenants/management_template_step_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagementTemplateStepCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagementTemplateStepCollectionResponse instantiates a new ManagementTemplateStepCollectionResponse and sets the default values. +// NewManagementTemplateStepCollectionResponse instantiates a new managementTemplateStepCollectionResponse and sets the default values. func NewManagementTemplateStepCollectionResponse()(*ManagementTemplateStepCollectionResponse) { m := &ManagementTemplateStepCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/management_template_step_deployment.go b/models/managedtenants/management_template_step_deployment.go index a39acde9d86..97b10444056 100644 --- a/models/managedtenants/management_template_step_deployment.go +++ b/models/managedtenants/management_template_step_deployment.go @@ -9,6 +9,8 @@ import ( // ManagementTemplateStepDeployment type ManagementTemplateStepDeployment struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagementTemplateStepDeployment instantiates a new managementTemplateStepDeployment and sets the default values. func NewManagementTemplateStepDeployment()(*ManagementTemplateStepDeployment) { diff --git a/models/managedtenants/management_template_step_deployment_collection_response.go b/models/managedtenants/management_template_step_deployment_collection_response.go index 68bd2ff0e46..f5f9fcafb82 100644 --- a/models/managedtenants/management_template_step_deployment_collection_response.go +++ b/models/managedtenants/management_template_step_deployment_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagementTemplateStepDeploymentCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagementTemplateStepDeploymentCollectionResponse instantiates a new ManagementTemplateStepDeploymentCollectionResponse and sets the default values. +// NewManagementTemplateStepDeploymentCollectionResponse instantiates a new managementTemplateStepDeploymentCollectionResponse and sets the default values. func NewManagementTemplateStepDeploymentCollectionResponse()(*ManagementTemplateStepDeploymentCollectionResponse) { m := &ManagementTemplateStepDeploymentCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/management_template_step_tenant_summary.go b/models/managedtenants/management_template_step_tenant_summary.go index ab9c59bd198..de2b0e48cdf 100644 --- a/models/managedtenants/management_template_step_tenant_summary.go +++ b/models/managedtenants/management_template_step_tenant_summary.go @@ -9,6 +9,8 @@ import ( // ManagementTemplateStepTenantSummary type ManagementTemplateStepTenantSummary struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagementTemplateStepTenantSummary instantiates a new managementTemplateStepTenantSummary and sets the default values. func NewManagementTemplateStepTenantSummary()(*ManagementTemplateStepTenantSummary) { diff --git a/models/managedtenants/management_template_step_tenant_summary_collection_response.go b/models/managedtenants/management_template_step_tenant_summary_collection_response.go index 83d204bb962..045f39be54c 100644 --- a/models/managedtenants/management_template_step_tenant_summary_collection_response.go +++ b/models/managedtenants/management_template_step_tenant_summary_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagementTemplateStepTenantSummaryCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagementTemplateStepTenantSummaryCollectionResponse instantiates a new ManagementTemplateStepTenantSummaryCollectionResponse and sets the default values. +// NewManagementTemplateStepTenantSummaryCollectionResponse instantiates a new managementTemplateStepTenantSummaryCollectionResponse and sets the default values. func NewManagementTemplateStepTenantSummaryCollectionResponse()(*ManagementTemplateStepTenantSummaryCollectionResponse) { m := &ManagementTemplateStepTenantSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/management_template_step_version.go b/models/managedtenants/management_template_step_version.go index 7aa02b484a2..383c2c4afd4 100644 --- a/models/managedtenants/management_template_step_version.go +++ b/models/managedtenants/management_template_step_version.go @@ -9,6 +9,8 @@ import ( // ManagementTemplateStepVersion type ManagementTemplateStepVersion struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewManagementTemplateStepVersion instantiates a new managementTemplateStepVersion and sets the default values. func NewManagementTemplateStepVersion()(*ManagementTemplateStepVersion) { diff --git a/models/managedtenants/management_template_step_version_collection_response.go b/models/managedtenants/management_template_step_version_collection_response.go index c15187b2a97..eea06192771 100644 --- a/models/managedtenants/management_template_step_version_collection_response.go +++ b/models/managedtenants/management_template_step_version_collection_response.go @@ -9,7 +9,7 @@ import ( type ManagementTemplateStepVersionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewManagementTemplateStepVersionCollectionResponse instantiates a new ManagementTemplateStepVersionCollectionResponse and sets the default values. +// NewManagementTemplateStepVersionCollectionResponse instantiates a new managementTemplateStepVersionCollectionResponse and sets the default values. func NewManagementTemplateStepVersionCollectionResponse()(*ManagementTemplateStepVersionCollectionResponse) { m := &ManagementTemplateStepVersionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/my_role.go b/models/managedtenants/my_role.go index 6604c954707..133837d45d0 100644 --- a/models/managedtenants/my_role.go +++ b/models/managedtenants/my_role.go @@ -10,7 +10,7 @@ type MyRole struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewMyRole instantiates a new MyRole and sets the default values. +// NewMyRole instantiates a new myRole and sets the default values. func NewMyRole()(*MyRole) { m := &MyRole{ } diff --git a/models/managedtenants/my_role_collection_response.go b/models/managedtenants/my_role_collection_response.go index 2b901f33194..26e04627cf9 100644 --- a/models/managedtenants/my_role_collection_response.go +++ b/models/managedtenants/my_role_collection_response.go @@ -9,7 +9,7 @@ import ( type MyRoleCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewMyRoleCollectionResponse instantiates a new MyRoleCollectionResponse and sets the default values. +// NewMyRoleCollectionResponse instantiates a new myRoleCollectionResponse and sets the default values. func NewMyRoleCollectionResponse()(*MyRoleCollectionResponse) { m := &MyRoleCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/role_definition.go b/models/managedtenants/role_definition.go index 6aa2a131381..c97202c6d56 100644 --- a/models/managedtenants/role_definition.go +++ b/models/managedtenants/role_definition.go @@ -10,7 +10,7 @@ type RoleDefinition struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewRoleDefinition instantiates a new RoleDefinition and sets the default values. +// NewRoleDefinition instantiates a new roleDefinition and sets the default values. func NewRoleDefinition()(*RoleDefinition) { m := &RoleDefinition{ } diff --git a/models/managedtenants/tenant.go b/models/managedtenants/tenant.go index bcc89346230..aa7d012f0b0 100644 --- a/models/managedtenants/tenant.go +++ b/models/managedtenants/tenant.go @@ -9,8 +9,10 @@ import ( // Tenant type Tenant struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewTenant instantiates a new Tenant and sets the default values. +// NewTenant instantiates a new tenant and sets the default values. func NewTenant()(*Tenant) { m := &Tenant{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/managedtenants/tenant_collection_response.go b/models/managedtenants/tenant_collection_response.go index 5c5ef4e7ae6..6f7ec58d553 100644 --- a/models/managedtenants/tenant_collection_response.go +++ b/models/managedtenants/tenant_collection_response.go @@ -9,7 +9,7 @@ import ( type TenantCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewTenantCollectionResponse instantiates a new TenantCollectionResponse and sets the default values. +// NewTenantCollectionResponse instantiates a new tenantCollectionResponse and sets the default values. func NewTenantCollectionResponse()(*TenantCollectionResponse) { m := &TenantCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/tenant_customized_information.go b/models/managedtenants/tenant_customized_information.go index 3883639972d..0c8bea61a95 100644 --- a/models/managedtenants/tenant_customized_information.go +++ b/models/managedtenants/tenant_customized_information.go @@ -8,8 +8,10 @@ import ( // TenantCustomizedInformation type TenantCustomizedInformation struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewTenantCustomizedInformation instantiates a new TenantCustomizedInformation and sets the default values. +// NewTenantCustomizedInformation instantiates a new tenantCustomizedInformation and sets the default values. func NewTenantCustomizedInformation()(*TenantCustomizedInformation) { m := &TenantCustomizedInformation{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/managedtenants/tenant_customized_information_collection_response.go b/models/managedtenants/tenant_customized_information_collection_response.go index 95cda1512b3..4faba69acc3 100644 --- a/models/managedtenants/tenant_customized_information_collection_response.go +++ b/models/managedtenants/tenant_customized_information_collection_response.go @@ -9,7 +9,7 @@ import ( type TenantCustomizedInformationCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewTenantCustomizedInformationCollectionResponse instantiates a new TenantCustomizedInformationCollectionResponse and sets the default values. +// NewTenantCustomizedInformationCollectionResponse instantiates a new tenantCustomizedInformationCollectionResponse and sets the default values. func NewTenantCustomizedInformationCollectionResponse()(*TenantCustomizedInformationCollectionResponse) { m := &TenantCustomizedInformationCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/tenant_detailed_information.go b/models/managedtenants/tenant_detailed_information.go index 8d6d52e06df..b0577d57278 100644 --- a/models/managedtenants/tenant_detailed_information.go +++ b/models/managedtenants/tenant_detailed_information.go @@ -8,8 +8,10 @@ import ( // TenantDetailedInformation type TenantDetailedInformation struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewTenantDetailedInformation instantiates a new TenantDetailedInformation and sets the default values. +// NewTenantDetailedInformation instantiates a new tenantDetailedInformation and sets the default values. func NewTenantDetailedInformation()(*TenantDetailedInformation) { m := &TenantDetailedInformation{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/managedtenants/tenant_detailed_information_collection_response.go b/models/managedtenants/tenant_detailed_information_collection_response.go index 509a342a54a..1c2c11c230e 100644 --- a/models/managedtenants/tenant_detailed_information_collection_response.go +++ b/models/managedtenants/tenant_detailed_information_collection_response.go @@ -9,7 +9,7 @@ import ( type TenantDetailedInformationCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewTenantDetailedInformationCollectionResponse instantiates a new TenantDetailedInformationCollectionResponse and sets the default values. +// NewTenantDetailedInformationCollectionResponse instantiates a new tenantDetailedInformationCollectionResponse and sets the default values. func NewTenantDetailedInformationCollectionResponse()(*TenantDetailedInformationCollectionResponse) { m := &TenantDetailedInformationCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/tenant_group.go b/models/managedtenants/tenant_group.go index 61be659e524..dd782489423 100644 --- a/models/managedtenants/tenant_group.go +++ b/models/managedtenants/tenant_group.go @@ -8,8 +8,10 @@ import ( // TenantGroup type TenantGroup struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewTenantGroup instantiates a new TenantGroup and sets the default values. +// NewTenantGroup instantiates a new tenantGroup and sets the default values. func NewTenantGroup()(*TenantGroup) { m := &TenantGroup{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/managedtenants/tenant_group_collection_response.go b/models/managedtenants/tenant_group_collection_response.go index 23205c2a535..987293abf71 100644 --- a/models/managedtenants/tenant_group_collection_response.go +++ b/models/managedtenants/tenant_group_collection_response.go @@ -9,7 +9,7 @@ import ( type TenantGroupCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewTenantGroupCollectionResponse instantiates a new TenantGroupCollectionResponse and sets the default values. +// NewTenantGroupCollectionResponse instantiates a new tenantGroupCollectionResponse and sets the default values. func NewTenantGroupCollectionResponse()(*TenantGroupCollectionResponse) { m := &TenantGroupCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/tenant_tag.go b/models/managedtenants/tenant_tag.go index f3458e8ac49..4167bcbe5ab 100644 --- a/models/managedtenants/tenant_tag.go +++ b/models/managedtenants/tenant_tag.go @@ -9,8 +9,10 @@ import ( // TenantTag type TenantTag struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewTenantTag instantiates a new TenantTag and sets the default values. +// NewTenantTag instantiates a new tenantTag and sets the default values. func NewTenantTag()(*TenantTag) { m := &TenantTag{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/managedtenants/tenant_tag_collection_response.go b/models/managedtenants/tenant_tag_collection_response.go index e299f1155ff..e7237cb61a4 100644 --- a/models/managedtenants/tenant_tag_collection_response.go +++ b/models/managedtenants/tenant_tag_collection_response.go @@ -9,7 +9,7 @@ import ( type TenantTagCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewTenantTagCollectionResponse instantiates a new TenantTagCollectionResponse and sets the default values. +// NewTenantTagCollectionResponse instantiates a new tenantTagCollectionResponse and sets the default values. func NewTenantTagCollectionResponse()(*TenantTagCollectionResponse) { m := &TenantTagCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/windows_device_malware_state.go b/models/managedtenants/windows_device_malware_state.go index 9e27fafcef8..93225d62dfe 100644 --- a/models/managedtenants/windows_device_malware_state.go +++ b/models/managedtenants/windows_device_malware_state.go @@ -9,8 +9,10 @@ import ( // WindowsDeviceMalwareState type WindowsDeviceMalwareState struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewWindowsDeviceMalwareState instantiates a new WindowsDeviceMalwareState and sets the default values. +// NewWindowsDeviceMalwareState instantiates a new windowsDeviceMalwareState and sets the default values. func NewWindowsDeviceMalwareState()(*WindowsDeviceMalwareState) { m := &WindowsDeviceMalwareState{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/managedtenants/windows_device_malware_state_collection_response.go b/models/managedtenants/windows_device_malware_state_collection_response.go index 136e641baa4..1ced1d4449c 100644 --- a/models/managedtenants/windows_device_malware_state_collection_response.go +++ b/models/managedtenants/windows_device_malware_state_collection_response.go @@ -9,7 +9,7 @@ import ( type WindowsDeviceMalwareStateCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewWindowsDeviceMalwareStateCollectionResponse instantiates a new WindowsDeviceMalwareStateCollectionResponse and sets the default values. +// NewWindowsDeviceMalwareStateCollectionResponse instantiates a new windowsDeviceMalwareStateCollectionResponse and sets the default values. func NewWindowsDeviceMalwareStateCollectionResponse()(*WindowsDeviceMalwareStateCollectionResponse) { m := &WindowsDeviceMalwareStateCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/managedtenants/windows_protection_state.go b/models/managedtenants/windows_protection_state.go index 8ce312de9a3..0b2a56acd4a 100644 --- a/models/managedtenants/windows_protection_state.go +++ b/models/managedtenants/windows_protection_state.go @@ -9,6 +9,8 @@ import ( // WindowsProtectionState type WindowsProtectionState struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewWindowsProtectionState instantiates a new windowsProtectionState and sets the default values. func NewWindowsProtectionState()(*WindowsProtectionState) { diff --git a/models/managedtenants/windows_protection_state_collection_response.go b/models/managedtenants/windows_protection_state_collection_response.go index e69786df477..94a85800b5a 100644 --- a/models/managedtenants/windows_protection_state_collection_response.go +++ b/models/managedtenants/windows_protection_state_collection_response.go @@ -9,7 +9,7 @@ import ( type WindowsProtectionStateCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewWindowsProtectionStateCollectionResponse instantiates a new WindowsProtectionStateCollectionResponse and sets the default values. +// NewWindowsProtectionStateCollectionResponse instantiates a new windowsProtectionStateCollectionResponse and sets the default values. func NewWindowsProtectionStateCollectionResponse()(*WindowsProtectionStateCollectionResponse) { m := &WindowsProtectionStateCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/mark_content.go b/models/mark_content.go index f99ed030d3e..1a1f7f2e4b7 100644 --- a/models/mark_content.go +++ b/models/mark_content.go @@ -8,7 +8,7 @@ import ( type MarkContent struct { LabelActionBase } -// NewMarkContent instantiates a new MarkContent and sets the default values. +// NewMarkContent instantiates a new markContent and sets the default values. func NewMarkContent()(*MarkContent) { m := &MarkContent{ LabelActionBase: *NewLabelActionBase(), @@ -66,6 +66,16 @@ func (m *MarkContent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } 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["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -100,6 +110,17 @@ func (m *MarkContent) GetFontSize()(*int64) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MarkContent) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetText gets the text property value. The text property func (m *MarkContent) GetText()(*string) { val, err := m.GetBackingStore().Get("text") @@ -129,6 +150,12 @@ func (m *MarkContent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("text", m.GetText()) if err != nil { @@ -151,6 +178,13 @@ func (m *MarkContent) SetFontSize(value *int64)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MarkContent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetText sets the text property value. The text property func (m *MarkContent) SetText(value *string)() { err := m.GetBackingStore().Set("text", value) @@ -164,8 +198,10 @@ type MarkContentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetFontColor()(*string) GetFontSize()(*int64) + GetOdataType()(*string) GetText()(*string) SetFontColor(value *string)() SetFontSize(value *int64)() + SetOdataType(value *string)() SetText(value *string)() } diff --git a/models/match_location.go b/models/match_location.go index 9851ced88f0..86945b81750 100644 --- a/models/match_location.go +++ b/models/match_location.go @@ -10,7 +10,7 @@ type MatchLocation struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewMatchLocation instantiates a new MatchLocation and sets the default values. +// NewMatchLocation instantiates a new matchLocation and sets the default values. func NewMatchLocation()(*MatchLocation) { m := &MatchLocation{ } diff --git a/models/matching_dlp_rule.go b/models/matching_dlp_rule.go index a659b707bd1..15e8a75a0df 100644 --- a/models/matching_dlp_rule.go +++ b/models/matching_dlp_rule.go @@ -10,7 +10,7 @@ type MatchingDlpRule struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewMatchingDlpRule instantiates a new MatchingDlpRule and sets the default values. +// NewMatchingDlpRule instantiates a new matchingDlpRule and sets the default values. func NewMatchingDlpRule()(*MatchingDlpRule) { m := &MatchingDlpRule{ } diff --git a/models/mdm_windows_information_protection_policy.go b/models/mdm_windows_information_protection_policy.go index 8fd9e254016..08a0a44c745 100644 --- a/models/mdm_windows_information_protection_policy.go +++ b/models/mdm_windows_information_protection_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MdmWindowsInformationProtectionPolicy +// MdmWindowsInformationProtectionPolicy policy for Windows information protection with MDM type MdmWindowsInformationProtectionPolicy struct { WindowsInformationProtection } -// NewMdmWindowsInformationProtectionPolicy instantiates a new MdmWindowsInformationProtectionPolicy and sets the default values. +// NewMdmWindowsInformationProtectionPolicy instantiates a new mdmWindowsInformationProtectionPolicy and sets the default values. func NewMdmWindowsInformationProtectionPolicy()(*MdmWindowsInformationProtectionPolicy) { m := &MdmWindowsInformationProtectionPolicy{ WindowsInformationProtection: *NewWindowsInformationProtection(), diff --git a/models/mdm_windows_information_protection_policy_collection_response.go b/models/mdm_windows_information_protection_policy_collection_response.go index a9f5cedd07d..b8becd2f363 100644 --- a/models/mdm_windows_information_protection_policy_collection_response.go +++ b/models/mdm_windows_information_protection_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type MdmWindowsInformationProtectionPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMdmWindowsInformationProtectionPolicyCollectionResponse instantiates a new MdmWindowsInformationProtectionPolicyCollectionResponse and sets the default values. +// NewMdmWindowsInformationProtectionPolicyCollectionResponse instantiates a new mdmWindowsInformationProtectionPolicyCollectionResponse and sets the default values. func NewMdmWindowsInformationProtectionPolicyCollectionResponse()(*MdmWindowsInformationProtectionPolicyCollectionResponse) { m := &MdmWindowsInformationProtectionPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mdm_windows_information_protection_policy_policy_set_item.go b/models/mdm_windows_information_protection_policy_policy_set_item.go index da25c5c9a4e..aed69db727d 100644 --- a/models/mdm_windows_information_protection_policy_policy_set_item.go +++ b/models/mdm_windows_information_protection_policy_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MdmWindowsInformationProtectionPolicyPolicySetItem +// MdmWindowsInformationProtectionPolicyPolicySetItem a class containing the properties used for mdm windows information protection policy PolicySetItem. type MdmWindowsInformationProtectionPolicyPolicySetItem struct { PolicySetItem } -// NewMdmWindowsInformationProtectionPolicyPolicySetItem instantiates a new MdmWindowsInformationProtectionPolicyPolicySetItem and sets the default values. +// NewMdmWindowsInformationProtectionPolicyPolicySetItem instantiates a new mdmWindowsInformationProtectionPolicyPolicySetItem and sets the default values. func NewMdmWindowsInformationProtectionPolicyPolicySetItem()(*MdmWindowsInformationProtectionPolicyPolicySetItem) { m := &MdmWindowsInformationProtectionPolicyPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/media_prompt.go b/models/media_prompt.go index e442e713b37..4c77b3d793a 100644 --- a/models/media_prompt.go +++ b/models/media_prompt.go @@ -7,8 +7,10 @@ import ( // MediaPrompt type MediaPrompt struct { Prompt + // The OdataType property + OdataType *string } -// NewMediaPrompt instantiates a new MediaPrompt and sets the default values. +// NewMediaPrompt instantiates a new mediaPrompt and sets the default values. func NewMediaPrompt()(*MediaPrompt) { m := &MediaPrompt{ Prompt: *NewPrompt(), diff --git a/models/meeting_activity_statistics.go b/models/meeting_activity_statistics.go index a2eafdbc185..0ddc4796c06 100644 --- a/models/meeting_activity_statistics.go +++ b/models/meeting_activity_statistics.go @@ -7,8 +7,10 @@ import ( // MeetingActivityStatistics type MeetingActivityStatistics struct { ActivityStatistics + // The OdataType property + OdataType *string } -// NewMeetingActivityStatistics instantiates a new MeetingActivityStatistics and sets the default values. +// NewMeetingActivityStatistics instantiates a new meetingActivityStatistics and sets the default values. func NewMeetingActivityStatistics()(*MeetingActivityStatistics) { m := &MeetingActivityStatistics{ ActivityStatistics: *NewActivityStatistics(), diff --git a/models/meeting_attendance_report.go b/models/meeting_attendance_report.go index 44e51dbcefe..e1c2d8c7e7c 100644 --- a/models/meeting_attendance_report.go +++ b/models/meeting_attendance_report.go @@ -8,6 +8,8 @@ import ( // MeetingAttendanceReport type MeetingAttendanceReport struct { Entity + // The OdataType property + OdataType *string } // NewMeetingAttendanceReport instantiates a new meetingAttendanceReport and sets the default values. func NewMeetingAttendanceReport()(*MeetingAttendanceReport) { diff --git a/models/meeting_attendance_report_collection_response.go b/models/meeting_attendance_report_collection_response.go index 0685364c1ed..be566581456 100644 --- a/models/meeting_attendance_report_collection_response.go +++ b/models/meeting_attendance_report_collection_response.go @@ -8,7 +8,7 @@ import ( type MeetingAttendanceReportCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMeetingAttendanceReportCollectionResponse instantiates a new MeetingAttendanceReportCollectionResponse and sets the default values. +// NewMeetingAttendanceReportCollectionResponse instantiates a new meetingAttendanceReportCollectionResponse and sets the default values. func NewMeetingAttendanceReportCollectionResponse()(*MeetingAttendanceReportCollectionResponse) { m := &MeetingAttendanceReportCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/meeting_policy_updated_event_message_detail.go b/models/meeting_policy_updated_event_message_detail.go index 87db743aa17..fb3d276cf74 100644 --- a/models/meeting_policy_updated_event_message_detail.go +++ b/models/meeting_policy_updated_event_message_detail.go @@ -8,7 +8,7 @@ import ( type MeetingPolicyUpdatedEventMessageDetail struct { EventMessageDetail } -// NewMeetingPolicyUpdatedEventMessageDetail instantiates a new MeetingPolicyUpdatedEventMessageDetail and sets the default values. +// NewMeetingPolicyUpdatedEventMessageDetail instantiates a new meetingPolicyUpdatedEventMessageDetail and sets the default values. func NewMeetingPolicyUpdatedEventMessageDetail()(*MeetingPolicyUpdatedEventMessageDetail) { m := &MeetingPolicyUpdatedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -54,6 +54,16 @@ func (m *MeetingPolicyUpdatedEventMessageDetail) GetFieldDeserializers()(map[str } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -89,6 +99,17 @@ func (m *MeetingPolicyUpdatedEventMessageDetail) GetMeetingChatId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MeetingPolicyUpdatedEventMessageDetail) 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 *MeetingPolicyUpdatedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -113,6 +134,12 @@ func (m *MeetingPolicyUpdatedEventMessageDetail) Serialize(writer i878a80d2330e8 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetInitiator sets the initiator property value. Initiator of the event. @@ -136,6 +163,13 @@ func (m *MeetingPolicyUpdatedEventMessageDetail) SetMeetingChatId(value *string) panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MeetingPolicyUpdatedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // MeetingPolicyUpdatedEventMessageDetailable type MeetingPolicyUpdatedEventMessageDetailable interface { EventMessageDetailable @@ -143,7 +177,9 @@ type MeetingPolicyUpdatedEventMessageDetailable interface { GetInitiator()(IdentitySetable) GetMeetingChatEnabled()(*bool) GetMeetingChatId()(*string) + GetOdataType()(*string) SetInitiator(value IdentitySetable)() SetMeetingChatEnabled(value *bool)() SetMeetingChatId(value *string)() + SetOdataType(value *string)() } diff --git a/models/meeting_registrant.go b/models/meeting_registrant.go index 763b99f8fd4..280f00bbd58 100644 --- a/models/meeting_registrant.go +++ b/models/meeting_registrant.go @@ -9,7 +9,7 @@ import ( type MeetingRegistrant struct { MeetingRegistrantBase } -// NewMeetingRegistrant instantiates a new MeetingRegistrant and sets the default values. +// NewMeetingRegistrant instantiates a new meetingRegistrant and sets the default values. func NewMeetingRegistrant()(*MeetingRegistrant) { m := &MeetingRegistrant{ MeetingRegistrantBase: *NewMeetingRegistrantBase(), diff --git a/models/meeting_registrant_base.go b/models/meeting_registrant_base.go index 79fa1372849..0411203c613 100644 --- a/models/meeting_registrant_base.go +++ b/models/meeting_registrant_base.go @@ -7,6 +7,8 @@ import ( // MeetingRegistrantBase type MeetingRegistrantBase struct { Entity + // The OdataType property + OdataType *string } // NewMeetingRegistrantBase instantiates a new meetingRegistrantBase and sets the default values. func NewMeetingRegistrantBase()(*MeetingRegistrantBase) { diff --git a/models/meeting_registrant_base_collection_response.go b/models/meeting_registrant_base_collection_response.go index 5226a00cc28..0274641869d 100644 --- a/models/meeting_registrant_base_collection_response.go +++ b/models/meeting_registrant_base_collection_response.go @@ -8,7 +8,7 @@ import ( type MeetingRegistrantBaseCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMeetingRegistrantBaseCollectionResponse instantiates a new MeetingRegistrantBaseCollectionResponse and sets the default values. +// NewMeetingRegistrantBaseCollectionResponse instantiates a new meetingRegistrantBaseCollectionResponse and sets the default values. func NewMeetingRegistrantBaseCollectionResponse()(*MeetingRegistrantBaseCollectionResponse) { m := &MeetingRegistrantBaseCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/meeting_registration.go b/models/meeting_registration.go index c9f6cc03c51..617a80399e7 100644 --- a/models/meeting_registration.go +++ b/models/meeting_registration.go @@ -8,8 +8,10 @@ import ( // MeetingRegistration type MeetingRegistration struct { MeetingRegistrationBase + // The OdataType property + OdataType *string } -// NewMeetingRegistration instantiates a new MeetingRegistration and sets the default values. +// NewMeetingRegistration instantiates a new meetingRegistration and sets the default values. func NewMeetingRegistration()(*MeetingRegistration) { m := &MeetingRegistration{ MeetingRegistrationBase: *NewMeetingRegistrationBase(), diff --git a/models/meeting_registration_base.go b/models/meeting_registration_base.go index 8a138795137..d9097f702be 100644 --- a/models/meeting_registration_base.go +++ b/models/meeting_registration_base.go @@ -63,6 +63,16 @@ func (m *MeetingRegistrationBase) GetFieldDeserializers()(map[string]func(i878a8 } 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["registrants"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateMeetingRegistrantBaseFromDiscriminatorValue) if err != nil { @@ -81,6 +91,17 @@ func (m *MeetingRegistrationBase) GetFieldDeserializers()(map[string]func(i878a8 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MeetingRegistrationBase) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRegistrants gets the registrants property value. Registrants of the online meeting. func (m *MeetingRegistrationBase) GetRegistrants()([]MeetingRegistrantBaseable) { val, err := m.GetBackingStore().Get("registrants") @@ -105,6 +126,12 @@ func (m *MeetingRegistrationBase) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetRegistrants() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRegistrants())) for i, v := range m.GetRegistrants() { @@ -126,6 +153,13 @@ func (m *MeetingRegistrationBase) SetAllowedRegistrant(value *MeetingAudience)() panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MeetingRegistrationBase) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRegistrants sets the registrants property value. Registrants of the online meeting. func (m *MeetingRegistrationBase) SetRegistrants(value []MeetingRegistrantBaseable)() { err := m.GetBackingStore().Set("registrants", value) @@ -138,7 +172,9 @@ type MeetingRegistrationBaseable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowedRegistrant()(*MeetingAudience) + GetOdataType()(*string) GetRegistrants()([]MeetingRegistrantBaseable) SetAllowedRegistrant(value *MeetingAudience)() + SetOdataType(value *string)() SetRegistrants(value []MeetingRegistrantBaseable)() } diff --git a/models/meeting_registration_question.go b/models/meeting_registration_question.go index 3c44c347422..8f4cb05f1be 100644 --- a/models/meeting_registration_question.go +++ b/models/meeting_registration_question.go @@ -7,6 +7,8 @@ import ( // MeetingRegistrationQuestion type MeetingRegistrationQuestion struct { Entity + // The OdataType property + OdataType *string } // NewMeetingRegistrationQuestion instantiates a new meetingRegistrationQuestion and sets the default values. func NewMeetingRegistrationQuestion()(*MeetingRegistrationQuestion) { diff --git a/models/meeting_registration_question_collection_response.go b/models/meeting_registration_question_collection_response.go index 19ba17ae19e..920e9212f42 100644 --- a/models/meeting_registration_question_collection_response.go +++ b/models/meeting_registration_question_collection_response.go @@ -8,7 +8,7 @@ import ( type MeetingRegistrationQuestionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMeetingRegistrationQuestionCollectionResponse instantiates a new MeetingRegistrationQuestionCollectionResponse and sets the default values. +// NewMeetingRegistrationQuestionCollectionResponse instantiates a new meetingRegistrationQuestionCollectionResponse and sets the default values. func NewMeetingRegistrationQuestionCollectionResponse()(*MeetingRegistrationQuestionCollectionResponse) { m := &MeetingRegistrationQuestionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/meeting_time_suggestion.go b/models/meeting_time_suggestion.go index 2cda2e7e6ee..fc2be7732eb 100644 --- a/models/meeting_time_suggestion.go +++ b/models/meeting_time_suggestion.go @@ -10,7 +10,7 @@ type MeetingTimeSuggestion struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewMeetingTimeSuggestion instantiates a new MeetingTimeSuggestion and sets the default values. +// NewMeetingTimeSuggestion instantiates a new meetingTimeSuggestion and sets the default values. func NewMeetingTimeSuggestion()(*MeetingTimeSuggestion) { m := &MeetingTimeSuggestion{ } diff --git a/models/members_added_event_message_detail.go b/models/members_added_event_message_detail.go index d5aad20bae2..4671dca31a9 100644 --- a/models/members_added_event_message_detail.go +++ b/models/members_added_event_message_detail.go @@ -9,7 +9,7 @@ import ( type MembersAddedEventMessageDetail struct { EventMessageDetail } -// NewMembersAddedEventMessageDetail instantiates a new MembersAddedEventMessageDetail and sets the default values. +// NewMembersAddedEventMessageDetail instantiates a new membersAddedEventMessageDetail and sets the default values. func NewMembersAddedEventMessageDetail()(*MembersAddedEventMessageDetail) { m := &MembersAddedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -51,6 +51,16 @@ func (m *MembersAddedEventMessageDetail) GetFieldDeserializers()(map[string]func } 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["visibleHistoryStartDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -85,6 +95,17 @@ func (m *MembersAddedEventMessageDetail) GetMembers()([]TeamworkUserIdentityable } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MembersAddedEventMessageDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetVisibleHistoryStartDateTime gets the visibleHistoryStartDateTime property value. The timestamp denoting how far back a conversation's history is shared with the conversation members. func (m *MembersAddedEventMessageDetail) GetVisibleHistoryStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("visibleHistoryStartDateTime") @@ -120,6 +141,12 @@ func (m *MembersAddedEventMessageDetail) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteTimeValue("visibleHistoryStartDateTime", m.GetVisibleHistoryStartDateTime()) if err != nil { @@ -142,6 +169,13 @@ func (m *MembersAddedEventMessageDetail) SetMembers(value []TeamworkUserIdentity panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MembersAddedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetVisibleHistoryStartDateTime sets the visibleHistoryStartDateTime property value. The timestamp denoting how far back a conversation's history is shared with the conversation members. func (m *MembersAddedEventMessageDetail) SetVisibleHistoryStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("visibleHistoryStartDateTime", value) @@ -155,8 +189,10 @@ type MembersAddedEventMessageDetailable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) GetMembers()([]TeamworkUserIdentityable) + GetOdataType()(*string) GetVisibleHistoryStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) SetInitiator(value IdentitySetable)() SetMembers(value []TeamworkUserIdentityable)() + SetOdataType(value *string)() SetVisibleHistoryStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() } diff --git a/models/members_deleted_event_message_detail.go b/models/members_deleted_event_message_detail.go index 63e760ff2d7..cb6ead2d166 100644 --- a/models/members_deleted_event_message_detail.go +++ b/models/members_deleted_event_message_detail.go @@ -8,7 +8,7 @@ import ( type MembersDeletedEventMessageDetail struct { EventMessageDetail } -// NewMembersDeletedEventMessageDetail instantiates a new MembersDeletedEventMessageDetail and sets the default values. +// NewMembersDeletedEventMessageDetail instantiates a new membersDeletedEventMessageDetail and sets the default values. func NewMembersDeletedEventMessageDetail()(*MembersDeletedEventMessageDetail) { m := &MembersDeletedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -50,6 +50,16 @@ func (m *MembersDeletedEventMessageDetail) GetFieldDeserializers()(map[string]fu } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -74,6 +84,17 @@ func (m *MembersDeletedEventMessageDetail) GetMembers()([]TeamworkUserIdentityab } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MembersDeletedEventMessageDetail) 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 *MembersDeletedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -98,6 +119,12 @@ func (m *MembersDeletedEventMessageDetail) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetInitiator sets the initiator property value. Initiator of the event. @@ -114,12 +141,21 @@ func (m *MembersDeletedEventMessageDetail) SetMembers(value []TeamworkUserIdenti panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MembersDeletedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // MembersDeletedEventMessageDetailable type MembersDeletedEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) GetMembers()([]TeamworkUserIdentityable) + GetOdataType()(*string) SetInitiator(value IdentitySetable)() SetMembers(value []TeamworkUserIdentityable)() + SetOdataType(value *string)() } diff --git a/models/members_joined_event_message_detail.go b/models/members_joined_event_message_detail.go index 0d43058237d..b603fd4e629 100644 --- a/models/members_joined_event_message_detail.go +++ b/models/members_joined_event_message_detail.go @@ -7,8 +7,10 @@ import ( // MembersJoinedEventMessageDetail type MembersJoinedEventMessageDetail struct { EventMessageDetail + // The OdataType property + OdataType *string } -// NewMembersJoinedEventMessageDetail instantiates a new MembersJoinedEventMessageDetail and sets the default values. +// NewMembersJoinedEventMessageDetail instantiates a new membersJoinedEventMessageDetail and sets the default values. func NewMembersJoinedEventMessageDetail()(*MembersJoinedEventMessageDetail) { m := &MembersJoinedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), diff --git a/models/members_left_event_message_detail.go b/models/members_left_event_message_detail.go index 60c951f4fc9..a12b4b4ec04 100644 --- a/models/members_left_event_message_detail.go +++ b/models/members_left_event_message_detail.go @@ -8,7 +8,7 @@ import ( type MembersLeftEventMessageDetail struct { EventMessageDetail } -// NewMembersLeftEventMessageDetail instantiates a new MembersLeftEventMessageDetail and sets the default values. +// NewMembersLeftEventMessageDetail instantiates a new membersLeftEventMessageDetail and sets the default values. func NewMembersLeftEventMessageDetail()(*MembersLeftEventMessageDetail) { m := &MembersLeftEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -50,6 +50,16 @@ func (m *MembersLeftEventMessageDetail) GetFieldDeserializers()(map[string]func( } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -74,6 +84,17 @@ func (m *MembersLeftEventMessageDetail) GetMembers()([]TeamworkUserIdentityable) } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MembersLeftEventMessageDetail) 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 *MembersLeftEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -98,6 +119,12 @@ func (m *MembersLeftEventMessageDetail) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetInitiator sets the initiator property value. Initiator of the event. @@ -114,12 +141,21 @@ func (m *MembersLeftEventMessageDetail) SetMembers(value []TeamworkUserIdentitya panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MembersLeftEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // MembersLeftEventMessageDetailable type MembersLeftEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) GetMembers()([]TeamworkUserIdentityable) + GetOdataType()(*string) SetInitiator(value IdentitySetable)() SetMembers(value []TeamworkUserIdentityable)() + SetOdataType(value *string)() } diff --git a/models/membership_outlier_insight.go b/models/membership_outlier_insight.go index 81a7bcb0be9..3117dbc36c1 100644 --- a/models/membership_outlier_insight.go +++ b/models/membership_outlier_insight.go @@ -8,7 +8,7 @@ import ( type MembershipOutlierInsight struct { GovernanceInsight } -// NewMembershipOutlierInsight instantiates a new MembershipOutlierInsight and sets the default values. +// NewMembershipOutlierInsight instantiates a new membershipOutlierInsight and sets the default values. func NewMembershipOutlierInsight()(*MembershipOutlierInsight) { m := &MembershipOutlierInsight{ GovernanceInsight: *NewGovernanceInsight(), diff --git a/models/mention.go b/models/mention.go index 1fe8e04c384..ffb079cec46 100644 --- a/models/mention.go +++ b/models/mention.go @@ -8,6 +8,8 @@ import ( // Mention type Mention struct { Entity + // The OdataType property + OdataType *string } // NewMention instantiates a new mention and sets the default values. func NewMention()(*Mention) { diff --git a/models/mention_collection_response.go b/models/mention_collection_response.go index 4819a5f7b69..e03b2ed86c7 100644 --- a/models/mention_collection_response.go +++ b/models/mention_collection_response.go @@ -8,7 +8,7 @@ import ( type MentionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMentionCollectionResponse instantiates a new MentionCollectionResponse and sets the default values. +// NewMentionCollectionResponse instantiates a new mentionCollectionResponse and sets the default values. func NewMentionCollectionResponse()(*MentionCollectionResponse) { m := &MentionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/message.go b/models/message.go index 866647189db..d2760928981 100644 --- a/models/message.go +++ b/models/message.go @@ -9,7 +9,7 @@ import ( type Message struct { OutlookItem } -// NewMessage instantiates a new Message and sets the default values. +// NewMessage instantiates a new message and sets the default values. func NewMessage()(*Message) { m := &Message{ OutlookItem: *NewOutlookItem(), diff --git a/models/message_collection_response.go b/models/message_collection_response.go index 6073899b804..a13386bd741 100644 --- a/models/message_collection_response.go +++ b/models/message_collection_response.go @@ -8,7 +8,7 @@ import ( type MessageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMessageCollectionResponse instantiates a new MessageCollectionResponse and sets the default values. +// NewMessageCollectionResponse instantiates a new messageCollectionResponse and sets the default values. func NewMessageCollectionResponse()(*MessageCollectionResponse) { m := &MessageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/message_event.go b/models/message_event.go index c9c089b90d6..802af8b583e 100644 --- a/models/message_event.go +++ b/models/message_event.go @@ -8,6 +8,8 @@ import ( // MessageEvent type MessageEvent struct { Entity + // The OdataType property + OdataType *string } // NewMessageEvent instantiates a new messageEvent and sets the default values. func NewMessageEvent()(*MessageEvent) { diff --git a/models/message_event_collection_response.go b/models/message_event_collection_response.go index c03c0091989..66452bc5186 100644 --- a/models/message_event_collection_response.go +++ b/models/message_event_collection_response.go @@ -8,7 +8,7 @@ import ( type MessageEventCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMessageEventCollectionResponse instantiates a new MessageEventCollectionResponse and sets the default values. +// NewMessageEventCollectionResponse instantiates a new messageEventCollectionResponse and sets the default values. func NewMessageEventCollectionResponse()(*MessageEventCollectionResponse) { m := &MessageEventCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/message_pinned_event_message_detail.go b/models/message_pinned_event_message_detail.go index f5eb73d422f..816a814a4b2 100644 --- a/models/message_pinned_event_message_detail.go +++ b/models/message_pinned_event_message_detail.go @@ -9,7 +9,7 @@ import ( type MessagePinnedEventMessageDetail struct { EventMessageDetail } -// NewMessagePinnedEventMessageDetail instantiates a new MessagePinnedEventMessageDetail and sets the default values. +// NewMessagePinnedEventMessageDetail instantiates a new messagePinnedEventMessageDetail and sets the default values. func NewMessagePinnedEventMessageDetail()(*MessagePinnedEventMessageDetail) { m := &MessagePinnedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -56,6 +56,16 @@ func (m *MessagePinnedEventMessageDetail) GetFieldDeserializers()(map[string]fun } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -69,6 +79,17 @@ func (m *MessagePinnedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MessagePinnedEventMessageDetail) 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 *MessagePinnedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -87,6 +108,12 @@ func (m *MessagePinnedEventMessageDetail) Serialize(writer i878a80d2330e89d26896 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetEventDateTime sets the eventDateTime property value. Date and time when the event occurred. @@ -103,12 +130,21 @@ func (m *MessagePinnedEventMessageDetail) SetInitiator(value IdentitySetable)() panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MessagePinnedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // MessagePinnedEventMessageDetailable type MessagePinnedEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEventDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetInitiator()(IdentitySetable) + GetOdataType()(*string) SetEventDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/message_recipient.go b/models/message_recipient.go index 2dd808f94c6..86b91c1aae1 100644 --- a/models/message_recipient.go +++ b/models/message_recipient.go @@ -7,8 +7,10 @@ import ( // MessageRecipient type MessageRecipient struct { Entity + // The OdataType property + OdataType *string } -// NewMessageRecipient instantiates a new MessageRecipient and sets the default values. +// NewMessageRecipient instantiates a new messageRecipient and sets the default values. func NewMessageRecipient()(*MessageRecipient) { m := &MessageRecipient{ Entity: *NewEntity(), diff --git a/models/message_recipient_collection_response.go b/models/message_recipient_collection_response.go index 98d3be97965..a1c92c42f6e 100644 --- a/models/message_recipient_collection_response.go +++ b/models/message_recipient_collection_response.go @@ -8,7 +8,7 @@ import ( type MessageRecipientCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMessageRecipientCollectionResponse instantiates a new MessageRecipientCollectionResponse and sets the default values. +// NewMessageRecipientCollectionResponse instantiates a new messageRecipientCollectionResponse and sets the default values. func NewMessageRecipientCollectionResponse()(*MessageRecipientCollectionResponse) { m := &MessageRecipientCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/message_rule.go b/models/message_rule.go index b80793a9e47..f4328d11999 100644 --- a/models/message_rule.go +++ b/models/message_rule.go @@ -7,6 +7,8 @@ import ( // MessageRule type MessageRule struct { Entity + // The OdataType property + OdataType *string } // NewMessageRule instantiates a new messageRule and sets the default values. func NewMessageRule()(*MessageRule) { diff --git a/models/message_rule_collection_response.go b/models/message_rule_collection_response.go index 6729b784ae1..e061d1c258d 100644 --- a/models/message_rule_collection_response.go +++ b/models/message_rule_collection_response.go @@ -8,7 +8,7 @@ import ( type MessageRuleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMessageRuleCollectionResponse instantiates a new MessageRuleCollectionResponse and sets the default values. +// NewMessageRuleCollectionResponse instantiates a new messageRuleCollectionResponse and sets the default values. func NewMessageRuleCollectionResponse()(*MessageRuleCollectionResponse) { m := &MessageRuleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/message_trace.go b/models/message_trace.go index dd9b1940869..5ddedfc089d 100644 --- a/models/message_trace.go +++ b/models/message_trace.go @@ -9,7 +9,7 @@ import ( type MessageTrace struct { Entity } -// NewMessageTrace instantiates a new MessageTrace and sets the default values. +// NewMessageTrace instantiates a new messageTrace and sets the default values. func NewMessageTrace()(*MessageTrace) { m := &MessageTrace{ Entity: *NewEntity(), @@ -54,6 +54,16 @@ func (m *MessageTrace) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } 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["receivedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -133,6 +143,17 @@ func (m *MessageTrace) GetMessageId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MessageTrace) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetReceivedDateTime gets the receivedDateTime property value. The receivedDateTime property func (m *MessageTrace) GetReceivedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("receivedDateTime") @@ -217,6 +238,12 @@ func (m *MessageTrace) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteTimeValue("receivedDateTime", m.GetReceivedDateTime()) if err != nil { @@ -275,6 +302,13 @@ func (m *MessageTrace) SetMessageId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MessageTrace) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetReceivedDateTime sets the receivedDateTime property value. The receivedDateTime property func (m *MessageTrace) SetReceivedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("receivedDateTime", value) @@ -323,6 +357,7 @@ type MessageTraceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDestinationIPAddress()(*string) GetMessageId()(*string) + GetOdataType()(*string) GetReceivedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRecipients()([]MessageRecipientable) GetSenderEmail()(*string) @@ -331,6 +366,7 @@ type MessageTraceable interface { GetSubject()(*string) SetDestinationIPAddress(value *string)() SetMessageId(value *string)() + SetOdataType(value *string)() SetReceivedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRecipients(value []MessageRecipientable)() SetSenderEmail(value *string)() diff --git a/models/message_trace_collection_response.go b/models/message_trace_collection_response.go index a8376ab1423..d24e026b721 100644 --- a/models/message_trace_collection_response.go +++ b/models/message_trace_collection_response.go @@ -8,7 +8,7 @@ import ( type MessageTraceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMessageTraceCollectionResponse instantiates a new MessageTraceCollectionResponse and sets the default values. +// NewMessageTraceCollectionResponse instantiates a new messageTraceCollectionResponse and sets the default values. func NewMessageTraceCollectionResponse()(*MessageTraceCollectionResponse) { m := &MessageTraceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/message_unpinned_event_message_detail.go b/models/message_unpinned_event_message_detail.go index 7c253d370bf..3c1a9c44cc6 100644 --- a/models/message_unpinned_event_message_detail.go +++ b/models/message_unpinned_event_message_detail.go @@ -9,7 +9,7 @@ import ( type MessageUnpinnedEventMessageDetail struct { EventMessageDetail } -// NewMessageUnpinnedEventMessageDetail instantiates a new MessageUnpinnedEventMessageDetail and sets the default values. +// NewMessageUnpinnedEventMessageDetail instantiates a new messageUnpinnedEventMessageDetail and sets the default values. func NewMessageUnpinnedEventMessageDetail()(*MessageUnpinnedEventMessageDetail) { m := &MessageUnpinnedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -56,6 +56,16 @@ func (m *MessageUnpinnedEventMessageDetail) GetFieldDeserializers()(map[string]f } 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 } // GetInitiator gets the initiator property value. Initiator of the event. @@ -69,6 +79,17 @@ func (m *MessageUnpinnedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MessageUnpinnedEventMessageDetail) 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 *MessageUnpinnedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.EventMessageDetail.Serialize(writer) @@ -87,6 +108,12 @@ func (m *MessageUnpinnedEventMessageDetail) Serialize(writer i878a80d2330e89d268 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetEventDateTime sets the eventDateTime property value. Date and time when the event occurred. @@ -103,12 +130,21 @@ func (m *MessageUnpinnedEventMessageDetail) SetInitiator(value IdentitySetable)( panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MessageUnpinnedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // MessageUnpinnedEventMessageDetailable type MessageUnpinnedEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEventDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetInitiator()(IdentitySetable) + GetOdataType()(*string) SetEventDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() } diff --git a/models/metadata_action.go b/models/metadata_action.go index 906c089ba3b..fecad4fa4a0 100644 --- a/models/metadata_action.go +++ b/models/metadata_action.go @@ -8,7 +8,7 @@ import ( type MetadataAction struct { InformationProtectionAction } -// NewMetadataAction instantiates a new MetadataAction and sets the default values. +// NewMetadataAction instantiates a new metadataAction and sets the default values. func NewMetadataAction()(*MetadataAction) { m := &MetadataAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -56,6 +56,16 @@ func (m *MetadataAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } 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 } // GetMetadataToAdd gets the metadataToAdd property value. A collection of key value pairs that should be added to the file. @@ -80,6 +90,17 @@ func (m *MetadataAction) GetMetadataToRemove()([]string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MetadataAction) 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 *MetadataAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.InformationProtectionAction.Serialize(writer) @@ -104,6 +125,12 @@ func (m *MetadataAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetMetadataToAdd sets the metadataToAdd property value. A collection of key value pairs that should be added to the file. @@ -120,12 +147,21 @@ func (m *MetadataAction) SetMetadataToRemove(value []string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MetadataAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // MetadataActionable type MetadataActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetMetadataToAdd()([]KeyValuePairable) GetMetadataToRemove()([]string) + GetOdataType()(*string) SetMetadataToAdd(value []KeyValuePairable)() SetMetadataToRemove(value []string)() + SetOdataType(value *string)() } diff --git a/models/microsoft_account_user_conversation_member.go b/models/microsoft_account_user_conversation_member.go index 414ae91d5b7..5f2b4def3ff 100644 --- a/models/microsoft_account_user_conversation_member.go +++ b/models/microsoft_account_user_conversation_member.go @@ -8,7 +8,7 @@ import ( type MicrosoftAccountUserConversationMember struct { ConversationMember } -// NewMicrosoftAccountUserConversationMember instantiates a new MicrosoftAccountUserConversationMember and sets the default values. +// NewMicrosoftAccountUserConversationMember instantiates a new microsoftAccountUserConversationMember and sets the default values. func NewMicrosoftAccountUserConversationMember()(*MicrosoftAccountUserConversationMember) { m := &MicrosoftAccountUserConversationMember{ ConversationMember: *NewConversationMember(), diff --git a/models/microsoft_application_data_access_settings.go b/models/microsoft_application_data_access_settings.go index 1ec56709c39..e612f8a4137 100644 --- a/models/microsoft_application_data_access_settings.go +++ b/models/microsoft_application_data_access_settings.go @@ -7,6 +7,8 @@ import ( // MicrosoftApplicationDataAccessSettings type MicrosoftApplicationDataAccessSettings struct { Entity + // The OdataType property + OdataType *string } // NewMicrosoftApplicationDataAccessSettings instantiates a new microsoftApplicationDataAccessSettings and sets the default values. func NewMicrosoftApplicationDataAccessSettings()(*MicrosoftApplicationDataAccessSettings) { diff --git a/models/microsoft_authenticator_authentication_method.go b/models/microsoft_authenticator_authentication_method.go index b07ef33fb41..c4c96ec12cc 100644 --- a/models/microsoft_authenticator_authentication_method.go +++ b/models/microsoft_authenticator_authentication_method.go @@ -9,7 +9,7 @@ import ( type MicrosoftAuthenticatorAuthenticationMethod struct { AuthenticationMethod } -// NewMicrosoftAuthenticatorAuthenticationMethod instantiates a new MicrosoftAuthenticatorAuthenticationMethod and sets the default values. +// NewMicrosoftAuthenticatorAuthenticationMethod instantiates a new microsoftAuthenticatorAuthenticationMethod and sets the default values. func NewMicrosoftAuthenticatorAuthenticationMethod()(*MicrosoftAuthenticatorAuthenticationMethod) { m := &MicrosoftAuthenticatorAuthenticationMethod{ AuthenticationMethod: *NewAuthenticationMethod(), diff --git a/models/microsoft_authenticator_authentication_method_collection_response.go b/models/microsoft_authenticator_authentication_method_collection_response.go index 74c24a4d469..dec36ebb3fb 100644 --- a/models/microsoft_authenticator_authentication_method_collection_response.go +++ b/models/microsoft_authenticator_authentication_method_collection_response.go @@ -8,7 +8,7 @@ import ( type MicrosoftAuthenticatorAuthenticationMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMicrosoftAuthenticatorAuthenticationMethodCollectionResponse instantiates a new MicrosoftAuthenticatorAuthenticationMethodCollectionResponse and sets the default values. +// NewMicrosoftAuthenticatorAuthenticationMethodCollectionResponse instantiates a new microsoftAuthenticatorAuthenticationMethodCollectionResponse and sets the default values. func NewMicrosoftAuthenticatorAuthenticationMethodCollectionResponse()(*MicrosoftAuthenticatorAuthenticationMethodCollectionResponse) { m := &MicrosoftAuthenticatorAuthenticationMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/microsoft_authenticator_authentication_method_configuration.go b/models/microsoft_authenticator_authentication_method_configuration.go index 184cea32f37..07d5e3f69ad 100644 --- a/models/microsoft_authenticator_authentication_method_configuration.go +++ b/models/microsoft_authenticator_authentication_method_configuration.go @@ -8,7 +8,7 @@ import ( type MicrosoftAuthenticatorAuthenticationMethodConfiguration struct { AuthenticationMethodConfiguration } -// NewMicrosoftAuthenticatorAuthenticationMethodConfiguration instantiates a new MicrosoftAuthenticatorAuthenticationMethodConfiguration and sets the default values. +// NewMicrosoftAuthenticatorAuthenticationMethodConfiguration instantiates a new microsoftAuthenticatorAuthenticationMethodConfiguration and sets the default values. func NewMicrosoftAuthenticatorAuthenticationMethodConfiguration()(*MicrosoftAuthenticatorAuthenticationMethodConfiguration) { m := &MicrosoftAuthenticatorAuthenticationMethodConfiguration{ AuthenticationMethodConfiguration: *NewAuthenticationMethodConfiguration(), diff --git a/models/microsoft_authenticator_authentication_method_target.go b/models/microsoft_authenticator_authentication_method_target.go index 7d6be08edfc..c03d0b16a20 100644 --- a/models/microsoft_authenticator_authentication_method_target.go +++ b/models/microsoft_authenticator_authentication_method_target.go @@ -8,7 +8,7 @@ import ( type MicrosoftAuthenticatorAuthenticationMethodTarget struct { AuthenticationMethodTarget } -// NewMicrosoftAuthenticatorAuthenticationMethodTarget instantiates a new MicrosoftAuthenticatorAuthenticationMethodTarget and sets the default values. +// NewMicrosoftAuthenticatorAuthenticationMethodTarget instantiates a new microsoftAuthenticatorAuthenticationMethodTarget and sets the default values. func NewMicrosoftAuthenticatorAuthenticationMethodTarget()(*MicrosoftAuthenticatorAuthenticationMethodTarget) { m := &MicrosoftAuthenticatorAuthenticationMethodTarget{ AuthenticationMethodTarget: *NewAuthenticationMethodTarget(), diff --git a/models/microsoft_custom_training_setting.go b/models/microsoft_custom_training_setting.go index 0b8182d63a3..b1bc09738d1 100644 --- a/models/microsoft_custom_training_setting.go +++ b/models/microsoft_custom_training_setting.go @@ -8,8 +8,10 @@ import ( // MicrosoftCustomTrainingSetting type MicrosoftCustomTrainingSetting struct { TrainingSetting + // The OdataType property + OdataType *string } -// NewMicrosoftCustomTrainingSetting instantiates a new MicrosoftCustomTrainingSetting and sets the default values. +// NewMicrosoftCustomTrainingSetting instantiates a new microsoftCustomTrainingSetting and sets the default values. func NewMicrosoftCustomTrainingSetting()(*MicrosoftCustomTrainingSetting) { m := &MicrosoftCustomTrainingSetting{ TrainingSetting: *NewTrainingSetting(), diff --git a/models/microsoft_managed_training_setting.go b/models/microsoft_managed_training_setting.go index c73a221ffaf..efbc0209e6b 100644 --- a/models/microsoft_managed_training_setting.go +++ b/models/microsoft_managed_training_setting.go @@ -9,7 +9,7 @@ import ( type MicrosoftManagedTrainingSetting struct { TrainingSetting } -// NewMicrosoftManagedTrainingSetting instantiates a new MicrosoftManagedTrainingSetting and sets the default values. +// NewMicrosoftManagedTrainingSetting instantiates a new microsoftManagedTrainingSetting and sets the default values. func NewMicrosoftManagedTrainingSetting()(*MicrosoftManagedTrainingSetting) { m := &MicrosoftManagedTrainingSetting{ TrainingSetting: *NewTrainingSetting(), @@ -46,6 +46,16 @@ func (m *MicrosoftManagedTrainingSetting) GetFieldDeserializers()(map[string]fun } 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["trainingCompletionDuration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseTrainingCompletionDuration) if err != nil { @@ -58,6 +68,17 @@ func (m *MicrosoftManagedTrainingSetting) GetFieldDeserializers()(map[string]fun } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MicrosoftManagedTrainingSetting) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTrainingCompletionDuration gets the trainingCompletionDuration property value. The trainingCompletionDuration property func (m *MicrosoftManagedTrainingSetting) GetTrainingCompletionDuration()(*TrainingCompletionDuration) { val, err := m.GetBackingStore().Get("trainingCompletionDuration") @@ -81,6 +102,12 @@ func (m *MicrosoftManagedTrainingSetting) Serialize(writer i878a80d2330e89d26896 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetTrainingCompletionDuration() != nil { cast := (*m.GetTrainingCompletionDuration()).String() err = writer.WriteStringValue("trainingCompletionDuration", &cast) @@ -97,6 +124,13 @@ func (m *MicrosoftManagedTrainingSetting) SetCompletionDateTime(value *i33607480 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MicrosoftManagedTrainingSetting) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTrainingCompletionDuration sets the trainingCompletionDuration property value. The trainingCompletionDuration property func (m *MicrosoftManagedTrainingSetting) SetTrainingCompletionDuration(value *TrainingCompletionDuration)() { err := m.GetBackingStore().Set("trainingCompletionDuration", value) @@ -109,7 +143,9 @@ type MicrosoftManagedTrainingSettingable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable TrainingSettingable GetCompletionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetTrainingCompletionDuration()(*TrainingCompletionDuration) SetCompletionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetTrainingCompletionDuration(value *TrainingCompletionDuration)() } diff --git a/models/microsoft_store_for_business_app.go b/models/microsoft_store_for_business_app.go index f2a51b6b3a9..47ab6c20ccc 100644 --- a/models/microsoft_store_for_business_app.go +++ b/models/microsoft_store_for_business_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MicrosoftStoreForBusinessApp +// MicrosoftStoreForBusinessApp microsoft Store for Business Apps. This class does not support Create, Delete, or Update. type MicrosoftStoreForBusinessApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewMicrosoftStoreForBusinessApp instantiates a new MicrosoftStoreForBusinessApp and sets the default values. +// NewMicrosoftStoreForBusinessApp instantiates a new microsoftStoreForBusinessApp and sets the default values. func NewMicrosoftStoreForBusinessApp()(*MicrosoftStoreForBusinessApp) { m := &MicrosoftStoreForBusinessApp{ MobileApp: *NewMobileApp(), diff --git a/models/microsoft_store_for_business_app_assignment_settings.go b/models/microsoft_store_for_business_app_assignment_settings.go index 21379c04f20..82f9e66096c 100644 --- a/models/microsoft_store_for_business_app_assignment_settings.go +++ b/models/microsoft_store_for_business_app_assignment_settings.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MicrosoftStoreForBusinessAppAssignmentSettings +// MicrosoftStoreForBusinessAppAssignmentSettings contains properties used to assign an Microsoft Store for Business mobile app to a group. type MicrosoftStoreForBusinessAppAssignmentSettings struct { MobileAppAssignmentSettings } -// NewMicrosoftStoreForBusinessAppAssignmentSettings instantiates a new MicrosoftStoreForBusinessAppAssignmentSettings and sets the default values. +// NewMicrosoftStoreForBusinessAppAssignmentSettings instantiates a new microsoftStoreForBusinessAppAssignmentSettings and sets the default values. func NewMicrosoftStoreForBusinessAppAssignmentSettings()(*MicrosoftStoreForBusinessAppAssignmentSettings) { m := &MicrosoftStoreForBusinessAppAssignmentSettings{ MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), @@ -24,6 +24,16 @@ func CreateMicrosoftStoreForBusinessAppAssignmentSettingsFromDiscriminatorValue( // GetFieldDeserializers the deserialization information for the current model func (m *MicrosoftStoreForBusinessAppAssignmentSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MobileAppAssignmentSettings.GetFieldDeserializers() + 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["useDeviceContext"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -36,6 +46,17 @@ func (m *MicrosoftStoreForBusinessAppAssignmentSettings) GetFieldDeserializers() } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MicrosoftStoreForBusinessAppAssignmentSettings) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUseDeviceContext gets the useDeviceContext property value. Whether or not to use device execution context for Microsoft Store for Business mobile app. func (m *MicrosoftStoreForBusinessAppAssignmentSettings) GetUseDeviceContext()(*bool) { val, err := m.GetBackingStore().Get("useDeviceContext") @@ -53,6 +74,12 @@ func (m *MicrosoftStoreForBusinessAppAssignmentSettings) Serialize(writer i878a8 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("useDeviceContext", m.GetUseDeviceContext()) if err != nil { @@ -61,6 +88,13 @@ func (m *MicrosoftStoreForBusinessAppAssignmentSettings) Serialize(writer i878a8 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MicrosoftStoreForBusinessAppAssignmentSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUseDeviceContext sets the useDeviceContext property value. Whether or not to use device execution context for Microsoft Store for Business mobile app. func (m *MicrosoftStoreForBusinessAppAssignmentSettings) SetUseDeviceContext(value *bool)() { err := m.GetBackingStore().Set("useDeviceContext", value) @@ -72,6 +106,8 @@ func (m *MicrosoftStoreForBusinessAppAssignmentSettings) SetUseDeviceContext(val type MicrosoftStoreForBusinessAppAssignmentSettingsable interface { MobileAppAssignmentSettingsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUseDeviceContext()(*bool) + SetOdataType(value *string)() SetUseDeviceContext(value *bool)() } diff --git a/models/microsoft_store_for_business_contained_app.go b/models/microsoft_store_for_business_contained_app.go index 15be62e9eae..20c08b9e6c9 100644 --- a/models/microsoft_store_for_business_contained_app.go +++ b/models/microsoft_store_for_business_contained_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MicrosoftStoreForBusinessContainedApp +// MicrosoftStoreForBusinessContainedApp a class that represents a contained app of a MicrosoftStoreForBusinessApp. type MicrosoftStoreForBusinessContainedApp struct { MobileContainedApp } -// NewMicrosoftStoreForBusinessContainedApp instantiates a new MicrosoftStoreForBusinessContainedApp and sets the default values. +// NewMicrosoftStoreForBusinessContainedApp instantiates a new microsoftStoreForBusinessContainedApp and sets the default values. func NewMicrosoftStoreForBusinessContainedApp()(*MicrosoftStoreForBusinessContainedApp) { m := &MicrosoftStoreForBusinessContainedApp{ MobileContainedApp: *NewMobileContainedApp(), diff --git a/models/microsoft_training_assignment_mapping.go b/models/microsoft_training_assignment_mapping.go index f8c44d1f873..37713697cab 100644 --- a/models/microsoft_training_assignment_mapping.go +++ b/models/microsoft_training_assignment_mapping.go @@ -51,6 +51,16 @@ func (m *MicrosoftTrainingAssignmentMapping) GetFieldDeserializers()(map[string] } 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["training"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateTrainingFromDiscriminatorValue) if err != nil { @@ -63,6 +73,17 @@ func (m *MicrosoftTrainingAssignmentMapping) GetFieldDeserializers()(map[string] } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MicrosoftTrainingAssignmentMapping) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTraining gets the training property value. The training property func (m *MicrosoftTrainingAssignmentMapping) GetTraining()(Trainingable) { val, err := m.GetBackingStore().Get("training") @@ -86,6 +107,12 @@ func (m *MicrosoftTrainingAssignmentMapping) Serialize(writer i878a80d2330e89d26 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("training", m.GetTraining()) if err != nil { @@ -101,6 +128,13 @@ func (m *MicrosoftTrainingAssignmentMapping) SetAssignedTo(value []TrainingAssig panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MicrosoftTrainingAssignmentMapping) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTraining sets the training property value. The training property func (m *MicrosoftTrainingAssignmentMapping) SetTraining(value Trainingable)() { err := m.GetBackingStore().Set("training", value) @@ -113,7 +147,9 @@ type MicrosoftTrainingAssignmentMappingable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable TrainingSettingable GetAssignedTo()([]TrainingAssignedTo) + GetOdataType()(*string) GetTraining()(Trainingable) SetAssignedTo(value []TrainingAssignedTo)() + SetOdataType(value *string)() SetTraining(value Trainingable)() } diff --git a/models/microsoft_tunnel_configuration.go b/models/microsoft_tunnel_configuration.go index 29a32b4dbcd..7609e4c3736 100644 --- a/models/microsoft_tunnel_configuration.go +++ b/models/microsoft_tunnel_configuration.go @@ -8,6 +8,8 @@ import ( // MicrosoftTunnelConfiguration entity that represents a collection of Microsoft Tunnel settings type MicrosoftTunnelConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewMicrosoftTunnelConfiguration instantiates a new microsoftTunnelConfiguration and sets the default values. func NewMicrosoftTunnelConfiguration()(*MicrosoftTunnelConfiguration) { diff --git a/models/microsoft_tunnel_configuration_collection_response.go b/models/microsoft_tunnel_configuration_collection_response.go index 427130fdb30..482df7d4563 100644 --- a/models/microsoft_tunnel_configuration_collection_response.go +++ b/models/microsoft_tunnel_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type MicrosoftTunnelConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMicrosoftTunnelConfigurationCollectionResponse instantiates a new MicrosoftTunnelConfigurationCollectionResponse and sets the default values. +// NewMicrosoftTunnelConfigurationCollectionResponse instantiates a new microsoftTunnelConfigurationCollectionResponse and sets the default values. func NewMicrosoftTunnelConfigurationCollectionResponse()(*MicrosoftTunnelConfigurationCollectionResponse) { m := &MicrosoftTunnelConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/microsoft_tunnel_health_threshold.go b/models/microsoft_tunnel_health_threshold.go index 7631413a72d..27dd325fb73 100644 --- a/models/microsoft_tunnel_health_threshold.go +++ b/models/microsoft_tunnel_health_threshold.go @@ -7,6 +7,8 @@ import ( // MicrosoftTunnelHealthThreshold entity that represents the health thresholds of a health metric type MicrosoftTunnelHealthThreshold struct { Entity + // The OdataType property + OdataType *string } // NewMicrosoftTunnelHealthThreshold instantiates a new microsoftTunnelHealthThreshold and sets the default values. func NewMicrosoftTunnelHealthThreshold()(*MicrosoftTunnelHealthThreshold) { diff --git a/models/microsoft_tunnel_health_threshold_collection_response.go b/models/microsoft_tunnel_health_threshold_collection_response.go index 07979080c05..615e8376f4d 100644 --- a/models/microsoft_tunnel_health_threshold_collection_response.go +++ b/models/microsoft_tunnel_health_threshold_collection_response.go @@ -8,7 +8,7 @@ import ( type MicrosoftTunnelHealthThresholdCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMicrosoftTunnelHealthThresholdCollectionResponse instantiates a new MicrosoftTunnelHealthThresholdCollectionResponse and sets the default values. +// NewMicrosoftTunnelHealthThresholdCollectionResponse instantiates a new microsoftTunnelHealthThresholdCollectionResponse and sets the default values. func NewMicrosoftTunnelHealthThresholdCollectionResponse()(*MicrosoftTunnelHealthThresholdCollectionResponse) { m := &MicrosoftTunnelHealthThresholdCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/microsoft_tunnel_server.go b/models/microsoft_tunnel_server.go index 2be340aa80a..3d37618ce81 100644 --- a/models/microsoft_tunnel_server.go +++ b/models/microsoft_tunnel_server.go @@ -8,6 +8,8 @@ import ( // MicrosoftTunnelServer entity that represents a single Microsoft Tunnel server type MicrosoftTunnelServer struct { Entity + // The OdataType property + OdataType *string } // NewMicrosoftTunnelServer instantiates a new microsoftTunnelServer and sets the default values. func NewMicrosoftTunnelServer()(*MicrosoftTunnelServer) { diff --git a/models/microsoft_tunnel_server_collection_response.go b/models/microsoft_tunnel_server_collection_response.go index 7b41575a444..a6c31c46f56 100644 --- a/models/microsoft_tunnel_server_collection_response.go +++ b/models/microsoft_tunnel_server_collection_response.go @@ -8,7 +8,7 @@ import ( type MicrosoftTunnelServerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMicrosoftTunnelServerCollectionResponse instantiates a new MicrosoftTunnelServerCollectionResponse and sets the default values. +// NewMicrosoftTunnelServerCollectionResponse instantiates a new microsoftTunnelServerCollectionResponse and sets the default values. func NewMicrosoftTunnelServerCollectionResponse()(*MicrosoftTunnelServerCollectionResponse) { m := &MicrosoftTunnelServerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/microsoft_tunnel_server_log_collection_response.go b/models/microsoft_tunnel_server_log_collection_response.go index 4e12529c1e9..73fd0b19af9 100644 --- a/models/microsoft_tunnel_server_log_collection_response.go +++ b/models/microsoft_tunnel_server_log_collection_response.go @@ -65,6 +65,16 @@ func (m *MicrosoftTunnelServerLogCollectionResponse) GetFieldDeserializers()(map } 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["requestDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -117,6 +127,17 @@ func (m *MicrosoftTunnelServerLogCollectionResponse) GetFieldDeserializers()(map } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MicrosoftTunnelServerLogCollectionResponse) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRequestDateTime gets the requestDateTime property value. The time when the log collection was requested func (m *MicrosoftTunnelServerLogCollectionResponse) GetRequestDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("requestDateTime") @@ -190,6 +211,12 @@ func (m *MicrosoftTunnelServerLogCollectionResponse) Serialize(writer i878a80d23 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteTimeValue("requestDateTime", m.GetRequestDateTime()) if err != nil { @@ -237,6 +264,13 @@ func (m *MicrosoftTunnelServerLogCollectionResponse) SetExpiryDateTime(value *i3 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MicrosoftTunnelServerLogCollectionResponse) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRequestDateTime sets the requestDateTime property value. The time when the log collection was requested func (m *MicrosoftTunnelServerLogCollectionResponse) SetRequestDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("requestDateTime", value) @@ -278,6 +312,7 @@ type MicrosoftTunnelServerLogCollectionResponseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetExpiryDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetRequestDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetServerId()(*string) GetSizeInBytes()(*int64) @@ -285,6 +320,7 @@ type MicrosoftTunnelServerLogCollectionResponseable interface { GetStatus()(*MicrosoftTunnelLogCollectionStatus) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetExpiryDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetRequestDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetServerId(value *string)() SetSizeInBytes(value *int64)() diff --git a/models/microsoft_tunnel_server_log_collection_response_collection_response.go b/models/microsoft_tunnel_server_log_collection_response_collection_response.go index b7c1799a261..20fd899a8ac 100644 --- a/models/microsoft_tunnel_server_log_collection_response_collection_response.go +++ b/models/microsoft_tunnel_server_log_collection_response_collection_response.go @@ -8,7 +8,7 @@ import ( type MicrosoftTunnelServerLogCollectionResponseCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMicrosoftTunnelServerLogCollectionResponseCollectionResponse instantiates a new MicrosoftTunnelServerLogCollectionResponseCollectionResponse and sets the default values. +// NewMicrosoftTunnelServerLogCollectionResponseCollectionResponse instantiates a new microsoftTunnelServerLogCollectionResponseCollectionResponse and sets the default values. func NewMicrosoftTunnelServerLogCollectionResponseCollectionResponse()(*MicrosoftTunnelServerLogCollectionResponseCollectionResponse) { m := &MicrosoftTunnelServerLogCollectionResponseCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/microsoft_tunnel_site.go b/models/microsoft_tunnel_site.go index cdc5c487c18..29bd2a6396a 100644 --- a/models/microsoft_tunnel_site.go +++ b/models/microsoft_tunnel_site.go @@ -7,6 +7,8 @@ import ( // MicrosoftTunnelSite entity that represents a Microsoft Tunnel site type MicrosoftTunnelSite struct { Entity + // The OdataType property + OdataType *string } // NewMicrosoftTunnelSite instantiates a new microsoftTunnelSite and sets the default values. func NewMicrosoftTunnelSite()(*MicrosoftTunnelSite) { diff --git a/models/microsoft_tunnel_site_collection_response.go b/models/microsoft_tunnel_site_collection_response.go index 69a93b87f18..a3ef2ac987f 100644 --- a/models/microsoft_tunnel_site_collection_response.go +++ b/models/microsoft_tunnel_site_collection_response.go @@ -8,7 +8,7 @@ import ( type MicrosoftTunnelSiteCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMicrosoftTunnelSiteCollectionResponse instantiates a new MicrosoftTunnelSiteCollectionResponse and sets the default values. +// NewMicrosoftTunnelSiteCollectionResponse instantiates a new microsoftTunnelSiteCollectionResponse and sets the default values. func NewMicrosoftTunnelSiteCollectionResponse()(*MicrosoftTunnelSiteCollectionResponse) { m := &MicrosoftTunnelSiteCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mobile_app.go b/models/mobile_app.go index 289f208e6e2..23eaa87e0a8 100644 --- a/models/mobile_app.go +++ b/models/mobile_app.go @@ -336,6 +336,16 @@ func (m *MobileApp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 } 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["owner"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -506,6 +516,17 @@ func (m *MobileApp) GetNotes()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MobileApp) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOwner gets the owner property value. The owner of the app. func (m *MobileApp) GetOwner()(*string) { val, err := m.GetBackingStore().Get("owner") @@ -701,6 +722,12 @@ func (m *MobileApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("owner", m.GetOwner()) if err != nil { @@ -855,6 +882,13 @@ func (m *MobileApp) SetNotes(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MobileApp) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOwner sets the owner property value. The owner of the app. func (m *MobileApp) SetOwner(value *string)() { err := m.GetBackingStore().Set("owner", value) @@ -935,6 +969,7 @@ type MobileAppable interface { GetLargeIcon()(MimeContentable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetNotes()(*string) + GetOdataType()(*string) GetOwner()(*string) GetPrivacyInformationUrl()(*string) GetPublisher()(*string) @@ -957,6 +992,7 @@ type MobileAppable interface { SetLargeIcon(value MimeContentable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetNotes(value *string)() + SetOdataType(value *string)() SetOwner(value *string)() SetPrivacyInformationUrl(value *string)() SetPublisher(value *string)() diff --git a/models/mobile_app_assignment.go b/models/mobile_app_assignment.go index 0f875a58cf1..6a92ab2dc2a 100644 --- a/models/mobile_app_assignment.go +++ b/models/mobile_app_assignment.go @@ -7,6 +7,8 @@ import ( // MobileAppAssignment a class containing the properties used for Group Assignment of a Mobile App. type MobileAppAssignment struct { Entity + // The OdataType property + OdataType *string } // NewMobileAppAssignment instantiates a new mobileAppAssignment and sets the default values. func NewMobileAppAssignment()(*MobileAppAssignment) { diff --git a/models/mobile_app_assignment_collection_response.go b/models/mobile_app_assignment_collection_response.go index d2e97dfd0ec..ba1bb46b3c7 100644 --- a/models/mobile_app_assignment_collection_response.go +++ b/models/mobile_app_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type MobileAppAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMobileAppAssignmentCollectionResponse instantiates a new MobileAppAssignmentCollectionResponse and sets the default values. +// NewMobileAppAssignmentCollectionResponse instantiates a new mobileAppAssignmentCollectionResponse and sets the default values. func NewMobileAppAssignmentCollectionResponse()(*MobileAppAssignmentCollectionResponse) { m := &MobileAppAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mobile_app_category.go b/models/mobile_app_category.go index 6f681a20334..28191264ae6 100644 --- a/models/mobile_app_category.go +++ b/models/mobile_app_category.go @@ -8,6 +8,8 @@ import ( // MobileAppCategory contains properties for a single Intune app category. type MobileAppCategory struct { Entity + // The OdataType property + OdataType *string } // NewMobileAppCategory instantiates a new mobileAppCategory and sets the default values. func NewMobileAppCategory()(*MobileAppCategory) { diff --git a/models/mobile_app_category_collection_response.go b/models/mobile_app_category_collection_response.go index 4dd82a961c3..bc7cff679e3 100644 --- a/models/mobile_app_category_collection_response.go +++ b/models/mobile_app_category_collection_response.go @@ -8,7 +8,7 @@ import ( type MobileAppCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMobileAppCategoryCollectionResponse instantiates a new MobileAppCategoryCollectionResponse and sets the default values. +// NewMobileAppCategoryCollectionResponse instantiates a new mobileAppCategoryCollectionResponse and sets the default values. func NewMobileAppCategoryCollectionResponse()(*MobileAppCategoryCollectionResponse) { m := &MobileAppCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mobile_app_collection_response.go b/models/mobile_app_collection_response.go index c5b58c91364..8261fa1e9a2 100644 --- a/models/mobile_app_collection_response.go +++ b/models/mobile_app_collection_response.go @@ -8,7 +8,7 @@ import ( type MobileAppCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMobileAppCollectionResponse instantiates a new MobileAppCollectionResponse and sets the default values. +// NewMobileAppCollectionResponse instantiates a new mobileAppCollectionResponse and sets the default values. func NewMobileAppCollectionResponse()(*MobileAppCollectionResponse) { m := &MobileAppCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mobile_app_content.go b/models/mobile_app_content.go index ce7d1bacf83..aada46ecc57 100644 --- a/models/mobile_app_content.go +++ b/models/mobile_app_content.go @@ -7,6 +7,8 @@ import ( // MobileAppContent contains content properties for a specific app version. Each mobileAppContent can have multiple mobileAppContentFile. type MobileAppContent struct { Entity + // The OdataType property + OdataType *string } // NewMobileAppContent instantiates a new mobileAppContent and sets the default values. func NewMobileAppContent()(*MobileAppContent) { diff --git a/models/mobile_app_content_file.go b/models/mobile_app_content_file.go index 22a2aae1b00..5d625bebbc9 100644 --- a/models/mobile_app_content_file.go +++ b/models/mobile_app_content_file.go @@ -8,6 +8,8 @@ import ( // MobileAppContentFile contains properties for a single installer file that is associated with a given mobileAppContent version. type MobileAppContentFile struct { Entity + // The OdataType property + OdataType *string } // NewMobileAppContentFile instantiates a new mobileAppContentFile and sets the default values. func NewMobileAppContentFile()(*MobileAppContentFile) { diff --git a/models/mobile_app_dependency.go b/models/mobile_app_dependency.go index ed31d099fd8..9407d2e1730 100644 --- a/models/mobile_app_dependency.go +++ b/models/mobile_app_dependency.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileAppDependency +// MobileAppDependency describes a dependency type between two mobile apps. type MobileAppDependency struct { MobileAppRelationship } -// NewMobileAppDependency instantiates a new MobileAppDependency and sets the default values. +// NewMobileAppDependency instantiates a new mobileAppDependency and sets the default values. func NewMobileAppDependency()(*MobileAppDependency) { m := &MobileAppDependency{ MobileAppRelationship: *NewMobileAppRelationship(), diff --git a/models/mobile_app_install_status.go b/models/mobile_app_install_status.go index 7b943cb591f..40e1f852e72 100644 --- a/models/mobile_app_install_status.go +++ b/models/mobile_app_install_status.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileAppInstallStatus +// MobileAppInstallStatus contains properties for the installation state of a mobile app for a device. This will be deprecated starting May, 2023 (Intune Release 2305). type MobileAppInstallStatus struct { Entity + // The OdataType property + OdataType *string } -// NewMobileAppInstallStatus instantiates a new MobileAppInstallStatus and sets the default values. +// NewMobileAppInstallStatus instantiates a new mobileAppInstallStatus and sets the default values. func NewMobileAppInstallStatus()(*MobileAppInstallStatus) { m := &MobileAppInstallStatus{ Entity: *NewEntity(), diff --git a/models/mobile_app_install_summary.go b/models/mobile_app_install_summary.go index 11a4012f999..78c60a84327 100644 --- a/models/mobile_app_install_summary.go +++ b/models/mobile_app_install_summary.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileAppInstallSummary +// MobileAppInstallSummary contains properties for the installation summary of a mobile app. This will be deprecated starting May, 2023 (Intune Release 2305). type MobileAppInstallSummary struct { Entity } -// NewMobileAppInstallSummary instantiates a new MobileAppInstallSummary and sets the default values. +// NewMobileAppInstallSummary instantiates a new mobileAppInstallSummary and sets the default values. func NewMobileAppInstallSummary()(*MobileAppInstallSummary) { m := &MobileAppInstallSummary{ Entity: *NewEntity(), @@ -124,6 +124,16 @@ func (m *MobileAppInstallSummary) GetFieldDeserializers()(map[string]func(i878a8 } 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["pendingInstallDeviceCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -212,6 +222,17 @@ func (m *MobileAppInstallSummary) GetNotInstalledUserCount()(*int32) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MobileAppInstallSummary) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPendingInstallDeviceCount gets the pendingInstallDeviceCount property value. Number of Devices that have been notified to install this app. func (m *MobileAppInstallSummary) GetPendingInstallDeviceCount()(*int32) { val, err := m.GetBackingStore().Get("pendingInstallDeviceCount") @@ -288,6 +309,12 @@ func (m *MobileAppInstallSummary) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("pendingInstallDeviceCount", m.GetPendingInstallDeviceCount()) if err != nil { @@ -358,6 +385,13 @@ func (m *MobileAppInstallSummary) SetNotInstalledUserCount(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MobileAppInstallSummary) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPendingInstallDeviceCount sets the pendingInstallDeviceCount property value. Number of Devices that have been notified to install this app. func (m *MobileAppInstallSummary) SetPendingInstallDeviceCount(value *int32)() { err := m.GetBackingStore().Set("pendingInstallDeviceCount", value) @@ -384,6 +418,7 @@ type MobileAppInstallSummaryable interface { GetNotApplicableUserCount()(*int32) GetNotInstalledDeviceCount()(*int32) GetNotInstalledUserCount()(*int32) + GetOdataType()(*string) GetPendingInstallDeviceCount()(*int32) GetPendingInstallUserCount()(*int32) SetFailedDeviceCount(value *int32)() @@ -394,6 +429,7 @@ type MobileAppInstallSummaryable interface { SetNotApplicableUserCount(value *int32)() SetNotInstalledDeviceCount(value *int32)() SetNotInstalledUserCount(value *int32)() + SetOdataType(value *string)() SetPendingInstallDeviceCount(value *int32)() SetPendingInstallUserCount(value *int32)() } diff --git a/models/mobile_app_intent_and_state.go b/models/mobile_app_intent_and_state.go index 6eede85d568..b1133b58181 100644 --- a/models/mobile_app_intent_and_state.go +++ b/models/mobile_app_intent_and_state.go @@ -7,6 +7,8 @@ import ( // MobileAppIntentAndState mobileApp Intent and Install State for a given device. type MobileAppIntentAndState struct { Entity + // The OdataType property + OdataType *string } // NewMobileAppIntentAndState instantiates a new mobileAppIntentAndState and sets the default values. func NewMobileAppIntentAndState()(*MobileAppIntentAndState) { diff --git a/models/mobile_app_intent_and_state_collection_response.go b/models/mobile_app_intent_and_state_collection_response.go index 2b964a25c9d..9ccdb52dfb0 100644 --- a/models/mobile_app_intent_and_state_collection_response.go +++ b/models/mobile_app_intent_and_state_collection_response.go @@ -8,7 +8,7 @@ import ( type MobileAppIntentAndStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMobileAppIntentAndStateCollectionResponse instantiates a new MobileAppIntentAndStateCollectionResponse and sets the default values. +// NewMobileAppIntentAndStateCollectionResponse instantiates a new mobileAppIntentAndStateCollectionResponse and sets the default values. func NewMobileAppIntentAndStateCollectionResponse()(*MobileAppIntentAndStateCollectionResponse) { m := &MobileAppIntentAndStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mobile_app_policy_set_item.go b/models/mobile_app_policy_set_item.go index 8715d14d8fb..29eeb6ec3a4 100644 --- a/models/mobile_app_policy_set_item.go +++ b/models/mobile_app_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileAppPolicySetItem +// MobileAppPolicySetItem a class containing the properties used for mobile app PolicySetItem. type MobileAppPolicySetItem struct { PolicySetItem } -// NewMobileAppPolicySetItem instantiates a new MobileAppPolicySetItem and sets the default values. +// NewMobileAppPolicySetItem instantiates a new mobileAppPolicySetItem and sets the default values. func NewMobileAppPolicySetItem()(*MobileAppPolicySetItem) { m := &MobileAppPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/mobile_app_provisioning_config_group_assignment.go b/models/mobile_app_provisioning_config_group_assignment.go index 91c64aa12da..7df138e7b05 100644 --- a/models/mobile_app_provisioning_config_group_assignment.go +++ b/models/mobile_app_provisioning_config_group_assignment.go @@ -7,6 +7,8 @@ import ( // MobileAppProvisioningConfigGroupAssignment contains the properties used to assign an App provisioning configuration to a group. type MobileAppProvisioningConfigGroupAssignment struct { Entity + // The OdataType property + OdataType *string } // NewMobileAppProvisioningConfigGroupAssignment instantiates a new mobileAppProvisioningConfigGroupAssignment and sets the default values. func NewMobileAppProvisioningConfigGroupAssignment()(*MobileAppProvisioningConfigGroupAssignment) { diff --git a/models/mobile_app_provisioning_config_group_assignment_collection_response.go b/models/mobile_app_provisioning_config_group_assignment_collection_response.go index 15946277107..2b785ff3d93 100644 --- a/models/mobile_app_provisioning_config_group_assignment_collection_response.go +++ b/models/mobile_app_provisioning_config_group_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type MobileAppProvisioningConfigGroupAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMobileAppProvisioningConfigGroupAssignmentCollectionResponse instantiates a new MobileAppProvisioningConfigGroupAssignmentCollectionResponse and sets the default values. +// NewMobileAppProvisioningConfigGroupAssignmentCollectionResponse instantiates a new mobileAppProvisioningConfigGroupAssignmentCollectionResponse and sets the default values. func NewMobileAppProvisioningConfigGroupAssignmentCollectionResponse()(*MobileAppProvisioningConfigGroupAssignmentCollectionResponse) { m := &MobileAppProvisioningConfigGroupAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mobile_app_relationship.go b/models/mobile_app_relationship.go index 0d82846e69c..c5ff53b69cf 100644 --- a/models/mobile_app_relationship.go +++ b/models/mobile_app_relationship.go @@ -7,6 +7,8 @@ import ( // MobileAppRelationship describes a relationship between two mobile apps. type MobileAppRelationship struct { Entity + // The OdataType property + OdataType *string } // NewMobileAppRelationship instantiates a new mobileAppRelationship and sets the default values. func NewMobileAppRelationship()(*MobileAppRelationship) { diff --git a/models/mobile_app_relationship_collection_response.go b/models/mobile_app_relationship_collection_response.go index 0d4d1d4b179..0536c9651be 100644 --- a/models/mobile_app_relationship_collection_response.go +++ b/models/mobile_app_relationship_collection_response.go @@ -8,7 +8,7 @@ import ( type MobileAppRelationshipCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMobileAppRelationshipCollectionResponse instantiates a new MobileAppRelationshipCollectionResponse and sets the default values. +// NewMobileAppRelationshipCollectionResponse instantiates a new mobileAppRelationshipCollectionResponse and sets the default values. func NewMobileAppRelationshipCollectionResponse()(*MobileAppRelationshipCollectionResponse) { m := &MobileAppRelationshipCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mobile_app_supersedence.go b/models/mobile_app_supersedence.go index 13b5d519149..047931592b8 100644 --- a/models/mobile_app_supersedence.go +++ b/models/mobile_app_supersedence.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileAppSupersedence +// MobileAppSupersedence describes a supersedence relationship between two mobile apps. type MobileAppSupersedence struct { MobileAppRelationship } -// NewMobileAppSupersedence instantiates a new MobileAppSupersedence and sets the default values. +// NewMobileAppSupersedence instantiates a new mobileAppSupersedence and sets the default values. func NewMobileAppSupersedence()(*MobileAppSupersedence) { m := &MobileAppSupersedence{ MobileAppRelationship: *NewMobileAppRelationship(), diff --git a/models/mobile_app_troubleshooting_app_policy_creation_history.go b/models/mobile_app_troubleshooting_app_policy_creation_history.go index d8dd9127fdb..28c159cfa43 100644 --- a/models/mobile_app_troubleshooting_app_policy_creation_history.go +++ b/models/mobile_app_troubleshooting_app_policy_creation_history.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileAppTroubleshootingAppPolicyCreationHistory +// MobileAppTroubleshootingAppPolicyCreationHistory history Item contained in the Mobile App Troubleshooting Event. type MobileAppTroubleshootingAppPolicyCreationHistory struct { MobileAppTroubleshootingHistoryItem } -// NewMobileAppTroubleshootingAppPolicyCreationHistory instantiates a new MobileAppTroubleshootingAppPolicyCreationHistory and sets the default values. +// NewMobileAppTroubleshootingAppPolicyCreationHistory instantiates a new mobileAppTroubleshootingAppPolicyCreationHistory and sets the default values. func NewMobileAppTroubleshootingAppPolicyCreationHistory()(*MobileAppTroubleshootingAppPolicyCreationHistory) { m := &MobileAppTroubleshootingAppPolicyCreationHistory{ MobileAppTroubleshootingHistoryItem: *NewMobileAppTroubleshootingHistoryItem(), @@ -43,6 +43,16 @@ func (m *MobileAppTroubleshootingAppPolicyCreationHistory) GetFieldDeserializers } 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["runState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseRunState) if err != nil { @@ -55,6 +65,17 @@ func (m *MobileAppTroubleshootingAppPolicyCreationHistory) GetFieldDeserializers } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MobileAppTroubleshootingAppPolicyCreationHistory) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRunState gets the runState property value. Indicates the type of execution status of the device management script. func (m *MobileAppTroubleshootingAppPolicyCreationHistory) GetRunState()(*RunState) { val, err := m.GetBackingStore().Get("runState") @@ -78,6 +99,12 @@ func (m *MobileAppTroubleshootingAppPolicyCreationHistory) Serialize(writer i878 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetRunState() != nil { cast := (*m.GetRunState()).String() err = writer.WriteStringValue("runState", &cast) @@ -94,6 +121,13 @@ func (m *MobileAppTroubleshootingAppPolicyCreationHistory) SetErrorCode(value *s panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MobileAppTroubleshootingAppPolicyCreationHistory) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRunState sets the runState property value. Indicates the type of execution status of the device management script. func (m *MobileAppTroubleshootingAppPolicyCreationHistory) SetRunState(value *RunState)() { err := m.GetBackingStore().Set("runState", value) @@ -106,7 +140,9 @@ type MobileAppTroubleshootingAppPolicyCreationHistoryable interface { MobileAppTroubleshootingHistoryItemable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetErrorCode()(*string) + GetOdataType()(*string) GetRunState()(*RunState) SetErrorCode(value *string)() + SetOdataType(value *string)() SetRunState(value *RunState)() } diff --git a/models/mobile_app_troubleshooting_app_state_history.go b/models/mobile_app_troubleshooting_app_state_history.go index 2c54507af34..e2fa2fa57d7 100644 --- a/models/mobile_app_troubleshooting_app_state_history.go +++ b/models/mobile_app_troubleshooting_app_state_history.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileAppTroubleshootingAppStateHistory +// MobileAppTroubleshootingAppStateHistory history Item contained in the Mobile App Troubleshooting Event. type MobileAppTroubleshootingAppStateHistory struct { MobileAppTroubleshootingHistoryItem } -// NewMobileAppTroubleshootingAppStateHistory instantiates a new MobileAppTroubleshootingAppStateHistory and sets the default values. +// NewMobileAppTroubleshootingAppStateHistory instantiates a new mobileAppTroubleshootingAppStateHistory and sets the default values. func NewMobileAppTroubleshootingAppStateHistory()(*MobileAppTroubleshootingAppStateHistory) { m := &MobileAppTroubleshootingAppStateHistory{ MobileAppTroubleshootingHistoryItem: *NewMobileAppTroubleshootingHistoryItem(), @@ -64,6 +64,16 @@ func (m *MobileAppTroubleshootingAppStateHistory) GetFieldDeserializers()(map[st } 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["runState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseRunState) if err != nil { @@ -76,6 +86,17 @@ func (m *MobileAppTroubleshootingAppStateHistory) GetFieldDeserializers()(map[st } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MobileAppTroubleshootingAppStateHistory) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRunState gets the runState property value. Indicates the type of execution status of the device management script. func (m *MobileAppTroubleshootingAppStateHistory) GetRunState()(*RunState) { val, err := m.GetBackingStore().Get("runState") @@ -106,6 +127,12 @@ func (m *MobileAppTroubleshootingAppStateHistory) Serialize(writer i878a80d2330e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetRunState() != nil { cast := (*m.GetRunState()).String() err = writer.WriteStringValue("runState", &cast) @@ -129,6 +156,13 @@ func (m *MobileAppTroubleshootingAppStateHistory) SetErrorCode(value *string)() panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MobileAppTroubleshootingAppStateHistory) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRunState sets the runState property value. Indicates the type of execution status of the device management script. func (m *MobileAppTroubleshootingAppStateHistory) SetRunState(value *RunState)() { err := m.GetBackingStore().Set("runState", value) @@ -142,8 +176,10 @@ type MobileAppTroubleshootingAppStateHistoryable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetActionType()(*MobileAppActionType) GetErrorCode()(*string) + GetOdataType()(*string) GetRunState()(*RunState) SetActionType(value *MobileAppActionType)() SetErrorCode(value *string)() + SetOdataType(value *string)() SetRunState(value *RunState)() } diff --git a/models/mobile_app_troubleshooting_app_target_history.go b/models/mobile_app_troubleshooting_app_target_history.go index 77bdbfb2c94..4cfdd737409 100644 --- a/models/mobile_app_troubleshooting_app_target_history.go +++ b/models/mobile_app_troubleshooting_app_target_history.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileAppTroubleshootingAppTargetHistory +// MobileAppTroubleshootingAppTargetHistory history Item contained in the Mobile App Troubleshooting Event. type MobileAppTroubleshootingAppTargetHistory struct { MobileAppTroubleshootingHistoryItem } -// NewMobileAppTroubleshootingAppTargetHistory instantiates a new MobileAppTroubleshootingAppTargetHistory and sets the default values. +// NewMobileAppTroubleshootingAppTargetHistory instantiates a new mobileAppTroubleshootingAppTargetHistory and sets the default values. func NewMobileAppTroubleshootingAppTargetHistory()(*MobileAppTroubleshootingAppTargetHistory) { m := &MobileAppTroubleshootingAppTargetHistory{ MobileAppTroubleshootingHistoryItem: *NewMobileAppTroubleshootingHistoryItem(), @@ -43,6 +43,16 @@ func (m *MobileAppTroubleshootingAppTargetHistory) GetFieldDeserializers()(map[s } 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["runState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseRunState) if err != nil { @@ -65,6 +75,17 @@ func (m *MobileAppTroubleshootingAppTargetHistory) GetFieldDeserializers()(map[s } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MobileAppTroubleshootingAppTargetHistory) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRunState gets the runState property value. Indicates the type of execution status of the device management script. func (m *MobileAppTroubleshootingAppTargetHistory) GetRunState()(*RunState) { val, err := m.GetBackingStore().Get("runState") @@ -99,6 +120,12 @@ func (m *MobileAppTroubleshootingAppTargetHistory) Serialize(writer i878a80d2330 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetRunState() != nil { cast := (*m.GetRunState()).String() err = writer.WriteStringValue("runState", &cast) @@ -121,6 +148,13 @@ func (m *MobileAppTroubleshootingAppTargetHistory) SetErrorCode(value *string)() panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MobileAppTroubleshootingAppTargetHistory) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRunState sets the runState property value. Indicates the type of execution status of the device management script. func (m *MobileAppTroubleshootingAppTargetHistory) SetRunState(value *RunState)() { err := m.GetBackingStore().Set("runState", value) @@ -140,9 +174,11 @@ type MobileAppTroubleshootingAppTargetHistoryable interface { MobileAppTroubleshootingHistoryItemable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetErrorCode()(*string) + GetOdataType()(*string) GetRunState()(*RunState) GetSecurityGroupId()(*string) SetErrorCode(value *string)() + SetOdataType(value *string)() SetRunState(value *RunState)() SetSecurityGroupId(value *string)() } diff --git a/models/mobile_app_troubleshooting_app_update_history.go b/models/mobile_app_troubleshooting_app_update_history.go index 983d0cddd04..d8ce964279d 100644 --- a/models/mobile_app_troubleshooting_app_update_history.go +++ b/models/mobile_app_troubleshooting_app_update_history.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileAppTroubleshootingAppUpdateHistory +// MobileAppTroubleshootingAppUpdateHistory history Item contained in the Mobile App Troubleshooting Event. type MobileAppTroubleshootingAppUpdateHistory struct { MobileAppTroubleshootingHistoryItem } -// NewMobileAppTroubleshootingAppUpdateHistory instantiates a new MobileAppTroubleshootingAppUpdateHistory and sets the default values. +// NewMobileAppTroubleshootingAppUpdateHistory instantiates a new mobileAppTroubleshootingAppUpdateHistory and sets the default values. func NewMobileAppTroubleshootingAppUpdateHistory()(*MobileAppTroubleshootingAppUpdateHistory) { m := &MobileAppTroubleshootingAppUpdateHistory{ MobileAppTroubleshootingHistoryItem: *NewMobileAppTroubleshootingHistoryItem(), @@ -22,18 +22,54 @@ func CreateMobileAppTroubleshootingAppUpdateHistoryFromDiscriminatorValue(parseN // GetFieldDeserializers the deserialization information for the current model func (m *MobileAppTroubleshootingAppUpdateHistory) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MobileAppTroubleshootingHistoryItem.GetFieldDeserializers() + 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 *MobileAppTroubleshootingAppUpdateHistory) 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 *MobileAppTroubleshootingAppUpdateHistory) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.MobileAppTroubleshootingHistoryItem.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MobileAppTroubleshootingAppUpdateHistory) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // MobileAppTroubleshootingAppUpdateHistoryable type MobileAppTroubleshootingAppUpdateHistoryable interface { MobileAppTroubleshootingHistoryItemable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/mobile_app_troubleshooting_device_checkin_history.go b/models/mobile_app_troubleshooting_device_checkin_history.go index 203874418ab..1524a6f08d1 100644 --- a/models/mobile_app_troubleshooting_device_checkin_history.go +++ b/models/mobile_app_troubleshooting_device_checkin_history.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileAppTroubleshootingDeviceCheckinHistory +// MobileAppTroubleshootingDeviceCheckinHistory history Item contained in the Mobile App Troubleshooting Event. type MobileAppTroubleshootingDeviceCheckinHistory struct { MobileAppTroubleshootingHistoryItem } -// NewMobileAppTroubleshootingDeviceCheckinHistory instantiates a new MobileAppTroubleshootingDeviceCheckinHistory and sets the default values. +// NewMobileAppTroubleshootingDeviceCheckinHistory instantiates a new mobileAppTroubleshootingDeviceCheckinHistory and sets the default values. func NewMobileAppTroubleshootingDeviceCheckinHistory()(*MobileAppTroubleshootingDeviceCheckinHistory) { m := &MobileAppTroubleshootingDeviceCheckinHistory{ MobileAppTroubleshootingHistoryItem: *NewMobileAppTroubleshootingHistoryItem(), @@ -22,18 +22,54 @@ func CreateMobileAppTroubleshootingDeviceCheckinHistoryFromDiscriminatorValue(pa // GetFieldDeserializers the deserialization information for the current model func (m *MobileAppTroubleshootingDeviceCheckinHistory) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MobileAppTroubleshootingHistoryItem.GetFieldDeserializers() + 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 *MobileAppTroubleshootingDeviceCheckinHistory) 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 *MobileAppTroubleshootingDeviceCheckinHistory) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.MobileAppTroubleshootingHistoryItem.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MobileAppTroubleshootingDeviceCheckinHistory) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // MobileAppTroubleshootingDeviceCheckinHistoryable type MobileAppTroubleshootingDeviceCheckinHistoryable interface { MobileAppTroubleshootingHistoryItemable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/mobile_app_troubleshooting_event.go b/models/mobile_app_troubleshooting_event.go index c7a5e6e6bfc..31d5632aee5 100644 --- a/models/mobile_app_troubleshooting_event.go +++ b/models/mobile_app_troubleshooting_event.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileAppTroubleshootingEvent +// MobileAppTroubleshootingEvent event representing a users device application install status. type MobileAppTroubleshootingEvent struct { DeviceManagementTroubleshootingEvent } -// NewMobileAppTroubleshootingEvent instantiates a new MobileAppTroubleshootingEvent and sets the default values. +// NewMobileAppTroubleshootingEvent instantiates a new mobileAppTroubleshootingEvent and sets the default values. func NewMobileAppTroubleshootingEvent()(*MobileAppTroubleshootingEvent) { m := &MobileAppTroubleshootingEvent{ DeviceManagementTroubleshootingEvent: *NewDeviceManagementTroubleshootingEvent(), diff --git a/models/mobile_app_troubleshooting_event_collection_response.go b/models/mobile_app_troubleshooting_event_collection_response.go index 763c339aa8a..b89bb76f790 100644 --- a/models/mobile_app_troubleshooting_event_collection_response.go +++ b/models/mobile_app_troubleshooting_event_collection_response.go @@ -8,7 +8,7 @@ import ( type MobileAppTroubleshootingEventCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMobileAppTroubleshootingEventCollectionResponse instantiates a new MobileAppTroubleshootingEventCollectionResponse and sets the default values. +// NewMobileAppTroubleshootingEventCollectionResponse instantiates a new mobileAppTroubleshootingEventCollectionResponse and sets the default values. func NewMobileAppTroubleshootingEventCollectionResponse()(*MobileAppTroubleshootingEventCollectionResponse) { m := &MobileAppTroubleshootingEventCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mobile_contained_app.go b/models/mobile_contained_app.go index 0f0629ce178..c203c87bb77 100644 --- a/models/mobile_contained_app.go +++ b/models/mobile_contained_app.go @@ -7,6 +7,8 @@ import ( // MobileContainedApp an abstract class that represents a contained app in a mobileApp acting as a package. type MobileContainedApp struct { Entity + // The OdataType property + OdataType *string } // NewMobileContainedApp instantiates a new mobileContainedApp and sets the default values. func NewMobileContainedApp()(*MobileContainedApp) { diff --git a/models/mobile_lob_app.go b/models/mobile_lob_app.go index bd3126e240c..f10951b4b00 100644 --- a/models/mobile_lob_app.go +++ b/models/mobile_lob_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// MobileLobApp +// MobileLobApp an abstract base class containing properties for all mobile line of business apps. type MobileLobApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewMobileLobApp instantiates a new MobileLobApp and sets the default values. +// NewMobileLobApp instantiates a new mobileLobApp and sets the default values. func NewMobileLobApp()(*MobileLobApp) { m := &MobileLobApp{ MobileApp: *NewMobileApp(), diff --git a/models/mobile_lob_app_collection_response.go b/models/mobile_lob_app_collection_response.go index 4867df1d262..175982438e5 100644 --- a/models/mobile_lob_app_collection_response.go +++ b/models/mobile_lob_app_collection_response.go @@ -8,7 +8,7 @@ import ( type MobileLobAppCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMobileLobAppCollectionResponse instantiates a new MobileLobAppCollectionResponse and sets the default values. +// NewMobileLobAppCollectionResponse instantiates a new mobileLobAppCollectionResponse and sets the default values. func NewMobileLobAppCollectionResponse()(*MobileLobAppCollectionResponse) { m := &MobileLobAppCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mobile_threat_defense_connector.go b/models/mobile_threat_defense_connector.go index 61a23e1783d..faeb43ef96e 100644 --- a/models/mobile_threat_defense_connector.go +++ b/models/mobile_threat_defense_connector.go @@ -8,6 +8,8 @@ import ( // MobileThreatDefenseConnector entity which represents a connection to Mobile Threat Defense partner. type MobileThreatDefenseConnector struct { Entity + // The OdataType property + OdataType *string } // NewMobileThreatDefenseConnector instantiates a new mobileThreatDefenseConnector and sets the default values. func NewMobileThreatDefenseConnector()(*MobileThreatDefenseConnector) { diff --git a/models/mobile_threat_defense_connector_collection_response.go b/models/mobile_threat_defense_connector_collection_response.go index 61a2594eadc..27cfa1389fb 100644 --- a/models/mobile_threat_defense_connector_collection_response.go +++ b/models/mobile_threat_defense_connector_collection_response.go @@ -8,7 +8,7 @@ import ( type MobileThreatDefenseConnectorCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMobileThreatDefenseConnectorCollectionResponse instantiates a new MobileThreatDefenseConnectorCollectionResponse and sets the default values. +// NewMobileThreatDefenseConnectorCollectionResponse instantiates a new mobileThreatDefenseConnectorCollectionResponse and sets the default values. func NewMobileThreatDefenseConnectorCollectionResponse()(*MobileThreatDefenseConnectorCollectionResponse) { m := &MobileThreatDefenseConnectorCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/mobility_management_policy.go b/models/mobility_management_policy.go index 2d1f85f4270..9779a510e4a 100644 --- a/models/mobility_management_policy.go +++ b/models/mobility_management_policy.go @@ -7,8 +7,10 @@ import ( // MobilityManagementPolicy type MobilityManagementPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewMobilityManagementPolicy instantiates a new MobilityManagementPolicy and sets the default values. +// NewMobilityManagementPolicy instantiates a new mobilityManagementPolicy and sets the default values. func NewMobilityManagementPolicy()(*MobilityManagementPolicy) { m := &MobilityManagementPolicy{ Entity: *NewEntity(), diff --git a/models/mobility_management_policy_collection_response.go b/models/mobility_management_policy_collection_response.go index 2ed1888e1c7..9179f3dff56 100644 --- a/models/mobility_management_policy_collection_response.go +++ b/models/mobility_management_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type MobilityManagementPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewMobilityManagementPolicyCollectionResponse instantiates a new MobilityManagementPolicyCollectionResponse and sets the default values. +// NewMobilityManagementPolicyCollectionResponse instantiates a new mobilityManagementPolicyCollectionResponse and sets the default values. func NewMobilityManagementPolicyCollectionResponse()(*MobilityManagementPolicyCollectionResponse) { m := &MobilityManagementPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/multi_value_legacy_extended_property.go b/models/multi_value_legacy_extended_property.go index 5c725f73746..0092bf1e343 100644 --- a/models/multi_value_legacy_extended_property.go +++ b/models/multi_value_legacy_extended_property.go @@ -7,6 +7,8 @@ import ( // MultiValueLegacyExtendedProperty type MultiValueLegacyExtendedProperty struct { Entity + // The OdataType property + OdataType *string } // NewMultiValueLegacyExtendedProperty instantiates a new multiValueLegacyExtendedProperty and sets the default values. func NewMultiValueLegacyExtendedProperty()(*MultiValueLegacyExtendedProperty) { diff --git a/models/mute_participant_operation.go b/models/mute_participant_operation.go index c95300c03a7..cb14eeaea0b 100644 --- a/models/mute_participant_operation.go +++ b/models/mute_participant_operation.go @@ -8,7 +8,7 @@ import ( type MuteParticipantOperation struct { CommsOperation } -// NewMuteParticipantOperation instantiates a new MuteParticipantOperation and sets the default values. +// NewMuteParticipantOperation instantiates a new muteParticipantOperation and sets the default values. func NewMuteParticipantOperation()(*MuteParticipantOperation) { m := &MuteParticipantOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/mute_participants_operation.go b/models/mute_participants_operation.go index 8be9954386d..1e73aa0193c 100644 --- a/models/mute_participants_operation.go +++ b/models/mute_participants_operation.go @@ -8,7 +8,7 @@ import ( type MuteParticipantsOperation struct { CommsOperation } -// NewMuteParticipantsOperation instantiates a new MuteParticipantsOperation and sets the default values. +// NewMuteParticipantsOperation instantiates a new muteParticipantsOperation and sets the default values. func NewMuteParticipantsOperation()(*MuteParticipantsOperation) { m := &MuteParticipantsOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/named_location.go b/models/named_location.go index 6a4a1007cfb..d454737a020 100644 --- a/models/named_location.go +++ b/models/named_location.go @@ -8,6 +8,8 @@ import ( // NamedLocation type NamedLocation struct { Entity + // The OdataType property + OdataType *string } // NewNamedLocation instantiates a new namedLocation and sets the default values. func NewNamedLocation()(*NamedLocation) { diff --git a/models/named_location_collection_response.go b/models/named_location_collection_response.go index 64a94d79990..608b89a720a 100644 --- a/models/named_location_collection_response.go +++ b/models/named_location_collection_response.go @@ -8,7 +8,7 @@ import ( type NamedLocationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewNamedLocationCollectionResponse instantiates a new NamedLocationCollectionResponse and sets the default values. +// NewNamedLocationCollectionResponse instantiates a new namedLocationCollectionResponse and sets the default values. func NewNamedLocationCollectionResponse()(*NamedLocationCollectionResponse) { m := &NamedLocationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/ndes_connector.go b/models/ndes_connector.go index f38e3b57b37..3924b08201d 100644 --- a/models/ndes_connector.go +++ b/models/ndes_connector.go @@ -106,6 +106,16 @@ func (m *NdesConnector) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } 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["roleScopeTagIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -156,6 +166,17 @@ func (m *NdesConnector) GetMachineName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *NdesConnector) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRoleScopeTagIds gets the roleScopeTagIds property value. List of Scope Tags for this Entity instance. func (m *NdesConnector) GetRoleScopeTagIds()([]string) { val, err := m.GetBackingStore().Get("roleScopeTagIds") @@ -214,6 +235,12 @@ func (m *NdesConnector) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetRoleScopeTagIds() != nil { err = writer.WriteCollectionOfStringValues("roleScopeTagIds", m.GetRoleScopeTagIds()) if err != nil { @@ -264,6 +291,13 @@ func (m *NdesConnector) SetMachineName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *NdesConnector) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRoleScopeTagIds sets the roleScopeTagIds property value. List of Scope Tags for this Entity instance. func (m *NdesConnector) SetRoleScopeTagIds(value []string)() { err := m.GetBackingStore().Set("roleScopeTagIds", value) @@ -287,6 +321,7 @@ type NdesConnectorable interface { GetEnrolledDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastConnectionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMachineName()(*string) + GetOdataType()(*string) GetRoleScopeTagIds()([]string) GetState()(*NdesConnectorState) SetConnectorVersion(value *string)() @@ -294,6 +329,7 @@ type NdesConnectorable interface { SetEnrolledDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastConnectionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMachineName(value *string)() + SetOdataType(value *string)() SetRoleScopeTagIds(value []string)() SetState(value *NdesConnectorState)() } diff --git a/models/ndes_connector_collection_response.go b/models/ndes_connector_collection_response.go index fff78f4184e..f00090888e0 100644 --- a/models/ndes_connector_collection_response.go +++ b/models/ndes_connector_collection_response.go @@ -8,7 +8,7 @@ import ( type NdesConnectorCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewNdesConnectorCollectionResponse instantiates a new NdesConnectorCollectionResponse and sets the default values. +// NewNdesConnectorCollectionResponse instantiates a new ndesConnectorCollectionResponse and sets the default values. func NewNdesConnectorCollectionResponse()(*NdesConnectorCollectionResponse) { m := &NdesConnectorCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/networkaccess/associated_branch.go b/models/networkaccess/associated_branch.go index eb8ee91c6b0..a3256b4ce6c 100644 --- a/models/networkaccess/associated_branch.go +++ b/models/networkaccess/associated_branch.go @@ -7,8 +7,10 @@ import ( // AssociatedBranch type AssociatedBranch struct { Association + // The OdataType property + OdataType *string } -// NewAssociatedBranch instantiates a new AssociatedBranch and sets the default values. +// NewAssociatedBranch instantiates a new associatedBranch and sets the default values. func NewAssociatedBranch()(*AssociatedBranch) { m := &AssociatedBranch{ Association: *NewAssociation(), @@ -21,7 +23,7 @@ func NewAssociatedBranch()(*AssociatedBranch) { func CreateAssociatedBranchFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAssociatedBranch(), nil } -// GetBranchId gets the branchId property value. The branchId property +// GetBranchId gets the branchId property value. Identifier for the branch. func (m *AssociatedBranch) GetBranchId()(*string) { val, err := m.GetBackingStore().Get("branchId") if err != nil { @@ -61,7 +63,7 @@ func (m *AssociatedBranch) Serialize(writer i878a80d2330e89d26896388a3f487eef27b } return nil } -// SetBranchId sets the branchId property value. The branchId property +// SetBranchId sets the branchId property value. Identifier for the branch. func (m *AssociatedBranch) SetBranchId(value *string)() { err := m.GetBackingStore().Set("branchId", value) if err != nil { diff --git a/models/networkaccess/bgp_configuration.go b/models/networkaccess/bgp_configuration.go index a36ed0e5aea..301a6d8421a 100644 --- a/models/networkaccess/bgp_configuration.go +++ b/models/networkaccess/bgp_configuration.go @@ -10,7 +10,7 @@ type BgpConfiguration struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewBgpConfiguration instantiates a new BgpConfiguration and sets the default values. +// NewBgpConfiguration instantiates a new bgpConfiguration and sets the default values. func NewBgpConfiguration()(*BgpConfiguration) { m := &BgpConfiguration{ } @@ -34,7 +34,7 @@ func (m *BgpConfiguration) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAsn gets the asn property value. The asn property +// GetAsn gets the asn property value. Specifies the ASN of the BGP. func (m *BgpConfiguration) GetAsn()(*int32) { val, err := m.GetBackingStore().Get("asn") if err != nil { @@ -115,7 +115,7 @@ func (m *BgpConfiguration) GetIpAddress()(*string) { } return nil } -// GetLocalIpAddress gets the localIpAddress property value. The localIpAddress property +// GetLocalIpAddress gets the localIpAddress property value. Specifies the BGP IP address of peer (Microsoft, in this case). func (m *BgpConfiguration) GetLocalIpAddress()(*string) { val, err := m.GetBackingStore().Get("localIpAddress") if err != nil { @@ -137,7 +137,7 @@ func (m *BgpConfiguration) GetOdataType()(*string) { } return nil } -// GetPeerIpAddress gets the peerIpAddress property value. The peerIpAddress property +// GetPeerIpAddress gets the peerIpAddress property value. Specifies the BGP IP address of customer's on-premise VPN router configuration. func (m *BgpConfiguration) GetPeerIpAddress()(*string) { val, err := m.GetBackingStore().Get("peerIpAddress") if err != nil { @@ -195,7 +195,7 @@ func (m *BgpConfiguration) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetAsn sets the asn property value. The asn property +// SetAsn sets the asn property value. Specifies the ASN of the BGP. func (m *BgpConfiguration) SetAsn(value *int32)() { err := m.GetBackingStore().Set("asn", value) if err != nil { @@ -213,7 +213,7 @@ func (m *BgpConfiguration) SetIpAddress(value *string)() { panic(err) } } -// SetLocalIpAddress sets the localIpAddress property value. The localIpAddress property +// SetLocalIpAddress sets the localIpAddress property value. Specifies the BGP IP address of peer (Microsoft, in this case). func (m *BgpConfiguration) SetLocalIpAddress(value *string)() { err := m.GetBackingStore().Set("localIpAddress", value) if err != nil { @@ -227,7 +227,7 @@ func (m *BgpConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetPeerIpAddress sets the peerIpAddress property value. The peerIpAddress property +// SetPeerIpAddress sets the peerIpAddress property value. Specifies the BGP IP address of customer's on-premise VPN router configuration. func (m *BgpConfiguration) SetPeerIpAddress(value *string)() { err := m.GetBackingStore().Set("peerIpAddress", value) if err != nil { diff --git a/models/networkaccess/branch_site.go b/models/networkaccess/branch_site.go index 541b6821983..d6d2215b0f2 100644 --- a/models/networkaccess/branch_site.go +++ b/models/networkaccess/branch_site.go @@ -9,6 +9,8 @@ import ( // BranchSite type BranchSite struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewBranchSite instantiates a new branchSite and sets the default values. func NewBranchSite()(*BranchSite) { @@ -21,7 +23,7 @@ func NewBranchSite()(*BranchSite) { func CreateBranchSiteFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewBranchSite(), nil } -// GetBandwidthCapacity gets the bandwidthCapacity property value. The bandwidthCapacity property +// GetBandwidthCapacity gets the bandwidthCapacity 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 *BranchSite) GetBandwidthCapacity()(*int64) { val, err := m.GetBackingStore().Get("bandwidthCapacity") if err != nil { @@ -32,7 +34,7 @@ func (m *BranchSite) GetBandwidthCapacity()(*int64) { } return nil } -// GetConnectivityState gets the connectivityState property value. The connectivityState property +// GetConnectivityState gets the connectivityState property value. Determines the branch site status. The possible values are: pending, connected, inactive, error. func (m *BranchSite) GetConnectivityState()(*ConnectivityState) { val, err := m.GetBackingStore().Get("connectivityState") if err != nil { @@ -43,7 +45,7 @@ func (m *BranchSite) GetConnectivityState()(*ConnectivityState) { } return nil } -// GetCountry gets the country property value. The country property +// GetCountry gets the country property value. The branch site is created in the specified country. func (m *BranchSite) GetCountry()(*string) { val, err := m.GetBackingStore().Get("country") if err != nil { @@ -54,7 +56,7 @@ func (m *BranchSite) GetCountry()(*string) { } return nil } -// GetDeviceLinks gets the deviceLinks property value. The deviceLinks property +// GetDeviceLinks gets the deviceLinks property value. Each unique CPE device associated with a branch is specified. Supports $expand. func (m *BranchSite) GetDeviceLinks()([]DeviceLinkable) { val, err := m.GetBackingStore().Get("deviceLinks") if err != nil { @@ -172,7 +174,7 @@ func (m *BranchSite) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } return res } -// GetForwardingProfiles gets the forwardingProfiles property value. The forwardingProfiles property +// GetForwardingProfiles gets the forwardingProfiles property value. Each forwarding profile associated with a branch site is specified. Supports $expand. func (m *BranchSite) GetForwardingProfiles()([]ForwardingProfileable) { val, err := m.GetBackingStore().Get("forwardingProfiles") if err != nil { @@ -183,7 +185,7 @@ func (m *BranchSite) GetForwardingProfiles()([]ForwardingProfileable) { } return nil } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. last modified time. func (m *BranchSite) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") if err != nil { @@ -194,7 +196,7 @@ func (m *BranchSite) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a } return nil } -// GetName gets the name property value. The name property +// GetName gets the name property value. Name. func (m *BranchSite) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -216,7 +218,7 @@ func (m *BranchSite) GetRegion()(*Region) { } return nil } -// GetVersion gets the version property value. The version property +// GetVersion gets the version property value. The branch version. func (m *BranchSite) GetVersion()(*string) { val, err := m.GetBackingStore().Get("version") if err != nil { @@ -303,49 +305,49 @@ func (m *BranchSite) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c } return nil } -// SetBandwidthCapacity sets the bandwidthCapacity property value. The bandwidthCapacity property +// SetBandwidthCapacity sets the bandwidthCapacity 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 *BranchSite) SetBandwidthCapacity(value *int64)() { err := m.GetBackingStore().Set("bandwidthCapacity", value) if err != nil { panic(err) } } -// SetConnectivityState sets the connectivityState property value. The connectivityState property +// 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)() { err := m.GetBackingStore().Set("connectivityState", value) if err != nil { panic(err) } } -// SetCountry sets the country property value. The country property +// SetCountry sets the country property value. The branch site is created in the specified country. func (m *BranchSite) SetCountry(value *string)() { err := m.GetBackingStore().Set("country", value) if err != nil { panic(err) } } -// SetDeviceLinks sets the deviceLinks property value. The deviceLinks property +// SetDeviceLinks sets the deviceLinks property value. Each unique CPE device associated with a branch is specified. Supports $expand. func (m *BranchSite) SetDeviceLinks(value []DeviceLinkable)() { err := m.GetBackingStore().Set("deviceLinks", value) if err != nil { panic(err) } } -// SetForwardingProfiles sets the forwardingProfiles property value. The forwardingProfiles property +// SetForwardingProfiles sets the forwardingProfiles property value. Each forwarding profile associated with a branch site is specified. Supports $expand. func (m *BranchSite) SetForwardingProfiles(value []ForwardingProfileable)() { err := m.GetBackingStore().Set("forwardingProfiles", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. last modified time. func (m *BranchSite) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. Name. func (m *BranchSite) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { @@ -359,7 +361,7 @@ func (m *BranchSite) SetRegion(value *Region)() { panic(err) } } -// SetVersion sets the version property value. The version property +// SetVersion sets the version property value. The branch version. func (m *BranchSite) SetVersion(value *string)() { err := m.GetBackingStore().Set("version", value) if err != nil { diff --git a/models/networkaccess/branch_site_collection_response.go b/models/networkaccess/branch_site_collection_response.go index 6fb1e7a97ad..1ea09e9f373 100644 --- a/models/networkaccess/branch_site_collection_response.go +++ b/models/networkaccess/branch_site_collection_response.go @@ -9,7 +9,7 @@ import ( type BranchSiteCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewBranchSiteCollectionResponse instantiates a new BranchSiteCollectionResponse and sets the default values. +// NewBranchSiteCollectionResponse instantiates a new branchSiteCollectionResponse and sets the default values. func NewBranchSiteCollectionResponse()(*BranchSiteCollectionResponse) { m := &BranchSiteCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/networkaccess/conditional_access_policy.go b/models/networkaccess/conditional_access_policy.go index 58e26c51f1b..3687bbed91f 100644 --- a/models/networkaccess/conditional_access_policy.go +++ b/models/networkaccess/conditional_access_policy.go @@ -9,8 +9,10 @@ import ( // ConditionalAccessPolicy type ConditionalAccessPolicy struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewConditionalAccessPolicy instantiates a new ConditionalAccessPolicy and sets the default values. +// NewConditionalAccessPolicy instantiates a new conditionalAccessPolicy and sets the default values. func NewConditionalAccessPolicy()(*ConditionalAccessPolicy) { m := &ConditionalAccessPolicy{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), @@ -21,7 +23,7 @@ func NewConditionalAccessPolicy()(*ConditionalAccessPolicy) { func CreateConditionalAccessPolicyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewConditionalAccessPolicy(), nil } -// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// GetCreatedDateTime gets the createdDateTime property value. Indicates the date and time the conditional access policy was created. func (m *ConditionalAccessPolicy) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") if err != nil { @@ -32,7 +34,7 @@ func (m *ConditionalAccessPolicy) GetCreatedDateTime()(*i336074805fc853987abe6f7 } return nil } -// GetDescription gets the description property value. The description property +// GetDescription gets the description property value. Provides a summary of the conditional access policy. func (m *ConditionalAccessPolicy) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") if err != nil { @@ -43,7 +45,7 @@ func (m *ConditionalAccessPolicy) GetDescription()(*string) { } return nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. Represents the human-readable name or title assigned to the conditional access policy. func (m *ConditionalAccessPolicy) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { @@ -99,7 +101,7 @@ func (m *ConditionalAccessPolicy) GetFieldDeserializers()(map[string]func(i878a8 } return res } -// GetModifiedDateTime gets the modifiedDateTime property value. The modifiedDateTime property +// GetModifiedDateTime gets the modifiedDateTime property value. Indicates the date and time when the conditional access policy was last modified. func (m *ConditionalAccessPolicy) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("modifiedDateTime") if err != nil { @@ -142,28 +144,28 @@ func (m *ConditionalAccessPolicy) Serialize(writer i878a80d2330e89d26896388a3f48 } return nil } -// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +// SetCreatedDateTime sets the createdDateTime property value. Indicates the date and time the conditional access policy was created. func (m *ConditionalAccessPolicy) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } -// SetDescription sets the description property value. The description property +// SetDescription sets the description property value. Provides a summary of the conditional access policy. func (m *ConditionalAccessPolicy) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. The displayName property +// SetDisplayName sets the displayName property value. Represents the human-readable name or title assigned to the conditional access policy. func (m *ConditionalAccessPolicy) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetModifiedDateTime sets the modifiedDateTime property value. The modifiedDateTime property +// SetModifiedDateTime sets the modifiedDateTime property value. Indicates the date and time when the conditional access policy was last modified. func (m *ConditionalAccessPolicy) SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("modifiedDateTime", value) if err != nil { diff --git a/models/networkaccess/conditional_access_settings.go b/models/networkaccess/conditional_access_settings.go index 5df76e4d44f..fff2b4dbe40 100644 --- a/models/networkaccess/conditional_access_settings.go +++ b/models/networkaccess/conditional_access_settings.go @@ -8,8 +8,10 @@ import ( // ConditionalAccessSettings type ConditionalAccessSettings struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewConditionalAccessSettings instantiates a new ConditionalAccessSettings and sets the default values. +// NewConditionalAccessSettings instantiates a new conditionalAccessSettings and sets the default values. func NewConditionalAccessSettings()(*ConditionalAccessSettings) { m := &ConditionalAccessSettings{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/networkaccess/connectivity.go b/models/networkaccess/connectivity.go index 4f2928dd3f9..11d6cfc189c 100644 --- a/models/networkaccess/connectivity.go +++ b/models/networkaccess/connectivity.go @@ -8,6 +8,8 @@ import ( // Connectivity type Connectivity struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewConnectivity instantiates a new connectivity and sets the default values. func NewConnectivity()(*Connectivity) { @@ -20,7 +22,7 @@ func NewConnectivity()(*Connectivity) { func CreateConnectivityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewConnectivity(), nil } -// GetBranches gets the branches property value. The branches property +// GetBranches gets the branches property value. Branch represent locations for connectivity. func (m *Connectivity) GetBranches()([]BranchSiteable) { val, err := m.GetBackingStore().Get("branches") if err != nil { @@ -72,7 +74,7 @@ func (m *Connectivity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e } return nil } -// SetBranches sets the branches property value. The branches property +// SetBranches sets the branches property value. Branch represent locations for connectivity. func (m *Connectivity) SetBranches(value []BranchSiteable)() { err := m.GetBackingStore().Set("branches", value) if err != nil { diff --git a/models/networkaccess/cross_tenant_access_settings.go b/models/networkaccess/cross_tenant_access_settings.go index 033659560ec..740e5fccc3b 100644 --- a/models/networkaccess/cross_tenant_access_settings.go +++ b/models/networkaccess/cross_tenant_access_settings.go @@ -8,8 +8,10 @@ import ( // CrossTenantAccessSettings type CrossTenantAccessSettings struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewCrossTenantAccessSettings instantiates a new CrossTenantAccessSettings and sets the default values. +// NewCrossTenantAccessSettings instantiates a new crossTenantAccessSettings and sets the default values. func NewCrossTenantAccessSettings()(*CrossTenantAccessSettings) { m := &CrossTenantAccessSettings{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/networkaccess/cross_tenant_summary.go b/models/networkaccess/cross_tenant_summary.go index a33f51a564b..c17a8cc05c0 100644 --- a/models/networkaccess/cross_tenant_summary.go +++ b/models/networkaccess/cross_tenant_summary.go @@ -34,7 +34,7 @@ func (m *CrossTenantSummary) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAuthTransactionCount gets the authTransactionCount property value. The authTransactionCount property +// GetAuthTransactionCount gets the authTransactionCount property value. Total numbers of authentication sessions in the time frame between startDateTime and endDateTime. func (m *CrossTenantSummary) GetAuthTransactionCount()(*int32) { val, err := m.GetBackingStore().Get("authTransactionCount") if err != nil { @@ -49,7 +49,7 @@ func (m *CrossTenantSummary) GetAuthTransactionCount()(*int32) { func (m *CrossTenantSummary) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDeviceCount gets the deviceCount property value. The deviceCount property +// GetDeviceCount gets the deviceCount property value. Count of unique devices that performed cross-tenant access, in the time frame between startDateTime and endDateTime. func (m *CrossTenantSummary) GetDeviceCount()(*int32) { val, err := m.GetBackingStore().Get("deviceCount") if err != nil { @@ -125,7 +125,7 @@ func (m *CrossTenantSummary) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } -// GetNewTenantCount gets the newTenantCount property value. The newTenantCount property +// GetNewTenantCount gets the newTenantCount property value. Count of unique tenants that were accessed in the time frame between endDateTime to discoveryPivotDateTime, but haven't been accessed in the time frame between discoveryPivotDateTime to startDateTime. func (m *CrossTenantSummary) GetNewTenantCount()(*int32) { val, err := m.GetBackingStore().Get("newTenantCount") if err != nil { @@ -147,7 +147,7 @@ func (m *CrossTenantSummary) GetOdataType()(*string) { } return nil } -// GetTenantCount gets the tenantCount property value. The tenantCount property +// GetTenantCount gets the tenantCount property value. Count of unique tenants that were accessed, that are different from the device's home tenant, in the time frame between startDateTime and endDateTime. func (m *CrossTenantSummary) GetTenantCount()(*int32) { val, err := m.GetBackingStore().Get("tenantCount") if err != nil { @@ -158,7 +158,7 @@ func (m *CrossTenantSummary) GetTenantCount()(*int32) { } return nil } -// GetUserCount gets the userCount property value. The userCount property +// GetUserCount gets the userCount property value. Count of unique users that performed cross-tenant access, in the time frame between startDateTime and endDateTime. func (m *CrossTenantSummary) GetUserCount()(*int32) { val, err := m.GetBackingStore().Get("userCount") if err != nil { @@ -222,7 +222,7 @@ func (m *CrossTenantSummary) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetAuthTransactionCount sets the authTransactionCount property value. The authTransactionCount property +// SetAuthTransactionCount sets the authTransactionCount property value. Total numbers of authentication sessions in the time frame between startDateTime and endDateTime. func (m *CrossTenantSummary) SetAuthTransactionCount(value *int32)() { err := m.GetBackingStore().Set("authTransactionCount", value) if err != nil { @@ -233,14 +233,14 @@ func (m *CrossTenantSummary) SetAuthTransactionCount(value *int32)() { func (m *CrossTenantSummary) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDeviceCount sets the deviceCount property value. The deviceCount property +// SetDeviceCount sets the deviceCount property value. Count of unique devices that performed cross-tenant access, in the time frame between startDateTime and endDateTime. func (m *CrossTenantSummary) SetDeviceCount(value *int32)() { err := m.GetBackingStore().Set("deviceCount", value) if err != nil { panic(err) } } -// SetNewTenantCount sets the newTenantCount property value. The newTenantCount property +// SetNewTenantCount sets the newTenantCount property value. Count of unique tenants that were accessed in the time frame between endDateTime to discoveryPivotDateTime, but haven't been accessed in the time frame between discoveryPivotDateTime to startDateTime. func (m *CrossTenantSummary) SetNewTenantCount(value *int32)() { err := m.GetBackingStore().Set("newTenantCount", value) if err != nil { @@ -254,14 +254,14 @@ func (m *CrossTenantSummary) SetOdataType(value *string)() { panic(err) } } -// SetTenantCount sets the tenantCount property value. The tenantCount property +// SetTenantCount sets the tenantCount property value. Count of unique tenants that were accessed, that are different from the device's home tenant, in the time frame between startDateTime and endDateTime. func (m *CrossTenantSummary) SetTenantCount(value *int32)() { err := m.GetBackingStore().Set("tenantCount", value) if err != nil { panic(err) } } -// SetUserCount sets the userCount property value. The userCount property +// SetUserCount sets the userCount property value. Count of unique users that performed cross-tenant access, in the time frame between startDateTime and endDateTime. func (m *CrossTenantSummary) SetUserCount(value *int32)() { err := m.GetBackingStore().Set("userCount", value) if err != nil { diff --git a/models/networkaccess/destination_summary.go b/models/networkaccess/destination_summary.go index af9e7d1af8d..d96ea0fc847 100644 --- a/models/networkaccess/destination_summary.go +++ b/models/networkaccess/destination_summary.go @@ -38,7 +38,7 @@ func (m *DestinationSummary) GetAdditionalData()(map[string]any) { func (m *DestinationSummary) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetCount gets the count property value. The count property +// GetCount gets the count property value. Count of the aggregation. func (m *DestinationSummary) GetCount()(*int32) { val, err := m.GetBackingStore().Get("count") if err != nil { @@ -49,7 +49,7 @@ func (m *DestinationSummary) GetCount()(*int32) { } return nil } -// GetDestination gets the destination property value. The destination property +// GetDestination gets the destination property value. Destination FQDN or IP address. func (m *DestinationSummary) GetDestination()(*string) { val, err := m.GetBackingStore().Get("destination") if err != nil { @@ -145,14 +145,14 @@ func (m *DestinationSummary) SetAdditionalData(value map[string]any)() { func (m *DestinationSummary) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetCount sets the count property value. The count property +// SetCount sets the count property value. Count of the aggregation. func (m *DestinationSummary) SetCount(value *int32)() { err := m.GetBackingStore().Set("count", value) if err != nil { panic(err) } } -// SetDestination sets the destination property value. The destination property +// SetDestination sets the destination property value. Destination FQDN or IP address. func (m *DestinationSummary) SetDestination(value *string)() { err := m.GetBackingStore().Set("destination", value) if err != nil { diff --git a/models/networkaccess/device_link.go b/models/networkaccess/device_link.go index 9e99209a0d7..c2ed0d8bad6 100644 --- a/models/networkaccess/device_link.go +++ b/models/networkaccess/device_link.go @@ -9,6 +9,8 @@ import ( // DeviceLink type DeviceLink struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDeviceLink instantiates a new deviceLink and sets the default values. func NewDeviceLink()(*DeviceLink) { @@ -21,7 +23,7 @@ func NewDeviceLink()(*DeviceLink) { func CreateDeviceLinkFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDeviceLink(), nil } -// GetBandwidthCapacityInMbps gets the bandwidthCapacityInMbps property value. The bandwidthCapacityInMbps property +// 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) { val, err := m.GetBackingStore().Get("bandwidthCapacityInMbps") if err != nil { @@ -139,7 +141,7 @@ func (m *DeviceLink) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } return res } -// GetIpAddress gets the ipAddress property value. The ipAddress property +// GetIpAddress gets the ipAddress property value. Specifies the client IPv4 of the link func (m *DeviceLink) GetIpAddress()(*string) { val, err := m.GetBackingStore().Get("ipAddress") if err != nil { @@ -150,7 +152,7 @@ func (m *DeviceLink) GetIpAddress()(*string) { } return nil } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. last modified time. func (m *DeviceLink) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") if err != nil { @@ -161,7 +163,7 @@ func (m *DeviceLink) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a } return nil } -// GetName gets the name property value. The name property +// GetName gets the name property value. Name. func (m *DeviceLink) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -252,7 +254,7 @@ func (m *DeviceLink) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c } return nil } -// SetBandwidthCapacityInMbps sets the bandwidthCapacityInMbps property value. The bandwidthCapacityInMbps property +// 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)() { err := m.GetBackingStore().Set("bandwidthCapacityInMbps", value) if err != nil { @@ -273,21 +275,21 @@ func (m *DeviceLink) SetDeviceVendor(value *DeviceVendor)() { panic(err) } } -// SetIpAddress sets the ipAddress property value. The ipAddress property +// SetIpAddress sets the ipAddress property value. Specifies the client IPv4 of the link func (m *DeviceLink) SetIpAddress(value *string)() { err := m.GetBackingStore().Set("ipAddress", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. last modified time. func (m *DeviceLink) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. Name. func (m *DeviceLink) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { diff --git a/models/networkaccess/device_link_collection_response.go b/models/networkaccess/device_link_collection_response.go index 5e513b7ceb7..3501f9b4193 100644 --- a/models/networkaccess/device_link_collection_response.go +++ b/models/networkaccess/device_link_collection_response.go @@ -9,7 +9,7 @@ import ( type DeviceLinkCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewDeviceLinkCollectionResponse instantiates a new DeviceLinkCollectionResponse and sets the default values. +// NewDeviceLinkCollectionResponse instantiates a new deviceLinkCollectionResponse and sets the default values. func NewDeviceLinkCollectionResponse()(*DeviceLinkCollectionResponse) { m := &DeviceLinkCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/networkaccess/device_usage_summary.go b/models/networkaccess/device_usage_summary.go index bfea543e71f..9de35cfe485 100644 --- a/models/networkaccess/device_usage_summary.go +++ b/models/networkaccess/device_usage_summary.go @@ -22,7 +22,7 @@ func NewDeviceUsageSummary()(*DeviceUsageSummary) { func CreateDeviceUsageSummaryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDeviceUsageSummary(), nil } -// GetActiveDeviceCount gets the activeDeviceCount property value. The activeDeviceCount property +// GetActiveDeviceCount gets the activeDeviceCount property value. The number of distinct device IDs in the time frame between endDateTime and discoveryPivotDateTime. func (m *DeviceUsageSummary) GetActiveDeviceCount()(*int32) { val, err := m.GetBackingStore().Get("activeDeviceCount") if err != nil { @@ -94,7 +94,7 @@ func (m *DeviceUsageSummary) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } -// GetInactiveDeviceCount gets the inactiveDeviceCount property value. The inactiveDeviceCount property +// GetInactiveDeviceCount gets the inactiveDeviceCount property value. The number of distinct device IDs havn't seen in the time frame between endDateTime and discoveryPivotDateTime but have seen in the time frame between discoveryPivotDateTime and startDateTime. func (m *DeviceUsageSummary) GetInactiveDeviceCount()(*int32) { val, err := m.GetBackingStore().Get("inactiveDeviceCount") if err != nil { @@ -116,7 +116,7 @@ func (m *DeviceUsageSummary) GetOdataType()(*string) { } return nil } -// GetTotalDeviceCount gets the totalDeviceCount property value. The totalDeviceCount property +// GetTotalDeviceCount gets the totalDeviceCount property value. The number of distinct device IDs in the time frame between startDateTime and endDateTime. func (m *DeviceUsageSummary) GetTotalDeviceCount()(*int32) { val, err := m.GetBackingStore().Get("totalDeviceCount") if err != nil { @@ -161,7 +161,7 @@ func (m *DeviceUsageSummary) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } -// SetActiveDeviceCount sets the activeDeviceCount property value. The activeDeviceCount property +// SetActiveDeviceCount sets the activeDeviceCount property value. The number of distinct device IDs in the time frame between endDateTime and discoveryPivotDateTime. func (m *DeviceUsageSummary) SetActiveDeviceCount(value *int32)() { err := m.GetBackingStore().Set("activeDeviceCount", value) if err != nil { @@ -179,7 +179,7 @@ func (m *DeviceUsageSummary) SetAdditionalData(value map[string]any)() { func (m *DeviceUsageSummary) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetInactiveDeviceCount sets the inactiveDeviceCount property value. The inactiveDeviceCount property +// SetInactiveDeviceCount sets the inactiveDeviceCount property value. The number of distinct device IDs havn't seen in the time frame between endDateTime and discoveryPivotDateTime but have seen in the time frame between discoveryPivotDateTime and startDateTime. func (m *DeviceUsageSummary) SetInactiveDeviceCount(value *int32)() { err := m.GetBackingStore().Set("inactiveDeviceCount", value) if err != nil { @@ -193,7 +193,7 @@ func (m *DeviceUsageSummary) SetOdataType(value *string)() { panic(err) } } -// SetTotalDeviceCount sets the totalDeviceCount property value. The totalDeviceCount property +// SetTotalDeviceCount sets the totalDeviceCount property value. The number of distinct device IDs in the time frame between startDateTime and endDateTime. func (m *DeviceUsageSummary) SetTotalDeviceCount(value *int32)() { err := m.GetBackingStore().Set("totalDeviceCount", value) if err != nil { diff --git a/models/networkaccess/enriched_audit_logs.go b/models/networkaccess/enriched_audit_logs.go index 190503e6ea5..f901f739d93 100644 --- a/models/networkaccess/enriched_audit_logs.go +++ b/models/networkaccess/enriched_audit_logs.go @@ -8,8 +8,10 @@ import ( // EnrichedAuditLogs type EnrichedAuditLogs struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewEnrichedAuditLogs instantiates a new EnrichedAuditLogs and sets the default values. +// NewEnrichedAuditLogs instantiates a new enrichedAuditLogs and sets the default values. func NewEnrichedAuditLogs()(*EnrichedAuditLogs) { m := &EnrichedAuditLogs{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), @@ -20,7 +22,7 @@ func NewEnrichedAuditLogs()(*EnrichedAuditLogs) { func CreateEnrichedAuditLogsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewEnrichedAuditLogs(), nil } -// GetExchange gets the exchange property value. The exchange property +// GetExchange gets the exchange property value. Exchange Online enriched audit logs settings. func (m *EnrichedAuditLogs) GetExchange()(EnrichedAuditLogsSettingsable) { val, err := m.GetBackingStore().Get("exchange") if err != nil { @@ -66,7 +68,7 @@ func (m *EnrichedAuditLogs) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetSharepoint gets the sharepoint property value. The sharepoint property +// GetSharepoint gets the sharepoint property value. SharePoint Online enriched audit logs settings. func (m *EnrichedAuditLogs) GetSharepoint()(EnrichedAuditLogsSettingsable) { val, err := m.GetBackingStore().Get("sharepoint") if err != nil { @@ -77,7 +79,7 @@ func (m *EnrichedAuditLogs) GetSharepoint()(EnrichedAuditLogsSettingsable) { } return nil } -// GetTeams gets the teams property value. The teams property +// GetTeams gets the teams property value. Teams enriched audit logs settings. func (m *EnrichedAuditLogs) GetTeams()(EnrichedAuditLogsSettingsable) { val, err := m.GetBackingStore().Get("teams") if err != nil { @@ -114,21 +116,21 @@ func (m *EnrichedAuditLogs) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetExchange sets the exchange property value. The exchange property +// SetExchange sets the exchange property value. Exchange Online enriched audit logs settings. func (m *EnrichedAuditLogs) SetExchange(value EnrichedAuditLogsSettingsable)() { err := m.GetBackingStore().Set("exchange", value) if err != nil { panic(err) } } -// SetSharepoint sets the sharepoint property value. The sharepoint property +// SetSharepoint sets the sharepoint property value. SharePoint Online enriched audit logs settings. func (m *EnrichedAuditLogs) SetSharepoint(value EnrichedAuditLogsSettingsable)() { err := m.GetBackingStore().Set("sharepoint", value) if err != nil { panic(err) } } -// SetTeams sets the teams property value. The teams property +// SetTeams sets the teams property value. Teams enriched audit logs settings. func (m *EnrichedAuditLogs) SetTeams(value EnrichedAuditLogsSettingsable)() { err := m.GetBackingStore().Set("teams", value) if err != nil { diff --git a/models/networkaccess/entities_summary.go b/models/networkaccess/entities_summary.go index 8110685e420..cfe69622871 100644 --- a/models/networkaccess/entities_summary.go +++ b/models/networkaccess/entities_summary.go @@ -38,7 +38,7 @@ func (m *EntitiesSummary) GetAdditionalData()(map[string]any) { func (m *EntitiesSummary) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDeviceCount gets the deviceCount property value. The deviceCount property +// GetDeviceCount gets the deviceCount property value. Count of unique devices that were seen. func (m *EntitiesSummary) GetDeviceCount()(*int64) { val, err := m.GetBackingStore().Get("deviceCount") if err != nil { @@ -126,7 +126,7 @@ func (m *EntitiesSummary) GetTrafficType()(*TrafficType) { } return nil } -// GetUserCount gets the userCount property value. The userCount property +// GetUserCount gets the userCount property value. Count of unique Azure Active Directoy users that were seen. func (m *EntitiesSummary) GetUserCount()(*int64) { val, err := m.GetBackingStore().Get("userCount") if err != nil { @@ -137,7 +137,7 @@ func (m *EntitiesSummary) GetUserCount()(*int64) { } return nil } -// GetWorkloadCount gets the workloadCount property value. The workloadCount property +// GetWorkloadCount gets the workloadCount property value. Count of unique target workloads or hosts that were seen. func (m *EntitiesSummary) GetWorkloadCount()(*int64) { val, err := m.GetBackingStore().Get("workloadCount") if err != nil { @@ -200,7 +200,7 @@ func (m *EntitiesSummary) SetAdditionalData(value map[string]any)() { func (m *EntitiesSummary) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDeviceCount sets the deviceCount property value. The deviceCount property +// SetDeviceCount sets the deviceCount property value. Count of unique devices that were seen. func (m *EntitiesSummary) SetDeviceCount(value *int64)() { err := m.GetBackingStore().Set("deviceCount", value) if err != nil { @@ -221,14 +221,14 @@ func (m *EntitiesSummary) SetTrafficType(value *TrafficType)() { panic(err) } } -// SetUserCount sets the userCount property value. The userCount property +// SetUserCount sets the userCount property value. Count of unique Azure Active Directoy users that were seen. func (m *EntitiesSummary) SetUserCount(value *int64)() { err := m.GetBackingStore().Set("userCount", value) if err != nil { panic(err) } } -// SetWorkloadCount sets the workloadCount property value. The workloadCount property +// SetWorkloadCount sets the workloadCount property value. Count of unique target workloads or hosts that were seen. func (m *EntitiesSummary) SetWorkloadCount(value *int64)() { err := m.GetBackingStore().Set("workloadCount", value) if err != nil { diff --git a/models/networkaccess/forwarding_options.go b/models/networkaccess/forwarding_options.go index a7d66e13c9f..c0a0aefa42d 100644 --- a/models/networkaccess/forwarding_options.go +++ b/models/networkaccess/forwarding_options.go @@ -8,8 +8,10 @@ import ( // ForwardingOptions type ForwardingOptions struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewForwardingOptions instantiates a new ForwardingOptions and sets the default values. +// NewForwardingOptions instantiates a new forwardingOptions and sets the default values. func NewForwardingOptions()(*ForwardingOptions) { m := &ForwardingOptions{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), diff --git a/models/networkaccess/forwarding_policy.go b/models/networkaccess/forwarding_policy.go index eb62be7a2a2..e19151d2753 100644 --- a/models/networkaccess/forwarding_policy.go +++ b/models/networkaccess/forwarding_policy.go @@ -8,7 +8,7 @@ import ( type ForwardingPolicy struct { Policy } -// NewForwardingPolicy instantiates a new ForwardingPolicy and sets the default values. +// NewForwardingPolicy instantiates a new forwardingPolicy and sets the default values. func NewForwardingPolicy()(*ForwardingPolicy) { m := &ForwardingPolicy{ Policy: *NewPolicy(), diff --git a/models/networkaccess/forwarding_policy_collection_response.go b/models/networkaccess/forwarding_policy_collection_response.go index a6332586b37..3276f46124c 100644 --- a/models/networkaccess/forwarding_policy_collection_response.go +++ b/models/networkaccess/forwarding_policy_collection_response.go @@ -9,7 +9,7 @@ import ( type ForwardingPolicyCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewForwardingPolicyCollectionResponse instantiates a new ForwardingPolicyCollectionResponse and sets the default values. +// NewForwardingPolicyCollectionResponse instantiates a new forwardingPolicyCollectionResponse and sets the default values. func NewForwardingPolicyCollectionResponse()(*ForwardingPolicyCollectionResponse) { m := &ForwardingPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/networkaccess/forwarding_policy_link.go b/models/networkaccess/forwarding_policy_link.go index 7d3f88f714c..0fe06f7d6b2 100644 --- a/models/networkaccess/forwarding_policy_link.go +++ b/models/networkaccess/forwarding_policy_link.go @@ -8,7 +8,7 @@ import ( type ForwardingPolicyLink struct { PolicyLink } -// NewForwardingPolicyLink instantiates a new ForwardingPolicyLink and sets the default values. +// NewForwardingPolicyLink instantiates a new forwardingPolicyLink and sets the default values. func NewForwardingPolicyLink()(*ForwardingPolicyLink) { m := &ForwardingPolicyLink{ PolicyLink: *NewPolicyLink(), diff --git a/models/networkaccess/forwarding_profile.go b/models/networkaccess/forwarding_profile.go index 68029158a7d..20493b335a3 100644 --- a/models/networkaccess/forwarding_profile.go +++ b/models/networkaccess/forwarding_profile.go @@ -8,7 +8,7 @@ import ( type ForwardingProfile struct { Profile } -// NewForwardingProfile instantiates a new ForwardingProfile and sets the default values. +// NewForwardingProfile instantiates a new forwardingProfile and sets the default values. func NewForwardingProfile()(*ForwardingProfile) { m := &ForwardingProfile{ Profile: *NewProfile(), @@ -21,7 +21,7 @@ func NewForwardingProfile()(*ForwardingProfile) { func CreateForwardingProfileFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewForwardingProfile(), nil } -// GetAssociations gets the associations property value. The associations property +// GetAssociations gets the associations property value. Specifies the users, groups, devices, and branch locations whose traffic is associated with the given traffic forwarding profile. func (m *ForwardingProfile) GetAssociations()([]Associationable) { val, err := m.GetBackingStore().Get("associations") if err != nil { @@ -73,7 +73,7 @@ func (m *ForwardingProfile) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetPriority gets the priority property value. The priority property +// GetPriority gets the priority property value. Profile priority. func (m *ForwardingProfile) GetPriority()(*int32) { val, err := m.GetBackingStore().Get("priority") if err != nil { @@ -128,14 +128,14 @@ func (m *ForwardingProfile) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetAssociations sets the associations property value. The associations property +// SetAssociations sets the associations property value. Specifies the users, groups, devices, and branch locations whose traffic is associated with the given traffic forwarding profile. func (m *ForwardingProfile) SetAssociations(value []Associationable)() { err := m.GetBackingStore().Set("associations", value) if err != nil { panic(err) } } -// SetPriority sets the priority property value. The priority property +// SetPriority sets the priority property value. Profile priority. func (m *ForwardingProfile) SetPriority(value *int32)() { err := m.GetBackingStore().Set("priority", value) if err != nil { diff --git a/models/networkaccess/forwarding_profile_collection_response.go b/models/networkaccess/forwarding_profile_collection_response.go index 5142af47d7f..563974b7752 100644 --- a/models/networkaccess/forwarding_profile_collection_response.go +++ b/models/networkaccess/forwarding_profile_collection_response.go @@ -9,7 +9,7 @@ import ( type ForwardingProfileCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewForwardingProfileCollectionResponse instantiates a new ForwardingProfileCollectionResponse and sets the default values. +// NewForwardingProfileCollectionResponse instantiates a new forwardingProfileCollectionResponse and sets the default values. func NewForwardingProfileCollectionResponse()(*ForwardingProfileCollectionResponse) { m := &ForwardingProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/networkaccess/forwarding_rule.go b/models/networkaccess/forwarding_rule.go index 20cd6379518..2ba7a40cfe4 100644 --- a/models/networkaccess/forwarding_rule.go +++ b/models/networkaccess/forwarding_rule.go @@ -8,7 +8,7 @@ import ( type ForwardingRule struct { PolicyRule } -// NewForwardingRule instantiates a new ForwardingRule and sets the default values. +// NewForwardingRule instantiates a new forwardingRule and sets the default values. func NewForwardingRule()(*ForwardingRule) { m := &ForwardingRule{ PolicyRule: *NewPolicyRule(), @@ -52,7 +52,7 @@ func (m *ForwardingRule) GetAction()(*ForwardingRuleAction) { } return nil } -// GetDestinations gets the destinations property value. The destinations property +// GetDestinations gets the destinations property value. Destinations maintain a list of potential destinations and destination types that the user may access within the context of a network filtering policy. This includes IP addresses and fully qualified domain names (FQDNs)/URLs. func (m *ForwardingRule) GetDestinations()([]RuleDestinationable) { val, err := m.GetBackingStore().Get("destinations") if err != nil { @@ -156,7 +156,7 @@ func (m *ForwardingRule) SetAction(value *ForwardingRuleAction)() { panic(err) } } -// SetDestinations sets the destinations property value. The destinations property +// SetDestinations sets the destinations property value. Destinations maintain a list of potential destinations and destination types that the user may access within the context of a network filtering policy. This includes IP addresses and fully qualified domain names (FQDNs)/URLs. func (m *ForwardingRule) SetDestinations(value []RuleDestinationable)() { err := m.GetBackingStore().Set("destinations", value) if err != nil { diff --git a/models/networkaccess/fqdn.go b/models/networkaccess/fqdn.go index 15a45de61db..faf3696fa20 100644 --- a/models/networkaccess/fqdn.go +++ b/models/networkaccess/fqdn.go @@ -8,7 +8,7 @@ import ( type Fqdn struct { RuleDestination } -// NewFqdn instantiates a new Fqdn and sets the default values. +// NewFqdn instantiates a new fqdn and sets the default values. func NewFqdn()(*Fqdn) { m := &Fqdn{ RuleDestination: *NewRuleDestination(), @@ -24,6 +24,16 @@ func CreateFqdnFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487ee // GetFieldDeserializers the deserialization information for the current model func (m *Fqdn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.RuleDestination.GetFieldDeserializers() + 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["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,7 +46,18 @@ func (m *Fqdn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a } return res } -// GetValue gets the value property value. The value property +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Fqdn) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetValue gets the value property value. Defines the FQDN used in a destination for a rule. func (m *Fqdn) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") if err != nil { @@ -53,6 +74,12 @@ func (m *Fqdn) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("value", m.GetValue()) if err != nil { @@ -61,7 +88,14 @@ func (m *Fqdn) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 } return nil } -// SetValue sets the value property value. The value property +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Fqdn) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetValue sets the value property value. Defines the FQDN used in a destination for a rule. func (m *Fqdn) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { @@ -72,6 +106,8 @@ func (m *Fqdn) SetValue(value *string)() { type Fqdnable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable RuleDestinationable + GetOdataType()(*string) GetValue()(*string) + SetOdataType(value *string)() SetValue(value *string)() } diff --git a/models/networkaccess/headers.go b/models/networkaccess/headers.go index 0749ab36b0d..5396d3d90d5 100644 --- a/models/networkaccess/headers.go +++ b/models/networkaccess/headers.go @@ -94,7 +94,7 @@ func (m *Headers) GetOdataType()(*string) { } return nil } -// GetOrigin gets the origin property value. The origin property +// GetOrigin gets the origin property value. Represents the origin or source from which the request is being made. func (m *Headers) GetOrigin()(*string) { val, err := m.GetBackingStore().Get("origin") if err != nil { @@ -105,7 +105,7 @@ func (m *Headers) GetOrigin()(*string) { } return nil } -// GetReferrer gets the referrer property value. The referrer property +// GetReferrer gets the referrer property value. Represents the referring URL or the URL of the web page that the current request originates from. func (m *Headers) GetReferrer()(*string) { val, err := m.GetBackingStore().Get("referrer") if err != nil { @@ -116,7 +116,7 @@ func (m *Headers) GetReferrer()(*string) { } return nil } -// GetXForwardedFor gets the xForwardedFor property value. The xForwardedFor property +// GetXForwardedFor gets the xForwardedFor property value. Represents the information about the client original IP address when the request passes through one or more proxy servers or load balancers. func (m *Headers) GetXForwardedFor()(*string) { val, err := m.GetBackingStore().Get("xForwardedFor") if err != nil { @@ -179,21 +179,21 @@ func (m *Headers) SetOdataType(value *string)() { panic(err) } } -// SetOrigin sets the origin property value. The origin property +// SetOrigin sets the origin property value. Represents the origin or source from which the request is being made. func (m *Headers) SetOrigin(value *string)() { err := m.GetBackingStore().Set("origin", value) if err != nil { panic(err) } } -// SetReferrer sets the referrer property value. The referrer property +// SetReferrer sets the referrer property value. Represents the referring URL or the URL of the web page that the current request originates from. func (m *Headers) SetReferrer(value *string)() { err := m.GetBackingStore().Set("referrer", value) if err != nil { panic(err) } } -// SetXForwardedFor sets the xForwardedFor property value. The xForwardedFor property +// SetXForwardedFor sets the xForwardedFor property value. Represents the information about the client original IP address when the request passes through one or more proxy servers or load balancers. func (m *Headers) SetXForwardedFor(value *string)() { err := m.GetBackingStore().Set("xForwardedFor", value) if err != nil { diff --git a/models/networkaccess/ip_address.go b/models/networkaccess/ip_address.go index 7e7af466f02..a2b80420ecf 100644 --- a/models/networkaccess/ip_address.go +++ b/models/networkaccess/ip_address.go @@ -7,8 +7,10 @@ import ( // IpAddress type IpAddress struct { RuleDestination + // The OdataType property + OdataType *string } -// NewIpAddress instantiates a new IpAddress and sets the default values. +// NewIpAddress instantiates a new ipAddress and sets the default values. func NewIpAddress()(*IpAddress) { m := &IpAddress{ RuleDestination: *NewRuleDestination(), @@ -36,7 +38,7 @@ func (m *IpAddress) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 } return res } -// GetValue gets the value property value. The value property +// GetValue gets the value property value. Defines the IP address used in a destination for a rule. func (m *IpAddress) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") if err != nil { @@ -61,7 +63,7 @@ func (m *IpAddress) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 } return nil } -// SetValue sets the value property value. The value property +// SetValue sets the value property value. Defines the IP address used in a destination for a rule. func (m *IpAddress) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { diff --git a/models/networkaccess/ip_range.go b/models/networkaccess/ip_range.go index 2346bf43992..a4ed7cb02f8 100644 --- a/models/networkaccess/ip_range.go +++ b/models/networkaccess/ip_range.go @@ -7,8 +7,10 @@ import ( // IpRange type IpRange struct { RuleDestination + // The OdataType property + OdataType *string } -// NewIpRange instantiates a new IpRange and sets the default values. +// NewIpRange instantiates a new ipRange and sets the default values. func NewIpRange()(*IpRange) { m := &IpRange{ RuleDestination: *NewRuleDestination(), @@ -21,7 +23,7 @@ func NewIpRange()(*IpRange) { func CreateIpRangeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewIpRange(), nil } -// GetBeginAddress gets the beginAddress property value. The beginAddress property +// GetBeginAddress gets the beginAddress property value. Specifies the starting IP address of the IP range. func (m *IpRange) GetBeginAddress()(*string) { val, err := m.GetBackingStore().Get("beginAddress") if err != nil { @@ -32,7 +34,7 @@ func (m *IpRange) GetBeginAddress()(*string) { } return nil } -// GetEndAddress gets the endAddress property value. The endAddress property +// GetEndAddress gets the endAddress property value. Specifies the ending IP address of the IP range. func (m *IpRange) GetEndAddress()(*string) { val, err := m.GetBackingStore().Get("endAddress") if err != nil { @@ -88,14 +90,14 @@ func (m *IpRange) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010 } return nil } -// SetBeginAddress sets the beginAddress property value. The beginAddress property +// SetBeginAddress sets the beginAddress property value. Specifies the starting IP address of the IP range. func (m *IpRange) SetBeginAddress(value *string)() { err := m.GetBackingStore().Set("beginAddress", value) if err != nil { panic(err) } } -// SetEndAddress sets the endAddress property value. The endAddress property +// SetEndAddress sets the endAddress property value. Specifies the ending IP address of the IP range. func (m *IpRange) SetEndAddress(value *string)() { err := m.GetBackingStore().Set("endAddress", value) if err != nil { diff --git a/models/networkaccess/ip_subnet.go b/models/networkaccess/ip_subnet.go index 4133a2e1735..793d96731eb 100644 --- a/models/networkaccess/ip_subnet.go +++ b/models/networkaccess/ip_subnet.go @@ -8,7 +8,7 @@ import ( type IpSubnet struct { RuleDestination } -// NewIpSubnet instantiates a new IpSubnet and sets the default values. +// NewIpSubnet instantiates a new ipSubnet and sets the default values. func NewIpSubnet()(*IpSubnet) { m := &IpSubnet{ RuleDestination: *NewRuleDestination(), @@ -24,6 +24,16 @@ func CreateIpSubnetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f4 // GetFieldDeserializers the deserialization information for the current model func (m *IpSubnet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.RuleDestination.GetFieldDeserializers() + 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["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,7 +46,18 @@ func (m *IpSubnet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetValue gets the value property value. The value property +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *IpSubnet) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetValue gets the value property value. Defines the IP address of the subset used in a destination for a rule. func (m *IpSubnet) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") if err != nil { @@ -53,6 +74,12 @@ func (m *IpSubnet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("value", m.GetValue()) if err != nil { @@ -61,7 +88,14 @@ func (m *IpSubnet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 } return nil } -// SetValue sets the value property value. The value property +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IpSubnet) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetValue sets the value property value. Defines the IP address of the subset used in a destination for a rule. func (m *IpSubnet) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { @@ -72,6 +106,8 @@ func (m *IpSubnet) SetValue(value *string)() { type IpSubnetable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable RuleDestinationable + GetOdataType()(*string) GetValue()(*string) + SetOdataType(value *string)() SetValue(value *string)() } diff --git a/models/networkaccess/logs.go b/models/networkaccess/logs.go index 7b5137e2b4c..525fd20470a 100644 --- a/models/networkaccess/logs.go +++ b/models/networkaccess/logs.go @@ -8,8 +8,10 @@ import ( // Logs type Logs struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewLogs instantiates a new Logs and sets the default values. +// NewLogs instantiates a new logs and sets the default values. func NewLogs()(*Logs) { m := &Logs{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), @@ -41,7 +43,7 @@ func (m *Logs) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a } return res } -// GetTraffic gets the traffic property value. The traffic property +// GetTraffic gets the traffic property value. Represents a collection of log entries in the network access traffic log. func (m *Logs) GetTraffic()([]NetworkAccessTrafficable) { val, err := m.GetBackingStore().Get("traffic") if err != nil { @@ -72,7 +74,7 @@ func (m *Logs) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 } return nil } -// SetTraffic sets the traffic property value. The traffic property +// SetTraffic sets the traffic property value. Represents a collection of log entries in the network access traffic log. func (m *Logs) SetTraffic(value []NetworkAccessTrafficable)() { err := m.GetBackingStore().Set("traffic", value) if err != nil { diff --git a/models/networkaccess/m365_forwarding_rule.go b/models/networkaccess/m365_forwarding_rule.go index dad375f4d3f..3f3498aa409 100644 --- a/models/networkaccess/m365_forwarding_rule.go +++ b/models/networkaccess/m365_forwarding_rule.go @@ -8,7 +8,7 @@ import ( type M365ForwardingRule struct { ForwardingRule } -// NewM365ForwardingRule instantiates a new M365ForwardingRule and sets the default values. +// NewM365ForwardingRule instantiates a new m365ForwardingRule and sets the default values. func NewM365ForwardingRule()(*M365ForwardingRule) { m := &M365ForwardingRule{ ForwardingRule: *NewForwardingRule(), @@ -73,7 +73,7 @@ func (m *M365ForwardingRule) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } -// GetPorts gets the ports property value. The ports property +// GetPorts gets the ports property value. The port(s) used by a forwarding rule for M365 traffic are specified to determine the specific network port(s) through which the Microsoft 365 traffic is directed and forwarded. func (m *M365ForwardingRule) GetPorts()([]string) { val, err := m.GetBackingStore().Get("ports") if err != nil { @@ -130,7 +130,7 @@ func (m *M365ForwardingRule) SetCategory(value *ForwardingCategory)() { panic(err) } } -// SetPorts sets the ports property value. The ports property +// SetPorts sets the ports property value. The port(s) used by a forwarding rule for M365 traffic are specified to determine the specific network port(s) through which the Microsoft 365 traffic is directed and forwarded. func (m *M365ForwardingRule) SetPorts(value []string)() { err := m.GetBackingStore().Set("ports", value) if err != nil { diff --git a/models/networkaccess/network_access_root.go b/models/networkaccess/network_access_root.go index 79c4524bcd4..f5f1fc0d467 100644 --- a/models/networkaccess/network_access_root.go +++ b/models/networkaccess/network_access_root.go @@ -8,8 +8,10 @@ import ( // NetworkAccessRoot type NetworkAccessRoot struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewNetworkAccessRoot instantiates a new NetworkAccessRoot and sets the default values. +// NewNetworkAccessRoot instantiates a new networkAccessRoot and sets the default values. func NewNetworkAccessRoot()(*NetworkAccessRoot) { m := &NetworkAccessRoot{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), @@ -20,7 +22,7 @@ func NewNetworkAccessRoot()(*NetworkAccessRoot) { func CreateNetworkAccessRootFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewNetworkAccessRoot(), nil } -// GetConnectivity gets the connectivity property value. The connectivity property +// GetConnectivity gets the connectivity property value. Connectivity represents all the connectivity components in Global Secure Access. func (m *NetworkAccessRoot) GetConnectivity()(Connectivityable) { val, err := m.GetBackingStore().Get("connectivity") if err != nil { @@ -118,7 +120,7 @@ func (m *NetworkAccessRoot) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetForwardingPolicies gets the forwardingPolicies property value. The forwardingPolicies property +// GetForwardingPolicies gets the forwardingPolicies property value. A forwarding policy defines the specific traffic that is routed through the Gloval Secure Access Service. It is then added to a forwarding profile. func (m *NetworkAccessRoot) GetForwardingPolicies()([]ForwardingPolicyable) { val, err := m.GetBackingStore().Get("forwardingPolicies") if err != nil { @@ -129,7 +131,7 @@ func (m *NetworkAccessRoot) GetForwardingPolicies()([]ForwardingPolicyable) { } return nil } -// GetForwardingProfiles gets the forwardingProfiles property value. The forwardingProfiles property +// GetForwardingProfiles gets the forwardingProfiles property value. A forwarding profile determines which types of traffic are routed through the Global Secure Access services and which ones are skipped. The handling of specific traffic is determined by the forwarding policies that are added to the forwarding profile. func (m *NetworkAccessRoot) GetForwardingProfiles()([]ForwardingProfileable) { val, err := m.GetBackingStore().Get("forwardingProfiles") if err != nil { @@ -140,7 +142,7 @@ func (m *NetworkAccessRoot) GetForwardingProfiles()([]ForwardingProfileable) { } return nil } -// GetLogs gets the logs property value. The logs property +// GetLogs gets the logs property value. Represnts network connections that are routed through Global Secure Access. func (m *NetworkAccessRoot) GetLogs()(Logsable) { val, err := m.GetBackingStore().Get("logs") if err != nil { @@ -151,7 +153,7 @@ func (m *NetworkAccessRoot) GetLogs()(Logsable) { } return nil } -// GetReports gets the reports property value. The reports property +// GetReports gets the reports property value. Represents the status of the Global Secure Access services for the tenant. func (m *NetworkAccessRoot) GetReports()(Reportsable) { val, err := m.GetBackingStore().Get("reports") if err != nil { @@ -162,7 +164,7 @@ func (m *NetworkAccessRoot) GetReports()(Reportsable) { } return nil } -// GetSettings gets the settings property value. The settings property +// GetSettings gets the settings property value. Global Secure Access settings. func (m *NetworkAccessRoot) GetSettings()(Settingsable) { val, err := m.GetBackingStore().Get("settings") if err != nil { @@ -173,7 +175,7 @@ func (m *NetworkAccessRoot) GetSettings()(Settingsable) { } return nil } -// GetTenantStatus gets the tenantStatus property value. The tenantStatus property +// GetTenantStatus gets the tenantStatus property value. Represents the status of the Global Secure Access services for the tenant. func (m *NetworkAccessRoot) GetTenantStatus()(TenantStatusable) { val, err := m.GetBackingStore().Get("tenantStatus") if err != nil { @@ -246,49 +248,49 @@ func (m *NetworkAccessRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetConnectivity sets the connectivity property value. The connectivity property +// SetConnectivity sets the connectivity property value. Connectivity represents all the connectivity components in Global Secure Access. func (m *NetworkAccessRoot) SetConnectivity(value Connectivityable)() { err := m.GetBackingStore().Set("connectivity", value) if err != nil { panic(err) } } -// SetForwardingPolicies sets the forwardingPolicies property value. The forwardingPolicies property +// SetForwardingPolicies sets the forwardingPolicies property value. A forwarding policy defines the specific traffic that is routed through the Gloval Secure Access Service. It is then added to a forwarding profile. func (m *NetworkAccessRoot) SetForwardingPolicies(value []ForwardingPolicyable)() { err := m.GetBackingStore().Set("forwardingPolicies", value) if err != nil { panic(err) } } -// SetForwardingProfiles sets the forwardingProfiles property value. The forwardingProfiles property +// SetForwardingProfiles sets the forwardingProfiles property value. A forwarding profile determines which types of traffic are routed through the Global Secure Access services and which ones are skipped. The handling of specific traffic is determined by the forwarding policies that are added to the forwarding profile. func (m *NetworkAccessRoot) SetForwardingProfiles(value []ForwardingProfileable)() { err := m.GetBackingStore().Set("forwardingProfiles", value) if err != nil { panic(err) } } -// SetLogs sets the logs property value. The logs property +// SetLogs sets the logs property value. Represnts network connections that are routed through Global Secure Access. func (m *NetworkAccessRoot) SetLogs(value Logsable)() { err := m.GetBackingStore().Set("logs", value) if err != nil { panic(err) } } -// SetReports sets the reports property value. The reports property +// SetReports sets the reports property value. Represents the status of the Global Secure Access services for the tenant. func (m *NetworkAccessRoot) SetReports(value Reportsable)() { err := m.GetBackingStore().Set("reports", value) if err != nil { panic(err) } } -// SetSettings sets the settings property value. The settings property +// SetSettings sets the settings property value. Global Secure Access settings. func (m *NetworkAccessRoot) SetSettings(value Settingsable)() { err := m.GetBackingStore().Set("settings", value) if err != nil { panic(err) } } -// SetTenantStatus sets the tenantStatus property value. The tenantStatus property +// SetTenantStatus sets the tenantStatus property value. Represents the status of the Global Secure Access services for the tenant. func (m *NetworkAccessRoot) SetTenantStatus(value TenantStatusable)() { err := m.GetBackingStore().Set("tenantStatus", value) if err != nil { diff --git a/models/networkaccess/network_access_traffic.go b/models/networkaccess/network_access_traffic.go index a3f4f43be73..1020f8a47ad 100644 --- a/models/networkaccess/network_access_traffic.go +++ b/models/networkaccess/network_access_traffic.go @@ -11,7 +11,7 @@ type NetworkAccessTraffic struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewNetworkAccessTraffic instantiates a new NetworkAccessTraffic and sets the default values. +// NewNetworkAccessTraffic instantiates a new networkAccessTraffic and sets the default values. func NewNetworkAccessTraffic()(*NetworkAccessTraffic) { m := &NetworkAccessTraffic{ } @@ -35,7 +35,7 @@ func (m *NetworkAccessTraffic) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAgentVersion gets the agentVersion property value. The agentVersion property +// GetAgentVersion gets the agentVersion property value. Represents the version of the Global Secure Access client agent software. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetAgentVersion()(*string) { val, err := m.GetBackingStore().Get("agentVersion") if err != nil { @@ -50,7 +50,7 @@ func (m *NetworkAccessTraffic) GetAgentVersion()(*string) { func (m *NetworkAccessTraffic) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetConnectionId gets the connectionId property value. The connectionId property +// GetConnectionId gets the connectionId property value. Represents a unique identifier assigned to a connection. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetConnectionId()(*string) { val, err := m.GetBackingStore().Get("connectionId") if err != nil { @@ -61,7 +61,7 @@ func (m *NetworkAccessTraffic) GetConnectionId()(*string) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// GetCreatedDateTime gets the createdDateTime property value. Represents the date and time when a network access traffic log entry was created. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") if err != nil { @@ -72,7 +72,7 @@ func (m *NetworkAccessTraffic) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3 } return nil } -// GetDestinationFQDN gets the destinationFQDN property value. The destinationFQDN property +// GetDestinationFQDN gets the destinationFQDN property value. Represents the Fully Qualified Domain Name (FQDN) of the destination host or server in a network communication. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetDestinationFQDN()(*string) { val, err := m.GetBackingStore().Get("destinationFQDN") if err != nil { @@ -83,7 +83,7 @@ func (m *NetworkAccessTraffic) GetDestinationFQDN()(*string) { } return nil } -// GetDestinationIp gets the destinationIp property value. The destinationIp property +// GetDestinationIp gets the destinationIp property value. Represents the IP address of the destination host or server in a network communication. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetDestinationIp()(*string) { val, err := m.GetBackingStore().Get("destinationIp") if err != nil { @@ -94,7 +94,7 @@ func (m *NetworkAccessTraffic) GetDestinationIp()(*string) { } return nil } -// GetDestinationPort gets the destinationPort property value. The destinationPort property +// GetDestinationPort gets the destinationPort property value. Represents the network port number on the destination host or server in a network communication. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetDestinationPort()(*int32) { val, err := m.GetBackingStore().Get("destinationPort") if err != nil { @@ -105,7 +105,7 @@ func (m *NetworkAccessTraffic) GetDestinationPort()(*int32) { } return nil } -// GetDeviceCategory gets the deviceCategory property value. The deviceCategory property +// 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) { val, err := m.GetBackingStore().Get("deviceCategory") if err != nil { @@ -116,7 +116,7 @@ func (m *NetworkAccessTraffic) GetDeviceCategory()(*DeviceCategory) { } return nil } -// GetDeviceId gets the deviceId property value. The deviceId property +// GetDeviceId gets the deviceId property value. Represents a unique identifier assigned to a device within a network infrastructure. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetDeviceId()(*string) { val, err := m.GetBackingStore().Get("deviceId") if err != nil { @@ -127,7 +127,7 @@ func (m *NetworkAccessTraffic) GetDeviceId()(*string) { } return nil } -// GetDeviceOperatingSystem gets the deviceOperatingSystem property value. The deviceOperatingSystem property +// GetDeviceOperatingSystem gets the deviceOperatingSystem property value. Represents the operating system installed on a device within a network infrastructure. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetDeviceOperatingSystem()(*string) { val, err := m.GetBackingStore().Get("deviceOperatingSystem") if err != nil { @@ -138,7 +138,7 @@ func (m *NetworkAccessTraffic) GetDeviceOperatingSystem()(*string) { } return nil } -// GetDeviceOperatingSystemVersion gets the deviceOperatingSystemVersion property value. The deviceOperatingSystemVersion property +// GetDeviceOperatingSystemVersion gets the deviceOperatingSystemVersion property value. Represents the version or release number of the operating system installed on a device within a network infrastructure. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetDeviceOperatingSystemVersion()(*string) { val, err := m.GetBackingStore().Get("deviceOperatingSystemVersion") if err != nil { @@ -414,7 +414,7 @@ func (m *NetworkAccessTraffic) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } -// GetHeaders gets the headers property value. The headers property +// GetHeaders gets the headers property value. Represents the headers included in a network request or response. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetHeaders()(Headersable) { val, err := m.GetBackingStore().Get("headers") if err != nil { @@ -425,7 +425,7 @@ func (m *NetworkAccessTraffic) GetHeaders()(Headersable) { } return nil } -// GetNetworkProtocol gets the networkProtocol property value. The networkProtocol property +// 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) { val, err := m.GetBackingStore().Get("networkProtocol") if err != nil { @@ -447,7 +447,7 @@ func (m *NetworkAccessTraffic) GetOdataType()(*string) { } return nil } -// GetPolicyId gets the policyId property value. The policyId property +// GetPolicyId gets the policyId property value. Represents a unique identifier assigned to a policy. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetPolicyId()(*string) { val, err := m.GetBackingStore().Get("policyId") if err != nil { @@ -458,7 +458,7 @@ func (m *NetworkAccessTraffic) GetPolicyId()(*string) { } return nil } -// GetPolicyRuleId gets the policyRuleId property value. The policyRuleId property +// GetPolicyRuleId gets the policyRuleId property value. Represents a unique identifier assigned to a policy rule. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetPolicyRuleId()(*string) { val, err := m.GetBackingStore().Get("policyRuleId") if err != nil { @@ -469,7 +469,7 @@ func (m *NetworkAccessTraffic) GetPolicyRuleId()(*string) { } return nil } -// GetReceivedBytes gets the receivedBytes property value. The receivedBytes property +// GetReceivedBytes gets the receivedBytes property value. Represents the total number of bytes received in a network communication or data transfer. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetReceivedBytes()(*int64) { val, err := m.GetBackingStore().Get("receivedBytes") if err != nil { @@ -480,7 +480,7 @@ func (m *NetworkAccessTraffic) GetReceivedBytes()(*int64) { } return nil } -// GetSentBytes gets the sentBytes property value. The sentBytes property +// GetSentBytes gets the sentBytes property value. Represents the total number of bytes sent in a network communication or data transfer. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetSentBytes()(*int64) { val, err := m.GetBackingStore().Get("sentBytes") if err != nil { @@ -491,7 +491,7 @@ func (m *NetworkAccessTraffic) GetSentBytes()(*int64) { } return nil } -// GetSessionId gets the sessionId property value. The sessionId property +// GetSessionId gets the sessionId property value. Represents a unique identifier assigned to a session or connection within a network infrastructure. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetSessionId()(*string) { val, err := m.GetBackingStore().Get("sessionId") if err != nil { @@ -502,7 +502,7 @@ func (m *NetworkAccessTraffic) GetSessionId()(*string) { } return nil } -// GetSourceIp gets the sourceIp property value. The sourceIp property +// GetSourceIp gets the sourceIp property value. Represents the source IP address in a network communication. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetSourceIp()(*string) { val, err := m.GetBackingStore().Get("sourceIp") if err != nil { @@ -513,7 +513,7 @@ func (m *NetworkAccessTraffic) GetSourceIp()(*string) { } return nil } -// GetSourcePort gets the sourcePort property value. The sourcePort property +// GetSourcePort gets the sourcePort property value. Represents the network port number on the source host or device in a network communication. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetSourcePort()(*int32) { val, err := m.GetBackingStore().Get("sourcePort") if err != nil { @@ -524,7 +524,7 @@ func (m *NetworkAccessTraffic) GetSourcePort()(*int32) { } return nil } -// GetTenantId gets the tenantId property value. The tenantId property +// GetTenantId gets the tenantId property value. Represents a unique identifier assigned to a tenant within a network infrastructure. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetTenantId()(*string) { val, err := m.GetBackingStore().Get("tenantId") if err != nil { @@ -546,7 +546,7 @@ func (m *NetworkAccessTraffic) GetTrafficType()(*TrafficType) { } return nil } -// GetTransactionId gets the transactionId property value. The transactionId property +// GetTransactionId gets the transactionId property value. Represents a unique identifier assigned to a specific transaction or operation. Key. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetTransactionId()(*string) { val, err := m.GetBackingStore().Get("transactionId") if err != nil { @@ -557,7 +557,7 @@ func (m *NetworkAccessTraffic) GetTransactionId()(*string) { } return nil } -// GetTransportProtocol gets the transportProtocol property value. The transportProtocol property +// 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) { val, err := m.GetBackingStore().Get("transportProtocol") if err != nil { @@ -568,7 +568,7 @@ func (m *NetworkAccessTraffic) GetTransportProtocol()(*NetworkingProtocol) { } return nil } -// GetUserId gets the userId property value. The userId property +// GetUserId gets the userId property value. Represents a unique identifier assigned to a user. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetUserId()(*string) { val, err := m.GetBackingStore().Get("userId") if err != nil { @@ -579,7 +579,7 @@ func (m *NetworkAccessTraffic) GetUserId()(*string) { } return nil } -// GetUserPrincipalName gets the userPrincipalName property value. The userPrincipalName property +// GetUserPrincipalName gets the userPrincipalName property value. Represents the user principal name (UPN) associated with a user. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetUserPrincipalName()(*string) { val, err := m.GetBackingStore().Get("userPrincipalName") if err != nil { @@ -767,7 +767,7 @@ func (m *NetworkAccessTraffic) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetAgentVersion sets the agentVersion property value. The agentVersion property +// SetAgentVersion sets the agentVersion property value. Represents the version of the Global Secure Access client agent software. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetAgentVersion(value *string)() { err := m.GetBackingStore().Set("agentVersion", value) if err != nil { @@ -778,77 +778,77 @@ func (m *NetworkAccessTraffic) SetAgentVersion(value *string)() { func (m *NetworkAccessTraffic) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetConnectionId sets the connectionId property value. The connectionId property +// SetConnectionId sets the connectionId property value. Represents a unique identifier assigned to a connection. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetConnectionId(value *string)() { err := m.GetBackingStore().Set("connectionId", value) if err != nil { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +// SetCreatedDateTime sets the createdDateTime property value. Represents the date and time when a network access traffic log entry was created. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } -// SetDestinationFQDN sets the destinationFQDN property value. The destinationFQDN property +// SetDestinationFQDN sets the destinationFQDN property value. Represents the Fully Qualified Domain Name (FQDN) of the destination host or server in a network communication. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetDestinationFQDN(value *string)() { err := m.GetBackingStore().Set("destinationFQDN", value) if err != nil { panic(err) } } -// SetDestinationIp sets the destinationIp property value. The destinationIp property +// SetDestinationIp sets the destinationIp property value. Represents the IP address of the destination host or server in a network communication. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetDestinationIp(value *string)() { err := m.GetBackingStore().Set("destinationIp", value) if err != nil { panic(err) } } -// SetDestinationPort sets the destinationPort property value. The destinationPort property +// SetDestinationPort sets the destinationPort property value. Represents the network port number on the destination host or server in a network communication. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetDestinationPort(value *int32)() { err := m.GetBackingStore().Set("destinationPort", value) if err != nil { panic(err) } } -// SetDeviceCategory sets the deviceCategory property value. The deviceCategory property +// 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)() { err := m.GetBackingStore().Set("deviceCategory", value) if err != nil { panic(err) } } -// SetDeviceId sets the deviceId property value. The deviceId property +// SetDeviceId sets the deviceId property value. Represents a unique identifier assigned to a device within a network infrastructure. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetDeviceId(value *string)() { err := m.GetBackingStore().Set("deviceId", value) if err != nil { panic(err) } } -// SetDeviceOperatingSystem sets the deviceOperatingSystem property value. The deviceOperatingSystem property +// SetDeviceOperatingSystem sets the deviceOperatingSystem property value. Represents the operating system installed on a device within a network infrastructure. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetDeviceOperatingSystem(value *string)() { err := m.GetBackingStore().Set("deviceOperatingSystem", value) if err != nil { panic(err) } } -// SetDeviceOperatingSystemVersion sets the deviceOperatingSystemVersion property value. The deviceOperatingSystemVersion property +// SetDeviceOperatingSystemVersion sets the deviceOperatingSystemVersion property value. Represents the version or release number of the operating system installed on a device within a network infrastructure. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetDeviceOperatingSystemVersion(value *string)() { err := m.GetBackingStore().Set("deviceOperatingSystemVersion", value) if err != nil { panic(err) } } -// SetHeaders sets the headers property value. The headers property +// SetHeaders sets the headers property value. Represents the headers included in a network request or response. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetHeaders(value Headersable)() { err := m.GetBackingStore().Set("headers", value) if err != nil { panic(err) } } -// SetNetworkProtocol sets the networkProtocol property value. The networkProtocol property +// 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)() { err := m.GetBackingStore().Set("networkProtocol", value) if err != nil { @@ -862,56 +862,56 @@ func (m *NetworkAccessTraffic) SetOdataType(value *string)() { panic(err) } } -// SetPolicyId sets the policyId property value. The policyId property +// SetPolicyId sets the policyId property value. Represents a unique identifier assigned to a policy. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetPolicyId(value *string)() { err := m.GetBackingStore().Set("policyId", value) if err != nil { panic(err) } } -// SetPolicyRuleId sets the policyRuleId property value. The policyRuleId property +// SetPolicyRuleId sets the policyRuleId property value. Represents a unique identifier assigned to a policy rule. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetPolicyRuleId(value *string)() { err := m.GetBackingStore().Set("policyRuleId", value) if err != nil { panic(err) } } -// SetReceivedBytes sets the receivedBytes property value. The receivedBytes property +// SetReceivedBytes sets the receivedBytes property value. Represents the total number of bytes received in a network communication or data transfer. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetReceivedBytes(value *int64)() { err := m.GetBackingStore().Set("receivedBytes", value) if err != nil { panic(err) } } -// SetSentBytes sets the sentBytes property value. The sentBytes property +// SetSentBytes sets the sentBytes property value. Represents the total number of bytes sent in a network communication or data transfer. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetSentBytes(value *int64)() { err := m.GetBackingStore().Set("sentBytes", value) if err != nil { panic(err) } } -// SetSessionId sets the sessionId property value. The sessionId property +// SetSessionId sets the sessionId property value. Represents a unique identifier assigned to a session or connection within a network infrastructure. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetSessionId(value *string)() { err := m.GetBackingStore().Set("sessionId", value) if err != nil { panic(err) } } -// SetSourceIp sets the sourceIp property value. The sourceIp property +// SetSourceIp sets the sourceIp property value. Represents the source IP address in a network communication. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetSourceIp(value *string)() { err := m.GetBackingStore().Set("sourceIp", value) if err != nil { panic(err) } } -// SetSourcePort sets the sourcePort property value. The sourcePort property +// SetSourcePort sets the sourcePort property value. Represents the network port number on the source host or device in a network communication. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetSourcePort(value *int32)() { err := m.GetBackingStore().Set("sourcePort", value) if err != nil { panic(err) } } -// SetTenantId sets the tenantId property value. The tenantId property +// SetTenantId sets the tenantId property value. Represents a unique identifier assigned to a tenant within a network infrastructure. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetTenantId(value *string)() { err := m.GetBackingStore().Set("tenantId", value) if err != nil { @@ -925,28 +925,28 @@ func (m *NetworkAccessTraffic) SetTrafficType(value *TrafficType)() { panic(err) } } -// SetTransactionId sets the transactionId property value. The transactionId property +// SetTransactionId sets the transactionId property value. Represents a unique identifier assigned to a specific transaction or operation. Key. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetTransactionId(value *string)() { err := m.GetBackingStore().Set("transactionId", value) if err != nil { panic(err) } } -// SetTransportProtocol sets the transportProtocol property value. The transportProtocol property +// 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)() { err := m.GetBackingStore().Set("transportProtocol", value) if err != nil { panic(err) } } -// SetUserId sets the userId property value. The userId property +// SetUserId sets the userId property value. Represents a unique identifier assigned to a user. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetUserId(value *string)() { err := m.GetBackingStore().Set("userId", value) if err != nil { panic(err) } } -// SetUserPrincipalName sets the userPrincipalName property value. The userPrincipalName property +// SetUserPrincipalName sets the userPrincipalName property value. Represents the user principal name (UPN) associated with a user. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetUserPrincipalName(value *string)() { err := m.GetBackingStore().Set("userPrincipalName", value) if err != nil { diff --git a/models/networkaccess/network_access_traffic_collection_response.go b/models/networkaccess/network_access_traffic_collection_response.go index 4d0955a2cf2..1c72498c5c0 100644 --- a/models/networkaccess/network_access_traffic_collection_response.go +++ b/models/networkaccess/network_access_traffic_collection_response.go @@ -9,7 +9,7 @@ import ( type NetworkAccessTrafficCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewNetworkAccessTrafficCollectionResponse instantiates a new NetworkAccessTrafficCollectionResponse and sets the default values. +// NewNetworkAccessTrafficCollectionResponse instantiates a new networkAccessTrafficCollectionResponse and sets the default values. func NewNetworkAccessTrafficCollectionResponse()(*NetworkAccessTrafficCollectionResponse) { m := &NetworkAccessTrafficCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/networkaccess/policy.go b/models/networkaccess/policy.go index a896113753b..8a380a52442 100644 --- a/models/networkaccess/policy.go +++ b/models/networkaccess/policy.go @@ -8,6 +8,8 @@ import ( // Policy type Policy struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewPolicy instantiates a new policy and sets the default values. func NewPolicy()(*Policy) { @@ -38,7 +40,7 @@ func CreatePolicyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 } return NewPolicy(), nil } -// GetDescription gets the description property value. The description property +// GetDescription gets the description property value. Description. func (m *Policy) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") if err != nil { @@ -100,7 +102,7 @@ func (m *Policy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 } return res } -// GetName gets the name property value. The name property +// GetName gets the name property value. Policy name. func (m *Policy) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -111,7 +113,7 @@ func (m *Policy) GetName()(*string) { } return nil } -// GetPolicyRules gets the policyRules property value. The policyRules property +// GetPolicyRules gets the policyRules property value. Represents the definition of the policy ruleset that makes up the core definition of a policy. func (m *Policy) GetPolicyRules()([]PolicyRuleable) { val, err := m.GetBackingStore().Get("policyRules") if err != nil { @@ -122,7 +124,7 @@ func (m *Policy) GetPolicyRules()([]PolicyRuleable) { } return nil } -// GetVersion gets the version property value. The version property +// GetVersion gets the version property value. Version. func (m *Policy) GetVersion()(*string) { val, err := m.GetBackingStore().Get("version") if err != nil { @@ -171,28 +173,28 @@ func (m *Policy) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c } return nil } -// SetDescription sets the description property value. The description property +// SetDescription sets the description property value. Description. func (m *Policy) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. Policy name. func (m *Policy) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetPolicyRules sets the policyRules property value. The policyRules property +// SetPolicyRules sets the policyRules property value. Represents the definition of the policy ruleset that makes up the core definition of a policy. func (m *Policy) SetPolicyRules(value []PolicyRuleable)() { err := m.GetBackingStore().Set("policyRules", value) if err != nil { panic(err) } } -// SetVersion sets the version property value. The version property +// SetVersion sets the version property value. Version. func (m *Policy) SetVersion(value *string)() { err := m.GetBackingStore().Set("version", value) if err != nil { diff --git a/models/networkaccess/policy_link.go b/models/networkaccess/policy_link.go index 2db9657def4..dc0bc0e504e 100644 --- a/models/networkaccess/policy_link.go +++ b/models/networkaccess/policy_link.go @@ -8,6 +8,8 @@ import ( // PolicyLink type PolicyLink struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewPolicyLink instantiates a new policyLink and sets the default values. func NewPolicyLink()(*PolicyLink) { @@ -95,7 +97,7 @@ func (m *PolicyLink) GetState()(*Status) { } return nil } -// GetVersion gets the version property value. The version property +// GetVersion gets the version property value. Version. func (m *PolicyLink) GetVersion()(*string) { val, err := m.GetBackingStore().Get("version") if err != nil { @@ -147,7 +149,7 @@ func (m *PolicyLink) SetState(value *Status)() { panic(err) } } -// SetVersion sets the version property value. The version property +// SetVersion sets the version property value. Version. func (m *PolicyLink) SetVersion(value *string)() { err := m.GetBackingStore().Set("version", value) if err != nil { diff --git a/models/networkaccess/policy_link_collection_response.go b/models/networkaccess/policy_link_collection_response.go index cd4a3953198..702bdcbc292 100644 --- a/models/networkaccess/policy_link_collection_response.go +++ b/models/networkaccess/policy_link_collection_response.go @@ -9,7 +9,7 @@ import ( type PolicyLinkCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewPolicyLinkCollectionResponse instantiates a new PolicyLinkCollectionResponse and sets the default values. +// NewPolicyLinkCollectionResponse instantiates a new policyLinkCollectionResponse and sets the default values. func NewPolicyLinkCollectionResponse()(*PolicyLinkCollectionResponse) { m := &PolicyLinkCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/networkaccess/policy_rule.go b/models/networkaccess/policy_rule.go index 0925878bc19..e17fa2d1390 100644 --- a/models/networkaccess/policy_rule.go +++ b/models/networkaccess/policy_rule.go @@ -8,6 +8,8 @@ import ( // PolicyRule type PolicyRule struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewPolicyRule instantiates a new policyRule and sets the default values. func NewPolicyRule()(*PolicyRule) { @@ -57,7 +59,7 @@ func (m *PolicyRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } return res } -// GetName gets the name property value. The name property +// GetName gets the name property value. Name. func (m *PolicyRule) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -82,7 +84,7 @@ func (m *PolicyRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c } return nil } -// SetName sets the name property value. The name property +// SetName sets the name property value. Name. func (m *PolicyRule) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { diff --git a/models/networkaccess/policy_rule_collection_response.go b/models/networkaccess/policy_rule_collection_response.go index f3081bff004..84a5885cfef 100644 --- a/models/networkaccess/policy_rule_collection_response.go +++ b/models/networkaccess/policy_rule_collection_response.go @@ -9,7 +9,7 @@ import ( type PolicyRuleCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewPolicyRuleCollectionResponse instantiates a new PolicyRuleCollectionResponse and sets the default values. +// NewPolicyRuleCollectionResponse instantiates a new policyRuleCollectionResponse and sets the default values. func NewPolicyRuleCollectionResponse()(*PolicyRuleCollectionResponse) { m := &PolicyRuleCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/networkaccess/policy_rule_delta.go b/models/networkaccess/policy_rule_delta.go index a62bc50ab70..6d3f0c09635 100644 --- a/models/networkaccess/policy_rule_delta.go +++ b/models/networkaccess/policy_rule_delta.go @@ -10,7 +10,7 @@ type PolicyRuleDelta struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPolicyRuleDelta instantiates a new PolicyRuleDelta and sets the default values. +// NewPolicyRuleDelta instantiates a new policyRuleDelta and sets the default values. func NewPolicyRuleDelta()(*PolicyRuleDelta) { m := &PolicyRuleDelta{ } @@ -95,7 +95,7 @@ func (m *PolicyRuleDelta) GetOdataType()(*string) { } return nil } -// GetRuleId gets the ruleId property value. The ruleId property +// GetRuleId gets the ruleId property value. The identifier of the policy rule to update. func (m *PolicyRuleDelta) GetRuleId()(*string) { val, err := m.GetBackingStore().Get("ruleId") if err != nil { @@ -160,7 +160,7 @@ func (m *PolicyRuleDelta) SetOdataType(value *string)() { panic(err) } } -// SetRuleId sets the ruleId property value. The ruleId property +// SetRuleId sets the ruleId property value. The identifier of the policy rule to update. func (m *PolicyRuleDelta) SetRuleId(value *string)() { err := m.GetBackingStore().Set("ruleId", value) if err != nil { diff --git a/models/networkaccess/private_access_forwarding_rule.go b/models/networkaccess/private_access_forwarding_rule.go index 3fe6156d12c..b90b8fcc792 100644 --- a/models/networkaccess/private_access_forwarding_rule.go +++ b/models/networkaccess/private_access_forwarding_rule.go @@ -8,7 +8,7 @@ import ( type PrivateAccessForwardingRule struct { ForwardingRule } -// NewPrivateAccessForwardingRule instantiates a new PrivateAccessForwardingRule and sets the default values. +// NewPrivateAccessForwardingRule instantiates a new privateAccessForwardingRule and sets the default values. func NewPrivateAccessForwardingRule()(*PrivateAccessForwardingRule) { m := &PrivateAccessForwardingRule{ ForwardingRule: *NewForwardingRule(), diff --git a/models/networkaccess/profile.go b/models/networkaccess/profile.go index c523dacef13..8b90849904c 100644 --- a/models/networkaccess/profile.go +++ b/models/networkaccess/profile.go @@ -9,6 +9,8 @@ import ( // Profile type Profile struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewProfile instantiates a new profile and sets the default values. func NewProfile()(*Profile) { @@ -39,7 +41,7 @@ func CreateProfileFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f48 } return NewProfile(), nil } -// GetDescription gets the description property value. The description property +// GetDescription gets the description property value. Description. func (m *Profile) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") if err != nil { @@ -121,7 +123,7 @@ func (m *Profile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 } return res } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Profile last modified time. func (m *Profile) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") if err != nil { @@ -132,7 +134,7 @@ func (m *Profile) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6 } return nil } -// GetName gets the name property value. The name property +// GetName gets the name property value. Profile name. func (m *Profile) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -143,7 +145,7 @@ func (m *Profile) GetName()(*string) { } return nil } -// GetPolicies gets the policies property value. The policies property +// GetPolicies gets the policies property value. Traffic forwarding policies associated with this profile. func (m *Profile) GetPolicies()([]PolicyLinkable) { val, err := m.GetBackingStore().Get("policies") if err != nil { @@ -165,7 +167,7 @@ func (m *Profile) GetState()(*Status) { } return nil } -// GetVersion gets the version property value. The version property +// GetVersion gets the version property value. Profile version. func (m *Profile) GetVersion()(*string) { val, err := m.GetBackingStore().Get("version") if err != nil { @@ -227,28 +229,28 @@ func (m *Profile) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010 } return nil } -// SetDescription sets the description property value. The description property +// SetDescription sets the description property value. Description. func (m *Profile) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Profile last modified time. func (m *Profile) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. Profile name. func (m *Profile) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetPolicies sets the policies property value. The policies property +// SetPolicies sets the policies property value. Traffic forwarding policies associated with this profile. func (m *Profile) SetPolicies(value []PolicyLinkable)() { err := m.GetBackingStore().Set("policies", value) if err != nil { @@ -262,7 +264,7 @@ func (m *Profile) SetState(value *Status)() { panic(err) } } -// SetVersion sets the version property value. The version property +// SetVersion sets the version property value. Profile version. func (m *Profile) SetVersion(value *string)() { err := m.GetBackingStore().Set("version", value) if err != nil { diff --git a/models/networkaccess/redundancy_configuration.go b/models/networkaccess/redundancy_configuration.go index b592238c224..c89af317830 100644 --- a/models/networkaccess/redundancy_configuration.go +++ b/models/networkaccess/redundancy_configuration.go @@ -95,7 +95,7 @@ func (m *RedundancyConfiguration) GetRedundancyTier()(*RedundancyTier) { } return nil } -// GetZoneLocalIpAddress gets the zoneLocalIpAddress property value. The zoneLocalIpAddress property +// GetZoneLocalIpAddress gets the zoneLocalIpAddress property value. Indicate the specific IP address used for establishing the Border Gateway Protocol (BGP) connection with Microsoft's network. func (m *RedundancyConfiguration) GetZoneLocalIpAddress()(*string) { val, err := m.GetBackingStore().Get("zoneLocalIpAddress") if err != nil { @@ -160,7 +160,7 @@ func (m *RedundancyConfiguration) SetRedundancyTier(value *RedundancyTier)() { panic(err) } } -// SetZoneLocalIpAddress sets the zoneLocalIpAddress property value. The zoneLocalIpAddress property +// SetZoneLocalIpAddress sets the zoneLocalIpAddress property value. Indicate the specific IP address used for establishing the Border Gateway Protocol (BGP) connection with Microsoft's network. func (m *RedundancyConfiguration) SetZoneLocalIpAddress(value *string)() { err := m.GetBackingStore().Set("zoneLocalIpAddress", value) if err != nil { diff --git a/models/networkaccess/reports.go b/models/networkaccess/reports.go index c6be7ddba4c..50b39341ee0 100644 --- a/models/networkaccess/reports.go +++ b/models/networkaccess/reports.go @@ -8,6 +8,8 @@ import ( // Reports type Reports struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewReports instantiates a new reports and sets the default values. func NewReports()(*Reports) { diff --git a/models/networkaccess/settings.go b/models/networkaccess/settings.go index fdf27e4c57b..187ac8a484f 100644 --- a/models/networkaccess/settings.go +++ b/models/networkaccess/settings.go @@ -8,6 +8,8 @@ import ( // Settings type Settings struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSettings instantiates a new settings and sets the default values. func NewSettings()(*Settings) { diff --git a/models/networkaccess/tenant_status.go b/models/networkaccess/tenant_status.go index 398d47d2af3..78b16f04d4e 100644 --- a/models/networkaccess/tenant_status.go +++ b/models/networkaccess/tenant_status.go @@ -8,8 +8,10 @@ import ( // TenantStatus type TenantStatus struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } -// NewTenantStatus instantiates a new TenantStatus and sets the default values. +// NewTenantStatus instantiates a new tenantStatus and sets the default values. func NewTenantStatus()(*TenantStatus) { m := &TenantStatus{ Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), @@ -45,7 +47,7 @@ func (m *TenantStatus) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } -// GetOnboardingErrorMessage gets the onboardingErrorMessage property value. The onboardingErrorMessage property +// GetOnboardingErrorMessage gets the onboardingErrorMessage property value. Reflects a message to the user in case of an error. func (m *TenantStatus) GetOnboardingErrorMessage()(*string) { val, err := m.GetBackingStore().Get("onboardingErrorMessage") if err != nil { @@ -88,7 +90,7 @@ func (m *TenantStatus) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e } return nil } -// SetOnboardingErrorMessage sets the onboardingErrorMessage property value. The onboardingErrorMessage property +// SetOnboardingErrorMessage sets the onboardingErrorMessage property value. Reflects a message to the user in case of an error. func (m *TenantStatus) SetOnboardingErrorMessage(value *string)() { err := m.GetBackingStore().Set("onboardingErrorMessage", value) if err != nil { diff --git a/models/networkaccess/transaction_summary.go b/models/networkaccess/transaction_summary.go index dd7db0e0fe4..a07b21ec9a5 100644 --- a/models/networkaccess/transaction_summary.go +++ b/models/networkaccess/transaction_summary.go @@ -38,7 +38,7 @@ func (m *TransactionSummary) GetAdditionalData()(map[string]any) { func (m *TransactionSummary) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetBlockedCount gets the blockedCount property value. The blockedCount property +// GetBlockedCount gets the blockedCount property value. Count of transactions that were blocked. func (m *TransactionSummary) GetBlockedCount()(*int32) { val, err := m.GetBackingStore().Get("blockedCount") if err != nil { @@ -105,7 +105,7 @@ func (m *TransactionSummary) GetOdataType()(*string) { } return nil } -// GetTotalCount gets the totalCount property value. The totalCount property +// GetTotalCount gets the totalCount property value. Count of transactions. func (m *TransactionSummary) GetTotalCount()(*int32) { val, err := m.GetBackingStore().Get("totalCount") if err != nil { @@ -173,7 +173,7 @@ func (m *TransactionSummary) SetAdditionalData(value map[string]any)() { func (m *TransactionSummary) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetBlockedCount sets the blockedCount property value. The blockedCount property +// SetBlockedCount sets the blockedCount property value. Count of transactions that were blocked. func (m *TransactionSummary) SetBlockedCount(value *int32)() { err := m.GetBackingStore().Set("blockedCount", value) if err != nil { @@ -187,7 +187,7 @@ func (m *TransactionSummary) SetOdataType(value *string)() { panic(err) } } -// SetTotalCount sets the totalCount property value. The totalCount property +// SetTotalCount sets the totalCount property value. Count of transactions. func (m *TransactionSummary) SetTotalCount(value *int32)() { err := m.GetBackingStore().Set("totalCount", value) if err != nil { diff --git a/models/networkaccess/tunnel_configuration.go b/models/networkaccess/tunnel_configuration.go index afddd9d88df..54c5908a03c 100644 --- a/models/networkaccess/tunnel_configuration.go +++ b/models/networkaccess/tunnel_configuration.go @@ -10,7 +10,7 @@ type TunnelConfiguration struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTunnelConfiguration instantiates a new TunnelConfiguration and sets the default values. +// NewTunnelConfiguration instantiates a new tunnelConfiguration and sets the default values. func NewTunnelConfiguration()(*TunnelConfiguration) { m := &TunnelConfiguration{ } @@ -94,7 +94,7 @@ func (m *TunnelConfiguration) GetOdataType()(*string) { } return nil } -// GetPreSharedKey gets the preSharedKey property value. The preSharedKey property +// GetPreSharedKey gets the preSharedKey property value. A key to establish secure connection between the link and VPN tunnel on the edge. func (m *TunnelConfiguration) GetPreSharedKey()(*string) { val, err := m.GetBackingStore().Get("preSharedKey") if err != nil { @@ -145,7 +145,7 @@ func (m *TunnelConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetPreSharedKey sets the preSharedKey property value. The preSharedKey property +// SetPreSharedKey sets the preSharedKey property value. A key to establish secure connection between the link and VPN tunnel on the edge. func (m *TunnelConfiguration) SetPreSharedKey(value *string)() { err := m.GetBackingStore().Set("preSharedKey", value) if err != nil { diff --git a/models/networkaccess/tunnel_configuration_i_k_ev2_custom.go b/models/networkaccess/tunnel_configuration_i_k_ev2_custom.go index 513dd26ea37..5fca6652791 100644 --- a/models/networkaccess/tunnel_configuration_i_k_ev2_custom.go +++ b/models/networkaccess/tunnel_configuration_i_k_ev2_custom.go @@ -8,7 +8,7 @@ import ( type TunnelConfigurationIKEv2Custom struct { TunnelConfiguration } -// NewTunnelConfigurationIKEv2Custom instantiates a new TunnelConfigurationIKEv2Custom and sets the default values. +// NewTunnelConfigurationIKEv2Custom instantiates a new tunnelConfigurationIKEv2Custom and sets the default values. func NewTunnelConfigurationIKEv2Custom()(*TunnelConfigurationIKEv2Custom) { m := &TunnelConfigurationIKEv2Custom{ TunnelConfiguration: *NewTunnelConfiguration(), @@ -85,6 +85,16 @@ func (m *TunnelConfigurationIKEv2Custom) GetFieldDeserializers()(map[string]func } 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["pfsGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParsePfsGroup) if err != nil { @@ -151,6 +161,17 @@ func (m *TunnelConfigurationIKEv2Custom) GetIpSecIntegrity()(*IpSecIntegrity) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TunnelConfigurationIKEv2Custom) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPfsGroup gets the pfsGroup property value. The pfsGroup property func (m *TunnelConfigurationIKEv2Custom) GetPfsGroup()(*PfsGroup) { val, err := m.GetBackingStore().Get("pfsGroup") @@ -162,7 +183,7 @@ func (m *TunnelConfigurationIKEv2Custom) GetPfsGroup()(*PfsGroup) { } return nil } -// GetSaLifeTimeSeconds gets the saLifeTimeSeconds property value. The saLifeTimeSeconds property +// GetSaLifeTimeSeconds gets the saLifeTimeSeconds property value. a standard specifiying Security Association lifetime with recommended values from an RFC standard. func (m *TunnelConfigurationIKEv2Custom) GetSaLifeTimeSeconds()(*int64) { val, err := m.GetBackingStore().Get("saLifeTimeSeconds") if err != nil { @@ -214,6 +235,12 @@ func (m *TunnelConfigurationIKEv2Custom) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetPfsGroup() != nil { cast := (*m.GetPfsGroup()).String() err = writer.WriteStringValue("pfsGroup", &cast) @@ -264,6 +291,13 @@ func (m *TunnelConfigurationIKEv2Custom) SetIpSecIntegrity(value *IpSecIntegrity panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TunnelConfigurationIKEv2Custom) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPfsGroup sets the pfsGroup property value. The pfsGroup property func (m *TunnelConfigurationIKEv2Custom) SetPfsGroup(value *PfsGroup)() { err := m.GetBackingStore().Set("pfsGroup", value) @@ -271,7 +305,7 @@ func (m *TunnelConfigurationIKEv2Custom) SetPfsGroup(value *PfsGroup)() { panic(err) } } -// SetSaLifeTimeSeconds sets the saLifeTimeSeconds property value. The saLifeTimeSeconds property +// SetSaLifeTimeSeconds sets the saLifeTimeSeconds property value. a standard specifiying Security Association lifetime with recommended values from an RFC standard. func (m *TunnelConfigurationIKEv2Custom) SetSaLifeTimeSeconds(value *int64)() { err := m.GetBackingStore().Set("saLifeTimeSeconds", value) if err != nil { @@ -287,6 +321,7 @@ type TunnelConfigurationIKEv2Customable interface { GetIkeIntegrity()(*IkeIntegrity) GetIpSecEncryption()(*IpSecEncryption) GetIpSecIntegrity()(*IpSecIntegrity) + GetOdataType()(*string) GetPfsGroup()(*PfsGroup) GetSaLifeTimeSeconds()(*int64) SetDhGroup(value *DhGroup)() @@ -294,6 +329,7 @@ type TunnelConfigurationIKEv2Customable interface { SetIkeIntegrity(value *IkeIntegrity)() SetIpSecEncryption(value *IpSecEncryption)() SetIpSecIntegrity(value *IpSecIntegrity)() + SetOdataType(value *string)() SetPfsGroup(value *PfsGroup)() SetSaLifeTimeSeconds(value *int64)() } diff --git a/models/networkaccess/tunnel_configuration_i_k_ev2_default.go b/models/networkaccess/tunnel_configuration_i_k_ev2_default.go index 11658044b81..5226152a05a 100644 --- a/models/networkaccess/tunnel_configuration_i_k_ev2_default.go +++ b/models/networkaccess/tunnel_configuration_i_k_ev2_default.go @@ -7,8 +7,10 @@ import ( // TunnelConfigurationIKEv2Default type TunnelConfigurationIKEv2Default struct { TunnelConfiguration + // The OdataType property + OdataType *string } -// NewTunnelConfigurationIKEv2Default instantiates a new TunnelConfigurationIKEv2Default and sets the default values. +// NewTunnelConfigurationIKEv2Default instantiates a new tunnelConfigurationIKEv2Default and sets the default values. func NewTunnelConfigurationIKEv2Default()(*TunnelConfigurationIKEv2Default) { m := &TunnelConfigurationIKEv2Default{ TunnelConfiguration: *NewTunnelConfiguration(), diff --git a/models/networkaccess/url.go b/models/networkaccess/url.go index 9f5788a582f..3857b67a6a4 100644 --- a/models/networkaccess/url.go +++ b/models/networkaccess/url.go @@ -7,8 +7,10 @@ import ( // Url type Url struct { RuleDestination + // The OdataType property + OdataType *string } -// NewUrl instantiates a new Url and sets the default values. +// NewUrl instantiates a new url and sets the default values. func NewUrl()(*Url) { m := &Url{ RuleDestination: *NewRuleDestination(), @@ -36,7 +38,7 @@ func (m *Url) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3 } return res } -// GetValue gets the value property value. The value property +// GetValue gets the value property value. URL Address func (m *Url) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") if err != nil { @@ -61,7 +63,7 @@ func (m *Url) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493 } return nil } -// SetValue sets the value property value. The value property +// SetValue sets the value property value. URL Address func (m *Url) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { diff --git a/models/no_mfa_on_role_activation_alert_configuration.go b/models/no_mfa_on_role_activation_alert_configuration.go index 4d497452ea7..7cb6bd752f0 100644 --- a/models/no_mfa_on_role_activation_alert_configuration.go +++ b/models/no_mfa_on_role_activation_alert_configuration.go @@ -8,7 +8,7 @@ import ( type NoMfaOnRoleActivationAlertConfiguration struct { UnifiedRoleManagementAlertConfiguration } -// NewNoMfaOnRoleActivationAlertConfiguration instantiates a new NoMfaOnRoleActivationAlertConfiguration and sets the default values. +// NewNoMfaOnRoleActivationAlertConfiguration instantiates a new noMfaOnRoleActivationAlertConfiguration and sets the default values. func NewNoMfaOnRoleActivationAlertConfiguration()(*NoMfaOnRoleActivationAlertConfiguration) { m := &NoMfaOnRoleActivationAlertConfiguration{ UnifiedRoleManagementAlertConfiguration: *NewUnifiedRoleManagementAlertConfiguration(), diff --git a/models/no_mfa_on_role_activation_alert_incident.go b/models/no_mfa_on_role_activation_alert_incident.go index 38e09753ab0..14646eae88d 100644 --- a/models/no_mfa_on_role_activation_alert_incident.go +++ b/models/no_mfa_on_role_activation_alert_incident.go @@ -8,7 +8,7 @@ import ( type NoMfaOnRoleActivationAlertIncident struct { UnifiedRoleManagementAlertIncident } -// NewNoMfaOnRoleActivationAlertIncident instantiates a new NoMfaOnRoleActivationAlertIncident and sets the default values. +// NewNoMfaOnRoleActivationAlertIncident instantiates a new noMfaOnRoleActivationAlertIncident and sets the default values. func NewNoMfaOnRoleActivationAlertIncident()(*NoMfaOnRoleActivationAlertIncident) { m := &NoMfaOnRoleActivationAlertIncident{ UnifiedRoleManagementAlertIncident: *NewUnifiedRoleManagementAlertIncident(), diff --git a/models/no_training_notification_setting.go b/models/no_training_notification_setting.go index 3c17ff99186..0281567f81f 100644 --- a/models/no_training_notification_setting.go +++ b/models/no_training_notification_setting.go @@ -7,8 +7,10 @@ import ( // NoTrainingNotificationSetting type NoTrainingNotificationSetting struct { EndUserNotificationSetting + // The OdataType property + OdataType *string } -// NewNoTrainingNotificationSetting instantiates a new NoTrainingNotificationSetting and sets the default values. +// NewNoTrainingNotificationSetting instantiates a new noTrainingNotificationSetting and sets the default values. func NewNoTrainingNotificationSetting()(*NoTrainingNotificationSetting) { m := &NoTrainingNotificationSetting{ EndUserNotificationSetting: *NewEndUserNotificationSetting(), diff --git a/models/no_training_setting.go b/models/no_training_setting.go index a20e6fa3bd9..bbb68af8e2a 100644 --- a/models/no_training_setting.go +++ b/models/no_training_setting.go @@ -7,8 +7,10 @@ import ( // NoTrainingSetting type NoTrainingSetting struct { TrainingSetting + // The OdataType property + OdataType *string } -// NewNoTrainingSetting instantiates a new NoTrainingSetting and sets the default values. +// NewNoTrainingSetting instantiates a new noTrainingSetting and sets the default values. func NewNoTrainingSetting()(*NoTrainingSetting) { m := &NoTrainingSetting{ TrainingSetting: *NewTrainingSetting(), diff --git a/models/note.go b/models/note.go index 4bf7358e692..75e05df78e8 100644 --- a/models/note.go +++ b/models/note.go @@ -8,7 +8,7 @@ import ( type Note struct { OutlookItem } -// NewNote instantiates a new Note and sets the default values. +// NewNote instantiates a new note and sets the default values. func NewNote()(*Note) { m := &Note{ OutlookItem: *NewOutlookItem(), diff --git a/models/notebook.go b/models/notebook.go index c0ee6742e87..bf956e9c421 100644 --- a/models/notebook.go +++ b/models/notebook.go @@ -8,7 +8,7 @@ import ( type Notebook struct { OnenoteEntityHierarchyModel } -// NewNotebook instantiates a new Notebook and sets the default values. +// NewNotebook instantiates a new notebook and sets the default values. func NewNotebook()(*Notebook) { m := &Notebook{ OnenoteEntityHierarchyModel: *NewOnenoteEntityHierarchyModel(), diff --git a/models/notebook_collection_response.go b/models/notebook_collection_response.go index 4fa0541ba31..cb0fc9f8bc4 100644 --- a/models/notebook_collection_response.go +++ b/models/notebook_collection_response.go @@ -8,7 +8,7 @@ import ( type NotebookCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewNotebookCollectionResponse instantiates a new NotebookCollectionResponse and sets the default values. +// NewNotebookCollectionResponse instantiates a new notebookCollectionResponse and sets the default values. func NewNotebookCollectionResponse()(*NotebookCollectionResponse) { m := &NotebookCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/notification.go b/models/notification.go index 0d62e9d3742..afb051cd057 100644 --- a/models/notification.go +++ b/models/notification.go @@ -8,6 +8,8 @@ import ( // Notification type Notification struct { Entity + // The OdataType property + OdataType *string } // NewNotification instantiates a new notification and sets the default values. func NewNotification()(*Notification) { diff --git a/models/notification_collection_response.go b/models/notification_collection_response.go index a52a3e0e853..740e0b16903 100644 --- a/models/notification_collection_response.go +++ b/models/notification_collection_response.go @@ -8,7 +8,7 @@ import ( type NotificationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewNotificationCollectionResponse instantiates a new NotificationCollectionResponse and sets the default values. +// NewNotificationCollectionResponse instantiates a new notificationCollectionResponse and sets the default values. func NewNotificationCollectionResponse()(*NotificationCollectionResponse) { m := &NotificationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/notification_message_template.go b/models/notification_message_template.go index e8cd272f9bf..284406429a6 100644 --- a/models/notification_message_template.go +++ b/models/notification_message_template.go @@ -8,6 +8,8 @@ import ( // NotificationMessageTemplate notification messages are messages that are sent to end users who are determined to be not-compliant with the compliance policies defined by the administrator. Administrators choose notifications and configure them in the Intune Admin Console using the compliance policy creation page under the “Actions for non-compliance” section. Use the notificationMessageTemplate object to create your own custom notifications for administrators to choose while configuring actions for non-compliance. type NotificationMessageTemplate struct { Entity + // The OdataType property + OdataType *string } // NewNotificationMessageTemplate instantiates a new notificationMessageTemplate and sets the default values. func NewNotificationMessageTemplate()(*NotificationMessageTemplate) { diff --git a/models/notification_message_template_collection_response.go b/models/notification_message_template_collection_response.go index fb42ad3ea8f..557ff1f94aa 100644 --- a/models/notification_message_template_collection_response.go +++ b/models/notification_message_template_collection_response.go @@ -8,7 +8,7 @@ import ( type NotificationMessageTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewNotificationMessageTemplateCollectionResponse instantiates a new NotificationMessageTemplateCollectionResponse and sets the default values. +// NewNotificationMessageTemplateCollectionResponse instantiates a new notificationMessageTemplateCollectionResponse and sets the default values. func NewNotificationMessageTemplateCollectionResponse()(*NotificationMessageTemplateCollectionResponse) { m := &NotificationMessageTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/notify_user_action.go b/models/notify_user_action.go index 4a3564db9e6..42168e92bb4 100644 --- a/models/notify_user_action.go +++ b/models/notify_user_action.go @@ -9,7 +9,7 @@ import ( type NotifyUserAction struct { DlpActionInfo } -// NewNotifyUserAction instantiates a new NotifyUserAction and sets the default values. +// NewNotifyUserAction instantiates a new notifyUserAction and sets the default values. func NewNotifyUserAction()(*NotifyUserAction) { m := &NotifyUserAction{ DlpActionInfo: *NewDlpActionInfo(), @@ -65,6 +65,16 @@ func (m *NotifyUserAction) GetFieldDeserializers()(map[string]func(i878a80d2330e } 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["policyTip"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -93,6 +103,17 @@ func (m *NotifyUserAction) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *NotifyUserAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPolicyTip gets the policyTip property value. The policyTip property func (m *NotifyUserAction) GetPolicyTip()(*string) { val, err := m.GetBackingStore().Get("policyTip") @@ -133,6 +154,12 @@ func (m *NotifyUserAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("policyTip", m.GetPolicyTip()) if err != nil { @@ -161,6 +188,13 @@ func (m *NotifyUserAction) SetEmailText(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *NotifyUserAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPolicyTip sets the policyTip property value. The policyTip property func (m *NotifyUserAction) SetPolicyTip(value *string)() { err := m.GetBackingStore().Set("policyTip", value) @@ -181,10 +215,12 @@ type NotifyUserActionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetActionLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetEmailText()(*string) + GetOdataType()(*string) GetPolicyTip()(*string) GetRecipients()([]string) SetActionLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetEmailText(value *string)() + SetOdataType(value *string)() SetPolicyTip(value *string)() SetRecipients(value []string)() } diff --git a/models/o_auth2_permission_grant.go b/models/o_auth2_permission_grant.go index aff45619f48..192f5e4aaab 100644 --- a/models/o_auth2_permission_grant.go +++ b/models/o_auth2_permission_grant.go @@ -8,6 +8,8 @@ import ( // OAuth2PermissionGrant type OAuth2PermissionGrant struct { Entity + // The OdataType property + OdataType *string } // NewOAuth2PermissionGrant instantiates a new oAuth2PermissionGrant and sets the default values. func NewOAuth2PermissionGrant()(*OAuth2PermissionGrant) { diff --git a/models/o_auth2_permission_grant_collection_response.go b/models/o_auth2_permission_grant_collection_response.go index b821280db15..e7783a8b243 100644 --- a/models/o_auth2_permission_grant_collection_response.go +++ b/models/o_auth2_permission_grant_collection_response.go @@ -8,7 +8,7 @@ import ( type OAuth2PermissionGrantCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOAuth2PermissionGrantCollectionResponse instantiates a new OAuth2PermissionGrantCollectionResponse and sets the default values. +// NewOAuth2PermissionGrantCollectionResponse instantiates a new oAuth2PermissionGrantCollectionResponse and sets the default values. func NewOAuth2PermissionGrantCollectionResponse()(*OAuth2PermissionGrantCollectionResponse) { m := &OAuth2PermissionGrantCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/offer_shift_request.go b/models/offer_shift_request.go index 47c2a4dd83a..8d27d908413 100644 --- a/models/offer_shift_request.go +++ b/models/offer_shift_request.go @@ -9,7 +9,7 @@ import ( type OfferShiftRequest struct { ScheduleChangeRequest } -// NewOfferShiftRequest instantiates a new OfferShiftRequest and sets the default values. +// NewOfferShiftRequest instantiates a new offerShiftRequest and sets the default values. func NewOfferShiftRequest()(*OfferShiftRequest) { m := &OfferShiftRequest{ ScheduleChangeRequest: *NewScheduleChangeRequest(), diff --git a/models/offer_shift_request_collection_response.go b/models/offer_shift_request_collection_response.go index 99199a62fc2..006e579b373 100644 --- a/models/offer_shift_request_collection_response.go +++ b/models/offer_shift_request_collection_response.go @@ -8,7 +8,7 @@ import ( type OfferShiftRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOfferShiftRequestCollectionResponse instantiates a new OfferShiftRequestCollectionResponse and sets the default values. +// NewOfferShiftRequestCollectionResponse instantiates a new offerShiftRequestCollectionResponse and sets the default values. func NewOfferShiftRequestCollectionResponse()(*OfferShiftRequestCollectionResponse) { m := &OfferShiftRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/office365_active_user_counts.go b/models/office365_active_user_counts.go index 18d48d41944..9c9732031bf 100644 --- a/models/office365_active_user_counts.go +++ b/models/office365_active_user_counts.go @@ -7,8 +7,10 @@ import ( // Office365ActiveUserCounts type Office365ActiveUserCounts struct { Entity + // The OdataType property + OdataType *string } -// NewOffice365ActiveUserCounts instantiates a new Office365ActiveUserCounts and sets the default values. +// NewOffice365ActiveUserCounts instantiates a new office365ActiveUserCounts and sets the default values. func NewOffice365ActiveUserCounts()(*Office365ActiveUserCounts) { m := &Office365ActiveUserCounts{ Entity: *NewEntity(), diff --git a/models/office365_active_user_detail.go b/models/office365_active_user_detail.go index 4e9dfcdf4e8..e7ca1fed09a 100644 --- a/models/office365_active_user_detail.go +++ b/models/office365_active_user_detail.go @@ -7,8 +7,10 @@ import ( // Office365ActiveUserDetail type Office365ActiveUserDetail struct { Entity + // The OdataType property + OdataType *string } -// NewOffice365ActiveUserDetail instantiates a new Office365ActiveUserDetail and sets the default values. +// NewOffice365ActiveUserDetail instantiates a new office365ActiveUserDetail and sets the default values. func NewOffice365ActiveUserDetail()(*Office365ActiveUserDetail) { m := &Office365ActiveUserDetail{ Entity: *NewEntity(), diff --git a/models/office365_groups_activity_counts.go b/models/office365_groups_activity_counts.go index 3cb3fb86cdb..eae5403b685 100644 --- a/models/office365_groups_activity_counts.go +++ b/models/office365_groups_activity_counts.go @@ -7,8 +7,10 @@ import ( // Office365GroupsActivityCounts type Office365GroupsActivityCounts struct { Entity + // The OdataType property + OdataType *string } -// NewOffice365GroupsActivityCounts instantiates a new Office365GroupsActivityCounts and sets the default values. +// NewOffice365GroupsActivityCounts instantiates a new office365GroupsActivityCounts and sets the default values. func NewOffice365GroupsActivityCounts()(*Office365GroupsActivityCounts) { m := &Office365GroupsActivityCounts{ Entity: *NewEntity(), diff --git a/models/office365_groups_activity_detail.go b/models/office365_groups_activity_detail.go index 3e6e8efc55e..472f5c0335a 100644 --- a/models/office365_groups_activity_detail.go +++ b/models/office365_groups_activity_detail.go @@ -7,8 +7,10 @@ import ( // Office365GroupsActivityDetail type Office365GroupsActivityDetail struct { Entity + // The OdataType property + OdataType *string } -// NewOffice365GroupsActivityDetail instantiates a new Office365GroupsActivityDetail and sets the default values. +// NewOffice365GroupsActivityDetail instantiates a new office365GroupsActivityDetail and sets the default values. func NewOffice365GroupsActivityDetail()(*Office365GroupsActivityDetail) { m := &Office365GroupsActivityDetail{ Entity: *NewEntity(), diff --git a/models/office365_groups_activity_file_counts.go b/models/office365_groups_activity_file_counts.go index 386d4d303c5..f2dfeb46115 100644 --- a/models/office365_groups_activity_file_counts.go +++ b/models/office365_groups_activity_file_counts.go @@ -7,8 +7,10 @@ import ( // Office365GroupsActivityFileCounts type Office365GroupsActivityFileCounts struct { Entity + // The OdataType property + OdataType *string } -// NewOffice365GroupsActivityFileCounts instantiates a new Office365GroupsActivityFileCounts and sets the default values. +// NewOffice365GroupsActivityFileCounts instantiates a new office365GroupsActivityFileCounts and sets the default values. func NewOffice365GroupsActivityFileCounts()(*Office365GroupsActivityFileCounts) { m := &Office365GroupsActivityFileCounts{ Entity: *NewEntity(), diff --git a/models/office365_groups_activity_group_counts.go b/models/office365_groups_activity_group_counts.go index fda3d524ede..1c3c70a3f50 100644 --- a/models/office365_groups_activity_group_counts.go +++ b/models/office365_groups_activity_group_counts.go @@ -7,8 +7,10 @@ import ( // Office365GroupsActivityGroupCounts type Office365GroupsActivityGroupCounts struct { Entity + // The OdataType property + OdataType *string } -// NewOffice365GroupsActivityGroupCounts instantiates a new Office365GroupsActivityGroupCounts and sets the default values. +// NewOffice365GroupsActivityGroupCounts instantiates a new office365GroupsActivityGroupCounts and sets the default values. func NewOffice365GroupsActivityGroupCounts()(*Office365GroupsActivityGroupCounts) { m := &Office365GroupsActivityGroupCounts{ Entity: *NewEntity(), diff --git a/models/office365_groups_activity_storage.go b/models/office365_groups_activity_storage.go index 72776f6277e..59e72922bcd 100644 --- a/models/office365_groups_activity_storage.go +++ b/models/office365_groups_activity_storage.go @@ -7,8 +7,10 @@ import ( // Office365GroupsActivityStorage type Office365GroupsActivityStorage struct { Entity + // The OdataType property + OdataType *string } -// NewOffice365GroupsActivityStorage instantiates a new Office365GroupsActivityStorage and sets the default values. +// NewOffice365GroupsActivityStorage instantiates a new office365GroupsActivityStorage and sets the default values. func NewOffice365GroupsActivityStorage()(*Office365GroupsActivityStorage) { m := &Office365GroupsActivityStorage{ Entity: *NewEntity(), diff --git a/models/office365_services_user_counts.go b/models/office365_services_user_counts.go index 398e43d4092..f98fd5699d6 100644 --- a/models/office365_services_user_counts.go +++ b/models/office365_services_user_counts.go @@ -7,8 +7,10 @@ import ( // Office365ServicesUserCounts type Office365ServicesUserCounts struct { Entity + // The OdataType property + OdataType *string } -// NewOffice365ServicesUserCounts instantiates a new Office365ServicesUserCounts and sets the default values. +// NewOffice365ServicesUserCounts instantiates a new office365ServicesUserCounts and sets the default values. func NewOffice365ServicesUserCounts()(*Office365ServicesUserCounts) { m := &Office365ServicesUserCounts{ Entity: *NewEntity(), diff --git a/models/office_graph_insights.go b/models/office_graph_insights.go index 3818c62ede4..3cd9524e02e 100644 --- a/models/office_graph_insights.go +++ b/models/office_graph_insights.go @@ -7,6 +7,8 @@ import ( // OfficeGraphInsights type OfficeGraphInsights struct { Entity + // The OdataType property + OdataType *string } // NewOfficeGraphInsights instantiates a new officeGraphInsights and sets the default values. func NewOfficeGraphInsights()(*OfficeGraphInsights) { diff --git a/models/office_suite_app.go b/models/office_suite_app.go index de139af9f4e..3ed6c0969ad 100644 --- a/models/office_suite_app.go +++ b/models/office_suite_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// OfficeSuiteApp +// OfficeSuiteApp contains properties and inherited properties for the Office365 Suite App. type OfficeSuiteApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewOfficeSuiteApp instantiates a new OfficeSuiteApp and sets the default values. +// NewOfficeSuiteApp instantiates a new officeSuiteApp and sets the default values. func NewOfficeSuiteApp()(*OfficeSuiteApp) { m := &OfficeSuiteApp{ MobileApp: *NewMobileApp(), diff --git a/models/oma_setting_base64.go b/models/oma_setting_base64.go index b5f16b85c9c..3697e45c6cd 100644 --- a/models/oma_setting_base64.go +++ b/models/oma_setting_base64.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// OmaSettingBase64 +// OmaSettingBase64 oMA Settings Base64 definition. type OmaSettingBase64 struct { OmaSetting + // The OdataType property + OdataType *string } -// NewOmaSettingBase64 instantiates a new OmaSettingBase64 and sets the default values. +// NewOmaSettingBase64 instantiates a new omaSettingBase64 and sets the default values. func NewOmaSettingBase64()(*OmaSettingBase64) { m := &OmaSettingBase64{ OmaSetting: *NewOmaSetting(), diff --git a/models/oma_setting_boolean.go b/models/oma_setting_boolean.go index afdf6b4e784..08cf5bdfa39 100644 --- a/models/oma_setting_boolean.go +++ b/models/oma_setting_boolean.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// OmaSettingBoolean +// OmaSettingBoolean oMA Settings Boolean definition. type OmaSettingBoolean struct { OmaSetting + // The OdataType property + OdataType *string } -// NewOmaSettingBoolean instantiates a new OmaSettingBoolean and sets the default values. +// NewOmaSettingBoolean instantiates a new omaSettingBoolean and sets the default values. func NewOmaSettingBoolean()(*OmaSettingBoolean) { m := &OmaSettingBoolean{ OmaSetting: *NewOmaSetting(), diff --git a/models/oma_setting_date_time.go b/models/oma_setting_date_time.go index ca0f31b8b42..ca83bf91077 100644 --- a/models/oma_setting_date_time.go +++ b/models/oma_setting_date_time.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// OmaSettingDateTime +// OmaSettingDateTime oMA Settings DateTime definition. type OmaSettingDateTime struct { OmaSetting + // The OdataType property + OdataType *string } -// NewOmaSettingDateTime instantiates a new OmaSettingDateTime and sets the default values. +// NewOmaSettingDateTime instantiates a new omaSettingDateTime and sets the default values. func NewOmaSettingDateTime()(*OmaSettingDateTime) { m := &OmaSettingDateTime{ OmaSetting: *NewOmaSetting(), diff --git a/models/oma_setting_floating_point.go b/models/oma_setting_floating_point.go index 488a4bcdadc..221f4a702c0 100644 --- a/models/oma_setting_floating_point.go +++ b/models/oma_setting_floating_point.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// OmaSettingFloatingPoint +// OmaSettingFloatingPoint oMA Settings Floating Point definition. type OmaSettingFloatingPoint struct { OmaSetting + // The OdataType property + OdataType *string } -// NewOmaSettingFloatingPoint instantiates a new OmaSettingFloatingPoint and sets the default values. +// NewOmaSettingFloatingPoint instantiates a new omaSettingFloatingPoint and sets the default values. func NewOmaSettingFloatingPoint()(*OmaSettingFloatingPoint) { m := &OmaSettingFloatingPoint{ OmaSetting: *NewOmaSetting(), diff --git a/models/oma_setting_integer.go b/models/oma_setting_integer.go index 5af81d90a98..bd9a8f5c5fb 100644 --- a/models/oma_setting_integer.go +++ b/models/oma_setting_integer.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// OmaSettingInteger +// OmaSettingInteger oMA Settings Integer definition. type OmaSettingInteger struct { OmaSetting + // The OdataType property + OdataType *string } -// NewOmaSettingInteger instantiates a new OmaSettingInteger and sets the default values. +// NewOmaSettingInteger instantiates a new omaSettingInteger and sets the default values. func NewOmaSettingInteger()(*OmaSettingInteger) { m := &OmaSettingInteger{ OmaSetting: *NewOmaSetting(), diff --git a/models/oma_setting_string.go b/models/oma_setting_string.go index de31440b6c4..08b74bb1fdc 100644 --- a/models/oma_setting_string.go +++ b/models/oma_setting_string.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// OmaSettingString +// OmaSettingString oMA Settings String definition. type OmaSettingString struct { OmaSetting + // The OdataType property + OdataType *string } -// NewOmaSettingString instantiates a new OmaSettingString and sets the default values. +// NewOmaSettingString instantiates a new omaSettingString and sets the default values. func NewOmaSettingString()(*OmaSettingString) { m := &OmaSettingString{ OmaSetting: *NewOmaSetting(), diff --git a/models/oma_setting_string_xml.go b/models/oma_setting_string_xml.go index 18053622d3b..ccbcb13e658 100644 --- a/models/oma_setting_string_xml.go +++ b/models/oma_setting_string_xml.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// OmaSettingStringXml +// OmaSettingStringXml oMA Settings StringXML definition. type OmaSettingStringXml struct { OmaSetting + // The OdataType property + OdataType *string } -// NewOmaSettingStringXml instantiates a new OmaSettingStringXml and sets the default values. +// NewOmaSettingStringXml instantiates a new omaSettingStringXml and sets the default values. func NewOmaSettingStringXml()(*OmaSettingStringXml) { m := &OmaSettingStringXml{ OmaSetting: *NewOmaSetting(), diff --git a/models/on_attribute_collection_external_users_self_service_sign_up.go b/models/on_attribute_collection_external_users_self_service_sign_up.go index 7afc1a666b1..031d1da77ac 100644 --- a/models/on_attribute_collection_external_users_self_service_sign_up.go +++ b/models/on_attribute_collection_external_users_self_service_sign_up.go @@ -7,8 +7,10 @@ import ( // OnAttributeCollectionExternalUsersSelfServiceSignUp type OnAttributeCollectionExternalUsersSelfServiceSignUp struct { OnAttributeCollectionHandler + // The OdataType property + OdataType *string } -// NewOnAttributeCollectionExternalUsersSelfServiceSignUp instantiates a new OnAttributeCollectionExternalUsersSelfServiceSignUp and sets the default values. +// NewOnAttributeCollectionExternalUsersSelfServiceSignUp instantiates a new onAttributeCollectionExternalUsersSelfServiceSignUp and sets the default values. func NewOnAttributeCollectionExternalUsersSelfServiceSignUp()(*OnAttributeCollectionExternalUsersSelfServiceSignUp) { m := &OnAttributeCollectionExternalUsersSelfServiceSignUp{ OnAttributeCollectionHandler: *NewOnAttributeCollectionHandler(), diff --git a/models/on_attribute_collection_listener.go b/models/on_attribute_collection_listener.go index e2fcb40ab94..36eedb56141 100644 --- a/models/on_attribute_collection_listener.go +++ b/models/on_attribute_collection_listener.go @@ -8,7 +8,7 @@ import ( type OnAttributeCollectionListener struct { AuthenticationEventListener } -// NewOnAttributeCollectionListener instantiates a new OnAttributeCollectionListener and sets the default values. +// NewOnAttributeCollectionListener instantiates a new onAttributeCollectionListener and sets the default values. func NewOnAttributeCollectionListener()(*OnAttributeCollectionListener) { m := &OnAttributeCollectionListener{ AuthenticationEventListener: *NewAuthenticationEventListener(), diff --git a/models/on_authentication_method_load_start_external_users_self_service_sign_up.go b/models/on_authentication_method_load_start_external_users_self_service_sign_up.go index c1bd2a16c84..abdcc059b62 100644 --- a/models/on_authentication_method_load_start_external_users_self_service_sign_up.go +++ b/models/on_authentication_method_load_start_external_users_self_service_sign_up.go @@ -7,8 +7,10 @@ import ( // OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp type OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp struct { OnAuthenticationMethodLoadStartHandler + // The OdataType property + OdataType *string } -// NewOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp instantiates a new OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp and sets the default values. +// NewOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp instantiates a new onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp and sets the default values. func NewOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp()(*OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp) { m := &OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp{ OnAuthenticationMethodLoadStartHandler: *NewOnAuthenticationMethodLoadStartHandler(), diff --git a/models/on_authentication_method_load_start_listener.go b/models/on_authentication_method_load_start_listener.go index ddceb8e17d4..bf401e7918a 100644 --- a/models/on_authentication_method_load_start_listener.go +++ b/models/on_authentication_method_load_start_listener.go @@ -8,7 +8,7 @@ import ( type OnAuthenticationMethodLoadStartListener struct { AuthenticationEventListener } -// NewOnAuthenticationMethodLoadStartListener instantiates a new OnAuthenticationMethodLoadStartListener and sets the default values. +// NewOnAuthenticationMethodLoadStartListener instantiates a new onAuthenticationMethodLoadStartListener and sets the default values. func NewOnAuthenticationMethodLoadStartListener()(*OnAuthenticationMethodLoadStartListener) { m := &OnAuthenticationMethodLoadStartListener{ AuthenticationEventListener: *NewAuthenticationEventListener(), diff --git a/models/on_interactive_auth_flow_start_external_users_self_service_sign_up.go b/models/on_interactive_auth_flow_start_external_users_self_service_sign_up.go index 130dab5e668..a8fc5ea9ac8 100644 --- a/models/on_interactive_auth_flow_start_external_users_self_service_sign_up.go +++ b/models/on_interactive_auth_flow_start_external_users_self_service_sign_up.go @@ -8,7 +8,7 @@ import ( type OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp struct { OnInteractiveAuthFlowStartHandler } -// NewOnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp instantiates a new OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp and sets the default values. +// NewOnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp instantiates a new onInteractiveAuthFlowStartExternalUsersSelfServiceSignUp and sets the default values. func NewOnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp()(*OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp) { m := &OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp{ OnInteractiveAuthFlowStartHandler: *NewOnInteractiveAuthFlowStartHandler(), @@ -34,6 +34,16 @@ func (m *OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp) GetFieldDeser } 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 } // GetIsSignUpAllowed gets the isSignUpAllowed property value. Optional. Specifes whether the authentication flow includes an option to sign up (create account) as well as sign in. Default value is false meaning only sign in is enabled. @@ -47,6 +57,17 @@ func (m *OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp) GetIsSignUpAl } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp) 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 *OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.OnInteractiveAuthFlowStartHandler.Serialize(writer) @@ -59,6 +80,12 @@ func (m *OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp) Serialize(wri return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetIsSignUpAllowed sets the isSignUpAllowed property value. Optional. Specifes whether the authentication flow includes an option to sign up (create account) as well as sign in. Default value is false meaning only sign in is enabled. @@ -68,10 +95,19 @@ func (m *OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp) SetIsSignUpAl panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUpable type OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUpable interface { OnInteractiveAuthFlowStartHandlerable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetIsSignUpAllowed()(*bool) + GetOdataType()(*string) SetIsSignUpAllowed(value *bool)() + SetOdataType(value *string)() } diff --git a/models/on_interactive_auth_flow_start_listener.go b/models/on_interactive_auth_flow_start_listener.go index c53075c67b9..5cef1637398 100644 --- a/models/on_interactive_auth_flow_start_listener.go +++ b/models/on_interactive_auth_flow_start_listener.go @@ -8,7 +8,7 @@ import ( type OnInteractiveAuthFlowStartListener struct { AuthenticationEventListener } -// NewOnInteractiveAuthFlowStartListener instantiates a new OnInteractiveAuthFlowStartListener and sets the default values. +// NewOnInteractiveAuthFlowStartListener instantiates a new onInteractiveAuthFlowStartListener and sets the default values. func NewOnInteractiveAuthFlowStartListener()(*OnInteractiveAuthFlowStartListener) { m := &OnInteractiveAuthFlowStartListener{ AuthenticationEventListener: *NewAuthenticationEventListener(), diff --git a/models/on_premises_agent.go b/models/on_premises_agent.go index 718c52feb29..adf64780d80 100644 --- a/models/on_premises_agent.go +++ b/models/on_premises_agent.go @@ -7,8 +7,10 @@ import ( // OnPremisesAgent type OnPremisesAgent struct { Entity + // The OdataType property + OdataType *string } -// NewOnPremisesAgent instantiates a new OnPremisesAgent and sets the default values. +// NewOnPremisesAgent instantiates a new onPremisesAgent and sets the default values. func NewOnPremisesAgent()(*OnPremisesAgent) { m := &OnPremisesAgent{ Entity: *NewEntity(), diff --git a/models/on_premises_agent_collection_response.go b/models/on_premises_agent_collection_response.go index ed18a75bdb6..31e11f64fff 100644 --- a/models/on_premises_agent_collection_response.go +++ b/models/on_premises_agent_collection_response.go @@ -8,7 +8,7 @@ import ( type OnPremisesAgentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOnPremisesAgentCollectionResponse instantiates a new OnPremisesAgentCollectionResponse and sets the default values. +// NewOnPremisesAgentCollectionResponse instantiates a new onPremisesAgentCollectionResponse and sets the default values. func NewOnPremisesAgentCollectionResponse()(*OnPremisesAgentCollectionResponse) { m := &OnPremisesAgentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/on_premises_agent_group.go b/models/on_premises_agent_group.go index 04f571693e2..cd70fe7e234 100644 --- a/models/on_premises_agent_group.go +++ b/models/on_premises_agent_group.go @@ -80,6 +80,16 @@ func (m *OnPremisesAgentGroup) GetFieldDeserializers()(map[string]func(i878a80d2 } 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["publishedResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreatePublishedResourceFromDiscriminatorValue) if err != nil { @@ -119,6 +129,17 @@ func (m *OnPremisesAgentGroup) GetIsDefault()(*bool) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *OnPremisesAgentGroup) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPublishedResources gets the publishedResources property value. List of publishedResource that are assigned to an onPremisesAgentGroup. Read-only. Nullable. func (m *OnPremisesAgentGroup) GetPublishedResources()([]PublishedResourceable) { val, err := m.GetBackingStore().Get("publishedResources") @@ -171,6 +192,12 @@ func (m *OnPremisesAgentGroup) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetPublishedResources() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetPublishedResources())) for i, v := range m.GetPublishedResources() { @@ -213,6 +240,13 @@ func (m *OnPremisesAgentGroup) SetIsDefault(value *bool)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OnPremisesAgentGroup) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPublishedResources sets the publishedResources property value. List of publishedResource that are assigned to an onPremisesAgentGroup. Read-only. Nullable. func (m *OnPremisesAgentGroup) SetPublishedResources(value []PublishedResourceable)() { err := m.GetBackingStore().Set("publishedResources", value) @@ -234,11 +268,13 @@ type OnPremisesAgentGroupable interface { GetAgents()([]OnPremisesAgentable) GetDisplayName()(*string) GetIsDefault()(*bool) + GetOdataType()(*string) GetPublishedResources()([]PublishedResourceable) GetPublishingType()(*OnPremisesPublishingType) SetAgents(value []OnPremisesAgentable)() SetDisplayName(value *string)() SetIsDefault(value *bool)() + SetOdataType(value *string)() SetPublishedResources(value []PublishedResourceable)() SetPublishingType(value *OnPremisesPublishingType)() } diff --git a/models/on_premises_agent_group_collection_response.go b/models/on_premises_agent_group_collection_response.go index 58730a5854b..742e6f092cb 100644 --- a/models/on_premises_agent_group_collection_response.go +++ b/models/on_premises_agent_group_collection_response.go @@ -8,7 +8,7 @@ import ( type OnPremisesAgentGroupCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOnPremisesAgentGroupCollectionResponse instantiates a new OnPremisesAgentGroupCollectionResponse and sets the default values. +// NewOnPremisesAgentGroupCollectionResponse instantiates a new onPremisesAgentGroupCollectionResponse and sets the default values. func NewOnPremisesAgentGroupCollectionResponse()(*OnPremisesAgentGroupCollectionResponse) { m := &OnPremisesAgentGroupCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/on_premises_conditional_access_settings.go b/models/on_premises_conditional_access_settings.go index 3b4a1a46edd..2a799563a30 100644 --- a/models/on_premises_conditional_access_settings.go +++ b/models/on_premises_conditional_access_settings.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// OnPremisesConditionalAccessSettings +// OnPremisesConditionalAccessSettings singleton entity which represents the Exchange OnPremises Conditional Access Settings for a tenant. type OnPremisesConditionalAccessSettings struct { Entity + // The OdataType property + OdataType *string } // NewOnPremisesConditionalAccessSettings instantiates a new onPremisesConditionalAccessSettings and sets the default values. func NewOnPremisesConditionalAccessSettings()(*OnPremisesConditionalAccessSettings) { diff --git a/models/on_premises_directory_synchronization.go b/models/on_premises_directory_synchronization.go index a863eb9da5f..eff62635fb7 100644 --- a/models/on_premises_directory_synchronization.go +++ b/models/on_premises_directory_synchronization.go @@ -8,7 +8,7 @@ import ( type OnPremisesDirectorySynchronization struct { Entity } -// NewOnPremisesDirectorySynchronization instantiates a new OnPremisesDirectorySynchronization and sets the default values. +// NewOnPremisesDirectorySynchronization instantiates a new onPremisesDirectorySynchronization and sets the default values. func NewOnPremisesDirectorySynchronization()(*OnPremisesDirectorySynchronization) { m := &OnPremisesDirectorySynchronization{ Entity: *NewEntity(), @@ -64,8 +64,29 @@ func (m *OnPremisesDirectorySynchronization) GetFieldDeserializers()(map[string] } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *OnPremisesDirectorySynchronization) 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 *OnPremisesDirectorySynchronization) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -84,6 +105,12 @@ func (m *OnPremisesDirectorySynchronization) Serialize(writer i878a80d2330e89d26 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetConfiguration sets the configuration property value. Consists of configurations that can be fine-tuned and impact the on-premises directory synchronization process for a tenant. @@ -100,12 +127,21 @@ func (m *OnPremisesDirectorySynchronization) SetFeatures(value OnPremisesDirecto panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OnPremisesDirectorySynchronization) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // OnPremisesDirectorySynchronizationable type OnPremisesDirectorySynchronizationable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetConfiguration()(OnPremisesDirectorySynchronizationConfigurationable) GetFeatures()(OnPremisesDirectorySynchronizationFeatureable) + GetOdataType()(*string) SetConfiguration(value OnPremisesDirectorySynchronizationConfigurationable)() SetFeatures(value OnPremisesDirectorySynchronizationFeatureable)() + SetOdataType(value *string)() } diff --git a/models/on_premises_directory_synchronization_collection_response.go b/models/on_premises_directory_synchronization_collection_response.go index dad40c42d8f..4f180b1ecc8 100644 --- a/models/on_premises_directory_synchronization_collection_response.go +++ b/models/on_premises_directory_synchronization_collection_response.go @@ -8,7 +8,7 @@ import ( type OnPremisesDirectorySynchronizationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOnPremisesDirectorySynchronizationCollectionResponse instantiates a new OnPremisesDirectorySynchronizationCollectionResponse and sets the default values. +// NewOnPremisesDirectorySynchronizationCollectionResponse instantiates a new onPremisesDirectorySynchronizationCollectionResponse and sets the default values. func NewOnPremisesDirectorySynchronizationCollectionResponse()(*OnPremisesDirectorySynchronizationCollectionResponse) { m := &OnPremisesDirectorySynchronizationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/on_premises_directory_synchronization_feature.go b/models/on_premises_directory_synchronization_feature.go index a8dae8cbd1c..bc8d3eddda2 100644 --- a/models/on_premises_directory_synchronization_feature.go +++ b/models/on_premises_directory_synchronization_feature.go @@ -10,7 +10,7 @@ type OnPremisesDirectorySynchronizationFeature struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewOnPremisesDirectorySynchronizationFeature instantiates a new OnPremisesDirectorySynchronizationFeature and sets the default values. +// NewOnPremisesDirectorySynchronizationFeature instantiates a new onPremisesDirectorySynchronizationFeature and sets the default values. func NewOnPremisesDirectorySynchronizationFeature()(*OnPremisesDirectorySynchronizationFeature) { m := &OnPremisesDirectorySynchronizationFeature{ } diff --git a/models/on_premises_publishing_profile.go b/models/on_premises_publishing_profile.go index 35c2fdc34dd..f6d513e0919 100644 --- a/models/on_premises_publishing_profile.go +++ b/models/on_premises_publishing_profile.go @@ -7,8 +7,10 @@ import ( // OnPremisesPublishingProfile type OnPremisesPublishingProfile struct { Entity + // The OdataType property + OdataType *string } -// NewOnPremisesPublishingProfile instantiates a new OnPremisesPublishingProfile and sets the default values. +// NewOnPremisesPublishingProfile instantiates a new onPremisesPublishingProfile and sets the default values. func NewOnPremisesPublishingProfile()(*OnPremisesPublishingProfile) { m := &OnPremisesPublishingProfile{ Entity: *NewEntity(), diff --git a/models/on_premises_publishing_profile_collection_response.go b/models/on_premises_publishing_profile_collection_response.go index 9c2534959bc..8100dc5d4a3 100644 --- a/models/on_premises_publishing_profile_collection_response.go +++ b/models/on_premises_publishing_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type OnPremisesPublishingProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOnPremisesPublishingProfileCollectionResponse instantiates a new OnPremisesPublishingProfileCollectionResponse and sets the default values. +// NewOnPremisesPublishingProfileCollectionResponse instantiates a new onPremisesPublishingProfileCollectionResponse and sets the default values. func NewOnPremisesPublishingProfileCollectionResponse()(*OnPremisesPublishingProfileCollectionResponse) { m := &OnPremisesPublishingProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/on_token_issuance_start_custom_extension.go b/models/on_token_issuance_start_custom_extension.go index 565aec82b2f..052b63bff01 100644 --- a/models/on_token_issuance_start_custom_extension.go +++ b/models/on_token_issuance_start_custom_extension.go @@ -8,7 +8,7 @@ import ( type OnTokenIssuanceStartCustomExtension struct { CustomAuthenticationExtension } -// NewOnTokenIssuanceStartCustomExtension instantiates a new OnTokenIssuanceStartCustomExtension and sets the default values. +// NewOnTokenIssuanceStartCustomExtension instantiates a new onTokenIssuanceStartCustomExtension and sets the default values. func NewOnTokenIssuanceStartCustomExtension()(*OnTokenIssuanceStartCustomExtension) { m := &OnTokenIssuanceStartCustomExtension{ CustomAuthenticationExtension: *NewCustomAuthenticationExtension(), diff --git a/models/on_token_issuance_start_custom_extension_handler.go b/models/on_token_issuance_start_custom_extension_handler.go index 8cf8732492e..0b7223cd8d1 100644 --- a/models/on_token_issuance_start_custom_extension_handler.go +++ b/models/on_token_issuance_start_custom_extension_handler.go @@ -8,7 +8,7 @@ import ( type OnTokenIssuanceStartCustomExtensionHandler struct { OnTokenIssuanceStartHandler } -// NewOnTokenIssuanceStartCustomExtensionHandler instantiates a new OnTokenIssuanceStartCustomExtensionHandler and sets the default values. +// NewOnTokenIssuanceStartCustomExtensionHandler instantiates a new onTokenIssuanceStartCustomExtensionHandler and sets the default values. func NewOnTokenIssuanceStartCustomExtensionHandler()(*OnTokenIssuanceStartCustomExtensionHandler) { m := &OnTokenIssuanceStartCustomExtensionHandler{ OnTokenIssuanceStartHandler: *NewOnTokenIssuanceStartHandler(), @@ -45,8 +45,29 @@ func (m *OnTokenIssuanceStartCustomExtensionHandler) GetFieldDeserializers()(map } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *OnTokenIssuanceStartCustomExtensionHandler) 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 *OnTokenIssuanceStartCustomExtensionHandler) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.OnTokenIssuanceStartHandler.Serialize(writer) @@ -59,6 +80,12 @@ func (m *OnTokenIssuanceStartCustomExtensionHandler) Serialize(writer i878a80d23 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetCustomExtension sets the customExtension property value. The customExtension property @@ -68,10 +95,19 @@ func (m *OnTokenIssuanceStartCustomExtensionHandler) SetCustomExtension(value On panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OnTokenIssuanceStartCustomExtensionHandler) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // OnTokenIssuanceStartCustomExtensionHandlerable type OnTokenIssuanceStartCustomExtensionHandlerable interface { OnTokenIssuanceStartHandlerable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCustomExtension()(OnTokenIssuanceStartCustomExtensionable) + GetOdataType()(*string) SetCustomExtension(value OnTokenIssuanceStartCustomExtensionable)() + SetOdataType(value *string)() } diff --git a/models/on_token_issuance_start_listener.go b/models/on_token_issuance_start_listener.go index 54c5c467a57..b8df15ddb12 100644 --- a/models/on_token_issuance_start_listener.go +++ b/models/on_token_issuance_start_listener.go @@ -8,7 +8,7 @@ import ( type OnTokenIssuanceStartListener struct { AuthenticationEventListener } -// NewOnTokenIssuanceStartListener instantiates a new OnTokenIssuanceStartListener and sets the default values. +// NewOnTokenIssuanceStartListener instantiates a new onTokenIssuanceStartListener and sets the default values. func NewOnTokenIssuanceStartListener()(*OnTokenIssuanceStartListener) { m := &OnTokenIssuanceStartListener{ AuthenticationEventListener: *NewAuthenticationEventListener(), 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 66e190375d9..103d15d93f5 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 @@ -7,8 +7,10 @@ import ( // OnUserCreateStartExternalUsersSelfServiceSignUp type OnUserCreateStartExternalUsersSelfServiceSignUp struct { OnUserCreateStartHandler + // The OdataType property + OdataType *string } -// NewOnUserCreateStartExternalUsersSelfServiceSignUp instantiates a new OnUserCreateStartExternalUsersSelfServiceSignUp and sets the default values. +// NewOnUserCreateStartExternalUsersSelfServiceSignUp instantiates a new onUserCreateStartExternalUsersSelfServiceSignUp and sets the default values. func NewOnUserCreateStartExternalUsersSelfServiceSignUp()(*OnUserCreateStartExternalUsersSelfServiceSignUp) { m := &OnUserCreateStartExternalUsersSelfServiceSignUp{ OnUserCreateStartHandler: *NewOnUserCreateStartHandler(), diff --git a/models/on_user_create_start_listener.go b/models/on_user_create_start_listener.go index e7aac9d85c2..fb6d8ef7704 100644 --- a/models/on_user_create_start_listener.go +++ b/models/on_user_create_start_listener.go @@ -8,7 +8,7 @@ import ( type OnUserCreateStartListener struct { AuthenticationEventListener } -// NewOnUserCreateStartListener instantiates a new OnUserCreateStartListener and sets the default values. +// NewOnUserCreateStartListener instantiates a new onUserCreateStartListener and sets the default values. func NewOnUserCreateStartListener()(*OnUserCreateStartListener) { m := &OnUserCreateStartListener{ AuthenticationEventListener: *NewAuthenticationEventListener(), diff --git a/models/onenote.go b/models/onenote.go index 9807b4bf4fb..c8d2105372d 100644 --- a/models/onenote.go +++ b/models/onenote.go @@ -7,6 +7,8 @@ import ( // Onenote type Onenote struct { Entity + // The OdataType property + OdataType *string } // NewOnenote instantiates a new onenote and sets the default values. func NewOnenote()(*Onenote) { diff --git a/models/onenote_entity_base_model.go b/models/onenote_entity_base_model.go index 06fed8259b9..caa84db3c06 100644 --- a/models/onenote_entity_base_model.go +++ b/models/onenote_entity_base_model.go @@ -52,6 +52,16 @@ func CreateOnenoteEntityBaseModelFromDiscriminatorValue(parseNode i878a80d2330e8 // GetFieldDeserializers the deserialization information for the current model func (m *OnenoteEntityBaseModel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + 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["self"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -64,6 +74,17 @@ func (m *OnenoteEntityBaseModel) GetFieldDeserializers()(map[string]func(i878a80 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *OnenoteEntityBaseModel) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSelf gets the self property value. The self property func (m *OnenoteEntityBaseModel) GetSelf()(*string) { val, err := m.GetBackingStore().Get("self") @@ -81,6 +102,12 @@ func (m *OnenoteEntityBaseModel) Serialize(writer i878a80d2330e89d26896388a3f487 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("self", m.GetSelf()) if err != nil { @@ -89,6 +116,13 @@ func (m *OnenoteEntityBaseModel) Serialize(writer i878a80d2330e89d26896388a3f487 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OnenoteEntityBaseModel) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSelf sets the self property value. The self property func (m *OnenoteEntityBaseModel) SetSelf(value *string)() { err := m.GetBackingStore().Set("self", value) @@ -100,6 +134,8 @@ func (m *OnenoteEntityBaseModel) SetSelf(value *string)() { type OnenoteEntityBaseModelable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetSelf()(*string) + SetOdataType(value *string)() SetSelf(value *string)() } diff --git a/models/onenote_entity_hierarchy_model.go b/models/onenote_entity_hierarchy_model.go index df6f1d952f7..ecdc5ddb563 100644 --- a/models/onenote_entity_hierarchy_model.go +++ b/models/onenote_entity_hierarchy_model.go @@ -9,7 +9,7 @@ import ( type OnenoteEntityHierarchyModel struct { OnenoteEntitySchemaObjectModel } -// NewOnenoteEntityHierarchyModel instantiates a new OnenoteEntityHierarchyModel and sets the default values. +// NewOnenoteEntityHierarchyModel instantiates a new onenoteEntityHierarchyModel and sets the default values. func NewOnenoteEntityHierarchyModel()(*OnenoteEntityHierarchyModel) { m := &OnenoteEntityHierarchyModel{ OnenoteEntitySchemaObjectModel: *NewOnenoteEntitySchemaObjectModel(), diff --git a/models/onenote_entity_schema_object_model.go b/models/onenote_entity_schema_object_model.go index ab2a7fbbf23..01325cfeeb1 100644 --- a/models/onenote_entity_schema_object_model.go +++ b/models/onenote_entity_schema_object_model.go @@ -8,8 +8,10 @@ import ( // OnenoteEntitySchemaObjectModel type OnenoteEntitySchemaObjectModel struct { OnenoteEntityBaseModel + // The OdataType property + OdataType *string } -// NewOnenoteEntitySchemaObjectModel instantiates a new OnenoteEntitySchemaObjectModel and sets the default values. +// NewOnenoteEntitySchemaObjectModel instantiates a new onenoteEntitySchemaObjectModel and sets the default values. func NewOnenoteEntitySchemaObjectModel()(*OnenoteEntitySchemaObjectModel) { m := &OnenoteEntitySchemaObjectModel{ OnenoteEntityBaseModel: *NewOnenoteEntityBaseModel(), diff --git a/models/onenote_operation.go b/models/onenote_operation.go index 25f54d3e756..66565e170a4 100644 --- a/models/onenote_operation.go +++ b/models/onenote_operation.go @@ -8,7 +8,7 @@ import ( type OnenoteOperation struct { Operation } -// NewOnenoteOperation instantiates a new OnenoteOperation and sets the default values. +// NewOnenoteOperation instantiates a new onenoteOperation and sets the default values. func NewOnenoteOperation()(*OnenoteOperation) { m := &OnenoteOperation{ Operation: *NewOperation(), diff --git a/models/onenote_operation_collection_response.go b/models/onenote_operation_collection_response.go index 7f3188ff630..de7e2256d98 100644 --- a/models/onenote_operation_collection_response.go +++ b/models/onenote_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type OnenoteOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOnenoteOperationCollectionResponse instantiates a new OnenoteOperationCollectionResponse and sets the default values. +// NewOnenoteOperationCollectionResponse instantiates a new onenoteOperationCollectionResponse and sets the default values. func NewOnenoteOperationCollectionResponse()(*OnenoteOperationCollectionResponse) { m := &OnenoteOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/onenote_page_collection_response.go b/models/onenote_page_collection_response.go index f33068f9115..5ea67a55566 100644 --- a/models/onenote_page_collection_response.go +++ b/models/onenote_page_collection_response.go @@ -8,7 +8,7 @@ import ( type OnenotePageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOnenotePageCollectionResponse instantiates a new OnenotePageCollectionResponse and sets the default values. +// NewOnenotePageCollectionResponse instantiates a new onenotePageCollectionResponse and sets the default values. func NewOnenotePageCollectionResponse()(*OnenotePageCollectionResponse) { m := &OnenotePageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/onenote_resource.go b/models/onenote_resource.go index aa3ac5344a1..6d6c8311802 100644 --- a/models/onenote_resource.go +++ b/models/onenote_resource.go @@ -7,8 +7,10 @@ import ( // OnenoteResource type OnenoteResource struct { OnenoteEntityBaseModel + // The OdataType property + OdataType *string } -// NewOnenoteResource instantiates a new OnenoteResource and sets the default values. +// NewOnenoteResource instantiates a new onenoteResource and sets the default values. func NewOnenoteResource()(*OnenoteResource) { m := &OnenoteResource{ OnenoteEntityBaseModel: *NewOnenoteEntityBaseModel(), diff --git a/models/onenote_resource_collection_response.go b/models/onenote_resource_collection_response.go index 38b77857c8c..35674f5a84d 100644 --- a/models/onenote_resource_collection_response.go +++ b/models/onenote_resource_collection_response.go @@ -8,7 +8,7 @@ import ( type OnenoteResourceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOnenoteResourceCollectionResponse instantiates a new OnenoteResourceCollectionResponse and sets the default values. +// NewOnenoteResourceCollectionResponse instantiates a new onenoteResourceCollectionResponse and sets the default values. func NewOnenoteResourceCollectionResponse()(*OnenoteResourceCollectionResponse) { m := &OnenoteResourceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/onenote_section_collection_response.go b/models/onenote_section_collection_response.go index 72c6f842f48..f58331ce539 100644 --- a/models/onenote_section_collection_response.go +++ b/models/onenote_section_collection_response.go @@ -8,7 +8,7 @@ import ( type OnenoteSectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOnenoteSectionCollectionResponse instantiates a new OnenoteSectionCollectionResponse and sets the default values. +// NewOnenoteSectionCollectionResponse instantiates a new onenoteSectionCollectionResponse and sets the default values. func NewOnenoteSectionCollectionResponse()(*OnenoteSectionCollectionResponse) { m := &OnenoteSectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/online_meeting.go b/models/online_meeting.go index 0259ae77390..32313b49fcd 100644 --- a/models/online_meeting.go +++ b/models/online_meeting.go @@ -8,6 +8,8 @@ import ( // OnlineMeeting type OnlineMeeting struct { Entity + // The OdataType property + OdataType *string } // NewOnlineMeeting instantiates a new onlineMeeting and sets the default values. func NewOnlineMeeting()(*OnlineMeeting) { diff --git a/models/online_meeting_collection_response.go b/models/online_meeting_collection_response.go index 7687539e47d..2fd04a9a44a 100644 --- a/models/online_meeting_collection_response.go +++ b/models/online_meeting_collection_response.go @@ -8,7 +8,7 @@ import ( type OnlineMeetingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOnlineMeetingCollectionResponse instantiates a new OnlineMeetingCollectionResponse and sets the default values. +// NewOnlineMeetingCollectionResponse instantiates a new onlineMeetingCollectionResponse and sets the default values. func NewOnlineMeetingCollectionResponse()(*OnlineMeetingCollectionResponse) { m := &OnlineMeetingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/open_id_connect_identity_provider.go b/models/open_id_connect_identity_provider.go index d48cd824a31..05dc56b0174 100644 --- a/models/open_id_connect_identity_provider.go +++ b/models/open_id_connect_identity_provider.go @@ -8,7 +8,7 @@ import ( type OpenIdConnectIdentityProvider struct { IdentityProviderBase } -// NewOpenIdConnectIdentityProvider instantiates a new OpenIdConnectIdentityProvider and sets the default values. +// NewOpenIdConnectIdentityProvider instantiates a new openIdConnectIdentityProvider and sets the default values. func NewOpenIdConnectIdentityProvider()(*OpenIdConnectIdentityProvider) { m := &OpenIdConnectIdentityProvider{ IdentityProviderBase: *NewIdentityProviderBase(), diff --git a/models/open_id_connect_provider.go b/models/open_id_connect_provider.go index c546bcae9ee..6a0fb8c5777 100644 --- a/models/open_id_connect_provider.go +++ b/models/open_id_connect_provider.go @@ -8,7 +8,7 @@ import ( type OpenIdConnectProvider struct { IdentityProvider } -// NewOpenIdConnectProvider instantiates a new OpenIdConnectProvider and sets the default values. +// NewOpenIdConnectProvider instantiates a new openIdConnectProvider and sets the default values. func NewOpenIdConnectProvider()(*OpenIdConnectProvider) { m := &OpenIdConnectProvider{ IdentityProvider: *NewIdentityProvider(), diff --git a/models/open_shift.go b/models/open_shift.go index 1d91ad5e104..971bb1bd175 100644 --- a/models/open_shift.go +++ b/models/open_shift.go @@ -8,7 +8,7 @@ import ( type OpenShift struct { ChangeTrackedEntity } -// NewOpenShift instantiates a new OpenShift and sets the default values. +// NewOpenShift instantiates a new openShift and sets the default values. func NewOpenShift()(*OpenShift) { m := &OpenShift{ ChangeTrackedEntity: *NewChangeTrackedEntity(), diff --git a/models/open_shift_change_request.go b/models/open_shift_change_request.go index c2e04c5a6a9..2f7763f4d28 100644 --- a/models/open_shift_change_request.go +++ b/models/open_shift_change_request.go @@ -8,7 +8,7 @@ import ( type OpenShiftChangeRequest struct { ScheduleChangeRequest } -// NewOpenShiftChangeRequest instantiates a new OpenShiftChangeRequest and sets the default values. +// NewOpenShiftChangeRequest instantiates a new openShiftChangeRequest and sets the default values. func NewOpenShiftChangeRequest()(*OpenShiftChangeRequest) { m := &OpenShiftChangeRequest{ ScheduleChangeRequest: *NewScheduleChangeRequest(), diff --git a/models/open_shift_change_request_collection_response.go b/models/open_shift_change_request_collection_response.go index d84e0e2f7a1..7edd2621dd4 100644 --- a/models/open_shift_change_request_collection_response.go +++ b/models/open_shift_change_request_collection_response.go @@ -8,7 +8,7 @@ import ( type OpenShiftChangeRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOpenShiftChangeRequestCollectionResponse instantiates a new OpenShiftChangeRequestCollectionResponse and sets the default values. +// NewOpenShiftChangeRequestCollectionResponse instantiates a new openShiftChangeRequestCollectionResponse and sets the default values. func NewOpenShiftChangeRequestCollectionResponse()(*OpenShiftChangeRequestCollectionResponse) { m := &OpenShiftChangeRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/open_shift_collection_response.go b/models/open_shift_collection_response.go index b018c66207c..7f39661a507 100644 --- a/models/open_shift_collection_response.go +++ b/models/open_shift_collection_response.go @@ -8,7 +8,7 @@ import ( type OpenShiftCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOpenShiftCollectionResponse instantiates a new OpenShiftCollectionResponse and sets the default values. +// NewOpenShiftCollectionResponse instantiates a new openShiftCollectionResponse and sets the default values. func NewOpenShiftCollectionResponse()(*OpenShiftCollectionResponse) { m := &OpenShiftCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/open_shift_item.go b/models/open_shift_item.go index eae6f703f75..4930ae17a7f 100644 --- a/models/open_shift_item.go +++ b/models/open_shift_item.go @@ -8,7 +8,7 @@ import ( type OpenShiftItem struct { ShiftItem } -// NewOpenShiftItem instantiates a new OpenShiftItem and sets the default values. +// NewOpenShiftItem instantiates a new openShiftItem and sets the default values. func NewOpenShiftItem()(*OpenShiftItem) { m := &OpenShiftItem{ ShiftItem: *NewShiftItem(), diff --git a/models/open_type_extension.go b/models/open_type_extension.go index b12651f153a..400650955bd 100644 --- a/models/open_type_extension.go +++ b/models/open_type_extension.go @@ -8,7 +8,7 @@ import ( type OpenTypeExtension struct { Extension } -// NewOpenTypeExtension instantiates a new OpenTypeExtension and sets the default values. +// NewOpenTypeExtension instantiates a new openTypeExtension and sets the default values. func NewOpenTypeExtension()(*OpenTypeExtension) { m := &OpenTypeExtension{ Extension: *NewExtension(), diff --git a/models/operation.go b/models/operation.go index 31a0372318f..ccdf204af3a 100644 --- a/models/operation.go +++ b/models/operation.go @@ -8,6 +8,8 @@ import ( // Operation type Operation struct { Entity + // The OdataType property + OdataType *string } // NewOperation instantiates a new operation and sets the default values. func NewOperation()(*Operation) { diff --git a/models/org_contact.go b/models/org_contact.go index e0b3974e98a..d4be516ea84 100644 --- a/models/org_contact.go +++ b/models/org_contact.go @@ -9,7 +9,7 @@ import ( type OrgContact struct { DirectoryObject } -// NewOrgContact instantiates a new OrgContact and sets the default values. +// NewOrgContact instantiates a new orgContact and sets the default values. func NewOrgContact()(*OrgContact) { m := &OrgContact{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/org_contact_collection_response.go b/models/org_contact_collection_response.go index ad483383dc8..27a8e8735e1 100644 --- a/models/org_contact_collection_response.go +++ b/models/org_contact_collection_response.go @@ -8,7 +8,7 @@ import ( type OrgContactCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOrgContactCollectionResponse instantiates a new OrgContactCollectionResponse and sets the default values. +// NewOrgContactCollectionResponse instantiates a new orgContactCollectionResponse and sets the default values. func NewOrgContactCollectionResponse()(*OrgContactCollectionResponse) { m := &OrgContactCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/organization.go b/models/organization.go index 0b5254db05a..b507e178ac6 100644 --- a/models/organization.go +++ b/models/organization.go @@ -9,7 +9,7 @@ import ( type Organization struct { DirectoryObject } -// NewOrganization instantiates a new Organization and sets the default values. +// NewOrganization instantiates a new organization and sets the default values. func NewOrganization()(*Organization) { m := &Organization{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/organization_collection_response.go b/models/organization_collection_response.go index 22af2383763..3204eb6beb0 100644 --- a/models/organization_collection_response.go +++ b/models/organization_collection_response.go @@ -8,7 +8,7 @@ import ( type OrganizationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOrganizationCollectionResponse instantiates a new OrganizationCollectionResponse and sets the default values. +// NewOrganizationCollectionResponse instantiates a new organizationCollectionResponse and sets the default values. func NewOrganizationCollectionResponse()(*OrganizationCollectionResponse) { m := &OrganizationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/organization_settings.go b/models/organization_settings.go index 198e417f0ca..11dbf95dcef 100644 --- a/models/organization_settings.go +++ b/models/organization_settings.go @@ -7,6 +7,8 @@ import ( // OrganizationSettings type OrganizationSettings struct { Entity + // The OdataType property + OdataType *string } // NewOrganizationSettings instantiates a new organizationSettings and sets the default values. func NewOrganizationSettings()(*OrganizationSettings) { @@ -145,7 +147,7 @@ func (m *OrganizationSettings) GetProfileCardProperties()([]ProfileCardPropertya } return nil } -// GetPronouns gets the pronouns property value. Represents administrator settings that manage the support of pronouns in an organization. +// GetPronouns gets the pronouns property value. The pronouns property func (m *OrganizationSettings) GetPronouns()(PronounsSettingsable) { val, err := m.GetBackingStore().Get("pronouns") if err != nil { @@ -241,7 +243,7 @@ func (m *OrganizationSettings) SetProfileCardProperties(value []ProfileCardPrope panic(err) } } -// SetPronouns sets the pronouns property value. Represents administrator settings that manage the support of pronouns in an organization. +// SetPronouns sets the pronouns property value. The pronouns property func (m *OrganizationSettings) SetPronouns(value PronounsSettingsable)() { err := m.GetBackingStore().Set("pronouns", value) if err != nil { diff --git a/models/organizational_branding.go b/models/organizational_branding.go index d3c01d44a84..2ad21732c18 100644 --- a/models/organizational_branding.go +++ b/models/organizational_branding.go @@ -8,7 +8,7 @@ import ( type OrganizationalBranding struct { OrganizationalBrandingProperties } -// NewOrganizationalBranding instantiates a new OrganizationalBranding and sets the default values. +// NewOrganizationalBranding instantiates a new organizationalBranding and sets the default values. func NewOrganizationalBranding()(*OrganizationalBranding) { m := &OrganizationalBranding{ OrganizationalBrandingProperties: *NewOrganizationalBrandingProperties(), diff --git a/models/organizational_branding_localization_collection_response.go b/models/organizational_branding_localization_collection_response.go index 8e02f5bd34e..f74ce602749 100644 --- a/models/organizational_branding_localization_collection_response.go +++ b/models/organizational_branding_localization_collection_response.go @@ -8,7 +8,7 @@ import ( type OrganizationalBrandingLocalizationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOrganizationalBrandingLocalizationCollectionResponse instantiates a new OrganizationalBrandingLocalizationCollectionResponse and sets the default values. +// NewOrganizationalBrandingLocalizationCollectionResponse instantiates a new organizationalBrandingLocalizationCollectionResponse and sets the default values. func NewOrganizationalBrandingLocalizationCollectionResponse()(*OrganizationalBrandingLocalizationCollectionResponse) { m := &OrganizationalBrandingLocalizationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/organizational_branding_properties.go b/models/organizational_branding_properties.go index 6dc19430b15..8dcda46e0ac 100644 --- a/models/organizational_branding_properties.go +++ b/models/organizational_branding_properties.go @@ -7,6 +7,8 @@ import ( // OrganizationalBrandingProperties type OrganizationalBrandingProperties struct { Entity + // The OdataType property + OdataType *string } // NewOrganizationalBrandingProperties instantiates a new organizationalBrandingProperties and sets the default values. func NewOrganizationalBrandingProperties()(*OrganizationalBrandingProperties) { diff --git a/models/organizer_meeting_info.go b/models/organizer_meeting_info.go index ce7c894f96a..e24f81acbcf 100644 --- a/models/organizer_meeting_info.go +++ b/models/organizer_meeting_info.go @@ -7,8 +7,10 @@ import ( // OrganizerMeetingInfo type OrganizerMeetingInfo struct { MeetingInfo + // The OdataType property + OdataType *string } -// NewOrganizerMeetingInfo instantiates a new OrganizerMeetingInfo and sets the default values. +// NewOrganizerMeetingInfo instantiates a new organizerMeetingInfo and sets the default values. func NewOrganizerMeetingInfo()(*OrganizerMeetingInfo) { m := &OrganizerMeetingInfo{ MeetingInfo: *NewMeetingInfo(), diff --git a/models/outbound_shared_user_profile.go b/models/outbound_shared_user_profile.go index 189cf68bc45..22bd81d3e64 100644 --- a/models/outbound_shared_user_profile.go +++ b/models/outbound_shared_user_profile.go @@ -10,7 +10,7 @@ type OutboundSharedUserProfile struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewOutboundSharedUserProfile instantiates a new OutboundSharedUserProfile and sets the default values. +// NewOutboundSharedUserProfile instantiates a new outboundSharedUserProfile and sets the default values. func NewOutboundSharedUserProfile()(*OutboundSharedUserProfile) { m := &OutboundSharedUserProfile{ } diff --git a/models/outbound_shared_user_profile_collection_response.go b/models/outbound_shared_user_profile_collection_response.go index fe59e6c70ed..871c61d3103 100644 --- a/models/outbound_shared_user_profile_collection_response.go +++ b/models/outbound_shared_user_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type OutboundSharedUserProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOutboundSharedUserProfileCollectionResponse instantiates a new OutboundSharedUserProfileCollectionResponse and sets the default values. +// NewOutboundSharedUserProfileCollectionResponse instantiates a new outboundSharedUserProfileCollectionResponse and sets the default values. func NewOutboundSharedUserProfileCollectionResponse()(*OutboundSharedUserProfileCollectionResponse) { m := &OutboundSharedUserProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/outgoing_call_options.go b/models/outgoing_call_options.go index a1a967766e3..4317721c34d 100644 --- a/models/outgoing_call_options.go +++ b/models/outgoing_call_options.go @@ -8,7 +8,7 @@ import ( type OutgoingCallOptions struct { CallOptions } -// NewOutgoingCallOptions instantiates a new OutgoingCallOptions and sets the default values. +// NewOutgoingCallOptions instantiates a new outgoingCallOptions and sets the default values. func NewOutgoingCallOptions()(*OutgoingCallOptions) { m := &OutgoingCallOptions{ CallOptions: *NewCallOptions(), @@ -24,18 +24,54 @@ func CreateOutgoingCallOptionsFromDiscriminatorValue(parseNode i878a80d2330e89d2 // GetFieldDeserializers the deserialization information for the current model func (m *OutgoingCallOptions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.CallOptions.GetFieldDeserializers() + 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 *OutgoingCallOptions) 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 *OutgoingCallOptions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.CallOptions.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OutgoingCallOptions) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // OutgoingCallOptionsable type OutgoingCallOptionsable interface { CallOptionsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/outlook_category.go b/models/outlook_category.go index 0abde5f2e5c..9b3a48b629c 100644 --- a/models/outlook_category.go +++ b/models/outlook_category.go @@ -7,6 +7,8 @@ import ( // OutlookCategory type OutlookCategory struct { Entity + // The OdataType property + OdataType *string } // NewOutlookCategory instantiates a new outlookCategory and sets the default values. func NewOutlookCategory()(*OutlookCategory) { diff --git a/models/outlook_category_collection_response.go b/models/outlook_category_collection_response.go index 362a9e8a81d..ad0de2d3820 100644 --- a/models/outlook_category_collection_response.go +++ b/models/outlook_category_collection_response.go @@ -8,7 +8,7 @@ import ( type OutlookCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOutlookCategoryCollectionResponse instantiates a new OutlookCategoryCollectionResponse and sets the default values. +// NewOutlookCategoryCollectionResponse instantiates a new outlookCategoryCollectionResponse and sets the default values. func NewOutlookCategoryCollectionResponse()(*OutlookCategoryCollectionResponse) { m := &OutlookCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/outlook_item.go b/models/outlook_item.go index 85dd3fcb53b..828f7243116 100644 --- a/models/outlook_item.go +++ b/models/outlook_item.go @@ -8,6 +8,8 @@ import ( // OutlookItem type OutlookItem struct { Entity + // The OdataType property + OdataType *string } // NewOutlookItem instantiates a new outlookItem and sets the default values. func NewOutlookItem()(*OutlookItem) { diff --git a/models/outlook_task.go b/models/outlook_task.go index bb3e087b28e..998848eb8c5 100644 --- a/models/outlook_task.go +++ b/models/outlook_task.go @@ -8,7 +8,7 @@ import ( type OutlookTask struct { OutlookItem } -// NewOutlookTask instantiates a new OutlookTask and sets the default values. +// NewOutlookTask instantiates a new outlookTask and sets the default values. func NewOutlookTask()(*OutlookTask) { m := &OutlookTask{ OutlookItem: *NewOutlookItem(), diff --git a/models/outlook_task_collection_response.go b/models/outlook_task_collection_response.go index 3f4d0e2599a..a9437f2bcc9 100644 --- a/models/outlook_task_collection_response.go +++ b/models/outlook_task_collection_response.go @@ -8,7 +8,7 @@ import ( type OutlookTaskCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOutlookTaskCollectionResponse instantiates a new OutlookTaskCollectionResponse and sets the default values. +// NewOutlookTaskCollectionResponse instantiates a new outlookTaskCollectionResponse and sets the default values. func NewOutlookTaskCollectionResponse()(*OutlookTaskCollectionResponse) { m := &OutlookTaskCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/outlook_task_folder.go b/models/outlook_task_folder.go index 21737bee01c..86e30aaf6ae 100644 --- a/models/outlook_task_folder.go +++ b/models/outlook_task_folder.go @@ -8,6 +8,8 @@ import ( // OutlookTaskFolder type OutlookTaskFolder struct { Entity + // The OdataType property + OdataType *string } // NewOutlookTaskFolder instantiates a new outlookTaskFolder and sets the default values. func NewOutlookTaskFolder()(*OutlookTaskFolder) { diff --git a/models/outlook_task_folder_collection_response.go b/models/outlook_task_folder_collection_response.go index 002841ea56d..44a232f6120 100644 --- a/models/outlook_task_folder_collection_response.go +++ b/models/outlook_task_folder_collection_response.go @@ -8,7 +8,7 @@ import ( type OutlookTaskFolderCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOutlookTaskFolderCollectionResponse instantiates a new OutlookTaskFolderCollectionResponse and sets the default values. +// NewOutlookTaskFolderCollectionResponse instantiates a new outlookTaskFolderCollectionResponse and sets the default values. func NewOutlookTaskFolderCollectionResponse()(*OutlookTaskFolderCollectionResponse) { m := &OutlookTaskFolderCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/outlook_task_group.go b/models/outlook_task_group.go index b09842fdb7e..5d73483ed55 100644 --- a/models/outlook_task_group.go +++ b/models/outlook_task_group.go @@ -8,6 +8,8 @@ import ( // OutlookTaskGroup type OutlookTaskGroup struct { Entity + // The OdataType property + OdataType *string } // NewOutlookTaskGroup instantiates a new outlookTaskGroup and sets the default values. func NewOutlookTaskGroup()(*OutlookTaskGroup) { diff --git a/models/outlook_task_group_collection_response.go b/models/outlook_task_group_collection_response.go index 1bf65e595de..761ce1f21bd 100644 --- a/models/outlook_task_group_collection_response.go +++ b/models/outlook_task_group_collection_response.go @@ -8,7 +8,7 @@ import ( type OutlookTaskGroupCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewOutlookTaskGroupCollectionResponse instantiates a new OutlookTaskGroupCollectionResponse and sets the default values. +// NewOutlookTaskGroupCollectionResponse instantiates a new outlookTaskGroupCollectionResponse and sets the default values. func NewOutlookTaskGroupCollectionResponse()(*OutlookTaskGroupCollectionResponse) { m := &OutlookTaskGroupCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/outlook_user.go b/models/outlook_user.go index b5318b6be78..c739c817c7d 100644 --- a/models/outlook_user.go +++ b/models/outlook_user.go @@ -7,6 +7,8 @@ import ( // OutlookUser type OutlookUser struct { Entity + // The OdataType property + OdataType *string } // NewOutlookUser instantiates a new outlookUser and sets the default values. func NewOutlookUser()(*OutlookUser) { diff --git a/models/package_escaped.go b/models/package_escaped.go index 91e8f75982f..fb111069b8d 100644 --- a/models/package_escaped.go +++ b/models/package_escaped.go @@ -132,3 +132,15 @@ func (m *PackageEscaped) SetType(value *string)() { panic(err) } } +// PackageEscapedable +type PackageEscapedable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetType(value *string)() +} diff --git a/models/package_escapedable.go b/models/package_escapedable.go deleted file mode 100644 index c002616a780..00000000000 --- a/models/package_escapedable.go +++ /dev/null @@ -1,19 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -// PackageEscapedable -type PackageEscapedable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetOdataType()(*string) - GetType()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetOdataType(value *string)() - SetType(value *string)() -} diff --git a/models/participant.go b/models/participant.go index 3d020ba0507..5715ce482c7 100644 --- a/models/participant.go +++ b/models/participant.go @@ -7,6 +7,8 @@ import ( // Participant type Participant struct { Entity + // The OdataType property + OdataType *string } // NewParticipant instantiates a new participant and sets the default values. func NewParticipant()(*Participant) { diff --git a/models/participant_collection_response.go b/models/participant_collection_response.go index 0333dab17f2..a40b91ee5a6 100644 --- a/models/participant_collection_response.go +++ b/models/participant_collection_response.go @@ -8,7 +8,7 @@ import ( type ParticipantCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewParticipantCollectionResponse instantiates a new ParticipantCollectionResponse and sets the default values. +// NewParticipantCollectionResponse instantiates a new participantCollectionResponse and sets the default values. func NewParticipantCollectionResponse()(*ParticipantCollectionResponse) { m := &ParticipantCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/participant_joining_notification.go b/models/participant_joining_notification.go index 670f15755f4..905977e2a95 100644 --- a/models/participant_joining_notification.go +++ b/models/participant_joining_notification.go @@ -7,8 +7,10 @@ import ( // ParticipantJoiningNotification type ParticipantJoiningNotification struct { Entity + // The OdataType property + OdataType *string } -// NewParticipantJoiningNotification instantiates a new ParticipantJoiningNotification and sets the default values. +// NewParticipantJoiningNotification instantiates a new participantJoiningNotification and sets the default values. func NewParticipantJoiningNotification()(*ParticipantJoiningNotification) { m := &ParticipantJoiningNotification{ Entity: *NewEntity(), diff --git a/models/participant_left_notification.go b/models/participant_left_notification.go index 16af8959327..79a7551ff64 100644 --- a/models/participant_left_notification.go +++ b/models/participant_left_notification.go @@ -7,8 +7,10 @@ import ( // ParticipantLeftNotification type ParticipantLeftNotification struct { Entity + // The OdataType property + OdataType *string } -// NewParticipantLeftNotification instantiates a new ParticipantLeftNotification and sets the default values. +// NewParticipantLeftNotification instantiates a new participantLeftNotification and sets the default values. func NewParticipantLeftNotification()(*ParticipantLeftNotification) { m := &ParticipantLeftNotification{ Entity: *NewEntity(), diff --git a/models/password_authentication_method.go b/models/password_authentication_method.go index 02960e48972..5a51b5ac58d 100644 --- a/models/password_authentication_method.go +++ b/models/password_authentication_method.go @@ -9,7 +9,7 @@ import ( type PasswordAuthenticationMethod struct { AuthenticationMethod } -// NewPasswordAuthenticationMethod instantiates a new PasswordAuthenticationMethod and sets the default values. +// NewPasswordAuthenticationMethod instantiates a new passwordAuthenticationMethod and sets the default values. func NewPasswordAuthenticationMethod()(*PasswordAuthenticationMethod) { m := &PasswordAuthenticationMethod{ AuthenticationMethod: *NewAuthenticationMethod(), diff --git a/models/password_authentication_method_collection_response.go b/models/password_authentication_method_collection_response.go index 7ae16d5b123..9d6d1ce755e 100644 --- a/models/password_authentication_method_collection_response.go +++ b/models/password_authentication_method_collection_response.go @@ -8,7 +8,7 @@ import ( type PasswordAuthenticationMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPasswordAuthenticationMethodCollectionResponse instantiates a new PasswordAuthenticationMethodCollectionResponse and sets the default values. +// NewPasswordAuthenticationMethodCollectionResponse instantiates a new passwordAuthenticationMethodCollectionResponse and sets the default values. func NewPasswordAuthenticationMethodCollectionResponse()(*PasswordAuthenticationMethodCollectionResponse) { m := &PasswordAuthenticationMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/password_credential.go b/models/password_credential.go index 1e58da7b0f4..0c4d4e57649 100644 --- a/models/password_credential.go +++ b/models/password_credential.go @@ -12,7 +12,7 @@ type PasswordCredential struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPasswordCredential instantiates a new PasswordCredential and sets the default values. +// NewPasswordCredential instantiates a new passwordCredential and sets the default values. func NewPasswordCredential()(*PasswordCredential) { m := &PasswordCredential{ } diff --git a/models/passwordless_microsoft_authenticator_authentication_method.go b/models/passwordless_microsoft_authenticator_authentication_method.go index f2be3965ad3..0cf3f6bf4bd 100644 --- a/models/passwordless_microsoft_authenticator_authentication_method.go +++ b/models/passwordless_microsoft_authenticator_authentication_method.go @@ -9,7 +9,7 @@ import ( type PasswordlessMicrosoftAuthenticatorAuthenticationMethod struct { AuthenticationMethod } -// NewPasswordlessMicrosoftAuthenticatorAuthenticationMethod instantiates a new PasswordlessMicrosoftAuthenticatorAuthenticationMethod and sets the default values. +// NewPasswordlessMicrosoftAuthenticatorAuthenticationMethod instantiates a new passwordlessMicrosoftAuthenticatorAuthenticationMethod and sets the default values. func NewPasswordlessMicrosoftAuthenticatorAuthenticationMethod()(*PasswordlessMicrosoftAuthenticatorAuthenticationMethod) { m := &PasswordlessMicrosoftAuthenticatorAuthenticationMethod{ AuthenticationMethod: *NewAuthenticationMethod(), diff --git a/models/passwordless_microsoft_authenticator_authentication_method_collection_response.go b/models/passwordless_microsoft_authenticator_authentication_method_collection_response.go index acd43d7344e..bbde9041454 100644 --- a/models/passwordless_microsoft_authenticator_authentication_method_collection_response.go +++ b/models/passwordless_microsoft_authenticator_authentication_method_collection_response.go @@ -8,7 +8,7 @@ import ( type PasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionResponse instantiates a new PasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionResponse and sets the default values. +// NewPasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionResponse instantiates a new passwordlessMicrosoftAuthenticatorAuthenticationMethodCollectionResponse and sets the default values. func NewPasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionResponse()(*PasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionResponse) { m := &PasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/payload.go b/models/payload.go index a47b760ddd6..709f2a51a44 100644 --- a/models/payload.go +++ b/models/payload.go @@ -8,6 +8,8 @@ import ( // Payload type Payload struct { Entity + // The OdataType property + OdataType *string } // NewPayload instantiates a new payload and sets the default values. func NewPayload()(*Payload) { diff --git a/models/payload_collection_response.go b/models/payload_collection_response.go index 737c4b1b2d8..fa921b3936c 100644 --- a/models/payload_collection_response.go +++ b/models/payload_collection_response.go @@ -8,7 +8,7 @@ import ( type PayloadCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPayloadCollectionResponse instantiates a new PayloadCollectionResponse and sets the default values. +// NewPayloadCollectionResponse instantiates a new payloadCollectionResponse and sets the default values. func NewPayloadCollectionResponse()(*PayloadCollectionResponse) { m := &PayloadCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/payload_compatible_assignment_filter.go b/models/payload_compatible_assignment_filter.go index ee403cd72c3..529000dd230 100644 --- a/models/payload_compatible_assignment_filter.go +++ b/models/payload_compatible_assignment_filter.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// PayloadCompatibleAssignmentFilter +// PayloadCompatibleAssignmentFilter a class containing the properties used for Payload Compatible Assignment Filter. type PayloadCompatibleAssignmentFilter struct { DeviceAndAppManagementAssignmentFilter } -// NewPayloadCompatibleAssignmentFilter instantiates a new PayloadCompatibleAssignmentFilter and sets the default values. +// NewPayloadCompatibleAssignmentFilter instantiates a new payloadCompatibleAssignmentFilter and sets the default values. func NewPayloadCompatibleAssignmentFilter()(*PayloadCompatibleAssignmentFilter) { m := &PayloadCompatibleAssignmentFilter{ DeviceAndAppManagementAssignmentFilter: *NewDeviceAndAppManagementAssignmentFilter(), diff --git a/models/payload_response.go b/models/payload_response.go index c6119cb29d4..70fd6dfe8b1 100644 --- a/models/payload_response.go +++ b/models/payload_response.go @@ -7,6 +7,8 @@ import ( // PayloadResponse type PayloadResponse struct { Entity + // The OdataType property + OdataType *string } // NewPayloadResponse instantiates a new payloadResponse and sets the default values. func NewPayloadResponse()(*PayloadResponse) { diff --git a/models/payload_response_collection_response.go b/models/payload_response_collection_response.go index 4dfc412ac2f..ee924792b9c 100644 --- a/models/payload_response_collection_response.go +++ b/models/payload_response_collection_response.go @@ -8,7 +8,7 @@ import ( type PayloadResponseCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPayloadResponseCollectionResponse instantiates a new PayloadResponseCollectionResponse and sets the default values. +// NewPayloadResponseCollectionResponse instantiates a new payloadResponseCollectionResponse and sets the default values. func NewPayloadResponseCollectionResponse()(*PayloadResponseCollectionResponse) { m := &PayloadResponseCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/payload_types.go b/models/payload_types.go index 42cb78b85b6..0d941228565 100644 --- a/models/payload_types.go +++ b/models/payload_types.go @@ -10,7 +10,7 @@ type PayloadTypes struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPayloadTypes instantiates a new PayloadTypes and sets the default values. +// NewPayloadTypes instantiates a new payloadTypes and sets the default values. func NewPayloadTypes()(*PayloadTypes) { m := &PayloadTypes{ } diff --git a/models/payment_method.go b/models/payment_method.go index 91c6f8c59fa..2043aa9f461 100644 --- a/models/payment_method.go +++ b/models/payment_method.go @@ -12,7 +12,7 @@ type PaymentMethod struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPaymentMethod instantiates a new PaymentMethod and sets the default values. +// NewPaymentMethod instantiates a new paymentMethod and sets the default values. func NewPaymentMethod()(*PaymentMethod) { m := &PaymentMethod{ } diff --git a/models/payment_method_collection_response.go b/models/payment_method_collection_response.go index 8cfa7320a0c..13b346405ca 100644 --- a/models/payment_method_collection_response.go +++ b/models/payment_method_collection_response.go @@ -8,7 +8,7 @@ import ( type PaymentMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPaymentMethodCollectionResponse instantiates a new PaymentMethodCollectionResponse and sets the default values. +// NewPaymentMethodCollectionResponse instantiates a new paymentMethodCollectionResponse and sets the default values. func NewPaymentMethodCollectionResponse()(*PaymentMethodCollectionResponse) { m := &PaymentMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/payment_term_collection_response.go b/models/payment_term_collection_response.go index 5c4b0579905..7e9cbd37e3a 100644 --- a/models/payment_term_collection_response.go +++ b/models/payment_term_collection_response.go @@ -8,7 +8,7 @@ import ( type PaymentTermCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPaymentTermCollectionResponse instantiates a new PaymentTermCollectionResponse and sets the default values. +// NewPaymentTermCollectionResponse instantiates a new paymentTermCollectionResponse and sets the default values. func NewPaymentTermCollectionResponse()(*PaymentTermCollectionResponse) { m := &PaymentTermCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/people_admin_settings.go b/models/people_admin_settings.go new file mode 100644 index 00000000000..c4d563c698f --- /dev/null +++ b/models/people_admin_settings.go @@ -0,0 +1,77 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// PeopleAdminSettings +type PeopleAdminSettings struct { + Entity + // The OdataType property + OdataType *string +} +// NewPeopleAdminSettings instantiates a new peopleAdminSettings and sets the default values. +func NewPeopleAdminSettings()(*PeopleAdminSettings) { + m := &PeopleAdminSettings{ + Entity: *NewEntity(), + } + return m +} +// CreatePeopleAdminSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreatePeopleAdminSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPeopleAdminSettings(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *PeopleAdminSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["pronouns"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePronounsSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPronouns(val.(PronounsSettingsable)) + } + return nil + } + return res +} +// GetPronouns gets the pronouns property value. Represents administrator settings that manage the support of pronouns in an organization. +func (m *PeopleAdminSettings) GetPronouns()(PronounsSettingsable) { + val, err := m.GetBackingStore().Get("pronouns") + if err != nil { + panic(err) + } + if val != nil { + return val.(PronounsSettingsable) + } + return nil +} +// Serialize serializes information the current object +func (m *PeopleAdminSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("pronouns", m.GetPronouns()) + if err != nil { + return err + } + } + return nil +} +// SetPronouns sets the pronouns property value. Represents administrator settings that manage the support of pronouns in an organization. +func (m *PeopleAdminSettings) SetPronouns(value PronounsSettingsable)() { + err := m.GetBackingStore().Set("pronouns", value) + if err != nil { + panic(err) + } +} +// PeopleAdminSettingsable +type PeopleAdminSettingsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPronouns()(PronounsSettingsable) + SetPronouns(value PronounsSettingsable)() +} diff --git a/models/permission.go b/models/permission.go index 20f3adfba36..190fb1da7ee 100644 --- a/models/permission.go +++ b/models/permission.go @@ -8,6 +8,8 @@ import ( // Permission type Permission struct { Entity + // The OdataType property + OdataType *string } // NewPermission instantiates a new permission and sets the default values. func NewPermission()(*Permission) { diff --git a/models/permission_collection_response.go b/models/permission_collection_response.go index ddeb0e5d5a2..0e94489a8b8 100644 --- a/models/permission_collection_response.go +++ b/models/permission_collection_response.go @@ -8,7 +8,7 @@ import ( type PermissionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPermissionCollectionResponse instantiates a new PermissionCollectionResponse and sets the default values. +// NewPermissionCollectionResponse instantiates a new permissionCollectionResponse and sets the default values. func NewPermissionCollectionResponse()(*PermissionCollectionResponse) { m := &PermissionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/permission_grant_condition_set.go b/models/permission_grant_condition_set.go index 55e4166f25f..de3f14a49bb 100644 --- a/models/permission_grant_condition_set.go +++ b/models/permission_grant_condition_set.go @@ -145,6 +145,16 @@ func (m *PermissionGrantConditionSet) GetFieldDeserializers()(map[string]func(i8 } 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["permissionClassification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -193,6 +203,17 @@ func (m *PermissionGrantConditionSet) GetFieldDeserializers()(map[string]func(i8 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PermissionGrantConditionSet) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPermissionClassification gets the permissionClassification property value. The permission classification for the permission being granted, or all to match with any permission classification (including permissions which are not classified). Default is all. func (m *PermissionGrantConditionSet) GetPermissionClassification()(*string) { val, err := m.GetBackingStore().Get("permissionClassification") @@ -273,6 +294,12 @@ func (m *PermissionGrantConditionSet) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("permissionClassification", m.GetPermissionClassification()) if err != nil { @@ -335,6 +362,13 @@ func (m *PermissionGrantConditionSet) SetClientApplicationTenantIds(value []stri panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PermissionGrantConditionSet) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPermissionClassification sets the permissionClassification property value. The permission classification for the permission being granted, or all to match with any permission classification (including permissions which are not classified). Default is all. func (m *PermissionGrantConditionSet) SetPermissionClassification(value *string)() { err := m.GetBackingStore().Set("permissionClassification", value) @@ -372,6 +406,7 @@ type PermissionGrantConditionSetable interface { GetClientApplicationPublisherIds()([]string) GetClientApplicationsFromVerifiedPublisherOnly()(*bool) GetClientApplicationTenantIds()([]string) + GetOdataType()(*string) GetPermissionClassification()(*string) GetPermissions()([]string) GetPermissionType()(*PermissionType) @@ -381,6 +416,7 @@ type PermissionGrantConditionSetable interface { SetClientApplicationPublisherIds(value []string)() SetClientApplicationsFromVerifiedPublisherOnly(value *bool)() SetClientApplicationTenantIds(value []string)() + SetOdataType(value *string)() SetPermissionClassification(value *string)() SetPermissions(value []string)() SetPermissionType(value *PermissionType)() diff --git a/models/permission_grant_condition_set_collection_response.go b/models/permission_grant_condition_set_collection_response.go index 1321944ccca..8936fb4504d 100644 --- a/models/permission_grant_condition_set_collection_response.go +++ b/models/permission_grant_condition_set_collection_response.go @@ -8,7 +8,7 @@ import ( type PermissionGrantConditionSetCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPermissionGrantConditionSetCollectionResponse instantiates a new PermissionGrantConditionSetCollectionResponse and sets the default values. +// NewPermissionGrantConditionSetCollectionResponse instantiates a new permissionGrantConditionSetCollectionResponse and sets the default values. func NewPermissionGrantConditionSetCollectionResponse()(*PermissionGrantConditionSetCollectionResponse) { m := &PermissionGrantConditionSetCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/permission_grant_policy.go b/models/permission_grant_policy.go index e389d376910..cc0be23944f 100644 --- a/models/permission_grant_policy.go +++ b/models/permission_grant_policy.go @@ -8,7 +8,7 @@ import ( type PermissionGrantPolicy struct { PolicyBase } -// NewPermissionGrantPolicy instantiates a new PermissionGrantPolicy and sets the default values. +// NewPermissionGrantPolicy instantiates a new permissionGrantPolicy and sets the default values. func NewPermissionGrantPolicy()(*PermissionGrantPolicy) { m := &PermissionGrantPolicy{ PolicyBase: *NewPolicyBase(), diff --git a/models/permission_grant_policy_collection_response.go b/models/permission_grant_policy_collection_response.go index 4864abbd9a1..1e213f19324 100644 --- a/models/permission_grant_policy_collection_response.go +++ b/models/permission_grant_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type PermissionGrantPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPermissionGrantPolicyCollectionResponse instantiates a new PermissionGrantPolicyCollectionResponse and sets the default values. +// NewPermissionGrantPolicyCollectionResponse instantiates a new permissionGrantPolicyCollectionResponse and sets the default values. func NewPermissionGrantPolicyCollectionResponse()(*PermissionGrantPolicyCollectionResponse) { m := &PermissionGrantPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/permission_scope.go b/models/permission_scope.go index c102ce3a748..5665a64e103 100644 --- a/models/permission_scope.go +++ b/models/permission_scope.go @@ -11,7 +11,7 @@ type PermissionScope struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPermissionScope instantiates a new PermissionScope and sets the default values. +// NewPermissionScope instantiates a new permissionScope and sets the default values. func NewPermissionScope()(*PermissionScope) { m := &PermissionScope{ } diff --git a/models/persistent_browser_session_control.go b/models/persistent_browser_session_control.go index 3e66203ec4e..9236cd995cd 100644 --- a/models/persistent_browser_session_control.go +++ b/models/persistent_browser_session_control.go @@ -7,8 +7,10 @@ import ( // PersistentBrowserSessionControl type PersistentBrowserSessionControl struct { ConditionalAccessSessionControl + // The OdataType property + OdataType *string } -// NewPersistentBrowserSessionControl instantiates a new PersistentBrowserSessionControl and sets the default values. +// NewPersistentBrowserSessionControl instantiates a new persistentBrowserSessionControl and sets the default values. func NewPersistentBrowserSessionControl()(*PersistentBrowserSessionControl) { m := &PersistentBrowserSessionControl{ ConditionalAccessSessionControl: *NewConditionalAccessSessionControl(), diff --git a/models/person.go b/models/person.go index fc801fb2216..a63510332b5 100644 --- a/models/person.go +++ b/models/person.go @@ -7,6 +7,8 @@ import ( // Person type Person struct { Entity + // The OdataType property + OdataType *string } // NewPerson instantiates a new person and sets the default values. func NewPerson()(*Person) { diff --git a/models/person_annotation.go b/models/person_annotation.go index b7ba80e43b8..bd2021b2815 100644 --- a/models/person_annotation.go +++ b/models/person_annotation.go @@ -8,7 +8,7 @@ import ( type PersonAnnotation struct { ItemFacet } -// NewPersonAnnotation instantiates a new PersonAnnotation and sets the default values. +// NewPersonAnnotation instantiates a new personAnnotation and sets the default values. func NewPersonAnnotation()(*PersonAnnotation) { m := &PersonAnnotation{ ItemFacet: *NewItemFacet(), diff --git a/models/person_annotation_collection_response.go b/models/person_annotation_collection_response.go index 91382a6034c..f600c123ac1 100644 --- a/models/person_annotation_collection_response.go +++ b/models/person_annotation_collection_response.go @@ -8,7 +8,7 @@ import ( type PersonAnnotationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPersonAnnotationCollectionResponse instantiates a new PersonAnnotationCollectionResponse and sets the default values. +// NewPersonAnnotationCollectionResponse instantiates a new personAnnotationCollectionResponse and sets the default values. func NewPersonAnnotationCollectionResponse()(*PersonAnnotationCollectionResponse) { m := &PersonAnnotationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/person_annual_event.go b/models/person_annual_event.go index f35a72c7abe..ff14e23af58 100644 --- a/models/person_annual_event.go +++ b/models/person_annual_event.go @@ -8,7 +8,7 @@ import ( type PersonAnnualEvent struct { ItemFacet } -// NewPersonAnnualEvent instantiates a new PersonAnnualEvent and sets the default values. +// NewPersonAnnualEvent instantiates a new personAnnualEvent and sets the default values. func NewPersonAnnualEvent()(*PersonAnnualEvent) { m := &PersonAnnualEvent{ ItemFacet: *NewItemFacet(), diff --git a/models/person_annual_event_collection_response.go b/models/person_annual_event_collection_response.go index 902810dd99f..acbb1ddcc11 100644 --- a/models/person_annual_event_collection_response.go +++ b/models/person_annual_event_collection_response.go @@ -8,7 +8,7 @@ import ( type PersonAnnualEventCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPersonAnnualEventCollectionResponse instantiates a new PersonAnnualEventCollectionResponse and sets the default values. +// NewPersonAnnualEventCollectionResponse instantiates a new personAnnualEventCollectionResponse and sets the default values. func NewPersonAnnualEventCollectionResponse()(*PersonAnnualEventCollectionResponse) { m := &PersonAnnualEventCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/person_award.go b/models/person_award.go index c0be9f742c5..0fc9635d7d3 100644 --- a/models/person_award.go +++ b/models/person_award.go @@ -8,7 +8,7 @@ import ( type PersonAward struct { ItemFacet } -// NewPersonAward instantiates a new PersonAward and sets the default values. +// NewPersonAward instantiates a new personAward and sets the default values. func NewPersonAward()(*PersonAward) { m := &PersonAward{ ItemFacet: *NewItemFacet(), diff --git a/models/person_award_collection_response.go b/models/person_award_collection_response.go index 6444b205ad5..b715dda0195 100644 --- a/models/person_award_collection_response.go +++ b/models/person_award_collection_response.go @@ -8,7 +8,7 @@ import ( type PersonAwardCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPersonAwardCollectionResponse instantiates a new PersonAwardCollectionResponse and sets the default values. +// NewPersonAwardCollectionResponse instantiates a new personAwardCollectionResponse and sets the default values. func NewPersonAwardCollectionResponse()(*PersonAwardCollectionResponse) { m := &PersonAwardCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/person_certification.go b/models/person_certification.go index 59411be1428..73c1d447d67 100644 --- a/models/person_certification.go +++ b/models/person_certification.go @@ -8,7 +8,7 @@ import ( type PersonCertification struct { ItemFacet } -// NewPersonCertification instantiates a new PersonCertification and sets the default values. +// NewPersonCertification instantiates a new personCertification and sets the default values. func NewPersonCertification()(*PersonCertification) { m := &PersonCertification{ ItemFacet: *NewItemFacet(), diff --git a/models/person_certification_collection_response.go b/models/person_certification_collection_response.go index d3b4201a086..a0f7455d4fd 100644 --- a/models/person_certification_collection_response.go +++ b/models/person_certification_collection_response.go @@ -8,7 +8,7 @@ import ( type PersonCertificationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPersonCertificationCollectionResponse instantiates a new PersonCertificationCollectionResponse and sets the default values. +// NewPersonCertificationCollectionResponse instantiates a new personCertificationCollectionResponse and sets the default values. func NewPersonCertificationCollectionResponse()(*PersonCertificationCollectionResponse) { m := &PersonCertificationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/person_collection_response.go b/models/person_collection_response.go index 7244a2cdf09..f562949d66b 100644 --- a/models/person_collection_response.go +++ b/models/person_collection_response.go @@ -8,7 +8,7 @@ import ( type PersonCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPersonCollectionResponse instantiates a new PersonCollectionResponse and sets the default values. +// NewPersonCollectionResponse instantiates a new personCollectionResponse and sets the default values. func NewPersonCollectionResponse()(*PersonCollectionResponse) { m := &PersonCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/person_extension.go b/models/person_extension.go index 5eb0a2d07d9..54c2e9b6f28 100644 --- a/models/person_extension.go +++ b/models/person_extension.go @@ -8,7 +8,7 @@ import ( type PersonExtension struct { Extension } -// NewPersonExtension instantiates a new PersonExtension and sets the default values. +// NewPersonExtension instantiates a new personExtension and sets the default values. func NewPersonExtension()(*PersonExtension) { m := &PersonExtension{ Extension: *NewExtension(), diff --git a/models/person_interest.go b/models/person_interest.go index 91b90d5c7ec..90cb2e74bfc 100644 --- a/models/person_interest.go +++ b/models/person_interest.go @@ -8,7 +8,7 @@ import ( type PersonInterest struct { ItemFacet } -// NewPersonInterest instantiates a new PersonInterest and sets the default values. +// NewPersonInterest instantiates a new personInterest and sets the default values. func NewPersonInterest()(*PersonInterest) { m := &PersonInterest{ ItemFacet: *NewItemFacet(), diff --git a/models/person_interest_collection_response.go b/models/person_interest_collection_response.go index 12647ae114b..a4ae377922d 100644 --- a/models/person_interest_collection_response.go +++ b/models/person_interest_collection_response.go @@ -8,7 +8,7 @@ import ( type PersonInterestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPersonInterestCollectionResponse instantiates a new PersonInterestCollectionResponse and sets the default values. +// NewPersonInterestCollectionResponse instantiates a new personInterestCollectionResponse and sets the default values. func NewPersonInterestCollectionResponse()(*PersonInterestCollectionResponse) { m := &PersonInterestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/person_name.go b/models/person_name.go index a076d9a833a..cdc05d880b3 100644 --- a/models/person_name.go +++ b/models/person_name.go @@ -8,7 +8,7 @@ import ( type PersonName struct { ItemFacet } -// NewPersonName instantiates a new PersonName and sets the default values. +// NewPersonName instantiates a new personName and sets the default values. func NewPersonName()(*PersonName) { m := &PersonName{ ItemFacet: *NewItemFacet(), diff --git a/models/person_name_collection_response.go b/models/person_name_collection_response.go index cb9217810f6..6ba1e43ee1f 100644 --- a/models/person_name_collection_response.go +++ b/models/person_name_collection_response.go @@ -8,7 +8,7 @@ import ( type PersonNameCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPersonNameCollectionResponse instantiates a new PersonNameCollectionResponse and sets the default values. +// NewPersonNameCollectionResponse instantiates a new personNameCollectionResponse and sets the default values. func NewPersonNameCollectionResponse()(*PersonNameCollectionResponse) { m := &PersonNameCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/person_responsibility.go b/models/person_responsibility.go index 124588df123..1f9e2ceecb0 100644 --- a/models/person_responsibility.go +++ b/models/person_responsibility.go @@ -8,7 +8,7 @@ import ( type PersonResponsibility struct { ItemFacet } -// NewPersonResponsibility instantiates a new PersonResponsibility and sets the default values. +// NewPersonResponsibility instantiates a new personResponsibility and sets the default values. func NewPersonResponsibility()(*PersonResponsibility) { m := &PersonResponsibility{ ItemFacet: *NewItemFacet(), diff --git a/models/person_website.go b/models/person_website.go index 5e37a954bac..fb88e756410 100644 --- a/models/person_website.go +++ b/models/person_website.go @@ -8,7 +8,7 @@ import ( type PersonWebsite struct { ItemFacet } -// NewPersonWebsite instantiates a new PersonWebsite and sets the default values. +// NewPersonWebsite instantiates a new personWebsite and sets the default values. func NewPersonWebsite()(*PersonWebsite) { m := &PersonWebsite{ ItemFacet: *NewItemFacet(), diff --git a/models/person_website_collection_response.go b/models/person_website_collection_response.go index eee4ea96787..c767ead54aa 100644 --- a/models/person_website_collection_response.go +++ b/models/person_website_collection_response.go @@ -8,7 +8,7 @@ import ( type PersonWebsiteCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPersonWebsiteCollectionResponse instantiates a new PersonWebsiteCollectionResponse and sets the default values. +// NewPersonWebsiteCollectionResponse instantiates a new personWebsiteCollectionResponse and sets the default values. func NewPersonWebsiteCollectionResponse()(*PersonWebsiteCollectionResponse) { m := &PersonWebsiteCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/phone_authentication_method.go b/models/phone_authentication_method.go index 586893f9ed0..568f287831a 100644 --- a/models/phone_authentication_method.go +++ b/models/phone_authentication_method.go @@ -8,7 +8,7 @@ import ( type PhoneAuthenticationMethod struct { AuthenticationMethod } -// NewPhoneAuthenticationMethod instantiates a new PhoneAuthenticationMethod and sets the default values. +// NewPhoneAuthenticationMethod instantiates a new phoneAuthenticationMethod and sets the default values. func NewPhoneAuthenticationMethod()(*PhoneAuthenticationMethod) { m := &PhoneAuthenticationMethod{ AuthenticationMethod: *NewAuthenticationMethod(), diff --git a/models/phone_authentication_method_collection_response.go b/models/phone_authentication_method_collection_response.go index fadc0903c33..2ad6146a6be 100644 --- a/models/phone_authentication_method_collection_response.go +++ b/models/phone_authentication_method_collection_response.go @@ -8,7 +8,7 @@ import ( type PhoneAuthenticationMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPhoneAuthenticationMethodCollectionResponse instantiates a new PhoneAuthenticationMethodCollectionResponse and sets the default values. +// NewPhoneAuthenticationMethodCollectionResponse instantiates a new phoneAuthenticationMethodCollectionResponse and sets the default values. func NewPhoneAuthenticationMethodCollectionResponse()(*PhoneAuthenticationMethodCollectionResponse) { m := &PhoneAuthenticationMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/picture.go b/models/picture.go index 691787414db..0592dec1da1 100644 --- a/models/picture.go +++ b/models/picture.go @@ -11,7 +11,7 @@ type Picture struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPicture instantiates a new Picture and sets the default values. +// NewPicture instantiates a new picture and sets the default values. func NewPicture()(*Picture) { m := &Picture{ } diff --git a/models/picture_collection_response.go b/models/picture_collection_response.go index 29e9714effc..0aa1dd05b57 100644 --- a/models/picture_collection_response.go +++ b/models/picture_collection_response.go @@ -8,7 +8,7 @@ import ( type PictureCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPictureCollectionResponse instantiates a new PictureCollectionResponse and sets the default values. +// NewPictureCollectionResponse instantiates a new pictureCollectionResponse and sets the default values. func NewPictureCollectionResponse()(*PictureCollectionResponse) { m := &PictureCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/pinned_chat_message_info.go b/models/pinned_chat_message_info.go index 558b81d72a0..20a35e12918 100644 --- a/models/pinned_chat_message_info.go +++ b/models/pinned_chat_message_info.go @@ -7,6 +7,8 @@ import ( // PinnedChatMessageInfo type PinnedChatMessageInfo struct { Entity + // The OdataType property + OdataType *string } // NewPinnedChatMessageInfo instantiates a new pinnedChatMessageInfo and sets the default values. func NewPinnedChatMessageInfo()(*PinnedChatMessageInfo) { diff --git a/models/pinned_chat_message_info_collection_response.go b/models/pinned_chat_message_info_collection_response.go index 51ae93e8eef..f236223bc85 100644 --- a/models/pinned_chat_message_info_collection_response.go +++ b/models/pinned_chat_message_info_collection_response.go @@ -8,7 +8,7 @@ import ( type PinnedChatMessageInfoCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPinnedChatMessageInfoCollectionResponse instantiates a new PinnedChatMessageInfoCollectionResponse and sets the default values. +// NewPinnedChatMessageInfoCollectionResponse instantiates a new pinnedChatMessageInfoCollectionResponse and sets the default values. func NewPinnedChatMessageInfoCollectionResponse()(*PinnedChatMessageInfoCollectionResponse) { m := &PinnedChatMessageInfoCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/pkcs12_certificate.go b/models/pkcs12_certificate.go index 3d962ffb1f5..08906fcf9f0 100644 --- a/models/pkcs12_certificate.go +++ b/models/pkcs12_certificate.go @@ -7,8 +7,10 @@ import ( // Pkcs12Certificate type Pkcs12Certificate struct { ApiAuthenticationConfigurationBase + // The OdataType property + OdataType *string } -// NewPkcs12Certificate instantiates a new Pkcs12Certificate and sets the default values. +// NewPkcs12Certificate instantiates a new pkcs12Certificate and sets the default values. func NewPkcs12Certificate()(*Pkcs12Certificate) { m := &Pkcs12Certificate{ ApiAuthenticationConfigurationBase: *NewApiAuthenticationConfigurationBase(), diff --git a/models/place.go b/models/place.go index 8b438a7f5d5..f0575c5f38c 100644 --- a/models/place.go +++ b/models/place.go @@ -7,6 +7,8 @@ import ( // Place type Place struct { Entity + // The OdataType property + OdataType *string } // NewPlace instantiates a new place and sets the default values. func NewPlace()(*Place) { diff --git a/models/planner.go b/models/planner.go index 499504a576d..f1218057a5e 100644 --- a/models/planner.go +++ b/models/planner.go @@ -7,8 +7,10 @@ import ( // Planner type Planner struct { Entity + // The OdataType property + OdataType *string } -// NewPlanner instantiates a new Planner and sets the default values. +// NewPlanner instantiates a new planner and sets the default values. func NewPlanner()(*Planner) { m := &Planner{ Entity: *NewEntity(), diff --git a/models/planner_bucket_collection_response.go b/models/planner_bucket_collection_response.go index f03536b9cd8..a10f3dade91 100644 --- a/models/planner_bucket_collection_response.go +++ b/models/planner_bucket_collection_response.go @@ -8,7 +8,7 @@ import ( type PlannerBucketCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPlannerBucketCollectionResponse instantiates a new PlannerBucketCollectionResponse and sets the default values. +// NewPlannerBucketCollectionResponse instantiates a new plannerBucketCollectionResponse and sets the default values. func NewPlannerBucketCollectionResponse()(*PlannerBucketCollectionResponse) { m := &PlannerBucketCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/planner_delta.go b/models/planner_delta.go index 195b5155a71..96aa03e6e4c 100644 --- a/models/planner_delta.go +++ b/models/planner_delta.go @@ -7,6 +7,8 @@ import ( // PlannerDelta type PlannerDelta struct { Entity + // The OdataType property + OdataType *string } // NewPlannerDelta instantiates a new plannerDelta and sets the default values. func NewPlannerDelta()(*PlannerDelta) { diff --git a/models/planner_delta_collection_response.go b/models/planner_delta_collection_response.go index 863738d5366..c8ab49373d1 100644 --- a/models/planner_delta_collection_response.go +++ b/models/planner_delta_collection_response.go @@ -8,7 +8,7 @@ import ( type PlannerDeltaCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPlannerDeltaCollectionResponse instantiates a new PlannerDeltaCollectionResponse and sets the default values. +// NewPlannerDeltaCollectionResponse instantiates a new plannerDeltaCollectionResponse and sets the default values. func NewPlannerDeltaCollectionResponse()(*PlannerDeltaCollectionResponse) { m := &PlannerDeltaCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/planner_external_bucket_source.go b/models/planner_external_bucket_source.go index 7191b885da9..d2fdad698b3 100644 --- a/models/planner_external_bucket_source.go +++ b/models/planner_external_bucket_source.go @@ -8,7 +8,7 @@ import ( type PlannerExternalBucketSource struct { PlannerBucketCreation } -// NewPlannerExternalBucketSource instantiates a new PlannerExternalBucketSource and sets the default values. +// NewPlannerExternalBucketSource instantiates a new plannerExternalBucketSource and sets the default values. func NewPlannerExternalBucketSource()(*PlannerExternalBucketSource) { m := &PlannerExternalBucketSource{ PlannerBucketCreation: *NewPlannerBucketCreation(), @@ -87,8 +87,29 @@ func (m *PlannerExternalBucketSource) GetFieldDeserializers()(map[string]func(i8 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PlannerExternalBucketSource) 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 *PlannerExternalBucketSource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.PlannerBucketCreation.Serialize(writer) @@ -113,6 +134,12 @@ func (m *PlannerExternalBucketSource) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetContextScenarioId sets the contextScenarioId property value. Nullable. An identifier for the scenario associated with this external source. This should be in reverse DNS format. For example, Contoso company owned application for customer support would have a value like 'com.constoso.customerSupport'. @@ -136,6 +163,13 @@ func (m *PlannerExternalBucketSource) SetExternalObjectId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PlannerExternalBucketSource) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // PlannerExternalBucketSourceable type PlannerExternalBucketSourceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -143,7 +177,9 @@ type PlannerExternalBucketSourceable interface { GetContextScenarioId()(*string) GetExternalContextId()(*string) GetExternalObjectId()(*string) + GetOdataType()(*string) SetContextScenarioId(value *string)() SetExternalContextId(value *string)() SetExternalObjectId(value *string)() + SetOdataType(value *string)() } diff --git a/models/planner_external_plan_source.go b/models/planner_external_plan_source.go index e2a44bee5f3..40864c1a86b 100644 --- a/models/planner_external_plan_source.go +++ b/models/planner_external_plan_source.go @@ -8,7 +8,7 @@ import ( type PlannerExternalPlanSource struct { PlannerPlanCreation } -// NewPlannerExternalPlanSource instantiates a new PlannerExternalPlanSource and sets the default values. +// NewPlannerExternalPlanSource instantiates a new plannerExternalPlanSource and sets the default values. func NewPlannerExternalPlanSource()(*PlannerExternalPlanSource) { m := &PlannerExternalPlanSource{ PlannerPlanCreation: *NewPlannerPlanCreation(), @@ -87,8 +87,29 @@ func (m *PlannerExternalPlanSource) GetFieldDeserializers()(map[string]func(i878 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PlannerExternalPlanSource) 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 *PlannerExternalPlanSource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.PlannerPlanCreation.Serialize(writer) @@ -113,6 +134,12 @@ func (m *PlannerExternalPlanSource) Serialize(writer i878a80d2330e89d26896388a3f return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetContextScenarioId sets the contextScenarioId property value. Nullable. An identifier for the scenario associated with this external source. This should be in reverse DNS format. For example, Contoso company owned application for customer support would have a value like 'com.constoso.customerSupport'. @@ -136,6 +163,13 @@ func (m *PlannerExternalPlanSource) SetExternalObjectId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PlannerExternalPlanSource) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // PlannerExternalPlanSourceable type PlannerExternalPlanSourceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -143,7 +177,9 @@ type PlannerExternalPlanSourceable interface { GetContextScenarioId()(*string) GetExternalContextId()(*string) GetExternalObjectId()(*string) + GetOdataType()(*string) SetContextScenarioId(value *string)() SetExternalContextId(value *string)() SetExternalObjectId(value *string)() + SetOdataType(value *string)() } diff --git a/models/planner_external_task_source.go b/models/planner_external_task_source.go index 97ab5032a47..41e66515f8f 100644 --- a/models/planner_external_task_source.go +++ b/models/planner_external_task_source.go @@ -7,8 +7,10 @@ import ( // PlannerExternalTaskSource type PlannerExternalTaskSource struct { PlannerTaskCreation + // The OdataType property + OdataType *string } -// NewPlannerExternalTaskSource instantiates a new PlannerExternalTaskSource and sets the default values. +// NewPlannerExternalTaskSource instantiates a new plannerExternalTaskSource and sets the default values. func NewPlannerExternalTaskSource()(*PlannerExternalTaskSource) { m := &PlannerExternalTaskSource{ PlannerTaskCreation: *NewPlannerTaskCreation(), diff --git a/models/planner_group.go b/models/planner_group.go index 8adf41d6cce..9eadbeb666f 100644 --- a/models/planner_group.go +++ b/models/planner_group.go @@ -7,6 +7,8 @@ import ( // PlannerGroup type PlannerGroup struct { Entity + // The OdataType property + OdataType *string } // NewPlannerGroup instantiates a new plannerGroup and sets the default values. func NewPlannerGroup()(*PlannerGroup) { diff --git a/models/planner_plan_collection_response.go b/models/planner_plan_collection_response.go index 4df718c0aa8..a566fc07c0e 100644 --- a/models/planner_plan_collection_response.go +++ b/models/planner_plan_collection_response.go @@ -8,7 +8,7 @@ import ( type PlannerPlanCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPlannerPlanCollectionResponse instantiates a new PlannerPlanCollectionResponse and sets the default values. +// NewPlannerPlanCollectionResponse instantiates a new plannerPlanCollectionResponse and sets the default values. func NewPlannerPlanCollectionResponse()(*PlannerPlanCollectionResponse) { m := &PlannerPlanCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/planner_plan_configuration.go b/models/planner_plan_configuration.go index b5e937478aa..5edec8db05c 100644 --- a/models/planner_plan_configuration.go +++ b/models/planner_plan_configuration.go @@ -8,6 +8,8 @@ import ( // PlannerPlanConfiguration type PlannerPlanConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewPlannerPlanConfiguration instantiates a new plannerPlanConfiguration and sets the default values. func NewPlannerPlanConfiguration()(*PlannerPlanConfiguration) { diff --git a/models/planner_plan_configuration_localization.go b/models/planner_plan_configuration_localization.go index 3e64c073bc9..ff728ebb11d 100644 --- a/models/planner_plan_configuration_localization.go +++ b/models/planner_plan_configuration_localization.go @@ -7,6 +7,8 @@ import ( // PlannerPlanConfigurationLocalization type PlannerPlanConfigurationLocalization struct { Entity + // The OdataType property + OdataType *string } // NewPlannerPlanConfigurationLocalization instantiates a new plannerPlanConfigurationLocalization and sets the default values. func NewPlannerPlanConfigurationLocalization()(*PlannerPlanConfigurationLocalization) { diff --git a/models/planner_plan_configuration_localization_collection_response.go b/models/planner_plan_configuration_localization_collection_response.go index 5537eaa0ebf..48d688fdb97 100644 --- a/models/planner_plan_configuration_localization_collection_response.go +++ b/models/planner_plan_configuration_localization_collection_response.go @@ -8,7 +8,7 @@ import ( type PlannerPlanConfigurationLocalizationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPlannerPlanConfigurationLocalizationCollectionResponse instantiates a new PlannerPlanConfigurationLocalizationCollectionResponse and sets the default values. +// NewPlannerPlanConfigurationLocalizationCollectionResponse instantiates a new plannerPlanConfigurationLocalizationCollectionResponse and sets the default values. func NewPlannerPlanConfigurationLocalizationCollectionResponse()(*PlannerPlanConfigurationLocalizationCollectionResponse) { m := &PlannerPlanConfigurationLocalizationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/planner_relationship_based_user_type.go b/models/planner_relationship_based_user_type.go index f56d2c611c0..3cb37b9c204 100644 --- a/models/planner_relationship_based_user_type.go +++ b/models/planner_relationship_based_user_type.go @@ -7,8 +7,10 @@ import ( // PlannerRelationshipBasedUserType type PlannerRelationshipBasedUserType struct { PlannerTaskConfigurationRoleBase + // The OdataType property + OdataType *string } -// NewPlannerRelationshipBasedUserType instantiates a new PlannerRelationshipBasedUserType and sets the default values. +// NewPlannerRelationshipBasedUserType instantiates a new plannerRelationshipBasedUserType and sets the default values. func NewPlannerRelationshipBasedUserType()(*PlannerRelationshipBasedUserType) { m := &PlannerRelationshipBasedUserType{ PlannerTaskConfigurationRoleBase: *NewPlannerTaskConfigurationRoleBase(), diff --git a/models/planner_roster.go b/models/planner_roster.go index a024cc0e978..7433b611cab 100644 --- a/models/planner_roster.go +++ b/models/planner_roster.go @@ -7,8 +7,10 @@ import ( // PlannerRoster type PlannerRoster struct { Entity + // The OdataType property + OdataType *string } -// NewPlannerRoster instantiates a new PlannerRoster and sets the default values. +// NewPlannerRoster instantiates a new plannerRoster and sets the default values. func NewPlannerRoster()(*PlannerRoster) { m := &PlannerRoster{ Entity: *NewEntity(), diff --git a/models/planner_roster_collection_response.go b/models/planner_roster_collection_response.go index 7813fcce0bf..8bdcec19a40 100644 --- a/models/planner_roster_collection_response.go +++ b/models/planner_roster_collection_response.go @@ -8,7 +8,7 @@ import ( type PlannerRosterCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPlannerRosterCollectionResponse instantiates a new PlannerRosterCollectionResponse and sets the default values. +// NewPlannerRosterCollectionResponse instantiates a new plannerRosterCollectionResponse and sets the default values. func NewPlannerRosterCollectionResponse()(*PlannerRosterCollectionResponse) { m := &PlannerRosterCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/planner_roster_member.go b/models/planner_roster_member.go index 679f41d67b8..20cc6e1794f 100644 --- a/models/planner_roster_member.go +++ b/models/planner_roster_member.go @@ -7,6 +7,8 @@ import ( // PlannerRosterMember type PlannerRosterMember struct { Entity + // The OdataType property + OdataType *string } // NewPlannerRosterMember instantiates a new plannerRosterMember and sets the default values. func NewPlannerRosterMember()(*PlannerRosterMember) { diff --git a/models/planner_roster_member_collection_response.go b/models/planner_roster_member_collection_response.go index b2e01128975..fae85cde154 100644 --- a/models/planner_roster_member_collection_response.go +++ b/models/planner_roster_member_collection_response.go @@ -8,7 +8,7 @@ import ( type PlannerRosterMemberCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPlannerRosterMemberCollectionResponse instantiates a new PlannerRosterMemberCollectionResponse and sets the default values. +// NewPlannerRosterMemberCollectionResponse instantiates a new plannerRosterMemberCollectionResponse and sets the default values. func NewPlannerRosterMemberCollectionResponse()(*PlannerRosterMemberCollectionResponse) { m := &PlannerRosterMemberCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/planner_shared_with_container.go b/models/planner_shared_with_container.go index 07ddbdc1080..44a1908342a 100644 --- a/models/planner_shared_with_container.go +++ b/models/planner_shared_with_container.go @@ -7,8 +7,10 @@ import ( // PlannerSharedWithContainer type PlannerSharedWithContainer struct { PlannerPlanContainer + // The OdataType property + OdataType *string } -// NewPlannerSharedWithContainer instantiates a new PlannerSharedWithContainer and sets the default values. +// NewPlannerSharedWithContainer instantiates a new plannerSharedWithContainer and sets the default values. func NewPlannerSharedWithContainer()(*PlannerSharedWithContainer) { m := &PlannerSharedWithContainer{ PlannerPlanContainer: *NewPlannerPlanContainer(), diff --git a/models/planner_task_collection_response.go b/models/planner_task_collection_response.go index 3d6368efa7e..0b6230ab3db 100644 --- a/models/planner_task_collection_response.go +++ b/models/planner_task_collection_response.go @@ -8,7 +8,7 @@ import ( type PlannerTaskCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPlannerTaskCollectionResponse instantiates a new PlannerTaskCollectionResponse and sets the default values. +// NewPlannerTaskCollectionResponse instantiates a new plannerTaskCollectionResponse and sets the default values. func NewPlannerTaskCollectionResponse()(*PlannerTaskCollectionResponse) { m := &PlannerTaskCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/planner_task_configuration.go b/models/planner_task_configuration.go index 63cb4d3e7f7..996ad18df17 100644 --- a/models/planner_task_configuration.go +++ b/models/planner_task_configuration.go @@ -7,6 +7,8 @@ import ( // PlannerTaskConfiguration type PlannerTaskConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewPlannerTaskConfiguration instantiates a new plannerTaskConfiguration and sets the default values. func NewPlannerTaskConfiguration()(*PlannerTaskConfiguration) { diff --git a/models/planner_task_property_rule.go b/models/planner_task_property_rule.go index 32f4609815f..ae6b12cacfd 100644 --- a/models/planner_task_property_rule.go +++ b/models/planner_task_property_rule.go @@ -8,7 +8,7 @@ import ( type PlannerTaskPropertyRule struct { PlannerPropertyRule } -// NewPlannerTaskPropertyRule instantiates a new PlannerTaskPropertyRule and sets the default values. +// NewPlannerTaskPropertyRule instantiates a new plannerTaskPropertyRule and sets the default values. func NewPlannerTaskPropertyRule()(*PlannerTaskPropertyRule) { m := &PlannerTaskPropertyRule{ PlannerPropertyRule: *NewPlannerPropertyRule(), @@ -200,6 +200,16 @@ func (m *PlannerTaskPropertyRule) GetFieldDeserializers()(map[string]func(i878a8 } 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["order"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -330,6 +340,17 @@ func (m *PlannerTaskPropertyRule) GetNotes()([]string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PlannerTaskPropertyRule) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOrder gets the order property value. Rules and restrictions for changing the order of the task. Accepted values are allow and block. func (m *PlannerTaskPropertyRule) GetOrder()([]string) { val, err := m.GetBackingStore().Get("order") @@ -461,6 +482,12 @@ func (m *PlannerTaskPropertyRule) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetOrder() != nil { err = writer.WriteCollectionOfStringValues("order", m.GetOrder()) if err != nil { @@ -561,6 +588,13 @@ func (m *PlannerTaskPropertyRule) SetNotes(value []string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PlannerTaskPropertyRule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOrder sets the order property value. Rules and restrictions for changing the order of the task. Accepted values are allow and block. func (m *PlannerTaskPropertyRule) SetOrder(value []string)() { err := m.GetBackingStore().Set("order", value) @@ -622,6 +656,7 @@ type PlannerTaskPropertyRuleable interface { GetDueDate()([]string) GetMove()([]string) GetNotes()([]string) + GetOdataType()(*string) GetOrder()([]string) GetPercentComplete()([]string) GetPreviewType()([]string) @@ -637,6 +672,7 @@ type PlannerTaskPropertyRuleable interface { SetDueDate(value []string)() SetMove(value []string)() SetNotes(value []string)() + SetOdataType(value *string)() SetOrder(value []string)() SetPercentComplete(value []string)() SetPreviewType(value []string)() diff --git a/models/planner_user.go b/models/planner_user.go index 989d95e6b58..99c7cef5f0e 100644 --- a/models/planner_user.go +++ b/models/planner_user.go @@ -8,7 +8,7 @@ import ( type PlannerUser struct { PlannerDelta } -// NewPlannerUser instantiates a new PlannerUser and sets the default values. +// NewPlannerUser instantiates a new plannerUser and sets the default values. func NewPlannerUser()(*PlannerUser) { m := &PlannerUser{ PlannerDelta: *NewPlannerDelta(), diff --git a/models/play_prompt_operation.go b/models/play_prompt_operation.go index c655765cf44..3837f344964 100644 --- a/models/play_prompt_operation.go +++ b/models/play_prompt_operation.go @@ -8,7 +8,7 @@ import ( type PlayPromptOperation struct { CommsOperation } -// NewPlayPromptOperation instantiates a new PlayPromptOperation and sets the default values. +// NewPlayPromptOperation instantiates a new playPromptOperation and sets the default values. func NewPlayPromptOperation()(*PlayPromptOperation) { m := &PlayPromptOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/policy_root.go b/models/policy_root.go index 45160baba72..8ab0b3bd112 100644 --- a/models/policy_root.go +++ b/models/policy_root.go @@ -10,7 +10,7 @@ type PolicyRoot struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPolicyRoot instantiates a new PolicyRoot and sets the default values. +// NewPolicyRoot instantiates a new policyRoot and sets the default values. func NewPolicyRoot()(*PolicyRoot) { m := &PolicyRoot{ } diff --git a/models/policy_set.go b/models/policy_set.go index 136b374acbc..2afd4daf1dd 100644 --- a/models/policy_set.go +++ b/models/policy_set.go @@ -8,6 +8,8 @@ import ( // PolicySet a class containing the properties used for PolicySet. type PolicySet struct { Entity + // The OdataType property + OdataType *string } // NewPolicySet instantiates a new policySet and sets the default values. func NewPolicySet()(*PolicySet) { diff --git a/models/policy_set_assignment.go b/models/policy_set_assignment.go index 05059fab193..d8ccbb47f26 100644 --- a/models/policy_set_assignment.go +++ b/models/policy_set_assignment.go @@ -8,6 +8,8 @@ import ( // PolicySetAssignment a class containing the properties used for PolicySet Assignment. type PolicySetAssignment struct { Entity + // The OdataType property + OdataType *string } // NewPolicySetAssignment instantiates a new policySetAssignment and sets the default values. func NewPolicySetAssignment()(*PolicySetAssignment) { diff --git a/models/policy_set_assignment_collection_response.go b/models/policy_set_assignment_collection_response.go index ee8947cbe8c..d0a991ba3aa 100644 --- a/models/policy_set_assignment_collection_response.go +++ b/models/policy_set_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type PolicySetAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPolicySetAssignmentCollectionResponse instantiates a new PolicySetAssignmentCollectionResponse and sets the default values. +// NewPolicySetAssignmentCollectionResponse instantiates a new policySetAssignmentCollectionResponse and sets the default values. func NewPolicySetAssignmentCollectionResponse()(*PolicySetAssignmentCollectionResponse) { m := &PolicySetAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/policy_set_collection_response.go b/models/policy_set_collection_response.go index 7ade10a5ba1..c2b18e1b9a0 100644 --- a/models/policy_set_collection_response.go +++ b/models/policy_set_collection_response.go @@ -8,7 +8,7 @@ import ( type PolicySetCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPolicySetCollectionResponse instantiates a new PolicySetCollectionResponse and sets the default values. +// NewPolicySetCollectionResponse instantiates a new policySetCollectionResponse and sets the default values. func NewPolicySetCollectionResponse()(*PolicySetCollectionResponse) { m := &PolicySetCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/policy_set_item.go b/models/policy_set_item.go index 2e5bf296322..f90a65fa339 100644 --- a/models/policy_set_item.go +++ b/models/policy_set_item.go @@ -8,6 +8,8 @@ import ( // PolicySetItem a class containing the properties used for PolicySet Item. type PolicySetItem struct { Entity + // The OdataType property + OdataType *string } // NewPolicySetItem instantiates a new policySetItem and sets the default values. func NewPolicySetItem()(*PolicySetItem) { diff --git a/models/policy_set_item_collection_response.go b/models/policy_set_item_collection_response.go index ca1b8213a27..b25bd619ef6 100644 --- a/models/policy_set_item_collection_response.go +++ b/models/policy_set_item_collection_response.go @@ -8,7 +8,7 @@ import ( type PolicySetItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPolicySetItemCollectionResponse instantiates a new PolicySetItemCollectionResponse and sets the default values. +// NewPolicySetItemCollectionResponse instantiates a new policySetItemCollectionResponse and sets the default values. func NewPolicySetItemCollectionResponse()(*PolicySetItemCollectionResponse) { m := &PolicySetItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/position_detail.go b/models/position_detail.go index 63124ee2a30..6fb83be4dc8 100644 --- a/models/position_detail.go +++ b/models/position_detail.go @@ -10,7 +10,7 @@ type PositionDetail struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPositionDetail instantiates a new PositionDetail and sets the default values. +// NewPositionDetail instantiates a new positionDetail and sets the default values. func NewPositionDetail()(*PositionDetail) { m := &PositionDetail{ } diff --git a/models/positive_reinforcement_notification.go b/models/positive_reinforcement_notification.go index 14571b0cacd..e155c30d248 100644 --- a/models/positive_reinforcement_notification.go +++ b/models/positive_reinforcement_notification.go @@ -7,8 +7,10 @@ import ( // PositiveReinforcementNotification type PositiveReinforcementNotification struct { BaseEndUserNotification + // The OdataType property + OdataType *string } -// NewPositiveReinforcementNotification instantiates a new PositiveReinforcementNotification and sets the default values. +// NewPositiveReinforcementNotification instantiates a new positiveReinforcementNotification and sets the default values. func NewPositiveReinforcementNotification()(*PositiveReinforcementNotification) { m := &PositiveReinforcementNotification{ BaseEndUserNotification: *NewBaseEndUserNotification(), diff --git a/models/post.go b/models/post.go index 79a31359841..5790c5a227a 100644 --- a/models/post.go +++ b/models/post.go @@ -9,7 +9,7 @@ import ( type Post struct { OutlookItem } -// NewPost instantiates a new Post and sets the default values. +// NewPost instantiates a new post and sets the default values. func NewPost()(*Post) { m := &Post{ OutlookItem: *NewOutlookItem(), diff --git a/models/post_collection_response.go b/models/post_collection_response.go index 76657270891..a0b33c216b0 100644 --- a/models/post_collection_response.go +++ b/models/post_collection_response.go @@ -8,7 +8,7 @@ import ( type PostCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPostCollectionResponse instantiates a new PostCollectionResponse and sets the default values. +// NewPostCollectionResponse instantiates a new postCollectionResponse and sets the default values. func NewPostCollectionResponse()(*PostCollectionResponse) { m := &PostCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/presence.go b/models/presence.go index f0490ce32f9..3a405e36ace 100644 --- a/models/presence.go +++ b/models/presence.go @@ -7,6 +7,8 @@ import ( // Presence type Presence struct { Entity + // The OdataType property + OdataType *string } // NewPresence instantiates a new presence and sets the default values. func NewPresence()(*Presence) { diff --git a/models/presence_collection_response.go b/models/presence_collection_response.go index b7c9a41ca72..63b5001fbee 100644 --- a/models/presence_collection_response.go +++ b/models/presence_collection_response.go @@ -8,7 +8,7 @@ import ( type PresenceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPresenceCollectionResponse instantiates a new PresenceCollectionResponse and sets the default values. +// NewPresenceCollectionResponse instantiates a new presenceCollectionResponse and sets the default values. func NewPresenceCollectionResponse()(*PresenceCollectionResponse) { m := &PresenceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/presentation.go b/models/presentation.go index 6b13a3a798f..2d0f75ed4d7 100644 --- a/models/presentation.go +++ b/models/presentation.go @@ -7,8 +7,10 @@ import ( // Presentation type Presentation struct { Entity + // The OdataType property + OdataType *string } -// NewPresentation instantiates a new Presentation and sets the default values. +// NewPresentation instantiates a new presentation and sets the default values. func NewPresentation()(*Presentation) { m := &Presentation{ Entity: *NewEntity(), diff --git a/models/principal_resource_memberships_scope.go b/models/principal_resource_memberships_scope.go index bf6909a4b04..480107a7722 100644 --- a/models/principal_resource_memberships_scope.go +++ b/models/principal_resource_memberships_scope.go @@ -8,7 +8,7 @@ import ( type PrincipalResourceMembershipsScope struct { AccessReviewScope } -// NewPrincipalResourceMembershipsScope instantiates a new PrincipalResourceMembershipsScope and sets the default values. +// NewPrincipalResourceMembershipsScope instantiates a new principalResourceMembershipsScope and sets the default values. func NewPrincipalResourceMembershipsScope()(*PrincipalResourceMembershipsScope) { m := &PrincipalResourceMembershipsScope{ AccessReviewScope: *NewAccessReviewScope(), @@ -24,6 +24,16 @@ func CreatePrincipalResourceMembershipsScopeFromDiscriminatorValue(parseNode i87 // GetFieldDeserializers the deserialization information for the current model func (m *PrincipalResourceMembershipsScope) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AccessReviewScope.GetFieldDeserializers() + 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["principalScopes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateAccessReviewScopeFromDiscriminatorValue) if err != nil { @@ -58,6 +68,17 @@ func (m *PrincipalResourceMembershipsScope) GetFieldDeserializers()(map[string]f } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PrincipalResourceMembershipsScope) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPrincipalScopes gets the principalScopes property value. Defines the scopes of the principals whose access to resources are reviewed in the access review. func (m *PrincipalResourceMembershipsScope) GetPrincipalScopes()([]AccessReviewScopeable) { val, err := m.GetBackingStore().Get("principalScopes") @@ -86,6 +107,12 @@ func (m *PrincipalResourceMembershipsScope) Serialize(writer i878a80d2330e89d268 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetPrincipalScopes() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetPrincipalScopes())) for i, v := range m.GetPrincipalScopes() { @@ -112,6 +139,13 @@ func (m *PrincipalResourceMembershipsScope) Serialize(writer i878a80d2330e89d268 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PrincipalResourceMembershipsScope) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPrincipalScopes sets the principalScopes property value. Defines the scopes of the principals whose access to resources are reviewed in the access review. func (m *PrincipalResourceMembershipsScope) SetPrincipalScopes(value []AccessReviewScopeable)() { err := m.GetBackingStore().Set("principalScopes", value) @@ -130,8 +164,10 @@ func (m *PrincipalResourceMembershipsScope) SetResourceScopes(value []AccessRevi type PrincipalResourceMembershipsScopeable interface { AccessReviewScopeable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetPrincipalScopes()([]AccessReviewScopeable) GetResourceScopes()([]AccessReviewScopeable) + SetOdataType(value *string)() SetPrincipalScopes(value []AccessReviewScopeable)() SetResourceScopes(value []AccessReviewScopeable)() } diff --git a/models/print.go b/models/print.go index 3820c2201cd..f5dcfd80893 100644 --- a/models/print.go +++ b/models/print.go @@ -10,7 +10,7 @@ type Print struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPrint instantiates a new Print and sets the default values. +// NewPrint instantiates a new print and sets the default values. func NewPrint()(*Print) { m := &Print{ } diff --git a/models/print_certificate_signing_request.go b/models/print_certificate_signing_request.go index 434b362c889..7c012923d80 100644 --- a/models/print_certificate_signing_request.go +++ b/models/print_certificate_signing_request.go @@ -10,7 +10,7 @@ type PrintCertificateSigningRequest struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPrintCertificateSigningRequest instantiates a new PrintCertificateSigningRequest and sets the default values. +// NewPrintCertificateSigningRequest instantiates a new printCertificateSigningRequest and sets the default values. func NewPrintCertificateSigningRequest()(*PrintCertificateSigningRequest) { m := &PrintCertificateSigningRequest{ } diff --git a/models/print_connector.go b/models/print_connector.go index fefea553696..18bc1471855 100644 --- a/models/print_connector.go +++ b/models/print_connector.go @@ -8,6 +8,8 @@ import ( // PrintConnector type PrintConnector struct { Entity + // The OdataType property + OdataType *string } // NewPrintConnector instantiates a new printConnector and sets the default values. func NewPrintConnector()(*PrintConnector) { diff --git a/models/print_connector_collection_response.go b/models/print_connector_collection_response.go index f6ba6822ee4..d4cf1ba464d 100644 --- a/models/print_connector_collection_response.go +++ b/models/print_connector_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintConnectorCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintConnectorCollectionResponse instantiates a new PrintConnectorCollectionResponse and sets the default values. +// NewPrintConnectorCollectionResponse instantiates a new printConnectorCollectionResponse and sets the default values. func NewPrintConnectorCollectionResponse()(*PrintConnectorCollectionResponse) { m := &PrintConnectorCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/print_document.go b/models/print_document.go index 35ff16ef437..0c80cd947b7 100644 --- a/models/print_document.go +++ b/models/print_document.go @@ -8,6 +8,8 @@ import ( // PrintDocument type PrintDocument struct { Entity + // The OdataType property + OdataType *string } // NewPrintDocument instantiates a new printDocument and sets the default values. func NewPrintDocument()(*PrintDocument) { diff --git a/models/print_document_collection_response.go b/models/print_document_collection_response.go index d6d66ad41a1..b53cb0fbb32 100644 --- a/models/print_document_collection_response.go +++ b/models/print_document_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintDocumentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintDocumentCollectionResponse instantiates a new PrintDocumentCollectionResponse and sets the default values. +// NewPrintDocumentCollectionResponse instantiates a new printDocumentCollectionResponse and sets the default values. func NewPrintDocumentCollectionResponse()(*PrintDocumentCollectionResponse) { m := &PrintDocumentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/print_document_upload_properties.go b/models/print_document_upload_properties.go index 6442e5d374d..f0735b45ecd 100644 --- a/models/print_document_upload_properties.go +++ b/models/print_document_upload_properties.go @@ -10,7 +10,7 @@ type PrintDocumentUploadProperties struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPrintDocumentUploadProperties instantiates a new PrintDocumentUploadProperties and sets the default values. +// NewPrintDocumentUploadProperties instantiates a new printDocumentUploadProperties and sets the default values. func NewPrintDocumentUploadProperties()(*PrintDocumentUploadProperties) { m := &PrintDocumentUploadProperties{ } diff --git a/models/print_job.go b/models/print_job.go index 12e999783d3..ad7d67a8b87 100644 --- a/models/print_job.go +++ b/models/print_job.go @@ -8,6 +8,8 @@ import ( // PrintJob type PrintJob struct { Entity + // The OdataType property + OdataType *string } // NewPrintJob instantiates a new printJob and sets the default values. func NewPrintJob()(*PrintJob) { diff --git a/models/print_job_collection_response.go b/models/print_job_collection_response.go index eb802730ce4..563f4dba91b 100644 --- a/models/print_job_collection_response.go +++ b/models/print_job_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintJobCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintJobCollectionResponse instantiates a new PrintJobCollectionResponse and sets the default values. +// NewPrintJobCollectionResponse instantiates a new printJobCollectionResponse and sets the default values. func NewPrintJobCollectionResponse()(*PrintJobCollectionResponse) { m := &PrintJobCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/print_job_configuration.go b/models/print_job_configuration.go index 1cc9d6349ca..ef4936cdb32 100644 --- a/models/print_job_configuration.go +++ b/models/print_job_configuration.go @@ -10,7 +10,7 @@ type PrintJobConfiguration struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPrintJobConfiguration instantiates a new PrintJobConfiguration and sets the default values. +// NewPrintJobConfiguration instantiates a new printJobConfiguration and sets the default values. func NewPrintJobConfiguration()(*PrintJobConfiguration) { m := &PrintJobConfiguration{ } diff --git a/models/print_job_status.go b/models/print_job_status.go index 52215258fae..72f8ddbcbc3 100644 --- a/models/print_job_status.go +++ b/models/print_job_status.go @@ -10,7 +10,7 @@ type PrintJobStatus struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPrintJobStatus instantiates a new PrintJobStatus and sets the default values. +// NewPrintJobStatus instantiates a new printJobStatus and sets the default values. func NewPrintJobStatus()(*PrintJobStatus) { m := &PrintJobStatus{ } diff --git a/models/print_operation.go b/models/print_operation.go index 81b02bff727..950396219ea 100644 --- a/models/print_operation.go +++ b/models/print_operation.go @@ -8,6 +8,8 @@ import ( // PrintOperation type PrintOperation struct { Entity + // The OdataType property + OdataType *string } // NewPrintOperation instantiates a new printOperation and sets the default values. func NewPrintOperation()(*PrintOperation) { diff --git a/models/print_operation_collection_response.go b/models/print_operation_collection_response.go index 472b4f813b7..781d0e48e08 100644 --- a/models/print_operation_collection_response.go +++ b/models/print_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintOperationCollectionResponse instantiates a new PrintOperationCollectionResponse and sets the default values. +// NewPrintOperationCollectionResponse instantiates a new printOperationCollectionResponse and sets the default values. func NewPrintOperationCollectionResponse()(*PrintOperationCollectionResponse) { m := &PrintOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/print_operation_status.go b/models/print_operation_status.go index d600238d2af..cf5f462c48e 100644 --- a/models/print_operation_status.go +++ b/models/print_operation_status.go @@ -10,7 +10,7 @@ type PrintOperationStatus struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPrintOperationStatus instantiates a new PrintOperationStatus and sets the default values. +// NewPrintOperationStatus instantiates a new printOperationStatus and sets the default values. func NewPrintOperationStatus()(*PrintOperationStatus) { m := &PrintOperationStatus{ } diff --git a/models/print_service.go b/models/print_service.go index 50ee6ebcb47..3045005075d 100644 --- a/models/print_service.go +++ b/models/print_service.go @@ -7,8 +7,10 @@ import ( // PrintService type PrintService struct { Entity + // The OdataType property + OdataType *string } -// NewPrintService instantiates a new PrintService and sets the default values. +// NewPrintService instantiates a new printService and sets the default values. func NewPrintService()(*PrintService) { m := &PrintService{ Entity: *NewEntity(), diff --git a/models/print_service_collection_response.go b/models/print_service_collection_response.go index a619fefa12b..f10e1448e4c 100644 --- a/models/print_service_collection_response.go +++ b/models/print_service_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintServiceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintServiceCollectionResponse instantiates a new PrintServiceCollectionResponse and sets the default values. +// NewPrintServiceCollectionResponse instantiates a new printServiceCollectionResponse and sets the default values. func NewPrintServiceCollectionResponse()(*PrintServiceCollectionResponse) { m := &PrintServiceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/print_service_endpoint.go b/models/print_service_endpoint.go index 2c2a43fb721..1815e63b2a0 100644 --- a/models/print_service_endpoint.go +++ b/models/print_service_endpoint.go @@ -7,6 +7,8 @@ import ( // PrintServiceEndpoint type PrintServiceEndpoint struct { Entity + // The OdataType property + OdataType *string } // NewPrintServiceEndpoint instantiates a new printServiceEndpoint and sets the default values. func NewPrintServiceEndpoint()(*PrintServiceEndpoint) { diff --git a/models/print_service_endpoint_collection_response.go b/models/print_service_endpoint_collection_response.go index bd7d2524950..02494a63084 100644 --- a/models/print_service_endpoint_collection_response.go +++ b/models/print_service_endpoint_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintServiceEndpointCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintServiceEndpointCollectionResponse instantiates a new PrintServiceEndpointCollectionResponse and sets the default values. +// NewPrintServiceEndpointCollectionResponse instantiates a new printServiceEndpointCollectionResponse and sets the default values. func NewPrintServiceEndpointCollectionResponse()(*PrintServiceEndpointCollectionResponse) { m := &PrintServiceEndpointCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/print_task.go b/models/print_task.go index ae3921b53a4..b7fa050df87 100644 --- a/models/print_task.go +++ b/models/print_task.go @@ -7,6 +7,8 @@ import ( // PrintTask type PrintTask struct { Entity + // The OdataType property + OdataType *string } // NewPrintTask instantiates a new printTask and sets the default values. func NewPrintTask()(*PrintTask) { diff --git a/models/print_task_collection_response.go b/models/print_task_collection_response.go index 403dbc0404e..a8eb51e8e3a 100644 --- a/models/print_task_collection_response.go +++ b/models/print_task_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintTaskCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintTaskCollectionResponse instantiates a new PrintTaskCollectionResponse and sets the default values. +// NewPrintTaskCollectionResponse instantiates a new printTaskCollectionResponse and sets the default values. func NewPrintTaskCollectionResponse()(*PrintTaskCollectionResponse) { m := &PrintTaskCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/print_task_definition.go b/models/print_task_definition.go index 9602beae833..c46c5d42850 100644 --- a/models/print_task_definition.go +++ b/models/print_task_definition.go @@ -7,6 +7,8 @@ import ( // PrintTaskDefinition type PrintTaskDefinition struct { Entity + // The OdataType property + OdataType *string } // NewPrintTaskDefinition instantiates a new printTaskDefinition and sets the default values. func NewPrintTaskDefinition()(*PrintTaskDefinition) { diff --git a/models/print_task_definition_collection_response.go b/models/print_task_definition_collection_response.go index 2a9a3b102bd..8c69cc67515 100644 --- a/models/print_task_definition_collection_response.go +++ b/models/print_task_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintTaskDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintTaskDefinitionCollectionResponse instantiates a new PrintTaskDefinitionCollectionResponse and sets the default values. +// NewPrintTaskDefinitionCollectionResponse instantiates a new printTaskDefinitionCollectionResponse and sets the default values. func NewPrintTaskDefinitionCollectionResponse()(*PrintTaskDefinitionCollectionResponse) { m := &PrintTaskDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/print_task_status.go b/models/print_task_status.go index e78079bc12f..a0b35fe1882 100644 --- a/models/print_task_status.go +++ b/models/print_task_status.go @@ -10,7 +10,7 @@ type PrintTaskStatus struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPrintTaskStatus instantiates a new PrintTaskStatus and sets the default values. +// NewPrintTaskStatus instantiates a new printTaskStatus and sets the default values. func NewPrintTaskStatus()(*PrintTaskStatus) { m := &PrintTaskStatus{ } diff --git a/models/print_task_trigger.go b/models/print_task_trigger.go index 5af9a18aa34..1a19ba081cc 100644 --- a/models/print_task_trigger.go +++ b/models/print_task_trigger.go @@ -7,6 +7,8 @@ import ( // PrintTaskTrigger type PrintTaskTrigger struct { Entity + // The OdataType property + OdataType *string } // NewPrintTaskTrigger instantiates a new printTaskTrigger and sets the default values. func NewPrintTaskTrigger()(*PrintTaskTrigger) { diff --git a/models/print_task_trigger_collection_response.go b/models/print_task_trigger_collection_response.go index 839361f6a7d..c0602c06837 100644 --- a/models/print_task_trigger_collection_response.go +++ b/models/print_task_trigger_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintTaskTriggerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintTaskTriggerCollectionResponse instantiates a new PrintTaskTriggerCollectionResponse and sets the default values. +// NewPrintTaskTriggerCollectionResponse instantiates a new printTaskTriggerCollectionResponse and sets the default values. func NewPrintTaskTriggerCollectionResponse()(*PrintTaskTriggerCollectionResponse) { m := &PrintTaskTriggerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/print_usage.go b/models/print_usage.go index d55424e1d33..b13bb6ae39f 100644 --- a/models/print_usage.go +++ b/models/print_usage.go @@ -7,6 +7,8 @@ import ( // PrintUsage type PrintUsage struct { Entity + // The OdataType property + OdataType *string } // NewPrintUsage instantiates a new printUsage and sets the default values. func NewPrintUsage()(*PrintUsage) { diff --git a/models/print_usage_by_printer.go b/models/print_usage_by_printer.go index d6657e96878..4b2fc1ef90e 100644 --- a/models/print_usage_by_printer.go +++ b/models/print_usage_by_printer.go @@ -8,7 +8,7 @@ import ( type PrintUsageByPrinter struct { PrintUsage } -// NewPrintUsageByPrinter instantiates a new PrintUsageByPrinter and sets the default values. +// NewPrintUsageByPrinter instantiates a new printUsageByPrinter and sets the default values. func NewPrintUsageByPrinter()(*PrintUsageByPrinter) { m := &PrintUsageByPrinter{ PrintUsage: *NewPrintUsage(), diff --git a/models/print_usage_by_printer_collection_response.go b/models/print_usage_by_printer_collection_response.go index d3076cb0e63..135c32f74f9 100644 --- a/models/print_usage_by_printer_collection_response.go +++ b/models/print_usage_by_printer_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintUsageByPrinterCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintUsageByPrinterCollectionResponse instantiates a new PrintUsageByPrinterCollectionResponse and sets the default values. +// NewPrintUsageByPrinterCollectionResponse instantiates a new printUsageByPrinterCollectionResponse and sets the default values. func NewPrintUsageByPrinterCollectionResponse()(*PrintUsageByPrinterCollectionResponse) { m := &PrintUsageByPrinterCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/print_usage_by_user.go b/models/print_usage_by_user.go index c278a19fe55..54552e44b81 100644 --- a/models/print_usage_by_user.go +++ b/models/print_usage_by_user.go @@ -8,7 +8,7 @@ import ( type PrintUsageByUser struct { PrintUsage } -// NewPrintUsageByUser instantiates a new PrintUsageByUser and sets the default values. +// NewPrintUsageByUser instantiates a new printUsageByUser and sets the default values. func NewPrintUsageByUser()(*PrintUsageByUser) { m := &PrintUsageByUser{ PrintUsage: *NewPrintUsage(), diff --git a/models/print_usage_by_user_collection_response.go b/models/print_usage_by_user_collection_response.go index cce9bd5df37..baa43d4e455 100644 --- a/models/print_usage_by_user_collection_response.go +++ b/models/print_usage_by_user_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintUsageByUserCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintUsageByUserCollectionResponse instantiates a new PrintUsageByUserCollectionResponse and sets the default values. +// NewPrintUsageByUserCollectionResponse instantiates a new printUsageByUserCollectionResponse and sets the default values. func NewPrintUsageByUserCollectionResponse()(*PrintUsageByUserCollectionResponse) { m := &PrintUsageByUserCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/print_usage_collection_response.go b/models/print_usage_collection_response.go index 96879343211..ed0a70a6f57 100644 --- a/models/print_usage_collection_response.go +++ b/models/print_usage_collection_response.go @@ -8,7 +8,7 @@ import ( type PrintUsageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrintUsageCollectionResponse instantiates a new PrintUsageCollectionResponse and sets the default values. +// NewPrintUsageCollectionResponse instantiates a new printUsageCollectionResponse and sets the default values. func NewPrintUsageCollectionResponse()(*PrintUsageCollectionResponse) { m := &PrintUsageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/printer_base.go b/models/printer_base.go index 894573da59b..73f3b7c18a9 100644 --- a/models/printer_base.go +++ b/models/printer_base.go @@ -7,6 +7,8 @@ import ( // PrinterBase type PrinterBase struct { Entity + // The OdataType property + OdataType *string } // NewPrinterBase instantiates a new printerBase and sets the default values. func NewPrinterBase()(*PrinterBase) { diff --git a/models/printer_collection_response.go b/models/printer_collection_response.go index e07c74a0fd2..c98fbcbc7e2 100644 --- a/models/printer_collection_response.go +++ b/models/printer_collection_response.go @@ -8,7 +8,7 @@ import ( type PrinterCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrinterCollectionResponse instantiates a new PrinterCollectionResponse and sets the default values. +// NewPrinterCollectionResponse instantiates a new printerCollectionResponse and sets the default values. func NewPrinterCollectionResponse()(*PrinterCollectionResponse) { m := &PrinterCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/printer_create_operation.go b/models/printer_create_operation.go index a81fb36ae13..fc2a2e6a19e 100644 --- a/models/printer_create_operation.go +++ b/models/printer_create_operation.go @@ -8,7 +8,7 @@ import ( type PrinterCreateOperation struct { PrintOperation } -// NewPrinterCreateOperation instantiates a new PrinterCreateOperation and sets the default values. +// NewPrinterCreateOperation instantiates a new printerCreateOperation and sets the default values. func NewPrinterCreateOperation()(*PrinterCreateOperation) { m := &PrinterCreateOperation{ PrintOperation: *NewPrintOperation(), diff --git a/models/printer_document_configuration.go b/models/printer_document_configuration.go index b94447d2ecd..e07e3ae92e8 100644 --- a/models/printer_document_configuration.go +++ b/models/printer_document_configuration.go @@ -10,7 +10,7 @@ type PrinterDocumentConfiguration struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPrinterDocumentConfiguration instantiates a new PrinterDocumentConfiguration and sets the default values. +// NewPrinterDocumentConfiguration instantiates a new printerDocumentConfiguration and sets the default values. func NewPrinterDocumentConfiguration()(*PrinterDocumentConfiguration) { m := &PrinterDocumentConfiguration{ } diff --git a/models/printer_share.go b/models/printer_share.go index ef640e992c4..919ff7bd1e3 100644 --- a/models/printer_share.go +++ b/models/printer_share.go @@ -9,7 +9,7 @@ import ( type PrinterShare struct { PrinterBase } -// NewPrinterShare instantiates a new PrinterShare and sets the default values. +// NewPrinterShare instantiates a new printerShare and sets the default values. func NewPrinterShare()(*PrinterShare) { m := &PrinterShare{ PrinterBase: *NewPrinterBase(), diff --git a/models/printer_share_collection_response.go b/models/printer_share_collection_response.go index 4e3f03d31ac..92f9db2a1c0 100644 --- a/models/printer_share_collection_response.go +++ b/models/printer_share_collection_response.go @@ -8,7 +8,7 @@ import ( type PrinterShareCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrinterShareCollectionResponse instantiates a new PrinterShareCollectionResponse and sets the default values. +// NewPrinterShareCollectionResponse instantiates a new printerShareCollectionResponse and sets the default values. func NewPrinterShareCollectionResponse()(*PrinterShareCollectionResponse) { m := &PrinterShareCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/printer_status.go b/models/printer_status.go index dbdc8b0eea6..c26b1e0f79a 100644 --- a/models/printer_status.go +++ b/models/printer_status.go @@ -10,7 +10,7 @@ type PrinterStatus struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPrinterStatus instantiates a new PrinterStatus and sets the default values. +// NewPrinterStatus instantiates a new printerStatus and sets the default values. func NewPrinterStatus()(*PrinterStatus) { m := &PrinterStatus{ } diff --git a/models/privacy.go b/models/privacy.go index 3afe9f1b785..c4c514a1741 100644 --- a/models/privacy.go +++ b/models/privacy.go @@ -10,7 +10,7 @@ type Privacy struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPrivacy instantiates a new Privacy and sets the default values. +// NewPrivacy instantiates a new privacy and sets the default values. func NewPrivacy()(*Privacy) { m := &Privacy{ } diff --git a/models/privilege_management_elevation.go b/models/privilege_management_elevation.go index 688858fbf7f..3c07dd29b50 100644 --- a/models/privilege_management_elevation.go +++ b/models/privilege_management_elevation.go @@ -8,6 +8,8 @@ import ( // PrivilegeManagementElevation the endpoint privilege management elevation result entity representing a single elevation action on a client device. type PrivilegeManagementElevation struct { Entity + // The OdataType property + OdataType *string } // NewPrivilegeManagementElevation instantiates a new privilegeManagementElevation and sets the default values. func NewPrivilegeManagementElevation()(*PrivilegeManagementElevation) { diff --git a/models/privilege_management_elevation_collection_response.go b/models/privilege_management_elevation_collection_response.go index ce68a228c67..fd5b5a60ef9 100644 --- a/models/privilege_management_elevation_collection_response.go +++ b/models/privilege_management_elevation_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegeManagementElevationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegeManagementElevationCollectionResponse instantiates a new PrivilegeManagementElevationCollectionResponse and sets the default values. +// NewPrivilegeManagementElevationCollectionResponse instantiates a new privilegeManagementElevationCollectionResponse and sets the default values. func NewPrivilegeManagementElevationCollectionResponse()(*PrivilegeManagementElevationCollectionResponse) { m := &PrivilegeManagementElevationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_access.go b/models/privileged_access.go index db69305e1dc..a04e4ee91fb 100644 --- a/models/privileged_access.go +++ b/models/privileged_access.go @@ -7,8 +7,10 @@ import ( // PrivilegedAccess type PrivilegedAccess struct { Entity + // The OdataType property + OdataType *string } -// NewPrivilegedAccess instantiates a new PrivilegedAccess and sets the default values. +// NewPrivilegedAccess instantiates a new privilegedAccess and sets the default values. func NewPrivilegedAccess()(*PrivilegedAccess) { m := &PrivilegedAccess{ Entity: *NewEntity(), diff --git a/models/privileged_access_collection_response.go b/models/privileged_access_collection_response.go index 0b476282291..55ca9984427 100644 --- a/models/privileged_access_collection_response.go +++ b/models/privileged_access_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedAccessCollectionResponse instantiates a new PrivilegedAccessCollectionResponse and sets the default values. +// NewPrivilegedAccessCollectionResponse instantiates a new privilegedAccessCollectionResponse and sets the default values. func NewPrivilegedAccessCollectionResponse()(*PrivilegedAccessCollectionResponse) { m := &PrivilegedAccessCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_access_group.go b/models/privileged_access_group.go index 0de0db7e701..6d76e79e763 100644 --- a/models/privileged_access_group.go +++ b/models/privileged_access_group.go @@ -7,6 +7,8 @@ import ( // PrivilegedAccessGroup type PrivilegedAccessGroup struct { Entity + // The OdataType property + OdataType *string } // NewPrivilegedAccessGroup instantiates a new privilegedAccessGroup and sets the default values. func NewPrivilegedAccessGroup()(*PrivilegedAccessGroup) { diff --git a/models/privileged_access_group_assignment_schedule.go b/models/privileged_access_group_assignment_schedule.go index 320419ad01a..b5637590748 100644 --- a/models/privileged_access_group_assignment_schedule.go +++ b/models/privileged_access_group_assignment_schedule.go @@ -7,8 +7,10 @@ import ( // PrivilegedAccessGroupAssignmentSchedule type PrivilegedAccessGroupAssignmentSchedule struct { PrivilegedAccessSchedule + // The OdataType property + OdataType *string } -// NewPrivilegedAccessGroupAssignmentSchedule instantiates a new PrivilegedAccessGroupAssignmentSchedule and sets the default values. +// NewPrivilegedAccessGroupAssignmentSchedule instantiates a new privilegedAccessGroupAssignmentSchedule and sets the default values. func NewPrivilegedAccessGroupAssignmentSchedule()(*PrivilegedAccessGroupAssignmentSchedule) { m := &PrivilegedAccessGroupAssignmentSchedule{ PrivilegedAccessSchedule: *NewPrivilegedAccessSchedule(), diff --git a/models/privileged_access_group_assignment_schedule_collection_response.go b/models/privileged_access_group_assignment_schedule_collection_response.go index b05fa5ec26b..45f1fa6d48a 100644 --- a/models/privileged_access_group_assignment_schedule_collection_response.go +++ b/models/privileged_access_group_assignment_schedule_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessGroupAssignmentScheduleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedAccessGroupAssignmentScheduleCollectionResponse instantiates a new PrivilegedAccessGroupAssignmentScheduleCollectionResponse and sets the default values. +// NewPrivilegedAccessGroupAssignmentScheduleCollectionResponse instantiates a new privilegedAccessGroupAssignmentScheduleCollectionResponse and sets the default values. func NewPrivilegedAccessGroupAssignmentScheduleCollectionResponse()(*PrivilegedAccessGroupAssignmentScheduleCollectionResponse) { m := &PrivilegedAccessGroupAssignmentScheduleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_access_group_assignment_schedule_instance.go b/models/privileged_access_group_assignment_schedule_instance.go index b33f9409433..99ed262855c 100644 --- a/models/privileged_access_group_assignment_schedule_instance.go +++ b/models/privileged_access_group_assignment_schedule_instance.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessGroupAssignmentScheduleInstance struct { PrivilegedAccessScheduleInstance } -// NewPrivilegedAccessGroupAssignmentScheduleInstance instantiates a new PrivilegedAccessGroupAssignmentScheduleInstance and sets the default values. +// NewPrivilegedAccessGroupAssignmentScheduleInstance instantiates a new privilegedAccessGroupAssignmentScheduleInstance and sets the default values. func NewPrivilegedAccessGroupAssignmentScheduleInstance()(*PrivilegedAccessGroupAssignmentScheduleInstance) { m := &PrivilegedAccessGroupAssignmentScheduleInstance{ PrivilegedAccessScheduleInstance: *NewPrivilegedAccessScheduleInstance(), diff --git a/models/privileged_access_group_assignment_schedule_instance_collection_response.go b/models/privileged_access_group_assignment_schedule_instance_collection_response.go index 3720f46b2ac..b1b21b657b4 100644 --- a/models/privileged_access_group_assignment_schedule_instance_collection_response.go +++ b/models/privileged_access_group_assignment_schedule_instance_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse instantiates a new PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse and sets the default values. +// NewPrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse instantiates a new privilegedAccessGroupAssignmentScheduleInstanceCollectionResponse and sets the default values. func NewPrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse()(*PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse) { m := &PrivilegedAccessGroupAssignmentScheduleInstanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_access_group_assignment_schedule_request.go b/models/privileged_access_group_assignment_schedule_request.go index e2d75839d24..d39834ee222 100644 --- a/models/privileged_access_group_assignment_schedule_request.go +++ b/models/privileged_access_group_assignment_schedule_request.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessGroupAssignmentScheduleRequest struct { PrivilegedAccessScheduleRequest } -// NewPrivilegedAccessGroupAssignmentScheduleRequest instantiates a new PrivilegedAccessGroupAssignmentScheduleRequest and sets the default values. +// NewPrivilegedAccessGroupAssignmentScheduleRequest instantiates a new privilegedAccessGroupAssignmentScheduleRequest and sets the default values. func NewPrivilegedAccessGroupAssignmentScheduleRequest()(*PrivilegedAccessGroupAssignmentScheduleRequest) { m := &PrivilegedAccessGroupAssignmentScheduleRequest{ PrivilegedAccessScheduleRequest: *NewPrivilegedAccessScheduleRequest(), diff --git a/models/privileged_access_group_assignment_schedule_request_collection_response.go b/models/privileged_access_group_assignment_schedule_request_collection_response.go index 94e4c2658c8..ae6b99ea4ca 100644 --- a/models/privileged_access_group_assignment_schedule_request_collection_response.go +++ b/models/privileged_access_group_assignment_schedule_request_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse instantiates a new PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse and sets the default values. +// NewPrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse instantiates a new privilegedAccessGroupAssignmentScheduleRequestCollectionResponse and sets the default values. func NewPrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse()(*PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse) { m := &PrivilegedAccessGroupAssignmentScheduleRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_access_group_eligibility_schedule.go b/models/privileged_access_group_eligibility_schedule.go index 39f84fa5746..f05f64ec239 100644 --- a/models/privileged_access_group_eligibility_schedule.go +++ b/models/privileged_access_group_eligibility_schedule.go @@ -7,6 +7,8 @@ import ( // PrivilegedAccessGroupEligibilitySchedule type PrivilegedAccessGroupEligibilitySchedule struct { PrivilegedAccessSchedule + // The OdataType property + OdataType *string } // NewPrivilegedAccessGroupEligibilitySchedule instantiates a new privilegedAccessGroupEligibilitySchedule and sets the default values. func NewPrivilegedAccessGroupEligibilitySchedule()(*PrivilegedAccessGroupEligibilitySchedule) { diff --git a/models/privileged_access_group_eligibility_schedule_collection_response.go b/models/privileged_access_group_eligibility_schedule_collection_response.go index e26c878beb8..57192dfe465 100644 --- a/models/privileged_access_group_eligibility_schedule_collection_response.go +++ b/models/privileged_access_group_eligibility_schedule_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessGroupEligibilityScheduleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedAccessGroupEligibilityScheduleCollectionResponse instantiates a new PrivilegedAccessGroupEligibilityScheduleCollectionResponse and sets the default values. +// NewPrivilegedAccessGroupEligibilityScheduleCollectionResponse instantiates a new privilegedAccessGroupEligibilityScheduleCollectionResponse and sets the default values. func NewPrivilegedAccessGroupEligibilityScheduleCollectionResponse()(*PrivilegedAccessGroupEligibilityScheduleCollectionResponse) { m := &PrivilegedAccessGroupEligibilityScheduleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_access_group_eligibility_schedule_instance_collection_response.go b/models/privileged_access_group_eligibility_schedule_instance_collection_response.go index 1827f8cc816..a0ba26d7f91 100644 --- a/models/privileged_access_group_eligibility_schedule_instance_collection_response.go +++ b/models/privileged_access_group_eligibility_schedule_instance_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse instantiates a new PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse and sets the default values. +// NewPrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse instantiates a new privilegedAccessGroupEligibilityScheduleInstanceCollectionResponse and sets the default values. func NewPrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse()(*PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse) { m := &PrivilegedAccessGroupEligibilityScheduleInstanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_access_group_eligibility_schedule_request.go b/models/privileged_access_group_eligibility_schedule_request.go index 814d55014ec..c0ff35635c4 100644 --- a/models/privileged_access_group_eligibility_schedule_request.go +++ b/models/privileged_access_group_eligibility_schedule_request.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessGroupEligibilityScheduleRequest struct { PrivilegedAccessScheduleRequest } -// NewPrivilegedAccessGroupEligibilityScheduleRequest instantiates a new PrivilegedAccessGroupEligibilityScheduleRequest and sets the default values. +// NewPrivilegedAccessGroupEligibilityScheduleRequest instantiates a new privilegedAccessGroupEligibilityScheduleRequest and sets the default values. func NewPrivilegedAccessGroupEligibilityScheduleRequest()(*PrivilegedAccessGroupEligibilityScheduleRequest) { m := &PrivilegedAccessGroupEligibilityScheduleRequest{ PrivilegedAccessScheduleRequest: *NewPrivilegedAccessScheduleRequest(), diff --git a/models/privileged_access_group_eligibility_schedule_request_collection_response.go b/models/privileged_access_group_eligibility_schedule_request_collection_response.go index a2be6dbe6a3..d37ae4b52d8 100644 --- a/models/privileged_access_group_eligibility_schedule_request_collection_response.go +++ b/models/privileged_access_group_eligibility_schedule_request_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse instantiates a new PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse and sets the default values. +// NewPrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse instantiates a new privilegedAccessGroupEligibilityScheduleRequestCollectionResponse and sets the default values. func NewPrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse()(*PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse) { m := &PrivilegedAccessGroupEligibilityScheduleRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_access_root.go b/models/privileged_access_root.go index fd901edc41b..21a84bab08a 100644 --- a/models/privileged_access_root.go +++ b/models/privileged_access_root.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessRoot struct { Entity } -// NewPrivilegedAccessRoot instantiates a new PrivilegedAccessRoot and sets the default values. +// NewPrivilegedAccessRoot instantiates a new privilegedAccessRoot and sets the default values. func NewPrivilegedAccessRoot()(*PrivilegedAccessRoot) { m := &PrivilegedAccessRoot{ Entity: *NewEntity(), @@ -32,6 +32,16 @@ func (m *PrivilegedAccessRoot) GetFieldDeserializers()(map[string]func(i878a80d2 } 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 } // GetGroup gets the group property value. A group that's governed through Privileged Identity Management (PIM). @@ -45,6 +55,17 @@ func (m *PrivilegedAccessRoot) GetGroup()(PrivilegedAccessGroupable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PrivilegedAccessRoot) 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 *PrivilegedAccessRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -57,6 +78,12 @@ func (m *PrivilegedAccessRoot) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetGroup sets the group property value. A group that's governed through Privileged Identity Management (PIM). @@ -66,10 +93,19 @@ func (m *PrivilegedAccessRoot) SetGroup(value PrivilegedAccessGroupable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PrivilegedAccessRoot) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // PrivilegedAccessRootable type PrivilegedAccessRootable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetGroup()(PrivilegedAccessGroupable) + GetOdataType()(*string) SetGroup(value PrivilegedAccessGroupable)() + SetOdataType(value *string)() } diff --git a/models/privileged_access_schedule.go b/models/privileged_access_schedule.go index 82352ffa5c7..6ffcdedde91 100644 --- a/models/privileged_access_schedule.go +++ b/models/privileged_access_schedule.go @@ -95,6 +95,16 @@ func (m *PrivilegedAccessSchedule) GetFieldDeserializers()(map[string]func(i878a } 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["scheduleInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateRequestScheduleFromDiscriminatorValue) if err != nil { @@ -128,6 +138,17 @@ func (m *PrivilegedAccessSchedule) GetModifiedDateTime()(*i336074805fc853987abe6 } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PrivilegedAccessSchedule) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetScheduleInfo gets the scheduleInfo property value. Represents the period of the access assignment or eligibility. The scheduleInfo can represent a single occurrence or multiple recurring instances. Required. func (m *PrivilegedAccessSchedule) GetScheduleInfo()(RequestScheduleable) { val, err := m.GetBackingStore().Get("scheduleInfo") @@ -174,6 +195,12 @@ func (m *PrivilegedAccessSchedule) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("scheduleInfo", m.GetScheduleInfo()) if err != nil { @@ -209,6 +236,13 @@ func (m *PrivilegedAccessSchedule) SetModifiedDateTime(value *i336074805fc853987 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PrivilegedAccessSchedule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetScheduleInfo sets the scheduleInfo property value. Represents the period of the access assignment or eligibility. The scheduleInfo can represent a single occurrence or multiple recurring instances. Required. func (m *PrivilegedAccessSchedule) SetScheduleInfo(value RequestScheduleable)() { err := m.GetBackingStore().Set("scheduleInfo", value) @@ -230,11 +264,13 @@ type PrivilegedAccessScheduleable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCreatedUsing()(*string) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetScheduleInfo()(RequestScheduleable) GetStatus()(*string) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCreatedUsing(value *string)() SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetScheduleInfo(value RequestScheduleable)() SetStatus(value *string)() } diff --git a/models/privileged_access_schedule_instance.go b/models/privileged_access_schedule_instance.go index f2a3cd4d731..8a015b4c65c 100644 --- a/models/privileged_access_schedule_instance.go +++ b/models/privileged_access_schedule_instance.go @@ -8,6 +8,8 @@ import ( // PrivilegedAccessScheduleInstance type PrivilegedAccessScheduleInstance struct { Entity + // The OdataType property + OdataType *string } // NewPrivilegedAccessScheduleInstance instantiates a new privilegedAccessScheduleInstance and sets the default values. func NewPrivilegedAccessScheduleInstance()(*PrivilegedAccessScheduleInstance) { diff --git a/models/privileged_access_schedule_request.go b/models/privileged_access_schedule_request.go index 64aacb1b65b..1deeced0d95 100644 --- a/models/privileged_access_schedule_request.go +++ b/models/privileged_access_schedule_request.go @@ -8,7 +8,7 @@ import ( type PrivilegedAccessScheduleRequest struct { Request } -// NewPrivilegedAccessScheduleRequest instantiates a new PrivilegedAccessScheduleRequest and sets the default values. +// NewPrivilegedAccessScheduleRequest instantiates a new privilegedAccessScheduleRequest and sets the default values. func NewPrivilegedAccessScheduleRequest()(*PrivilegedAccessScheduleRequest) { m := &PrivilegedAccessScheduleRequest{ Request: *NewRequest(), diff --git a/models/privileged_approval.go b/models/privileged_approval.go index 437430a6042..5caeaf2da21 100644 --- a/models/privileged_approval.go +++ b/models/privileged_approval.go @@ -8,6 +8,8 @@ import ( // PrivilegedApproval type PrivilegedApproval struct { Entity + // The OdataType property + OdataType *string } // NewPrivilegedApproval instantiates a new privilegedApproval and sets the default values. func NewPrivilegedApproval()(*PrivilegedApproval) { diff --git a/models/privileged_approval_collection_response.go b/models/privileged_approval_collection_response.go index 5c067af99b7..9f298d1c4d8 100644 --- a/models/privileged_approval_collection_response.go +++ b/models/privileged_approval_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedApprovalCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedApprovalCollectionResponse instantiates a new PrivilegedApprovalCollectionResponse and sets the default values. +// NewPrivilegedApprovalCollectionResponse instantiates a new privilegedApprovalCollectionResponse and sets the default values. func NewPrivilegedApprovalCollectionResponse()(*PrivilegedApprovalCollectionResponse) { m := &PrivilegedApprovalCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_operation_event.go b/models/privileged_operation_event.go index 34b446f8afb..dca6eb7018b 100644 --- a/models/privileged_operation_event.go +++ b/models/privileged_operation_event.go @@ -8,8 +8,10 @@ import ( // PrivilegedOperationEvent type PrivilegedOperationEvent struct { Entity + // The OdataType property + OdataType *string } -// NewPrivilegedOperationEvent instantiates a new PrivilegedOperationEvent and sets the default values. +// NewPrivilegedOperationEvent instantiates a new privilegedOperationEvent and sets the default values. func NewPrivilegedOperationEvent()(*PrivilegedOperationEvent) { m := &PrivilegedOperationEvent{ Entity: *NewEntity(), diff --git a/models/privileged_operation_event_collection_response.go b/models/privileged_operation_event_collection_response.go index e0700e019f3..6ec0c7be053 100644 --- a/models/privileged_operation_event_collection_response.go +++ b/models/privileged_operation_event_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedOperationEventCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedOperationEventCollectionResponse instantiates a new PrivilegedOperationEventCollectionResponse and sets the default values. +// NewPrivilegedOperationEventCollectionResponse instantiates a new privilegedOperationEventCollectionResponse and sets the default values. func NewPrivilegedOperationEventCollectionResponse()(*PrivilegedOperationEventCollectionResponse) { m := &PrivilegedOperationEventCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_role.go b/models/privileged_role.go index 88607d42a33..de1af90d233 100644 --- a/models/privileged_role.go +++ b/models/privileged_role.go @@ -7,6 +7,8 @@ import ( // PrivilegedRole type PrivilegedRole struct { Entity + // The OdataType property + OdataType *string } // NewPrivilegedRole instantiates a new privilegedRole and sets the default values. func NewPrivilegedRole()(*PrivilegedRole) { diff --git a/models/privileged_role_assignment.go b/models/privileged_role_assignment.go index daec8f15b7b..fb6ee06c018 100644 --- a/models/privileged_role_assignment.go +++ b/models/privileged_role_assignment.go @@ -8,6 +8,8 @@ import ( // PrivilegedRoleAssignment type PrivilegedRoleAssignment struct { Entity + // The OdataType property + OdataType *string } // NewPrivilegedRoleAssignment instantiates a new privilegedRoleAssignment and sets the default values. func NewPrivilegedRoleAssignment()(*PrivilegedRoleAssignment) { diff --git a/models/privileged_role_assignment_collection_response.go b/models/privileged_role_assignment_collection_response.go index c67a4ef8226..fc2408d8c6e 100644 --- a/models/privileged_role_assignment_collection_response.go +++ b/models/privileged_role_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedRoleAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedRoleAssignmentCollectionResponse instantiates a new PrivilegedRoleAssignmentCollectionResponse and sets the default values. +// NewPrivilegedRoleAssignmentCollectionResponse instantiates a new privilegedRoleAssignmentCollectionResponse and sets the default values. func NewPrivilegedRoleAssignmentCollectionResponse()(*PrivilegedRoleAssignmentCollectionResponse) { m := &PrivilegedRoleAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_role_assignment_request.go b/models/privileged_role_assignment_request.go index 728c6bfb311..220823f7a26 100644 --- a/models/privileged_role_assignment_request.go +++ b/models/privileged_role_assignment_request.go @@ -8,6 +8,8 @@ import ( // PrivilegedRoleAssignmentRequest type PrivilegedRoleAssignmentRequest struct { Entity + // The OdataType property + OdataType *string } // NewPrivilegedRoleAssignmentRequest instantiates a new privilegedRoleAssignmentRequest and sets the default values. func NewPrivilegedRoleAssignmentRequest()(*PrivilegedRoleAssignmentRequest) { diff --git a/models/privileged_role_assignment_request_collection_response.go b/models/privileged_role_assignment_request_collection_response.go index 12963536e93..87fb0e63593 100644 --- a/models/privileged_role_assignment_request_collection_response.go +++ b/models/privileged_role_assignment_request_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedRoleAssignmentRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedRoleAssignmentRequestCollectionResponse instantiates a new PrivilegedRoleAssignmentRequestCollectionResponse and sets the default values. +// NewPrivilegedRoleAssignmentRequestCollectionResponse instantiates a new privilegedRoleAssignmentRequestCollectionResponse and sets the default values. func NewPrivilegedRoleAssignmentRequestCollectionResponse()(*PrivilegedRoleAssignmentRequestCollectionResponse) { m := &PrivilegedRoleAssignmentRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_role_collection_response.go b/models/privileged_role_collection_response.go index 6863c6d1942..741690f820e 100644 --- a/models/privileged_role_collection_response.go +++ b/models/privileged_role_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedRoleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedRoleCollectionResponse instantiates a new PrivilegedRoleCollectionResponse and sets the default values. +// NewPrivilegedRoleCollectionResponse instantiates a new privilegedRoleCollectionResponse and sets the default values. func NewPrivilegedRoleCollectionResponse()(*PrivilegedRoleCollectionResponse) { m := &PrivilegedRoleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/privileged_role_settings.go b/models/privileged_role_settings.go index 3c059db360a..b01a01af7e7 100644 --- a/models/privileged_role_settings.go +++ b/models/privileged_role_settings.go @@ -7,6 +7,8 @@ import ( // PrivilegedRoleSettings type PrivilegedRoleSettings struct { Entity + // The OdataType property + OdataType *string } // NewPrivilegedRoleSettings instantiates a new privilegedRoleSettings and sets the default values. func NewPrivilegedRoleSettings()(*PrivilegedRoleSettings) { diff --git a/models/privileged_role_summary.go b/models/privileged_role_summary.go index f1d24037138..1a708252124 100644 --- a/models/privileged_role_summary.go +++ b/models/privileged_role_summary.go @@ -7,6 +7,8 @@ import ( // PrivilegedRoleSummary type PrivilegedRoleSummary struct { Entity + // The OdataType property + OdataType *string } // NewPrivilegedRoleSummary instantiates a new privilegedRoleSummary and sets the default values. func NewPrivilegedRoleSummary()(*PrivilegedRoleSummary) { diff --git a/models/privileged_signup_status.go b/models/privileged_signup_status.go index edc902ae41f..3e4cbc9af16 100644 --- a/models/privileged_signup_status.go +++ b/models/privileged_signup_status.go @@ -7,6 +7,8 @@ import ( // PrivilegedSignupStatus type PrivilegedSignupStatus struct { Entity + // The OdataType property + OdataType *string } // NewPrivilegedSignupStatus instantiates a new privilegedSignupStatus and sets the default values. func NewPrivilegedSignupStatus()(*PrivilegedSignupStatus) { diff --git a/models/privileged_signup_status_collection_response.go b/models/privileged_signup_status_collection_response.go index f9e82fea25c..9305ea3ec8f 100644 --- a/models/privileged_signup_status_collection_response.go +++ b/models/privileged_signup_status_collection_response.go @@ -8,7 +8,7 @@ import ( type PrivilegedSignupStatusCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPrivilegedSignupStatusCollectionResponse instantiates a new PrivilegedSignupStatusCollectionResponse and sets the default values. +// NewPrivilegedSignupStatusCollectionResponse instantiates a new privilegedSignupStatusCollectionResponse and sets the default values. func NewPrivilegedSignupStatusCollectionResponse()(*PrivilegedSignupStatusCollectionResponse) { m := &PrivilegedSignupStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/profile.go b/models/profile.go index 6488bb508af..3fe95e7e867 100644 --- a/models/profile.go +++ b/models/profile.go @@ -7,6 +7,8 @@ import ( // Profile type Profile struct { Entity + // The OdataType property + OdataType *string } // NewProfile instantiates a new profile and sets the default values. func NewProfile()(*Profile) { diff --git a/models/profile_card_property.go b/models/profile_card_property.go index 29419fdd455..7d79dd39c5c 100644 --- a/models/profile_card_property.go +++ b/models/profile_card_property.go @@ -7,6 +7,8 @@ import ( // ProfileCardProperty type ProfileCardProperty struct { Entity + // The OdataType property + OdataType *string } // NewProfileCardProperty instantiates a new profileCardProperty and sets the default values. func NewProfileCardProperty()(*ProfileCardProperty) { diff --git a/models/profile_card_property_collection_response.go b/models/profile_card_property_collection_response.go index 363076680ab..0cedee6f420 100644 --- a/models/profile_card_property_collection_response.go +++ b/models/profile_card_property_collection_response.go @@ -8,7 +8,7 @@ import ( type ProfileCardPropertyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewProfileCardPropertyCollectionResponse instantiates a new ProfileCardPropertyCollectionResponse and sets the default values. +// NewProfileCardPropertyCollectionResponse instantiates a new profileCardPropertyCollectionResponse and sets the default values. func NewProfileCardPropertyCollectionResponse()(*ProfileCardPropertyCollectionResponse) { m := &ProfileCardPropertyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/profile_photo.go b/models/profile_photo.go index e9e37553b8c..f010c8bb349 100644 --- a/models/profile_photo.go +++ b/models/profile_photo.go @@ -7,6 +7,8 @@ import ( // ProfilePhoto type ProfilePhoto struct { Entity + // The OdataType property + OdataType *string } // NewProfilePhoto instantiates a new profilePhoto and sets the default values. func NewProfilePhoto()(*ProfilePhoto) { diff --git a/models/profile_photo_collection_response.go b/models/profile_photo_collection_response.go index f49037b2def..f18dbb4d4f2 100644 --- a/models/profile_photo_collection_response.go +++ b/models/profile_photo_collection_response.go @@ -8,7 +8,7 @@ import ( type ProfilePhotoCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewProfilePhotoCollectionResponse instantiates a new ProfilePhotoCollectionResponse and sets the default values. +// NewProfilePhotoCollectionResponse instantiates a new profilePhotoCollectionResponse and sets the default values. func NewProfilePhotoCollectionResponse()(*ProfilePhotoCollectionResponse) { m := &ProfilePhotoCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/program.go b/models/program.go index c17902194ad..ddf2817f1b6 100644 --- a/models/program.go +++ b/models/program.go @@ -7,8 +7,10 @@ import ( // Program type Program struct { Entity + // The OdataType property + OdataType *string } -// NewProgram instantiates a new Program and sets the default values. +// NewProgram instantiates a new program and sets the default values. func NewProgram()(*Program) { m := &Program{ Entity: *NewEntity(), diff --git a/models/program_collection_response.go b/models/program_collection_response.go index 4bb57931d0b..f3da20e2153 100644 --- a/models/program_collection_response.go +++ b/models/program_collection_response.go @@ -8,7 +8,7 @@ import ( type ProgramCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewProgramCollectionResponse instantiates a new ProgramCollectionResponse and sets the default values. +// NewProgramCollectionResponse instantiates a new programCollectionResponse and sets the default values. func NewProgramCollectionResponse()(*ProgramCollectionResponse) { m := &ProgramCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/program_control.go b/models/program_control.go index 2aa4460ff18..24b9f156703 100644 --- a/models/program_control.go +++ b/models/program_control.go @@ -8,6 +8,8 @@ import ( // ProgramControl type ProgramControl struct { Entity + // The OdataType property + OdataType *string } // NewProgramControl instantiates a new programControl and sets the default values. func NewProgramControl()(*ProgramControl) { diff --git a/models/program_control_collection_response.go b/models/program_control_collection_response.go index 791673b5f1d..e6709d42043 100644 --- a/models/program_control_collection_response.go +++ b/models/program_control_collection_response.go @@ -8,7 +8,7 @@ import ( type ProgramControlCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewProgramControlCollectionResponse instantiates a new ProgramControlCollectionResponse and sets the default values. +// NewProgramControlCollectionResponse instantiates a new programControlCollectionResponse and sets the default values. func NewProgramControlCollectionResponse()(*ProgramControlCollectionResponse) { m := &ProgramControlCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/program_control_type.go b/models/program_control_type.go index 9031c83569e..46b8ac9b60e 100644 --- a/models/program_control_type.go +++ b/models/program_control_type.go @@ -7,6 +7,8 @@ import ( // ProgramControlType type ProgramControlType struct { Entity + // The OdataType property + OdataType *string } // NewProgramControlType instantiates a new programControlType and sets the default values. func NewProgramControlType()(*ProgramControlType) { diff --git a/models/program_control_type_collection_response.go b/models/program_control_type_collection_response.go index 03cec4ec5de..a8a54cfda87 100644 --- a/models/program_control_type_collection_response.go +++ b/models/program_control_type_collection_response.go @@ -8,7 +8,7 @@ import ( type ProgramControlTypeCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewProgramControlTypeCollectionResponse instantiates a new ProgramControlTypeCollectionResponse and sets the default values. +// NewProgramControlTypeCollectionResponse instantiates a new programControlTypeCollectionResponse and sets the default values. func NewProgramControlTypeCollectionResponse()(*ProgramControlTypeCollectionResponse) { m := &ProgramControlTypeCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/program_resource.go b/models/program_resource.go index 4c8d8df5671..53c7ef3acc3 100644 --- a/models/program_resource.go +++ b/models/program_resource.go @@ -7,8 +7,10 @@ import ( // ProgramResource type ProgramResource struct { Identity + // The OdataType property + OdataType *string } -// NewProgramResource instantiates a new ProgramResource and sets the default values. +// NewProgramResource instantiates a new programResource and sets the default values. func NewProgramResource()(*ProgramResource) { m := &ProgramResource{ Identity: *NewIdentity(), diff --git a/models/project_participation.go b/models/project_participation.go index d5a010c9c4e..0288c3917e3 100644 --- a/models/project_participation.go +++ b/models/project_participation.go @@ -8,7 +8,7 @@ import ( type ProjectParticipation struct { ItemFacet } -// NewProjectParticipation instantiates a new ProjectParticipation and sets the default values. +// NewProjectParticipation instantiates a new projectParticipation and sets the default values. func NewProjectParticipation()(*ProjectParticipation) { m := &ProjectParticipation{ ItemFacet: *NewItemFacet(), diff --git a/models/project_participation_collection_response.go b/models/project_participation_collection_response.go index 1873f04c0e8..123c6890a4d 100644 --- a/models/project_participation_collection_response.go +++ b/models/project_participation_collection_response.go @@ -8,7 +8,7 @@ import ( type ProjectParticipationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewProjectParticipationCollectionResponse instantiates a new ProjectParticipationCollectionResponse and sets the default values. +// NewProjectParticipationCollectionResponse instantiates a new projectParticipationCollectionResponse and sets the default values. func NewProjectParticipationCollectionResponse()(*ProjectParticipationCollectionResponse) { m := &ProjectParticipationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/prompt.go b/models/prompt.go index 49f89da5f35..77958d674d6 100644 --- a/models/prompt.go +++ b/models/prompt.go @@ -10,7 +10,7 @@ type Prompt struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPrompt instantiates a new Prompt and sets the default values. +// NewPrompt instantiates a new prompt and sets the default values. func NewPrompt()(*Prompt) { m := &Prompt{ } diff --git a/models/pronouns_settings.go b/models/pronouns_settings.go index 67c6bf9eb5f..e76f1491e14 100644 --- a/models/pronouns_settings.go +++ b/models/pronouns_settings.go @@ -7,6 +7,8 @@ import ( // PronounsSettings type PronounsSettings struct { Entity + // The OdataType property + OdataType *string } // NewPronounsSettings instantiates a new pronounsSettings and sets the default values. func NewPronounsSettings()(*PronounsSettings) { diff --git a/models/protect_adhoc_action.go b/models/protect_adhoc_action.go index 23eb3ba8bdd..0ddd696b50b 100644 --- a/models/protect_adhoc_action.go +++ b/models/protect_adhoc_action.go @@ -8,7 +8,7 @@ import ( type ProtectAdhocAction struct { InformationProtectionAction } -// NewProtectAdhocAction instantiates a new ProtectAdhocAction and sets the default values. +// NewProtectAdhocAction instantiates a new protectAdhocAction and sets the default values. func NewProtectAdhocAction()(*ProtectAdhocAction) { m := &ProtectAdhocAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,18 +24,54 @@ func CreateProtectAdhocActionFromDiscriminatorValue(parseNode i878a80d2330e89d26 // GetFieldDeserializers the deserialization information for the current model func (m *ProtectAdhocAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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 *ProtectAdhocAction) 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 *ProtectAdhocAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.InformationProtectionAction.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ProtectAdhocAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ProtectAdhocActionable type ProtectAdhocActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/protect_by_template_action.go b/models/protect_by_template_action.go index c51cf7d3f29..81cffe477eb 100644 --- a/models/protect_by_template_action.go +++ b/models/protect_by_template_action.go @@ -8,7 +8,7 @@ import ( type ProtectByTemplateAction struct { InformationProtectionAction } -// NewProtectByTemplateAction instantiates a new ProtectByTemplateAction and sets the default values. +// NewProtectByTemplateAction instantiates a new protectByTemplateAction and sets the default values. func NewProtectByTemplateAction()(*ProtectByTemplateAction) { m := &ProtectByTemplateAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,6 +24,16 @@ func CreateProtectByTemplateActionFromDiscriminatorValue(parseNode i878a80d2330e // GetFieldDeserializers the deserialization information for the current model func (m *ProtectByTemplateAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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["templateId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,6 +46,17 @@ func (m *ProtectByTemplateAction) GetFieldDeserializers()(map[string]func(i878a8 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ProtectByTemplateAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTemplateId gets the templateId property value. The GUID of the Azure Information Protection template to apply to the information. func (m *ProtectByTemplateAction) GetTemplateId()(*string) { val, err := m.GetBackingStore().Get("templateId") @@ -53,6 +74,12 @@ func (m *ProtectByTemplateAction) Serialize(writer i878a80d2330e89d26896388a3f48 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("templateId", m.GetTemplateId()) if err != nil { @@ -61,6 +88,13 @@ func (m *ProtectByTemplateAction) Serialize(writer i878a80d2330e89d26896388a3f48 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ProtectByTemplateAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTemplateId sets the templateId property value. The GUID of the Azure Information Protection template to apply to the information. func (m *ProtectByTemplateAction) SetTemplateId(value *string)() { err := m.GetBackingStore().Set("templateId", value) @@ -72,6 +106,8 @@ func (m *ProtectByTemplateAction) SetTemplateId(value *string)() { type ProtectByTemplateActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetTemplateId()(*string) + SetOdataType(value *string)() SetTemplateId(value *string)() } diff --git a/models/protect_do_not_forward_action.go b/models/protect_do_not_forward_action.go index cbd9db501f0..ae181883503 100644 --- a/models/protect_do_not_forward_action.go +++ b/models/protect_do_not_forward_action.go @@ -8,7 +8,7 @@ import ( type ProtectDoNotForwardAction struct { InformationProtectionAction } -// NewProtectDoNotForwardAction instantiates a new ProtectDoNotForwardAction and sets the default values. +// NewProtectDoNotForwardAction instantiates a new protectDoNotForwardAction and sets the default values. func NewProtectDoNotForwardAction()(*ProtectDoNotForwardAction) { m := &ProtectDoNotForwardAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,18 +24,54 @@ func CreateProtectDoNotForwardActionFromDiscriminatorValue(parseNode i878a80d233 // GetFieldDeserializers the deserialization information for the current model func (m *ProtectDoNotForwardAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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 *ProtectDoNotForwardAction) 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 *ProtectDoNotForwardAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.InformationProtectionAction.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ProtectDoNotForwardAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ProtectDoNotForwardActionable type ProtectDoNotForwardActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/protect_group.go b/models/protect_group.go index 08aa62be9a6..dfe397c7206 100644 --- a/models/protect_group.go +++ b/models/protect_group.go @@ -8,7 +8,7 @@ import ( type ProtectGroup struct { LabelActionBase } -// NewProtectGroup instantiates a new ProtectGroup and sets the default values. +// NewProtectGroup instantiates a new protectGroup and sets the default values. func NewProtectGroup()(*ProtectGroup) { m := &ProtectGroup{ LabelActionBase: *NewLabelActionBase(), @@ -66,6 +66,16 @@ func (m *ProtectGroup) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } 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["privacy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseGroupPrivacy) if err != nil { @@ -78,6 +88,17 @@ func (m *ProtectGroup) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ProtectGroup) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPrivacy gets the privacy property value. The privacy property func (m *ProtectGroup) GetPrivacy()(*GroupPrivacy) { val, err := m.GetBackingStore().Get("privacy") @@ -107,6 +128,12 @@ func (m *ProtectGroup) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetPrivacy() != nil { cast := (*m.GetPrivacy()).String() err = writer.WriteStringValue("privacy", &cast) @@ -130,6 +157,13 @@ func (m *ProtectGroup) SetAllowGuestUsers(value *bool)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ProtectGroup) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPrivacy sets the privacy property value. The privacy property func (m *ProtectGroup) SetPrivacy(value *GroupPrivacy)() { err := m.GetBackingStore().Set("privacy", value) @@ -143,8 +177,10 @@ type ProtectGroupable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowEmailFromGuestUsers()(*bool) GetAllowGuestUsers()(*bool) + GetOdataType()(*string) GetPrivacy()(*GroupPrivacy) SetAllowEmailFromGuestUsers(value *bool)() SetAllowGuestUsers(value *bool)() + SetOdataType(value *string)() SetPrivacy(value *GroupPrivacy)() } diff --git a/models/protect_online_meeting_action.go b/models/protect_online_meeting_action.go index bc4bd4a6e80..54b7c7068bf 100644 --- a/models/protect_online_meeting_action.go +++ b/models/protect_online_meeting_action.go @@ -7,8 +7,10 @@ import ( // ProtectOnlineMeetingAction type ProtectOnlineMeetingAction struct { LabelActionBase + // The OdataType property + OdataType *string } -// NewProtectOnlineMeetingAction instantiates a new ProtectOnlineMeetingAction and sets the default values. +// NewProtectOnlineMeetingAction instantiates a new protectOnlineMeetingAction and sets the default values. func NewProtectOnlineMeetingAction()(*ProtectOnlineMeetingAction) { m := &ProtectOnlineMeetingAction{ LabelActionBase: *NewLabelActionBase(), diff --git a/models/protect_site.go b/models/protect_site.go index c8ee6c47559..a0a7810502c 100644 --- a/models/protect_site.go +++ b/models/protect_site.go @@ -8,7 +8,7 @@ import ( type ProtectSite struct { LabelActionBase } -// NewProtectSite instantiates a new ProtectSite and sets the default values. +// NewProtectSite instantiates a new protectSite and sets the default values. func NewProtectSite()(*ProtectSite) { m := &ProtectSite{ LabelActionBase: *NewLabelActionBase(), @@ -66,8 +66,29 @@ func (m *ProtectSite) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ProtectSite) 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 *ProtectSite) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.LabelActionBase.Serialize(writer) @@ -87,6 +108,12 @@ func (m *ProtectSite) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAccessType sets the accessType property value. The accessType property @@ -103,12 +130,21 @@ func (m *ProtectSite) SetConditionalAccessProtectionLevelId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ProtectSite) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ProtectSiteable type ProtectSiteable interface { LabelActionBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAccessType()(*SiteAccessType) GetConditionalAccessProtectionLevelId()(*string) + GetOdataType()(*string) SetAccessType(value *SiteAccessType)() SetConditionalAccessProtectionLevelId(value *string)() + SetOdataType(value *string)() } diff --git a/models/provider_tenant_setting.go b/models/provider_tenant_setting.go index da746d8194f..7e09e65acaf 100644 --- a/models/provider_tenant_setting.go +++ b/models/provider_tenant_setting.go @@ -8,8 +8,10 @@ import ( // ProviderTenantSetting type ProviderTenantSetting struct { Entity + // The OdataType property + OdataType *string } -// NewProviderTenantSetting instantiates a new ProviderTenantSetting and sets the default values. +// NewProviderTenantSetting instantiates a new providerTenantSetting and sets the default values. func NewProviderTenantSetting()(*ProviderTenantSetting) { m := &ProviderTenantSetting{ Entity: *NewEntity(), diff --git a/models/provider_tenant_setting_collection_response.go b/models/provider_tenant_setting_collection_response.go index d075b67fecb..d824b725aea 100644 --- a/models/provider_tenant_setting_collection_response.go +++ b/models/provider_tenant_setting_collection_response.go @@ -8,7 +8,7 @@ import ( type ProviderTenantSettingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewProviderTenantSettingCollectionResponse instantiates a new ProviderTenantSettingCollectionResponse and sets the default values. +// NewProviderTenantSettingCollectionResponse instantiates a new providerTenantSettingCollectionResponse and sets the default values. func NewProviderTenantSettingCollectionResponse()(*ProviderTenantSettingCollectionResponse) { m := &ProviderTenantSettingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/provisioned_identity.go b/models/provisioned_identity.go index 14cb016d525..04d0c4120a1 100644 --- a/models/provisioned_identity.go +++ b/models/provisioned_identity.go @@ -7,8 +7,10 @@ import ( // ProvisionedIdentity type ProvisionedIdentity struct { Identity + // The OdataType property + OdataType *string } -// NewProvisionedIdentity instantiates a new ProvisionedIdentity and sets the default values. +// NewProvisionedIdentity instantiates a new provisionedIdentity and sets the default values. func NewProvisionedIdentity()(*ProvisionedIdentity) { m := &ProvisionedIdentity{ Identity: *NewIdentity(), diff --git a/models/provisioned_plan.go b/models/provisioned_plan.go index 4d7a3815cea..ebaa8724591 100644 --- a/models/provisioned_plan.go +++ b/models/provisioned_plan.go @@ -10,7 +10,7 @@ type ProvisionedPlan struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewProvisionedPlan instantiates a new ProvisionedPlan and sets the default values. +// NewProvisionedPlan instantiates a new provisionedPlan and sets the default values. func NewProvisionedPlan()(*ProvisionedPlan) { m := &ProvisionedPlan{ } diff --git a/models/provisioning_object_summary.go b/models/provisioning_object_summary.go index ee130688f09..b2e9b3ce5ab 100644 --- a/models/provisioning_object_summary.go +++ b/models/provisioning_object_summary.go @@ -8,8 +8,10 @@ import ( // ProvisioningObjectSummary type ProvisioningObjectSummary struct { Entity + // The OdataType property + OdataType *string } -// NewProvisioningObjectSummary instantiates a new ProvisioningObjectSummary and sets the default values. +// NewProvisioningObjectSummary instantiates a new provisioningObjectSummary and sets the default values. func NewProvisioningObjectSummary()(*ProvisioningObjectSummary) { m := &ProvisioningObjectSummary{ Entity: *NewEntity(), diff --git a/models/provisioning_object_summary_collection_response.go b/models/provisioning_object_summary_collection_response.go index 99063a25210..2f0cb02906d 100644 --- a/models/provisioning_object_summary_collection_response.go +++ b/models/provisioning_object_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type ProvisioningObjectSummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewProvisioningObjectSummaryCollectionResponse instantiates a new ProvisioningObjectSummaryCollectionResponse and sets the default values. +// NewProvisioningObjectSummaryCollectionResponse instantiates a new provisioningObjectSummaryCollectionResponse and sets the default values. func NewProvisioningObjectSummaryCollectionResponse()(*ProvisioningObjectSummaryCollectionResponse) { m := &ProvisioningObjectSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/provisioning_service_principal.go b/models/provisioning_service_principal.go index 288fd3d9194..7230b3316f0 100644 --- a/models/provisioning_service_principal.go +++ b/models/provisioning_service_principal.go @@ -7,8 +7,10 @@ import ( // ProvisioningServicePrincipal type ProvisioningServicePrincipal struct { Identity + // The OdataType property + OdataType *string } -// NewProvisioningServicePrincipal instantiates a new ProvisioningServicePrincipal and sets the default values. +// NewProvisioningServicePrincipal instantiates a new provisioningServicePrincipal and sets the default values. func NewProvisioningServicePrincipal()(*ProvisioningServicePrincipal) { m := &ProvisioningServicePrincipal{ Identity: *NewIdentity(), diff --git a/models/provisioning_system.go b/models/provisioning_system.go index 318fc90291c..da743777237 100644 --- a/models/provisioning_system.go +++ b/models/provisioning_system.go @@ -7,8 +7,10 @@ import ( // ProvisioningSystem type ProvisioningSystem struct { Identity + // The OdataType property + OdataType *string } -// NewProvisioningSystem instantiates a new ProvisioningSystem and sets the default values. +// NewProvisioningSystem instantiates a new provisioningSystem and sets the default values. func NewProvisioningSystem()(*ProvisioningSystem) { m := &ProvisioningSystem{ Identity: *NewIdentity(), diff --git a/models/proxied_domain.go b/models/proxied_domain.go index e19374b1e49..d17f3e74005 100644 --- a/models/proxied_domain.go +++ b/models/proxied_domain.go @@ -10,7 +10,7 @@ type ProxiedDomain struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewProxiedDomain instantiates a new ProxiedDomain and sets the default values. +// NewProxiedDomain instantiates a new proxiedDomain and sets the default values. func NewProxiedDomain()(*ProxiedDomain) { m := &ProxiedDomain{ } diff --git a/models/published_resource.go b/models/published_resource.go index 354f1ea044a..16fd29aa664 100644 --- a/models/published_resource.go +++ b/models/published_resource.go @@ -70,6 +70,16 @@ func (m *PublishedResource) GetFieldDeserializers()(map[string]func(i878a80d2330 } 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["publishingType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseOnPremisesPublishingType) if err != nil { @@ -92,6 +102,17 @@ func (m *PublishedResource) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *PublishedResource) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPublishingType gets the publishingType property value. The publishingType property func (m *PublishedResource) GetPublishingType()(*OnPremisesPublishingType) { val, err := m.GetBackingStore().Get("publishingType") @@ -138,6 +159,12 @@ func (m *PublishedResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetPublishingType() != nil { cast := (*m.GetPublishingType()).String() err = writer.WriteStringValue("publishingType", &cast) @@ -167,6 +194,13 @@ func (m *PublishedResource) SetDisplayName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PublishedResource) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPublishingType sets the publishingType property value. The publishingType property func (m *PublishedResource) SetPublishingType(value *OnPremisesPublishingType)() { err := m.GetBackingStore().Set("publishingType", value) @@ -187,10 +221,12 @@ type PublishedResourceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAgentGroups()([]OnPremisesAgentGroupable) GetDisplayName()(*string) + GetOdataType()(*string) GetPublishingType()(*OnPremisesPublishingType) GetResourceName()(*string) SetAgentGroups(value []OnPremisesAgentGroupable)() SetDisplayName(value *string)() + SetOdataType(value *string)() SetPublishingType(value *OnPremisesPublishingType)() SetResourceName(value *string)() } diff --git a/models/published_resource_collection_response.go b/models/published_resource_collection_response.go index 4391eabb7f3..1f29dedb21e 100644 --- a/models/published_resource_collection_response.go +++ b/models/published_resource_collection_response.go @@ -8,7 +8,7 @@ import ( type PublishedResourceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPublishedResourceCollectionResponse instantiates a new PublishedResourceCollectionResponse and sets the default values. +// NewPublishedResourceCollectionResponse instantiates a new publishedResourceCollectionResponse and sets the default values. func NewPublishedResourceCollectionResponse()(*PublishedResourceCollectionResponse) { m := &PublishedResourceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/purchase_invoice.go b/models/purchase_invoice.go index 1ad97cb81cd..4d282b124d8 100644 --- a/models/purchase_invoice.go +++ b/models/purchase_invoice.go @@ -12,7 +12,7 @@ type PurchaseInvoice struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewPurchaseInvoice instantiates a new PurchaseInvoice and sets the default values. +// NewPurchaseInvoice instantiates a new purchaseInvoice and sets the default values. func NewPurchaseInvoice()(*PurchaseInvoice) { m := &PurchaseInvoice{ } diff --git a/models/purchase_invoice_collection_response.go b/models/purchase_invoice_collection_response.go index b1eb533be8b..6fdffcda575 100644 --- a/models/purchase_invoice_collection_response.go +++ b/models/purchase_invoice_collection_response.go @@ -8,7 +8,7 @@ import ( type PurchaseInvoiceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPurchaseInvoiceCollectionResponse instantiates a new PurchaseInvoiceCollectionResponse and sets the default values. +// NewPurchaseInvoiceCollectionResponse instantiates a new purchaseInvoiceCollectionResponse and sets the default values. func NewPurchaseInvoiceCollectionResponse()(*PurchaseInvoiceCollectionResponse) { m := &PurchaseInvoiceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/purchase_invoice_line.go b/models/purchase_invoice_line.go index 39e39243ddb..6bc82ab9399 100644 --- a/models/purchase_invoice_line.go +++ b/models/purchase_invoice_line.go @@ -8,8 +8,10 @@ import ( // PurchaseInvoiceLine type PurchaseInvoiceLine struct { Entity + // The OdataType property + OdataType *string } -// NewPurchaseInvoiceLine instantiates a new PurchaseInvoiceLine and sets the default values. +// NewPurchaseInvoiceLine instantiates a new purchaseInvoiceLine and sets the default values. func NewPurchaseInvoiceLine()(*PurchaseInvoiceLine) { m := &PurchaseInvoiceLine{ Entity: *NewEntity(), diff --git a/models/purchase_invoice_line_collection_response.go b/models/purchase_invoice_line_collection_response.go index f3592bdb1cb..acf412f5f99 100644 --- a/models/purchase_invoice_line_collection_response.go +++ b/models/purchase_invoice_line_collection_response.go @@ -8,7 +8,7 @@ import ( type PurchaseInvoiceLineCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewPurchaseInvoiceLineCollectionResponse instantiates a new PurchaseInvoiceLineCollectionResponse and sets the default values. +// NewPurchaseInvoiceLineCollectionResponse instantiates a new purchaseInvoiceLineCollectionResponse and sets the default values. func NewPurchaseInvoiceLineCollectionResponse()(*PurchaseInvoiceLineCollectionResponse) { m := &PurchaseInvoiceLineCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/rbac_application.go b/models/rbac_application.go index 69b624b1f11..a788377d63f 100644 --- a/models/rbac_application.go +++ b/models/rbac_application.go @@ -7,8 +7,10 @@ import ( // RbacApplication type RbacApplication struct { Entity + // The OdataType property + OdataType *string } -// NewRbacApplication instantiates a new RbacApplication and sets the default values. +// NewRbacApplication instantiates a new rbacApplication and sets the default values. func NewRbacApplication()(*RbacApplication) { m := &RbacApplication{ Entity: *NewEntity(), diff --git a/models/rbac_application_collection_response.go b/models/rbac_application_collection_response.go index e65a48f25de..d0588288681 100644 --- a/models/rbac_application_collection_response.go +++ b/models/rbac_application_collection_response.go @@ -8,7 +8,7 @@ import ( type RbacApplicationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRbacApplicationCollectionResponse instantiates a new RbacApplicationCollectionResponse and sets the default values. +// NewRbacApplicationCollectionResponse instantiates a new rbacApplicationCollectionResponse and sets the default values. func NewRbacApplicationCollectionResponse()(*RbacApplicationCollectionResponse) { m := &RbacApplicationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/rbac_application_multiple.go b/models/rbac_application_multiple.go index eb8ae425909..05e8ff46080 100644 --- a/models/rbac_application_multiple.go +++ b/models/rbac_application_multiple.go @@ -7,8 +7,10 @@ import ( // RbacApplicationMultiple type RbacApplicationMultiple struct { Entity + // The OdataType property + OdataType *string } -// NewRbacApplicationMultiple instantiates a new RbacApplicationMultiple and sets the default values. +// NewRbacApplicationMultiple instantiates a new rbacApplicationMultiple and sets the default values. func NewRbacApplicationMultiple()(*RbacApplicationMultiple) { m := &RbacApplicationMultiple{ Entity: *NewEntity(), diff --git a/models/recommend_label_action.go b/models/recommend_label_action.go index 0f970df220a..d3687a9448f 100644 --- a/models/recommend_label_action.go +++ b/models/recommend_label_action.go @@ -9,7 +9,7 @@ import ( type RecommendLabelAction struct { InformationProtectionAction } -// NewRecommendLabelAction instantiates a new RecommendLabelAction and sets the default values. +// NewRecommendLabelAction instantiates a new recommendLabelAction and sets the default values. func NewRecommendLabelAction()(*RecommendLabelAction) { m := &RecommendLabelAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -83,6 +83,16 @@ func (m *RecommendLabelAction) GetFieldDeserializers()(map[string]func(i878a80d2 } 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["responsibleSensitiveTypeIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("uuid") if err != nil { @@ -112,6 +122,17 @@ func (m *RecommendLabelAction) GetLabel()(LabelDetailsable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RecommendLabelAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetResponsibleSensitiveTypeIds gets the responsibleSensitiveTypeIds property value. The sensitive information type GUIDs that caused the recommendation to be given. func (m *RecommendLabelAction) GetResponsibleSensitiveTypeIds()([]i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { val, err := m.GetBackingStore().Get("responsibleSensitiveTypeIds") @@ -154,6 +175,12 @@ func (m *RecommendLabelAction) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetResponsibleSensitiveTypeIds() != nil { err = writer.WriteCollectionOfUUIDValues("responsibleSensitiveTypeIds", m.GetResponsibleSensitiveTypeIds()) if err != nil { @@ -183,6 +210,13 @@ func (m *RecommendLabelAction) SetLabel(value LabelDetailsable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RecommendLabelAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetResponsibleSensitiveTypeIds sets the responsibleSensitiveTypeIds property value. The sensitive information type GUIDs that caused the recommendation to be given. func (m *RecommendLabelAction) SetResponsibleSensitiveTypeIds(value []i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { err := m.GetBackingStore().Set("responsibleSensitiveTypeIds", value) @@ -197,9 +231,11 @@ type RecommendLabelActionable interface { GetActions()([]InformationProtectionActionable) GetActionSource()(*ActionSource) GetLabel()(LabelDetailsable) + GetOdataType()(*string) GetResponsibleSensitiveTypeIds()([]i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) SetActions(value []InformationProtectionActionable)() SetActionSource(value *ActionSource)() SetLabel(value LabelDetailsable)() + SetOdataType(value *string)() SetResponsibleSensitiveTypeIds(value []i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() } diff --git a/models/recommendation.go b/models/recommendation.go index 7bbd1a00889..c8c2a6404b1 100644 --- a/models/recommendation.go +++ b/models/recommendation.go @@ -8,7 +8,7 @@ import ( type Recommendation struct { RecommendationBase } -// NewRecommendation instantiates a new Recommendation and sets the default values. +// NewRecommendation instantiates a new recommendation and sets the default values. func NewRecommendation()(*Recommendation) { m := &Recommendation{ RecommendationBase: *NewRecommendationBase(), diff --git a/models/recommendation_base.go b/models/recommendation_base.go index 59270856eeb..36b9e6a7e5b 100644 --- a/models/recommendation_base.go +++ b/models/recommendation_base.go @@ -8,6 +8,8 @@ import ( // RecommendationBase type RecommendationBase struct { Entity + // The OdataType property + OdataType *string } // NewRecommendationBase instantiates a new recommendationBase and sets the default values. func NewRecommendationBase()(*RecommendationBase) { diff --git a/models/recommendation_collection_response.go b/models/recommendation_collection_response.go index b628848cd72..fdfbd653a5b 100644 --- a/models/recommendation_collection_response.go +++ b/models/recommendation_collection_response.go @@ -8,7 +8,7 @@ import ( type RecommendationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRecommendationCollectionResponse instantiates a new RecommendationCollectionResponse and sets the default values. +// NewRecommendationCollectionResponse instantiates a new recommendationCollectionResponse and sets the default values. func NewRecommendationCollectionResponse()(*RecommendationCollectionResponse) { m := &RecommendationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/record_operation.go b/models/record_operation.go index 2b0f494443e..f634c75739f 100644 --- a/models/record_operation.go +++ b/models/record_operation.go @@ -8,7 +8,7 @@ import ( type RecordOperation struct { CommsOperation } -// NewRecordOperation instantiates a new RecordOperation and sets the default values. +// NewRecordOperation instantiates a new recordOperation and sets the default values. func NewRecordOperation()(*RecordOperation) { m := &RecordOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/redirect_single_sign_on_extension.go b/models/redirect_single_sign_on_extension.go index 79bd6398255..97cb2d54f9a 100644 --- a/models/redirect_single_sign_on_extension.go +++ b/models/redirect_single_sign_on_extension.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// RedirectSingleSignOnExtension +// RedirectSingleSignOnExtension represents an Apple Single Sign-On Extension. type RedirectSingleSignOnExtension struct { SingleSignOnExtension } -// NewRedirectSingleSignOnExtension instantiates a new RedirectSingleSignOnExtension and sets the default values. +// NewRedirectSingleSignOnExtension instantiates a new redirectSingleSignOnExtension and sets the default values. func NewRedirectSingleSignOnExtension()(*RedirectSingleSignOnExtension) { m := &RedirectSingleSignOnExtension{ SingleSignOnExtension: *NewSingleSignOnExtension(), @@ -72,6 +72,16 @@ func (m *RedirectSingleSignOnExtension) GetFieldDeserializers()(map[string]func( } 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["teamIdentifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -100,6 +110,17 @@ func (m *RedirectSingleSignOnExtension) GetFieldDeserializers()(map[string]func( } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RedirectSingleSignOnExtension) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTeamIdentifier gets the teamIdentifier property value. Gets or sets the team ID of the app extension that performs SSO for the specified URLs. func (m *RedirectSingleSignOnExtension) GetTeamIdentifier()(*string) { val, err := m.GetBackingStore().Get("teamIdentifier") @@ -146,6 +167,12 @@ func (m *RedirectSingleSignOnExtension) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("teamIdentifier", m.GetTeamIdentifier()) if err != nil { @@ -174,6 +201,13 @@ func (m *RedirectSingleSignOnExtension) SetExtensionIdentifier(value *string)() panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RedirectSingleSignOnExtension) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTeamIdentifier sets the teamIdentifier property value. Gets or sets the team ID of the app extension that performs SSO for the specified URLs. func (m *RedirectSingleSignOnExtension) SetTeamIdentifier(value *string)() { err := m.GetBackingStore().Set("teamIdentifier", value) @@ -194,10 +228,12 @@ type RedirectSingleSignOnExtensionable interface { SingleSignOnExtensionable GetConfigurations()([]KeyTypedValuePairable) GetExtensionIdentifier()(*string) + GetOdataType()(*string) GetTeamIdentifier()(*string) GetUrlPrefixes()([]string) SetConfigurations(value []KeyTypedValuePairable)() SetExtensionIdentifier(value *string)() + SetOdataType(value *string)() SetTeamIdentifier(value *string)() SetUrlPrefixes(value []string)() } diff --git a/models/redirect_uri_settings.go b/models/redirect_uri_settings.go index 24efc912338..92db7a13e00 100644 --- a/models/redirect_uri_settings.go +++ b/models/redirect_uri_settings.go @@ -10,7 +10,7 @@ type RedirectUriSettings struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewRedirectUriSettings instantiates a new RedirectUriSettings and sets the default values. +// NewRedirectUriSettings instantiates a new redirectUriSettings and sets the default values. func NewRedirectUriSettings()(*RedirectUriSettings) { m := &RedirectUriSettings{ } diff --git a/models/redundant_assignment_alert_configuration.go b/models/redundant_assignment_alert_configuration.go index 3e530c07f7b..f1b6590cbb1 100644 --- a/models/redundant_assignment_alert_configuration.go +++ b/models/redundant_assignment_alert_configuration.go @@ -8,7 +8,7 @@ import ( type RedundantAssignmentAlertConfiguration struct { UnifiedRoleManagementAlertConfiguration } -// NewRedundantAssignmentAlertConfiguration instantiates a new RedundantAssignmentAlertConfiguration and sets the default values. +// NewRedundantAssignmentAlertConfiguration instantiates a new redundantAssignmentAlertConfiguration and sets the default values. func NewRedundantAssignmentAlertConfiguration()(*RedundantAssignmentAlertConfiguration) { m := &RedundantAssignmentAlertConfiguration{ UnifiedRoleManagementAlertConfiguration: *NewUnifiedRoleManagementAlertConfiguration(), diff --git a/models/redundant_assignment_alert_incident.go b/models/redundant_assignment_alert_incident.go index c930f6c78c7..bcbd5546885 100644 --- a/models/redundant_assignment_alert_incident.go +++ b/models/redundant_assignment_alert_incident.go @@ -9,7 +9,7 @@ import ( type RedundantAssignmentAlertIncident struct { UnifiedRoleManagementAlertIncident } -// NewRedundantAssignmentAlertIncident instantiates a new RedundantAssignmentAlertIncident and sets the default values. +// NewRedundantAssignmentAlertIncident instantiates a new redundantAssignmentAlertIncident and sets the default values. func NewRedundantAssignmentAlertIncident()(*RedundantAssignmentAlertIncident) { m := &RedundantAssignmentAlertIncident{ UnifiedRoleManagementAlertIncident: *NewUnifiedRoleManagementAlertIncident(), diff --git a/models/reference_attachment.go b/models/reference_attachment.go index bf34103fc29..685d92779ca 100644 --- a/models/reference_attachment.go +++ b/models/reference_attachment.go @@ -7,8 +7,10 @@ import ( // ReferenceAttachment type ReferenceAttachment struct { Attachment + // The OdataType property + OdataType *string } -// NewReferenceAttachment instantiates a new ReferenceAttachment and sets the default values. +// NewReferenceAttachment instantiates a new referenceAttachment and sets the default values. func NewReferenceAttachment()(*ReferenceAttachment) { m := &ReferenceAttachment{ Attachment: *NewAttachment(), diff --git a/models/regional_and_language_settings.go b/models/regional_and_language_settings.go index 25b52aa9123..432d9245322 100644 --- a/models/regional_and_language_settings.go +++ b/models/regional_and_language_settings.go @@ -133,6 +133,16 @@ func (m *RegionalAndLanguageSettings) GetFieldDeserializers()(map[string]func(i8 } 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["regionalFormatOverrides"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateRegionalFormatOverridesFromDiscriminatorValue) if err != nil { @@ -155,6 +165,17 @@ func (m *RegionalAndLanguageSettings) GetFieldDeserializers()(map[string]func(i8 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RegionalAndLanguageSettings) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRegionalFormatOverrides gets the regionalFormatOverrides property value. Allows a user to override their defaultRegionalFormat with field specific formats.Returned by default. func (m *RegionalAndLanguageSettings) GetRegionalFormatOverrides()(RegionalFormatOverridesable) { val, err := m.GetBackingStore().Get("regionalFormatOverrides") @@ -219,6 +240,12 @@ func (m *RegionalAndLanguageSettings) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("regionalFormatOverrides", m.GetRegionalFormatOverrides()) if err != nil { @@ -268,6 +295,13 @@ func (m *RegionalAndLanguageSettings) SetDefaultTranslationLanguage(value Locale panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RegionalAndLanguageSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRegionalFormatOverrides sets the regionalFormatOverrides property value. Allows a user to override their defaultRegionalFormat with field specific formats.Returned by default. func (m *RegionalAndLanguageSettings) SetRegionalFormatOverrides(value RegionalFormatOverridesable)() { err := m.GetBackingStore().Set("regionalFormatOverrides", value) @@ -291,6 +325,7 @@ type RegionalAndLanguageSettingsable interface { GetDefaultRegionalFormat()(LocaleInfoable) GetDefaultSpeechInputLanguage()(LocaleInfoable) GetDefaultTranslationLanguage()(LocaleInfoable) + GetOdataType()(*string) GetRegionalFormatOverrides()(RegionalFormatOverridesable) GetTranslationPreferences()(TranslationPreferencesable) SetAuthoringLanguages(value []LocaleInfoable)() @@ -298,6 +333,7 @@ type RegionalAndLanguageSettingsable interface { SetDefaultRegionalFormat(value LocaleInfoable)() SetDefaultSpeechInputLanguage(value LocaleInfoable)() SetDefaultTranslationLanguage(value LocaleInfoable)() + SetOdataType(value *string)() SetRegionalFormatOverrides(value RegionalFormatOverridesable)() SetTranslationPreferences(value TranslationPreferencesable)() } diff --git a/models/relying_party_detailed_summary.go b/models/relying_party_detailed_summary.go index ae390bcbd27..e18b247ffbc 100644 --- a/models/relying_party_detailed_summary.go +++ b/models/relying_party_detailed_summary.go @@ -7,8 +7,10 @@ import ( // RelyingPartyDetailedSummary type RelyingPartyDetailedSummary struct { Entity + // The OdataType property + OdataType *string } -// NewRelyingPartyDetailedSummary instantiates a new RelyingPartyDetailedSummary and sets the default values. +// NewRelyingPartyDetailedSummary instantiates a new relyingPartyDetailedSummary and sets the default values. func NewRelyingPartyDetailedSummary()(*RelyingPartyDetailedSummary) { m := &RelyingPartyDetailedSummary{ Entity: *NewEntity(), diff --git a/models/reminder.go b/models/reminder.go index 6732327cfa9..2a5dd43e91b 100644 --- a/models/reminder.go +++ b/models/reminder.go @@ -10,7 +10,7 @@ type Reminder struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewReminder instantiates a new Reminder and sets the default values. +// NewReminder instantiates a new reminder and sets the default values. func NewReminder()(*Reminder) { m := &Reminder{ } diff --git a/models/remote_action_audit.go b/models/remote_action_audit.go index 5975c1e89ec..c9a9fdedc60 100644 --- a/models/remote_action_audit.go +++ b/models/remote_action_audit.go @@ -148,6 +148,16 @@ func (m *RemoteActionAudit) GetFieldDeserializers()(map[string]func(i878a80d2330 } 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["requestDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -192,6 +202,17 @@ func (m *RemoteActionAudit) GetManagedDeviceId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RemoteActionAudit) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRequestDateTime gets the requestDateTime property value. Time when the action was issued, given in UTC. func (m *RemoteActionAudit) GetRequestDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("requestDateTime") @@ -264,6 +285,12 @@ func (m *RemoteActionAudit) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteTimeValue("requestDateTime", m.GetRequestDateTime()) if err != nil { @@ -327,6 +354,13 @@ func (m *RemoteActionAudit) SetManagedDeviceId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RemoteActionAudit) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRequestDateTime sets the requestDateTime property value. Time when the action was issued, given in UTC. func (m *RemoteActionAudit) SetRequestDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("requestDateTime", value) @@ -352,6 +386,7 @@ type RemoteActionAuditable interface { GetDeviceOwnerUserPrincipalName()(*string) GetInitiatedByUserPrincipalName()(*string) GetManagedDeviceId()(*string) + GetOdataType()(*string) GetRequestDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetUserName()(*string) SetAction(value *RemoteAction)() @@ -361,6 +396,7 @@ type RemoteActionAuditable interface { SetDeviceOwnerUserPrincipalName(value *string)() SetInitiatedByUserPrincipalName(value *string)() SetManagedDeviceId(value *string)() + SetOdataType(value *string)() SetRequestDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetUserName(value *string)() } diff --git a/models/remote_action_audit_collection_response.go b/models/remote_action_audit_collection_response.go index 01464242ed6..4915ddb1709 100644 --- a/models/remote_action_audit_collection_response.go +++ b/models/remote_action_audit_collection_response.go @@ -8,7 +8,7 @@ import ( type RemoteActionAuditCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRemoteActionAuditCollectionResponse instantiates a new RemoteActionAuditCollectionResponse and sets the default values. +// NewRemoteActionAuditCollectionResponse instantiates a new remoteActionAuditCollectionResponse and sets the default values. func NewRemoteActionAuditCollectionResponse()(*RemoteActionAuditCollectionResponse) { m := &RemoteActionAuditCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/remote_assistance_partner.go b/models/remote_assistance_partner.go index 4e909d213f7..d780a9687e4 100644 --- a/models/remote_assistance_partner.go +++ b/models/remote_assistance_partner.go @@ -8,6 +8,8 @@ import ( // RemoteAssistancePartner remoteAssistPartner resources represent the metadata and status of a given Remote Assistance partner service. type RemoteAssistancePartner struct { Entity + // The OdataType property + OdataType *string } // NewRemoteAssistancePartner instantiates a new remoteAssistancePartner and sets the default values. func NewRemoteAssistancePartner()(*RemoteAssistancePartner) { diff --git a/models/remote_assistance_partner_collection_response.go b/models/remote_assistance_partner_collection_response.go index 6384a0d9192..cbb247649e3 100644 --- a/models/remote_assistance_partner_collection_response.go +++ b/models/remote_assistance_partner_collection_response.go @@ -8,7 +8,7 @@ import ( type RemoteAssistancePartnerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRemoteAssistancePartnerCollectionResponse instantiates a new RemoteAssistancePartnerCollectionResponse and sets the default values. +// NewRemoteAssistancePartnerCollectionResponse instantiates a new remoteAssistancePartnerCollectionResponse and sets the default values. func NewRemoteAssistancePartnerCollectionResponse()(*RemoteAssistancePartnerCollectionResponse) { m := &RemoteAssistancePartnerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/remote_assistance_settings.go b/models/remote_assistance_settings.go index 74492acf8fb..8027b50c10c 100644 --- a/models/remote_assistance_settings.go +++ b/models/remote_assistance_settings.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// RemoteAssistanceSettings +// RemoteAssistanceSettings remote assistance settings for the account type RemoteAssistanceSettings struct { Entity + // The OdataType property + OdataType *string } // NewRemoteAssistanceSettings instantiates a new remoteAssistanceSettings and sets the default values. func NewRemoteAssistanceSettings()(*RemoteAssistanceSettings) { diff --git a/models/remote_lock_action_result.go b/models/remote_lock_action_result.go index 627fb3628c4..3c5d2bbf993 100644 --- a/models/remote_lock_action_result.go +++ b/models/remote_lock_action_result.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// RemoteLockActionResult +// RemoteLockActionResult lock action result with a pin to unlock type RemoteLockActionResult struct { DeviceActionResult + // The OdataType property + OdataType *string } -// NewRemoteLockActionResult instantiates a new RemoteLockActionResult and sets the default values. +// NewRemoteLockActionResult instantiates a new remoteLockActionResult and sets the default values. func NewRemoteLockActionResult()(*RemoteLockActionResult) { m := &RemoteLockActionResult{ DeviceActionResult: *NewDeviceActionResult(), diff --git a/models/remove_access_apply_action.go b/models/remove_access_apply_action.go index 5f965445222..df65ad210b5 100644 --- a/models/remove_access_apply_action.go +++ b/models/remove_access_apply_action.go @@ -8,7 +8,7 @@ import ( type RemoveAccessApplyAction struct { AccessReviewApplyAction } -// NewRemoveAccessApplyAction instantiates a new RemoveAccessApplyAction and sets the default values. +// NewRemoveAccessApplyAction instantiates a new removeAccessApplyAction and sets the default values. func NewRemoveAccessApplyAction()(*RemoveAccessApplyAction) { m := &RemoveAccessApplyAction{ AccessReviewApplyAction: *NewAccessReviewApplyAction(), @@ -24,18 +24,54 @@ func CreateRemoveAccessApplyActionFromDiscriminatorValue(parseNode i878a80d2330e // GetFieldDeserializers the deserialization information for the current model func (m *RemoveAccessApplyAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AccessReviewApplyAction.GetFieldDeserializers() + 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 *RemoveAccessApplyAction) 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 *RemoveAccessApplyAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AccessReviewApplyAction.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RemoveAccessApplyAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // RemoveAccessApplyActionable type RemoveAccessApplyActionable interface { AccessReviewApplyActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/remove_content_footer_action.go b/models/remove_content_footer_action.go index e9cc9bb53a6..e8fc47f75e0 100644 --- a/models/remove_content_footer_action.go +++ b/models/remove_content_footer_action.go @@ -8,7 +8,7 @@ import ( type RemoveContentFooterAction struct { InformationProtectionAction } -// NewRemoveContentFooterAction instantiates a new RemoveContentFooterAction and sets the default values. +// NewRemoveContentFooterAction instantiates a new removeContentFooterAction and sets the default values. func NewRemoveContentFooterAction()(*RemoveContentFooterAction) { m := &RemoveContentFooterAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,6 +24,16 @@ func CreateRemoveContentFooterActionFromDiscriminatorValue(parseNode i878a80d233 // GetFieldDeserializers the deserialization information for the current model func (m *RemoveContentFooterAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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["uiElementNames"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -42,6 +52,17 @@ func (m *RemoveContentFooterAction) GetFieldDeserializers()(map[string]func(i878 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RemoveContentFooterAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUiElementNames gets the uiElementNames property value. The name of the UI element of the footer to be removed. func (m *RemoveContentFooterAction) GetUiElementNames()([]string) { val, err := m.GetBackingStore().Get("uiElementNames") @@ -59,6 +80,12 @@ func (m *RemoveContentFooterAction) Serialize(writer i878a80d2330e89d26896388a3f if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetUiElementNames() != nil { err = writer.WriteCollectionOfStringValues("uiElementNames", m.GetUiElementNames()) if err != nil { @@ -67,6 +94,13 @@ func (m *RemoveContentFooterAction) Serialize(writer i878a80d2330e89d26896388a3f } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RemoveContentFooterAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUiElementNames sets the uiElementNames property value. The name of the UI element of the footer to be removed. func (m *RemoveContentFooterAction) SetUiElementNames(value []string)() { err := m.GetBackingStore().Set("uiElementNames", value) @@ -78,6 +112,8 @@ func (m *RemoveContentFooterAction) SetUiElementNames(value []string)() { type RemoveContentFooterActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUiElementNames()([]string) + SetOdataType(value *string)() SetUiElementNames(value []string)() } diff --git a/models/remove_content_header_action.go b/models/remove_content_header_action.go index 3def3776866..664f2c6b25a 100644 --- a/models/remove_content_header_action.go +++ b/models/remove_content_header_action.go @@ -7,8 +7,10 @@ import ( // RemoveContentHeaderAction type RemoveContentHeaderAction struct { InformationProtectionAction + // The OdataType property + OdataType *string } -// NewRemoveContentHeaderAction instantiates a new RemoveContentHeaderAction and sets the default values. +// NewRemoveContentHeaderAction instantiates a new removeContentHeaderAction and sets the default values. func NewRemoveContentHeaderAction()(*RemoveContentHeaderAction) { m := &RemoveContentHeaderAction{ InformationProtectionAction: *NewInformationProtectionAction(), diff --git a/models/remove_protection_action.go b/models/remove_protection_action.go index 1b4f06201d2..b82b72055d9 100644 --- a/models/remove_protection_action.go +++ b/models/remove_protection_action.go @@ -8,7 +8,7 @@ import ( type RemoveProtectionAction struct { InformationProtectionAction } -// NewRemoveProtectionAction instantiates a new RemoveProtectionAction and sets the default values. +// NewRemoveProtectionAction instantiates a new removeProtectionAction and sets the default values. func NewRemoveProtectionAction()(*RemoveProtectionAction) { m := &RemoveProtectionAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,18 +24,54 @@ func CreateRemoveProtectionActionFromDiscriminatorValue(parseNode i878a80d2330e8 // GetFieldDeserializers the deserialization information for the current model func (m *RemoveProtectionAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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 *RemoveProtectionAction) 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 *RemoveProtectionAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.InformationProtectionAction.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RemoveProtectionAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // RemoveProtectionActionable type RemoveProtectionActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/remove_watermark_action.go b/models/remove_watermark_action.go index 02468e0d4e5..75333b30c70 100644 --- a/models/remove_watermark_action.go +++ b/models/remove_watermark_action.go @@ -8,7 +8,7 @@ import ( type RemoveWatermarkAction struct { InformationProtectionAction } -// NewRemoveWatermarkAction instantiates a new RemoveWatermarkAction and sets the default values. +// NewRemoveWatermarkAction instantiates a new removeWatermarkAction and sets the default values. func NewRemoveWatermarkAction()(*RemoveWatermarkAction) { m := &RemoveWatermarkAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,6 +24,16 @@ func CreateRemoveWatermarkActionFromDiscriminatorValue(parseNode i878a80d2330e89 // GetFieldDeserializers the deserialization information for the current model func (m *RemoveWatermarkAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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["uiElementNames"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -42,6 +52,17 @@ func (m *RemoveWatermarkAction) GetFieldDeserializers()(map[string]func(i878a80d } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RemoveWatermarkAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUiElementNames gets the uiElementNames property value. The name of the UI element of footer to be removed. func (m *RemoveWatermarkAction) GetUiElementNames()([]string) { val, err := m.GetBackingStore().Get("uiElementNames") @@ -59,6 +80,12 @@ func (m *RemoveWatermarkAction) Serialize(writer i878a80d2330e89d26896388a3f487e if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetUiElementNames() != nil { err = writer.WriteCollectionOfStringValues("uiElementNames", m.GetUiElementNames()) if err != nil { @@ -67,6 +94,13 @@ func (m *RemoveWatermarkAction) Serialize(writer i878a80d2330e89d26896388a3f487e } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RemoveWatermarkAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUiElementNames sets the uiElementNames property value. The name of the UI element of footer to be removed. func (m *RemoveWatermarkAction) SetUiElementNames(value []string)() { err := m.GetBackingStore().Set("uiElementNames", value) @@ -78,6 +112,8 @@ func (m *RemoveWatermarkAction) SetUiElementNames(value []string)() { type RemoveWatermarkActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUiElementNames()([]string) + SetOdataType(value *string)() SetUiElementNames(value []string)() } diff --git a/models/report_root.go b/models/report_root.go index de3dfd02204..80dc2781c78 100644 --- a/models/report_root.go +++ b/models/report_root.go @@ -8,7 +8,7 @@ import ( type ReportRoot struct { Entity } -// NewReportRoot instantiates a new ReportRoot and sets the default values. +// NewReportRoot instantiates a new reportRoot and sets the default values. func NewReportRoot()(*ReportRoot) { m := &ReportRoot{ Entity: *NewEntity(), @@ -74,7 +74,7 @@ func (m *ReportRoot) GetDailyPrintUsage()([]PrintUsageable) { } return nil } -// GetDailyPrintUsageByPrinter gets the dailyPrintUsageByPrinter property value. The dailyPrintUsageByPrinter property +// GetDailyPrintUsageByPrinter gets the dailyPrintUsageByPrinter property value. Retrieve a list of daily print usage summaries, grouped by printer. func (m *ReportRoot) GetDailyPrintUsageByPrinter()([]PrintUsageByPrinterable) { val, err := m.GetBackingStore().Get("dailyPrintUsageByPrinter") if err != nil { @@ -85,7 +85,7 @@ func (m *ReportRoot) GetDailyPrintUsageByPrinter()([]PrintUsageByPrinterable) { } return nil } -// GetDailyPrintUsageByUser gets the dailyPrintUsageByUser property value. The dailyPrintUsageByUser property +// GetDailyPrintUsageByUser gets the dailyPrintUsageByUser property value. Retrieve a list of daily print usage summaries, grouped by user. func (m *ReportRoot) GetDailyPrintUsageByUser()([]PrintUsageByUserable) { val, err := m.GetBackingStore().Get("dailyPrintUsageByUser") if err != nil { @@ -323,6 +323,16 @@ func (m *ReportRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } 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["security"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateSecurityReportsRootFromDiscriminatorValue) if err != nil { @@ -349,6 +359,16 @@ func (m *ReportRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } return nil } + res["sla"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateServiceLevelAgreementRootFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSla(val.(ServiceLevelAgreementRootable)) + } + return nil + } res["userCredentialUsageDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateUserCredentialUsageDetailsFromDiscriminatorValue) if err != nil { @@ -367,7 +387,7 @@ func (m *ReportRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } return res } -// GetMonthlyPrintUsageByPrinter gets the monthlyPrintUsageByPrinter property value. The monthlyPrintUsageByPrinter property +// GetMonthlyPrintUsageByPrinter gets the monthlyPrintUsageByPrinter property value. Retrieve a list of monthly print usage summaries, grouped by printer. func (m *ReportRoot) GetMonthlyPrintUsageByPrinter()([]PrintUsageByPrinterable) { val, err := m.GetBackingStore().Get("monthlyPrintUsageByPrinter") if err != nil { @@ -378,7 +398,7 @@ func (m *ReportRoot) GetMonthlyPrintUsageByPrinter()([]PrintUsageByPrinterable) } return nil } -// GetMonthlyPrintUsageByUser gets the monthlyPrintUsageByUser property value. The monthlyPrintUsageByUser property +// GetMonthlyPrintUsageByUser gets the monthlyPrintUsageByUser property value. Retrieve a list of monthly print usage summaries, grouped by user. func (m *ReportRoot) GetMonthlyPrintUsageByUser()([]PrintUsageByUserable) { val, err := m.GetBackingStore().Get("monthlyPrintUsageByUser") if err != nil { @@ -411,6 +431,17 @@ func (m *ReportRoot) GetMonthlyPrintUsageSummariesByUser()([]PrintUsageByUserabl } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ReportRoot) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSecurity gets the security property value. Provides the ability to launch a realistic simulated phishing attack that organizations can learn from. func (m *ReportRoot) GetSecurity()(SecurityReportsRootable) { val, err := m.GetBackingStore().Get("security") @@ -433,6 +464,17 @@ func (m *ReportRoot) GetServicePrincipalSignInActivities()([]ServicePrincipalSig } return nil } +// GetSla gets the sla property value. A placeholder to allow for the desired URL path for SLA. +func (m *ReportRoot) GetSla()(ServiceLevelAgreementRootable) { + val, err := m.GetBackingStore().Get("sla") + if err != nil { + panic(err) + } + if val != nil { + return val.(ServiceLevelAgreementRootable) + } + return nil +} // GetUserCredentialUsageDetails gets the userCredentialUsageDetails property value. Represents the self-service password reset (SSPR) usage for a given tenant. func (m *ReportRoot) GetUserCredentialUsageDetails()([]UserCredentialUsageDetailsable) { val, err := m.GetBackingStore().Get("userCredentialUsageDetails") @@ -600,6 +642,12 @@ func (m *ReportRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("security", m.GetSecurity()) if err != nil { @@ -618,6 +666,12 @@ func (m *ReportRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c return err } } + { + err = writer.WriteObjectValue("sla", m.GetSla()) + if err != nil { + return err + } + } if m.GetUserCredentialUsageDetails() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetUserCredentialUsageDetails())) for i, v := range m.GetUserCredentialUsageDetails() { @@ -667,14 +721,14 @@ func (m *ReportRoot) SetDailyPrintUsage(value []PrintUsageable)() { panic(err) } } -// SetDailyPrintUsageByPrinter sets the dailyPrintUsageByPrinter property value. The dailyPrintUsageByPrinter property +// SetDailyPrintUsageByPrinter sets the dailyPrintUsageByPrinter property value. Retrieve a list of daily print usage summaries, grouped by printer. func (m *ReportRoot) SetDailyPrintUsageByPrinter(value []PrintUsageByPrinterable)() { err := m.GetBackingStore().Set("dailyPrintUsageByPrinter", value) if err != nil { panic(err) } } -// SetDailyPrintUsageByUser sets the dailyPrintUsageByUser property value. The dailyPrintUsageByUser property +// SetDailyPrintUsageByUser sets the dailyPrintUsageByUser property value. Retrieve a list of daily print usage summaries, grouped by user. func (m *ReportRoot) SetDailyPrintUsageByUser(value []PrintUsageByUserable)() { err := m.GetBackingStore().Set("dailyPrintUsageByUser", value) if err != nil { @@ -695,14 +749,14 @@ func (m *ReportRoot) SetDailyPrintUsageSummariesByUser(value []PrintUsageByUsera panic(err) } } -// SetMonthlyPrintUsageByPrinter sets the monthlyPrintUsageByPrinter property value. The monthlyPrintUsageByPrinter property +// SetMonthlyPrintUsageByPrinter sets the monthlyPrintUsageByPrinter property value. Retrieve a list of monthly print usage summaries, grouped by printer. func (m *ReportRoot) SetMonthlyPrintUsageByPrinter(value []PrintUsageByPrinterable)() { err := m.GetBackingStore().Set("monthlyPrintUsageByPrinter", value) if err != nil { panic(err) } } -// SetMonthlyPrintUsageByUser sets the monthlyPrintUsageByUser property value. The monthlyPrintUsageByUser property +// SetMonthlyPrintUsageByUser sets the monthlyPrintUsageByUser property value. Retrieve a list of monthly print usage summaries, grouped by user. func (m *ReportRoot) SetMonthlyPrintUsageByUser(value []PrintUsageByUserable)() { err := m.GetBackingStore().Set("monthlyPrintUsageByUser", value) if err != nil { @@ -723,6 +777,13 @@ func (m *ReportRoot) SetMonthlyPrintUsageSummariesByUser(value []PrintUsageByUse panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ReportRoot) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSecurity sets the security property value. Provides the ability to launch a realistic simulated phishing attack that organizations can learn from. func (m *ReportRoot) SetSecurity(value SecurityReportsRootable)() { err := m.GetBackingStore().Set("security", value) @@ -737,6 +798,13 @@ func (m *ReportRoot) SetServicePrincipalSignInActivities(value []ServicePrincipa panic(err) } } +// SetSla sets the sla property value. A placeholder to allow for the desired URL path for SLA. +func (m *ReportRoot) SetSla(value ServiceLevelAgreementRootable)() { + err := m.GetBackingStore().Set("sla", value) + if err != nil { + panic(err) + } +} // SetUserCredentialUsageDetails sets the userCredentialUsageDetails property value. Represents the self-service password reset (SSPR) usage for a given tenant. func (m *ReportRoot) SetUserCredentialUsageDetails(value []UserCredentialUsageDetailsable)() { err := m.GetBackingStore().Set("userCredentialUsageDetails", value) @@ -761,8 +829,10 @@ type ReportRootable interface { GetMonthlyPrintUsageByUser()([]PrintUsageByUserable) GetMonthlyPrintUsageSummariesByPrinter()([]PrintUsageByPrinterable) GetMonthlyPrintUsageSummariesByUser()([]PrintUsageByUserable) + GetOdataType()(*string) GetSecurity()(SecurityReportsRootable) GetServicePrincipalSignInActivities()([]ServicePrincipalSignInActivityable) + GetSla()(ServiceLevelAgreementRootable) GetUserCredentialUsageDetails()([]UserCredentialUsageDetailsable) SetAppCredentialSignInActivities(value []AppCredentialSignInActivityable)() SetApplicationSignInDetailedSummary(value []ApplicationSignInDetailedSummaryable)() @@ -777,7 +847,9 @@ type ReportRootable interface { SetMonthlyPrintUsageByUser(value []PrintUsageByUserable)() SetMonthlyPrintUsageSummariesByPrinter(value []PrintUsageByPrinterable)() SetMonthlyPrintUsageSummariesByUser(value []PrintUsageByUserable)() + SetOdataType(value *string)() SetSecurity(value SecurityReportsRootable)() SetServicePrincipalSignInActivities(value []ServicePrincipalSignInActivityable)() + SetSla(value ServiceLevelAgreementRootable)() SetUserCredentialUsageDetails(value []UserCredentialUsageDetailsable)() } diff --git a/models/request.go b/models/request.go index adf414f5372..d7767758c57 100644 --- a/models/request.go +++ b/models/request.go @@ -8,6 +8,8 @@ import ( // Request type Request struct { Entity + // The OdataType property + OdataType *string } // NewRequest instantiates a new request and sets the default values. func NewRequest()(*Request) { diff --git a/models/requestor_manager.go b/models/requestor_manager.go index d24042e6800..030f48abd25 100644 --- a/models/requestor_manager.go +++ b/models/requestor_manager.go @@ -7,8 +7,10 @@ import ( // RequestorManager type RequestorManager struct { UserSet + // The OdataType property + OdataType *string } -// NewRequestorManager instantiates a new RequestorManager and sets the default values. +// NewRequestorManager instantiates a new requestorManager and sets the default values. func NewRequestorManager()(*RequestorManager) { m := &RequestorManager{ UserSet: *NewUserSet(), diff --git a/models/required_resource_access.go b/models/required_resource_access.go index 08242086c85..2c1343c702b 100644 --- a/models/required_resource_access.go +++ b/models/required_resource_access.go @@ -10,7 +10,7 @@ type RequiredResourceAccess struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewRequiredResourceAccess instantiates a new RequiredResourceAccess and sets the default values. +// NewRequiredResourceAccess instantiates a new requiredResourceAccess and sets the default values. func NewRequiredResourceAccess()(*RequiredResourceAccess) { m := &RequiredResourceAccess{ } diff --git a/models/reset_passcode_action_result.go b/models/reset_passcode_action_result.go index 478bfd3f6c9..d3f3f1fa81f 100644 --- a/models/reset_passcode_action_result.go +++ b/models/reset_passcode_action_result.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ResetPasscodeActionResult +// ResetPasscodeActionResult reset passcode action result type ResetPasscodeActionResult struct { DeviceActionResult } -// NewResetPasscodeActionResult instantiates a new ResetPasscodeActionResult and sets the default values. +// NewResetPasscodeActionResult instantiates a new resetPasscodeActionResult and sets the default values. func NewResetPasscodeActionResult()(*ResetPasscodeActionResult) { m := &ResetPasscodeActionResult{ DeviceActionResult: *NewDeviceActionResult(), @@ -43,6 +43,16 @@ func (m *ResetPasscodeActionResult) GetFieldDeserializers()(map[string]func(i878 } 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["passcode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -55,6 +65,17 @@ func (m *ResetPasscodeActionResult) GetFieldDeserializers()(map[string]func(i878 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ResetPasscodeActionResult) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPasscode gets the passcode property value. Newly generated passcode for the device func (m *ResetPasscodeActionResult) GetPasscode()(*string) { val, err := m.GetBackingStore().Get("passcode") @@ -78,6 +99,12 @@ func (m *ResetPasscodeActionResult) Serialize(writer i878a80d2330e89d26896388a3f return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("passcode", m.GetPasscode()) if err != nil { @@ -93,6 +120,13 @@ func (m *ResetPasscodeActionResult) SetErrorCode(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ResetPasscodeActionResult) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPasscode sets the passcode property value. Newly generated passcode for the device func (m *ResetPasscodeActionResult) SetPasscode(value *string)() { err := m.GetBackingStore().Set("passcode", value) @@ -105,7 +139,9 @@ type ResetPasscodeActionResultable interface { DeviceActionResultable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetErrorCode()(*int32) + GetOdataType()(*string) GetPasscode()(*string) SetErrorCode(value *int32)() + SetOdataType(value *string)() SetPasscode(value *string)() } diff --git a/models/resource_access.go b/models/resource_access.go index 72e100bac36..8fb6e398e9c 100644 --- a/models/resource_access.go +++ b/models/resource_access.go @@ -11,7 +11,7 @@ type ResourceAccess struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewResourceAccess instantiates a new ResourceAccess and sets the default values. +// NewResourceAccess instantiates a new resourceAccess and sets the default values. func NewResourceAccess()(*ResourceAccess) { m := &ResourceAccess{ } diff --git a/models/resource_operation.go b/models/resource_operation.go index de4255ffdcc..9f0763cda36 100644 --- a/models/resource_operation.go +++ b/models/resource_operation.go @@ -7,6 +7,8 @@ import ( // ResourceOperation describes the resourceOperation resource (entity) of the Microsoft Graph API (REST), which supports Intune workflows related to role-based access control (RBAC). type ResourceOperation struct { Entity + // The OdataType property + OdataType *string } // NewResourceOperation instantiates a new resourceOperation and sets the default values. func NewResourceOperation()(*ResourceOperation) { diff --git a/models/resource_operation_collection_response.go b/models/resource_operation_collection_response.go index 689e7e551a6..2504782810a 100644 --- a/models/resource_operation_collection_response.go +++ b/models/resource_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type ResourceOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewResourceOperationCollectionResponse instantiates a new ResourceOperationCollectionResponse and sets the default values. +// NewResourceOperationCollectionResponse instantiates a new resourceOperationCollectionResponse and sets the default values. func NewResourceOperationCollectionResponse()(*ResourceOperationCollectionResponse) { m := &ResourceOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/resource_specific_permission_grant_collection_response.go b/models/resource_specific_permission_grant_collection_response.go index d9a7feaf473..2c55447058d 100644 --- a/models/resource_specific_permission_grant_collection_response.go +++ b/models/resource_specific_permission_grant_collection_response.go @@ -8,7 +8,7 @@ import ( type ResourceSpecificPermissionGrantCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewResourceSpecificPermissionGrantCollectionResponse instantiates a new ResourceSpecificPermissionGrantCollectionResponse and sets the default values. +// NewResourceSpecificPermissionGrantCollectionResponse instantiates a new resourceSpecificPermissionGrantCollectionResponse and sets the default values. func NewResourceSpecificPermissionGrantCollectionResponse()(*ResourceSpecificPermissionGrantCollectionResponse) { m := &ResourceSpecificPermissionGrantCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/restricted_apps_violation.go b/models/restricted_apps_violation.go index 57ddfae921d..e9a36f06688 100644 --- a/models/restricted_apps_violation.go +++ b/models/restricted_apps_violation.go @@ -7,6 +7,8 @@ import ( // RestrictedAppsViolation violation of restricted apps configuration profile per device per user type RestrictedAppsViolation struct { Entity + // The OdataType property + OdataType *string } // NewRestrictedAppsViolation instantiates a new restrictedAppsViolation and sets the default values. func NewRestrictedAppsViolation()(*RestrictedAppsViolation) { diff --git a/models/restricted_apps_violation_collection_response.go b/models/restricted_apps_violation_collection_response.go index 0c595e253a7..ecb194c3d60 100644 --- a/models/restricted_apps_violation_collection_response.go +++ b/models/restricted_apps_violation_collection_response.go @@ -8,7 +8,7 @@ import ( type RestrictedAppsViolationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRestrictedAppsViolationCollectionResponse instantiates a new RestrictedAppsViolationCollectionResponse and sets the default values. +// NewRestrictedAppsViolationCollectionResponse instantiates a new restrictedAppsViolationCollectionResponse and sets the default values. func NewRestrictedAppsViolationCollectionResponse()(*RestrictedAppsViolationCollectionResponse) { m := &RestrictedAppsViolationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/result_template_dictionary.go b/models/result_template_dictionary.go index 2aae5818f60..1846c6ee68d 100644 --- a/models/result_template_dictionary.go +++ b/models/result_template_dictionary.go @@ -8,7 +8,7 @@ import ( type ResultTemplateDictionary struct { Dictionary } -// NewResultTemplateDictionary instantiates a new ResultTemplateDictionary and sets the default values. +// NewResultTemplateDictionary instantiates a new resultTemplateDictionary and sets the default values. func NewResultTemplateDictionary()(*ResultTemplateDictionary) { m := &ResultTemplateDictionary{ Dictionary: *NewDictionary(), @@ -22,18 +22,54 @@ func CreateResultTemplateDictionaryFromDiscriminatorValue(parseNode i878a80d2330 // GetFieldDeserializers the deserialization information for the current model func (m *ResultTemplateDictionary) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Dictionary.GetFieldDeserializers() + 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 *ResultTemplateDictionary) 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 *ResultTemplateDictionary) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Dictionary.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ResultTemplateDictionary) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ResultTemplateDictionaryable type ResultTemplateDictionaryable interface { Dictionaryable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/revoke_apple_vpp_licenses_action_result.go b/models/revoke_apple_vpp_licenses_action_result.go index 06712cbd5ab..f9ec17e3956 100644 --- a/models/revoke_apple_vpp_licenses_action_result.go +++ b/models/revoke_apple_vpp_licenses_action_result.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// RevokeAppleVppLicensesActionResult +// RevokeAppleVppLicensesActionResult revoke Apple Vpp licenses action result type RevokeAppleVppLicensesActionResult struct { DeviceActionResult + // The OdataType property + OdataType *string } -// NewRevokeAppleVppLicensesActionResult instantiates a new RevokeAppleVppLicensesActionResult and sets the default values. +// NewRevokeAppleVppLicensesActionResult instantiates a new revokeAppleVppLicensesActionResult and sets the default values. func NewRevokeAppleVppLicensesActionResult()(*RevokeAppleVppLicensesActionResult) { m := &RevokeAppleVppLicensesActionResult{ DeviceActionResult: *NewDeviceActionResult(), diff --git a/models/rich_long_running_operation.go b/models/rich_long_running_operation.go index fa91246eeb2..f596303f424 100644 --- a/models/rich_long_running_operation.go +++ b/models/rich_long_running_operation.go @@ -8,7 +8,7 @@ import ( type RichLongRunningOperation struct { LongRunningOperation } -// NewRichLongRunningOperation instantiates a new RichLongRunningOperation and sets the default values. +// NewRichLongRunningOperation instantiates a new richLongRunningOperation and sets the default values. func NewRichLongRunningOperation()(*RichLongRunningOperation) { m := &RichLongRunningOperation{ LongRunningOperation: *NewLongRunningOperation(), diff --git a/models/rich_long_running_operation_collection_response.go b/models/rich_long_running_operation_collection_response.go index 341b0d21253..9e966fcfaa6 100644 --- a/models/rich_long_running_operation_collection_response.go +++ b/models/rich_long_running_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type RichLongRunningOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRichLongRunningOperationCollectionResponse instantiates a new RichLongRunningOperationCollectionResponse and sets the default values. +// NewRichLongRunningOperationCollectionResponse instantiates a new richLongRunningOperationCollectionResponse and sets the default values. func NewRichLongRunningOperationCollectionResponse()(*RichLongRunningOperationCollectionResponse) { m := &RichLongRunningOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/risk_detection.go b/models/risk_detection.go index 1084622fe3b..131d5217ce6 100644 --- a/models/risk_detection.go +++ b/models/risk_detection.go @@ -8,8 +8,10 @@ import ( // RiskDetection type RiskDetection struct { Entity + // The OdataType property + OdataType *string } -// NewRiskDetection instantiates a new RiskDetection and sets the default values. +// NewRiskDetection instantiates a new riskDetection and sets the default values. func NewRiskDetection()(*RiskDetection) { m := &RiskDetection{ Entity: *NewEntity(), diff --git a/models/risk_detection_collection_response.go b/models/risk_detection_collection_response.go index e6e874632ef..ffccd101759 100644 --- a/models/risk_detection_collection_response.go +++ b/models/risk_detection_collection_response.go @@ -8,7 +8,7 @@ import ( type RiskDetectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRiskDetectionCollectionResponse instantiates a new RiskDetectionCollectionResponse and sets the default values. +// NewRiskDetectionCollectionResponse instantiates a new riskDetectionCollectionResponse and sets the default values. func NewRiskDetectionCollectionResponse()(*RiskDetectionCollectionResponse) { m := &RiskDetectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/risky_service_principal.go b/models/risky_service_principal.go index 14b7e2d7fae..fe2d28d1b74 100644 --- a/models/risky_service_principal.go +++ b/models/risky_service_principal.go @@ -8,8 +8,10 @@ import ( // RiskyServicePrincipal type RiskyServicePrincipal struct { Entity + // The OdataType property + OdataType *string } -// NewRiskyServicePrincipal instantiates a new RiskyServicePrincipal and sets the default values. +// NewRiskyServicePrincipal instantiates a new riskyServicePrincipal and sets the default values. func NewRiskyServicePrincipal()(*RiskyServicePrincipal) { m := &RiskyServicePrincipal{ Entity: *NewEntity(), diff --git a/models/risky_service_principal_collection_response.go b/models/risky_service_principal_collection_response.go index b6531e430b4..ae745eae842 100644 --- a/models/risky_service_principal_collection_response.go +++ b/models/risky_service_principal_collection_response.go @@ -8,7 +8,7 @@ import ( type RiskyServicePrincipalCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRiskyServicePrincipalCollectionResponse instantiates a new RiskyServicePrincipalCollectionResponse and sets the default values. +// NewRiskyServicePrincipalCollectionResponse instantiates a new riskyServicePrincipalCollectionResponse and sets the default values. func NewRiskyServicePrincipalCollectionResponse()(*RiskyServicePrincipalCollectionResponse) { m := &RiskyServicePrincipalCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/risky_service_principal_history_item_collection_response.go b/models/risky_service_principal_history_item_collection_response.go index 2a2d73d5e6d..6cd3de73533 100644 --- a/models/risky_service_principal_history_item_collection_response.go +++ b/models/risky_service_principal_history_item_collection_response.go @@ -8,7 +8,7 @@ import ( type RiskyServicePrincipalHistoryItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRiskyServicePrincipalHistoryItemCollectionResponse instantiates a new RiskyServicePrincipalHistoryItemCollectionResponse and sets the default values. +// NewRiskyServicePrincipalHistoryItemCollectionResponse instantiates a new riskyServicePrincipalHistoryItemCollectionResponse and sets the default values. func NewRiskyServicePrincipalHistoryItemCollectionResponse()(*RiskyServicePrincipalHistoryItemCollectionResponse) { m := &RiskyServicePrincipalHistoryItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/risky_user.go b/models/risky_user.go index 15b6d3b9982..a96db36f99a 100644 --- a/models/risky_user.go +++ b/models/risky_user.go @@ -8,6 +8,8 @@ import ( // RiskyUser type RiskyUser struct { Entity + // The OdataType property + OdataType *string } // NewRiskyUser instantiates a new riskyUser and sets the default values. func NewRiskyUser()(*RiskyUser) { diff --git a/models/risky_user_collection_response.go b/models/risky_user_collection_response.go index d2970fa5fef..744350a53fc 100644 --- a/models/risky_user_collection_response.go +++ b/models/risky_user_collection_response.go @@ -8,7 +8,7 @@ import ( type RiskyUserCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRiskyUserCollectionResponse instantiates a new RiskyUserCollectionResponse and sets the default values. +// NewRiskyUserCollectionResponse instantiates a new riskyUserCollectionResponse and sets the default values. func NewRiskyUserCollectionResponse()(*RiskyUserCollectionResponse) { m := &RiskyUserCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/risky_user_history_item_collection_response.go b/models/risky_user_history_item_collection_response.go index e4acf0117ba..bac07fe7167 100644 --- a/models/risky_user_history_item_collection_response.go +++ b/models/risky_user_history_item_collection_response.go @@ -8,7 +8,7 @@ import ( type RiskyUserHistoryItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRiskyUserHistoryItemCollectionResponse instantiates a new RiskyUserHistoryItemCollectionResponse and sets the default values. +// NewRiskyUserHistoryItemCollectionResponse instantiates a new riskyUserHistoryItemCollectionResponse and sets the default values. func NewRiskyUserHistoryItemCollectionResponse()(*RiskyUserHistoryItemCollectionResponse) { m := &RiskyUserHistoryItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/role_assignment.go b/models/role_assignment.go index a11d513bed7..ec9443e1df2 100644 --- a/models/role_assignment.go +++ b/models/role_assignment.go @@ -7,6 +7,8 @@ import ( // RoleAssignment the Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles. type RoleAssignment struct { Entity + // The OdataType property + OdataType *string } // NewRoleAssignment instantiates a new roleAssignment and sets the default values. func NewRoleAssignment()(*RoleAssignment) { diff --git a/models/role_assignment_collection_response.go b/models/role_assignment_collection_response.go index e448cca166b..1aaebae257a 100644 --- a/models/role_assignment_collection_response.go +++ b/models/role_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type RoleAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRoleAssignmentCollectionResponse instantiates a new RoleAssignmentCollectionResponse and sets the default values. +// NewRoleAssignmentCollectionResponse instantiates a new roleAssignmentCollectionResponse and sets the default values. func NewRoleAssignmentCollectionResponse()(*RoleAssignmentCollectionResponse) { m := &RoleAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/role_definition.go b/models/role_definition.go index 404b3e1dcf0..b1279bb97e5 100644 --- a/models/role_definition.go +++ b/models/role_definition.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// RoleDefinition +// RoleDefinition the Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role. type RoleDefinition struct { Entity + // The OdataType property + OdataType *string } // NewRoleDefinition instantiates a new roleDefinition and sets the default values. func NewRoleDefinition()(*RoleDefinition) { diff --git a/models/role_definition_collection_response.go b/models/role_definition_collection_response.go index 8a67f3f11d5..fbd4e7f72c8 100644 --- a/models/role_definition_collection_response.go +++ b/models/role_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type RoleDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRoleDefinitionCollectionResponse instantiates a new RoleDefinitionCollectionResponse and sets the default values. +// NewRoleDefinitionCollectionResponse instantiates a new roleDefinitionCollectionResponse and sets the default values. func NewRoleDefinitionCollectionResponse()(*RoleDefinitionCollectionResponse) { m := &RoleDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/role_management.go b/models/role_management.go index b69773cba9d..764f8cfa4d5 100644 --- a/models/role_management.go +++ b/models/role_management.go @@ -10,7 +10,7 @@ type RoleManagement struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewRoleManagement instantiates a new RoleManagement and sets the default values. +// NewRoleManagement instantiates a new roleManagement and sets the default values. func NewRoleManagement()(*RoleManagement) { m := &RoleManagement{ } diff --git a/models/role_management_alert.go b/models/role_management_alert.go index b5523a33618..2d16284ad40 100644 --- a/models/role_management_alert.go +++ b/models/role_management_alert.go @@ -7,8 +7,10 @@ import ( // RoleManagementAlert type RoleManagementAlert struct { Entity + // The OdataType property + OdataType *string } -// NewRoleManagementAlert instantiates a new RoleManagementAlert and sets the default values. +// NewRoleManagementAlert instantiates a new roleManagementAlert and sets the default values. func NewRoleManagementAlert()(*RoleManagementAlert) { m := &RoleManagementAlert{ Entity: *NewEntity(), diff --git a/models/role_membership_governance_criteria.go b/models/role_membership_governance_criteria.go index 80f9d94a1f1..5340d6e5f1d 100644 --- a/models/role_membership_governance_criteria.go +++ b/models/role_membership_governance_criteria.go @@ -7,8 +7,10 @@ import ( // RoleMembershipGovernanceCriteria type RoleMembershipGovernanceCriteria struct { GovernanceCriteria + // The OdataType property + OdataType *string } -// NewRoleMembershipGovernanceCriteria instantiates a new RoleMembershipGovernanceCriteria and sets the default values. +// NewRoleMembershipGovernanceCriteria instantiates a new roleMembershipGovernanceCriteria and sets the default values. func NewRoleMembershipGovernanceCriteria()(*RoleMembershipGovernanceCriteria) { m := &RoleMembershipGovernanceCriteria{ GovernanceCriteria: *NewGovernanceCriteria(), diff --git a/models/role_scope_tag.go b/models/role_scope_tag.go index db8d17bb288..6241b29cf63 100644 --- a/models/role_scope_tag.go +++ b/models/role_scope_tag.go @@ -7,6 +7,8 @@ import ( // RoleScopeTag role Scope Tag type RoleScopeTag struct { Entity + // The OdataType property + OdataType *string } // NewRoleScopeTag instantiates a new roleScopeTag and sets the default values. func NewRoleScopeTag()(*RoleScopeTag) { diff --git a/models/role_scope_tag_auto_assignment.go b/models/role_scope_tag_auto_assignment.go index 311ffb84e10..6025ec5ffcf 100644 --- a/models/role_scope_tag_auto_assignment.go +++ b/models/role_scope_tag_auto_assignment.go @@ -7,6 +7,8 @@ import ( // RoleScopeTagAutoAssignment contains the properties for auto-assigning a Role Scope Tag to a group to be applied to Devices. type RoleScopeTagAutoAssignment struct { Entity + // The OdataType property + OdataType *string } // NewRoleScopeTagAutoAssignment instantiates a new roleScopeTagAutoAssignment and sets the default values. func NewRoleScopeTagAutoAssignment()(*RoleScopeTagAutoAssignment) { diff --git a/models/role_scope_tag_auto_assignment_collection_response.go b/models/role_scope_tag_auto_assignment_collection_response.go index 171aa5ae5d7..4d2460b7caf 100644 --- a/models/role_scope_tag_auto_assignment_collection_response.go +++ b/models/role_scope_tag_auto_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type RoleScopeTagAutoAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRoleScopeTagAutoAssignmentCollectionResponse instantiates a new RoleScopeTagAutoAssignmentCollectionResponse and sets the default values. +// NewRoleScopeTagAutoAssignmentCollectionResponse instantiates a new roleScopeTagAutoAssignmentCollectionResponse and sets the default values. func NewRoleScopeTagAutoAssignmentCollectionResponse()(*RoleScopeTagAutoAssignmentCollectionResponse) { m := &RoleScopeTagAutoAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/role_scope_tag_collection_response.go b/models/role_scope_tag_collection_response.go index c4b3f689dd0..f086e8504e5 100644 --- a/models/role_scope_tag_collection_response.go +++ b/models/role_scope_tag_collection_response.go @@ -8,7 +8,7 @@ import ( type RoleScopeTagCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRoleScopeTagCollectionResponse instantiates a new RoleScopeTagCollectionResponse and sets the default values. +// NewRoleScopeTagCollectionResponse instantiates a new roleScopeTagCollectionResponse and sets the default values. func NewRoleScopeTagCollectionResponse()(*RoleScopeTagCollectionResponse) { m := &RoleScopeTagCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/roles_assigned_outside_privileged_identity_management_alert_configuration.go b/models/roles_assigned_outside_privileged_identity_management_alert_configuration.go index e4851047e23..5645b18f228 100644 --- a/models/roles_assigned_outside_privileged_identity_management_alert_configuration.go +++ b/models/roles_assigned_outside_privileged_identity_management_alert_configuration.go @@ -8,7 +8,7 @@ import ( type RolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration struct { UnifiedRoleManagementAlertConfiguration } -// NewRolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration instantiates a new RolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration and sets the default values. +// NewRolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration instantiates a new rolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration and sets the default values. func NewRolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration()(*RolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration) { m := &RolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration{ UnifiedRoleManagementAlertConfiguration: *NewUnifiedRoleManagementAlertConfiguration(), diff --git a/models/roles_assigned_outside_privileged_identity_management_alert_incident.go b/models/roles_assigned_outside_privileged_identity_management_alert_incident.go index f0660340ba1..6975c13cc54 100644 --- a/models/roles_assigned_outside_privileged_identity_management_alert_incident.go +++ b/models/roles_assigned_outside_privileged_identity_management_alert_incident.go @@ -9,7 +9,7 @@ import ( type RolesAssignedOutsidePrivilegedIdentityManagementAlertIncident struct { UnifiedRoleManagementAlertIncident } -// NewRolesAssignedOutsidePrivilegedIdentityManagementAlertIncident instantiates a new RolesAssignedOutsidePrivilegedIdentityManagementAlertIncident and sets the default values. +// NewRolesAssignedOutsidePrivilegedIdentityManagementAlertIncident instantiates a new rolesAssignedOutsidePrivilegedIdentityManagementAlertIncident and sets the default values. func NewRolesAssignedOutsidePrivilegedIdentityManagementAlertIncident()(*RolesAssignedOutsidePrivilegedIdentityManagementAlertIncident) { m := &RolesAssignedOutsidePrivilegedIdentityManagementAlertIncident{ UnifiedRoleManagementAlertIncident: *NewUnifiedRoleManagementAlertIncident(), diff --git a/models/room.go b/models/room.go index 8f262168bb6..e4358054e62 100644 --- a/models/room.go +++ b/models/room.go @@ -8,7 +8,7 @@ import ( type Room struct { Place } -// NewRoom instantiates a new Room and sets the default values. +// NewRoom instantiates a new room and sets the default values. func NewRoom()(*Room) { m := &Room{ Place: *NewPlace(), diff --git a/models/room_collection_response.go b/models/room_collection_response.go index df10a967b62..3bf62274908 100644 --- a/models/room_collection_response.go +++ b/models/room_collection_response.go @@ -8,7 +8,7 @@ import ( type RoomCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRoomCollectionResponse instantiates a new RoomCollectionResponse and sets the default values. +// NewRoomCollectionResponse instantiates a new roomCollectionResponse and sets the default values. func NewRoomCollectionResponse()(*RoomCollectionResponse) { m := &RoomCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/room_list.go b/models/room_list.go index 10c0a381459..97d23c1e4ed 100644 --- a/models/room_list.go +++ b/models/room_list.go @@ -8,7 +8,7 @@ import ( type RoomList struct { Place } -// NewRoomList instantiates a new RoomList and sets the default values. +// NewRoomList instantiates a new roomList and sets the default values. func NewRoomList()(*RoomList) { m := &RoomList{ Place: *NewPlace(), diff --git a/models/room_list_collection_response.go b/models/room_list_collection_response.go index 0bd698398e1..58fa2a91b7d 100644 --- a/models/room_list_collection_response.go +++ b/models/room_list_collection_response.go @@ -8,7 +8,7 @@ import ( type RoomListCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewRoomListCollectionResponse instantiates a new RoomListCollectionResponse and sets the default values. +// NewRoomListCollectionResponse instantiates a new roomListCollectionResponse and sets the default values. func NewRoomListCollectionResponse()(*RoomListCollectionResponse) { m := &RoomListCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/rotate_bit_locker_keys_device_action_result.go b/models/rotate_bit_locker_keys_device_action_result.go index 4d185e4b220..5881642abea 100644 --- a/models/rotate_bit_locker_keys_device_action_result.go +++ b/models/rotate_bit_locker_keys_device_action_result.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// RotateBitLockerKeysDeviceActionResult +// RotateBitLockerKeysDeviceActionResult rotateBitLockerKeys device action result type RotateBitLockerKeysDeviceActionResult struct { DeviceActionResult + // The OdataType property + OdataType *string } -// NewRotateBitLockerKeysDeviceActionResult instantiates a new RotateBitLockerKeysDeviceActionResult and sets the default values. +// NewRotateBitLockerKeysDeviceActionResult instantiates a new rotateBitLockerKeysDeviceActionResult and sets the default values. func NewRotateBitLockerKeysDeviceActionResult()(*RotateBitLockerKeysDeviceActionResult) { m := &RotateBitLockerKeysDeviceActionResult{ DeviceActionResult: *NewDeviceActionResult(), diff --git a/models/sales_credit_memo.go b/models/sales_credit_memo.go index 5ea3d089f43..7564cc52eef 100644 --- a/models/sales_credit_memo.go +++ b/models/sales_credit_memo.go @@ -12,7 +12,7 @@ type SalesCreditMemo struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSalesCreditMemo instantiates a new SalesCreditMemo and sets the default values. +// NewSalesCreditMemo instantiates a new salesCreditMemo and sets the default values. func NewSalesCreditMemo()(*SalesCreditMemo) { m := &SalesCreditMemo{ } diff --git a/models/sales_credit_memo_collection_response.go b/models/sales_credit_memo_collection_response.go index 9468db1741f..d3478fa34cc 100644 --- a/models/sales_credit_memo_collection_response.go +++ b/models/sales_credit_memo_collection_response.go @@ -8,7 +8,7 @@ import ( type SalesCreditMemoCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSalesCreditMemoCollectionResponse instantiates a new SalesCreditMemoCollectionResponse and sets the default values. +// NewSalesCreditMemoCollectionResponse instantiates a new salesCreditMemoCollectionResponse and sets the default values. func NewSalesCreditMemoCollectionResponse()(*SalesCreditMemoCollectionResponse) { m := &SalesCreditMemoCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sales_credit_memo_line.go b/models/sales_credit_memo_line.go index bba38c38839..559432719b4 100644 --- a/models/sales_credit_memo_line.go +++ b/models/sales_credit_memo_line.go @@ -8,8 +8,10 @@ import ( // SalesCreditMemoLine type SalesCreditMemoLine struct { Entity + // The OdataType property + OdataType *string } -// NewSalesCreditMemoLine instantiates a new SalesCreditMemoLine and sets the default values. +// NewSalesCreditMemoLine instantiates a new salesCreditMemoLine and sets the default values. func NewSalesCreditMemoLine()(*SalesCreditMemoLine) { m := &SalesCreditMemoLine{ Entity: *NewEntity(), diff --git a/models/sales_credit_memo_line_collection_response.go b/models/sales_credit_memo_line_collection_response.go index 76aa0cc74c9..987b5f8c221 100644 --- a/models/sales_credit_memo_line_collection_response.go +++ b/models/sales_credit_memo_line_collection_response.go @@ -8,7 +8,7 @@ import ( type SalesCreditMemoLineCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSalesCreditMemoLineCollectionResponse instantiates a new SalesCreditMemoLineCollectionResponse and sets the default values. +// NewSalesCreditMemoLineCollectionResponse instantiates a new salesCreditMemoLineCollectionResponse and sets the default values. func NewSalesCreditMemoLineCollectionResponse()(*SalesCreditMemoLineCollectionResponse) { m := &SalesCreditMemoLineCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sales_invoice.go b/models/sales_invoice.go index aaf75c175d5..4f9c06be5b3 100644 --- a/models/sales_invoice.go +++ b/models/sales_invoice.go @@ -12,7 +12,7 @@ type SalesInvoice struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSalesInvoice instantiates a new SalesInvoice and sets the default values. +// NewSalesInvoice instantiates a new salesInvoice and sets the default values. func NewSalesInvoice()(*SalesInvoice) { m := &SalesInvoice{ } diff --git a/models/sales_invoice_collection_response.go b/models/sales_invoice_collection_response.go index b5f4e2b9412..9fdd5b3761a 100644 --- a/models/sales_invoice_collection_response.go +++ b/models/sales_invoice_collection_response.go @@ -8,7 +8,7 @@ import ( type SalesInvoiceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSalesInvoiceCollectionResponse instantiates a new SalesInvoiceCollectionResponse and sets the default values. +// NewSalesInvoiceCollectionResponse instantiates a new salesInvoiceCollectionResponse and sets the default values. func NewSalesInvoiceCollectionResponse()(*SalesInvoiceCollectionResponse) { m := &SalesInvoiceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sales_invoice_line.go b/models/sales_invoice_line.go index f2dfbfc202d..f44a40597b4 100644 --- a/models/sales_invoice_line.go +++ b/models/sales_invoice_line.go @@ -8,6 +8,8 @@ import ( // SalesInvoiceLine type SalesInvoiceLine struct { Entity + // The OdataType property + OdataType *string } // NewSalesInvoiceLine instantiates a new salesInvoiceLine and sets the default values. func NewSalesInvoiceLine()(*SalesInvoiceLine) { diff --git a/models/sales_invoice_line_collection_response.go b/models/sales_invoice_line_collection_response.go index 9144b7d4c7a..8e1dff1d1c6 100644 --- a/models/sales_invoice_line_collection_response.go +++ b/models/sales_invoice_line_collection_response.go @@ -8,7 +8,7 @@ import ( type SalesInvoiceLineCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSalesInvoiceLineCollectionResponse instantiates a new SalesInvoiceLineCollectionResponse and sets the default values. +// NewSalesInvoiceLineCollectionResponse instantiates a new salesInvoiceLineCollectionResponse and sets the default values. func NewSalesInvoiceLineCollectionResponse()(*SalesInvoiceLineCollectionResponse) { m := &SalesInvoiceLineCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sales_order.go b/models/sales_order.go index 1de30a04f88..e416680d0e5 100644 --- a/models/sales_order.go +++ b/models/sales_order.go @@ -12,7 +12,7 @@ type SalesOrder struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSalesOrder instantiates a new SalesOrder and sets the default values. +// NewSalesOrder instantiates a new salesOrder and sets the default values. func NewSalesOrder()(*SalesOrder) { m := &SalesOrder{ } diff --git a/models/sales_order_collection_response.go b/models/sales_order_collection_response.go index bbcb5729504..28b5c95e750 100644 --- a/models/sales_order_collection_response.go +++ b/models/sales_order_collection_response.go @@ -8,7 +8,7 @@ import ( type SalesOrderCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSalesOrderCollectionResponse instantiates a new SalesOrderCollectionResponse and sets the default values. +// NewSalesOrderCollectionResponse instantiates a new salesOrderCollectionResponse and sets the default values. func NewSalesOrderCollectionResponse()(*SalesOrderCollectionResponse) { m := &SalesOrderCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sales_order_line.go b/models/sales_order_line.go index f2bea4f17dc..dcd38358383 100644 --- a/models/sales_order_line.go +++ b/models/sales_order_line.go @@ -8,8 +8,10 @@ import ( // SalesOrderLine type SalesOrderLine struct { Entity + // The OdataType property + OdataType *string } -// NewSalesOrderLine instantiates a new SalesOrderLine and sets the default values. +// NewSalesOrderLine instantiates a new salesOrderLine and sets the default values. func NewSalesOrderLine()(*SalesOrderLine) { m := &SalesOrderLine{ Entity: *NewEntity(), diff --git a/models/sales_order_line_collection_response.go b/models/sales_order_line_collection_response.go index 0b83a6e6ad5..6795179ecfa 100644 --- a/models/sales_order_line_collection_response.go +++ b/models/sales_order_line_collection_response.go @@ -8,7 +8,7 @@ import ( type SalesOrderLineCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSalesOrderLineCollectionResponse instantiates a new SalesOrderLineCollectionResponse and sets the default values. +// NewSalesOrderLineCollectionResponse instantiates a new salesOrderLineCollectionResponse and sets the default values. func NewSalesOrderLineCollectionResponse()(*SalesOrderLineCollectionResponse) { m := &SalesOrderLineCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sales_quote.go b/models/sales_quote.go index 5c71a5ec01d..ad98f53b354 100644 --- a/models/sales_quote.go +++ b/models/sales_quote.go @@ -12,7 +12,7 @@ type SalesQuote struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSalesQuote instantiates a new SalesQuote and sets the default values. +// NewSalesQuote instantiates a new salesQuote and sets the default values. func NewSalesQuote()(*SalesQuote) { m := &SalesQuote{ } diff --git a/models/sales_quote_collection_response.go b/models/sales_quote_collection_response.go index 1b02ec628de..78605506be3 100644 --- a/models/sales_quote_collection_response.go +++ b/models/sales_quote_collection_response.go @@ -8,7 +8,7 @@ import ( type SalesQuoteCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSalesQuoteCollectionResponse instantiates a new SalesQuoteCollectionResponse and sets the default values. +// NewSalesQuoteCollectionResponse instantiates a new salesQuoteCollectionResponse and sets the default values. func NewSalesQuoteCollectionResponse()(*SalesQuoteCollectionResponse) { m := &SalesQuoteCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sales_quote_line.go b/models/sales_quote_line.go index 5876bf76f71..b5ce6b1bbc5 100644 --- a/models/sales_quote_line.go +++ b/models/sales_quote_line.go @@ -8,8 +8,10 @@ import ( // SalesQuoteLine type SalesQuoteLine struct { Entity + // The OdataType property + OdataType *string } -// NewSalesQuoteLine instantiates a new SalesQuoteLine and sets the default values. +// NewSalesQuoteLine instantiates a new salesQuoteLine and sets the default values. func NewSalesQuoteLine()(*SalesQuoteLine) { m := &SalesQuoteLine{ Entity: *NewEntity(), diff --git a/models/sales_quote_line_collection_response.go b/models/sales_quote_line_collection_response.go index 77e8a4b3fac..1f7eb47db8b 100644 --- a/models/sales_quote_line_collection_response.go +++ b/models/sales_quote_line_collection_response.go @@ -8,7 +8,7 @@ import ( type SalesQuoteLineCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSalesQuoteLineCollectionResponse instantiates a new SalesQuoteLineCollectionResponse and sets the default values. +// NewSalesQuoteLineCollectionResponse instantiates a new salesQuoteLineCollectionResponse and sets the default values. func NewSalesQuoteLineCollectionResponse()(*SalesQuoteLineCollectionResponse) { m := &SalesQuoteLineCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/saml_or_ws_fed_external_domain_federation.go b/models/saml_or_ws_fed_external_domain_federation.go index 68753766e92..9c8c677218d 100644 --- a/models/saml_or_ws_fed_external_domain_federation.go +++ b/models/saml_or_ws_fed_external_domain_federation.go @@ -8,7 +8,7 @@ import ( type SamlOrWsFedExternalDomainFederation struct { SamlOrWsFedProvider } -// NewSamlOrWsFedExternalDomainFederation instantiates a new SamlOrWsFedExternalDomainFederation and sets the default values. +// NewSamlOrWsFedExternalDomainFederation instantiates a new samlOrWsFedExternalDomainFederation and sets the default values. func NewSamlOrWsFedExternalDomainFederation()(*SamlOrWsFedExternalDomainFederation) { m := &SamlOrWsFedExternalDomainFederation{ SamlOrWsFedProvider: *NewSamlOrWsFedProvider(), diff --git a/models/saml_or_ws_fed_provider.go b/models/saml_or_ws_fed_provider.go index 64afa5d5cef..211743eaac3 100644 --- a/models/saml_or_ws_fed_provider.go +++ b/models/saml_or_ws_fed_provider.go @@ -8,7 +8,7 @@ import ( type SamlOrWsFedProvider struct { IdentityProviderBase } -// NewSamlOrWsFedProvider instantiates a new SamlOrWsFedProvider and sets the default values. +// NewSamlOrWsFedProvider instantiates a new samlOrWsFedProvider and sets the default values. func NewSamlOrWsFedProvider()(*SamlOrWsFedProvider) { m := &SamlOrWsFedProvider{ IdentityProviderBase: *NewIdentityProviderBase(), diff --git a/models/schedule.go b/models/schedule.go index 6726b3f50d9..8219db33bc2 100644 --- a/models/schedule.go +++ b/models/schedule.go @@ -7,6 +7,8 @@ import ( // Schedule type Schedule struct { Entity + // The OdataType property + OdataType *string } // NewSchedule instantiates a new schedule and sets the default values. func NewSchedule()(*Schedule) { diff --git a/models/schedule_change_request.go b/models/schedule_change_request.go index 79a52578700..299d30b78c8 100644 --- a/models/schedule_change_request.go +++ b/models/schedule_change_request.go @@ -9,7 +9,7 @@ import ( type ScheduleChangeRequest struct { ChangeTrackedEntity } -// NewScheduleChangeRequest instantiates a new ScheduleChangeRequest and sets the default values. +// NewScheduleChangeRequest instantiates a new scheduleChangeRequest and sets the default values. func NewScheduleChangeRequest()(*ScheduleChangeRequest) { m := &ScheduleChangeRequest{ ChangeTrackedEntity: *NewChangeTrackedEntity(), diff --git a/models/schedule_item.go b/models/schedule_item.go index 5eea6990558..465d4febbef 100644 --- a/models/schedule_item.go +++ b/models/schedule_item.go @@ -10,7 +10,7 @@ type ScheduleItem struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewScheduleItem instantiates a new ScheduleItem and sets the default values. +// NewScheduleItem instantiates a new scheduleItem and sets the default values. func NewScheduleItem()(*ScheduleItem) { m := &ScheduleItem{ } diff --git a/models/scheduling_group.go b/models/scheduling_group.go index 558e2d06c83..0d0917bab2b 100644 --- a/models/scheduling_group.go +++ b/models/scheduling_group.go @@ -8,7 +8,7 @@ import ( type SchedulingGroup struct { ChangeTrackedEntity } -// NewSchedulingGroup instantiates a new SchedulingGroup and sets the default values. +// NewSchedulingGroup instantiates a new schedulingGroup and sets the default values. func NewSchedulingGroup()(*SchedulingGroup) { m := &SchedulingGroup{ ChangeTrackedEntity: *NewChangeTrackedEntity(), diff --git a/models/scheduling_group_collection_response.go b/models/scheduling_group_collection_response.go index ba10c546a6b..5c3cb1484d2 100644 --- a/models/scheduling_group_collection_response.go +++ b/models/scheduling_group_collection_response.go @@ -8,7 +8,7 @@ import ( type SchedulingGroupCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSchedulingGroupCollectionResponse instantiates a new SchedulingGroupCollectionResponse and sets the default values. +// NewSchedulingGroupCollectionResponse instantiates a new schedulingGroupCollectionResponse and sets the default values. func NewSchedulingGroupCollectionResponse()(*SchedulingGroupCollectionResponse) { m := &SchedulingGroupCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/schema.go b/models/schema.go index a299d112945..0907bda59a5 100644 --- a/models/schema.go +++ b/models/schema.go @@ -7,6 +7,8 @@ import ( // Schema type Schema struct { Entity + // The OdataType property + OdataType *string } // NewSchema instantiates a new schema and sets the default values. func NewSchema()(*Schema) { diff --git a/models/schema_extension.go b/models/schema_extension.go index 11c6e1b31d4..76555084fd7 100644 --- a/models/schema_extension.go +++ b/models/schema_extension.go @@ -7,8 +7,10 @@ import ( // SchemaExtension type SchemaExtension struct { Entity + // The OdataType property + OdataType *string } -// NewSchemaExtension instantiates a new SchemaExtension and sets the default values. +// NewSchemaExtension instantiates a new schemaExtension and sets the default values. func NewSchemaExtension()(*SchemaExtension) { m := &SchemaExtension{ Entity: *NewEntity(), diff --git a/models/schema_extension_collection_response.go b/models/schema_extension_collection_response.go index 500299a23f1..1c1d23d1664 100644 --- a/models/schema_extension_collection_response.go +++ b/models/schema_extension_collection_response.go @@ -8,7 +8,7 @@ import ( type SchemaExtensionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSchemaExtensionCollectionResponse instantiates a new SchemaExtensionCollectionResponse and sets the default values. +// NewSchemaExtensionCollectionResponse instantiates a new schemaExtensionCollectionResponse and sets the default values. func NewSchemaExtensionCollectionResponse()(*SchemaExtensionCollectionResponse) { m := &SchemaExtensionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/scoped_role_membership.go b/models/scoped_role_membership.go index fd71845af8c..c6c5dabae63 100644 --- a/models/scoped_role_membership.go +++ b/models/scoped_role_membership.go @@ -7,6 +7,8 @@ import ( // ScopedRoleMembership type ScopedRoleMembership struct { Entity + // The OdataType property + OdataType *string } // NewScopedRoleMembership instantiates a new scopedRoleMembership and sets the default values. func NewScopedRoleMembership()(*ScopedRoleMembership) { diff --git a/models/scoped_role_membership_collection_response.go b/models/scoped_role_membership_collection_response.go index cf5b80e5fdc..ca204dc298d 100644 --- a/models/scoped_role_membership_collection_response.go +++ b/models/scoped_role_membership_collection_response.go @@ -8,7 +8,7 @@ import ( type ScopedRoleMembershipCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewScopedRoleMembershipCollectionResponse instantiates a new ScopedRoleMembershipCollectionResponse and sets the default values. +// NewScopedRoleMembershipCollectionResponse instantiates a new scopedRoleMembershipCollectionResponse and sets the default values. func NewScopedRoleMembershipCollectionResponse()(*ScopedRoleMembershipCollectionResponse) { m := &ScopedRoleMembershipCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/search/acronym.go b/models/search/acronym.go index b0ad1b5b761..51fbba76bcd 100644 --- a/models/search/acronym.go +++ b/models/search/acronym.go @@ -8,7 +8,7 @@ import ( type Acronym struct { SearchAnswer } -// NewAcronym instantiates a new Acronym and sets the default values. +// NewAcronym instantiates a new acronym and sets the default values. func NewAcronym()(*Acronym) { m := &Acronym{ SearchAnswer: *NewSearchAnswer(), diff --git a/models/search/acronym_collection_response.go b/models/search/acronym_collection_response.go index 47782246f70..ef40ef148e8 100644 --- a/models/search/acronym_collection_response.go +++ b/models/search/acronym_collection_response.go @@ -9,7 +9,7 @@ import ( type AcronymCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewAcronymCollectionResponse instantiates a new AcronymCollectionResponse and sets the default values. +// NewAcronymCollectionResponse instantiates a new acronymCollectionResponse and sets the default values. func NewAcronymCollectionResponse()(*AcronymCollectionResponse) { m := &AcronymCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/search/bookmark.go b/models/search/bookmark.go index fbad2f48e07..466190aaef3 100644 --- a/models/search/bookmark.go +++ b/models/search/bookmark.go @@ -10,7 +10,7 @@ import ( type Bookmark struct { SearchAnswer } -// NewBookmark instantiates a new Bookmark and sets the default values. +// NewBookmark instantiates a new bookmark and sets the default values. func NewBookmark()(*Bookmark) { m := &Bookmark{ SearchAnswer: *NewSearchAnswer(), diff --git a/models/search/bookmark_collection_response.go b/models/search/bookmark_collection_response.go index 610f97bfbc0..cdae42efa99 100644 --- a/models/search/bookmark_collection_response.go +++ b/models/search/bookmark_collection_response.go @@ -9,7 +9,7 @@ import ( type BookmarkCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewBookmarkCollectionResponse instantiates a new BookmarkCollectionResponse and sets the default values. +// NewBookmarkCollectionResponse instantiates a new bookmarkCollectionResponse and sets the default values. func NewBookmarkCollectionResponse()(*BookmarkCollectionResponse) { m := &BookmarkCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/search/qna.go b/models/search/qna.go index 5b94d0389b3..c3116c33471 100644 --- a/models/search/qna.go +++ b/models/search/qna.go @@ -10,7 +10,7 @@ import ( type Qna struct { SearchAnswer } -// NewQna instantiates a new Qna and sets the default values. +// NewQna instantiates a new qna and sets the default values. func NewQna()(*Qna) { m := &Qna{ SearchAnswer: *NewSearchAnswer(), diff --git a/models/search/qna_collection_response.go b/models/search/qna_collection_response.go index 8bbc145d352..2e530eae213 100644 --- a/models/search/qna_collection_response.go +++ b/models/search/qna_collection_response.go @@ -9,7 +9,7 @@ import ( type QnaCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewQnaCollectionResponse instantiates a new QnaCollectionResponse and sets the default values. +// NewQnaCollectionResponse instantiates a new qnaCollectionResponse and sets the default values. func NewQnaCollectionResponse()(*QnaCollectionResponse) { m := &QnaCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/search/search_answer.go b/models/search/search_answer.go index 79cee4e6516..9053002f167 100644 --- a/models/search/search_answer.go +++ b/models/search/search_answer.go @@ -9,6 +9,8 @@ import ( // SearchAnswer type SearchAnswer struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSearchAnswer instantiates a new searchAnswer and sets the default values. func NewSearchAnswer()(*SearchAnswer) { diff --git a/models/search_aggregation.go b/models/search_aggregation.go index 2063b0a02a6..5adb6f2728a 100644 --- a/models/search_aggregation.go +++ b/models/search_aggregation.go @@ -10,7 +10,7 @@ type SearchAggregation struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSearchAggregation instantiates a new SearchAggregation and sets the default values. +// NewSearchAggregation instantiates a new searchAggregation and sets the default values. func NewSearchAggregation()(*SearchAggregation) { m := &SearchAggregation{ } diff --git a/models/search_bucket.go b/models/search_bucket.go index 2c9ade6daa0..1ef648cd134 100644 --- a/models/search_bucket.go +++ b/models/search_bucket.go @@ -10,7 +10,7 @@ type SearchBucket struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSearchBucket instantiates a new SearchBucket and sets the default values. +// NewSearchBucket instantiates a new searchBucket and sets the default values. func NewSearchBucket()(*SearchBucket) { m := &SearchBucket{ } diff --git a/models/search_entity.go b/models/search_entity.go index d5ee49af287..312413e83e3 100644 --- a/models/search_entity.go +++ b/models/search_entity.go @@ -7,8 +7,10 @@ import ( // SearchEntity type SearchEntity struct { Entity + // The OdataType property + OdataType *string } -// NewSearchEntity instantiates a new SearchEntity and sets the default values. +// NewSearchEntity instantiates a new searchEntity and sets the default values. func NewSearchEntity()(*SearchEntity) { m := &SearchEntity{ Entity: *NewEntity(), diff --git a/models/search_hit.go b/models/search_hit.go index 05106433ae3..4778c406995 100644 --- a/models/search_hit.go +++ b/models/search_hit.go @@ -10,7 +10,7 @@ type SearchHit struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSearchHit instantiates a new SearchHit and sets the default values. +// NewSearchHit instantiates a new searchHit and sets the default values. func NewSearchHit()(*SearchHit) { m := &SearchHit{ } @@ -22,6 +22,17 @@ func NewSearchHit()(*SearchHit) { func CreateSearchHitFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewSearchHit(), nil } +// Get_summary gets the _summary property value. The _summary property +func (m *SearchHit) Get_summary()(*string) { + val, err := m.GetBackingStore().Get("_summary") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + 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 *SearchHit) GetAdditionalData()(map[string]any) { val , err := m.backingStore.Get("additionalData") @@ -82,6 +93,16 @@ func (m *SearchHit) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 } return nil } + res["_summary"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.Set_summary(val) + } + return nil + } res["contentSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -342,6 +363,12 @@ func (m *SearchHit) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return err } } + { + err := writer.WriteStringValue("_summary", m.Get_summary()) + if err != nil { + return err + } + } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -350,6 +377,13 @@ func (m *SearchHit) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 } return nil } +// Set_summary sets the _summary property value. The _summary property +func (m *SearchHit) Set_summary(value *string)() { + err := m.GetBackingStore().Set("_summary", 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 *SearchHit) SetAdditionalData(value map[string]any)() { err := m.GetBackingStore().Set("additionalData", value) @@ -443,6 +477,7 @@ type SearchHitable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + Get_summary()(*string) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetContentSource()(*string) GetHitId()(*string) @@ -455,6 +490,7 @@ type SearchHitable interface { GetScore()(*int32) GetSource()(Entityable) GetSummary()(*string) + Set_summary(value *string)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetContentSource(value *string)() SetHitId(value *string)() diff --git a/models/search_hits_container.go b/models/search_hits_container.go index 45c6d82f9bd..ebfeec6a141 100644 --- a/models/search_hits_container.go +++ b/models/search_hits_container.go @@ -10,7 +10,7 @@ type SearchHitsContainer struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSearchHitsContainer instantiates a new SearchHitsContainer and sets the default values. +// NewSearchHitsContainer instantiates a new searchHitsContainer and sets the default values. func NewSearchHitsContainer()(*SearchHitsContainer) { m := &SearchHitsContainer{ } diff --git a/models/search_query.go b/models/search_query.go index a9c76c9bb50..56925af6f53 100644 --- a/models/search_query.go +++ b/models/search_query.go @@ -10,7 +10,7 @@ type SearchQuery struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSearchQuery instantiates a new SearchQuery and sets the default values. +// NewSearchQuery instantiates a new searchQuery and sets the default values. func NewSearchQuery()(*SearchQuery) { m := &SearchQuery{ } diff --git a/models/search_request.go b/models/search_request.go index b09117d9436..c92ed9a628a 100644 --- a/models/search_request.go +++ b/models/search_request.go @@ -10,7 +10,7 @@ type SearchRequest struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSearchRequest instantiates a new SearchRequest and sets the default values. +// NewSearchRequest instantiates a new searchRequest and sets the default values. func NewSearchRequest()(*SearchRequest) { m := &SearchRequest{ } diff --git a/models/search_response.go b/models/search_response.go index a788e8541ec..8e640990445 100644 --- a/models/search_response.go +++ b/models/search_response.go @@ -10,7 +10,7 @@ type SearchResponse struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSearchResponse instantiates a new SearchResponse and sets the default values. +// NewSearchResponse instantiates a new searchResponse and sets the default values. func NewSearchResponse()(*SearchResponse) { m := &SearchResponse{ } diff --git a/models/section_group_collection_response.go b/models/section_group_collection_response.go index 716e728e366..cb9b856172a 100644 --- a/models/section_group_collection_response.go +++ b/models/section_group_collection_response.go @@ -8,7 +8,7 @@ import ( type SectionGroupCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSectionGroupCollectionResponse instantiates a new SectionGroupCollectionResponse and sets the default values. +// NewSectionGroupCollectionResponse instantiates a new sectionGroupCollectionResponse and sets the default values. func NewSectionGroupCollectionResponse()(*SectionGroupCollectionResponse) { m := &SectionGroupCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/secure_score.go b/models/secure_score.go index 7e6bef39344..dbc49c9ab8d 100644 --- a/models/secure_score.go +++ b/models/secure_score.go @@ -8,8 +8,10 @@ import ( // SecureScore type SecureScore struct { Entity + // The OdataType property + OdataType *string } -// NewSecureScore instantiates a new SecureScore and sets the default values. +// NewSecureScore instantiates a new secureScore and sets the default values. func NewSecureScore()(*SecureScore) { m := &SecureScore{ Entity: *NewEntity(), diff --git a/models/secure_score_collection_response.go b/models/secure_score_collection_response.go index 3c5eee7414a..f4e4c37ec3f 100644 --- a/models/secure_score_collection_response.go +++ b/models/secure_score_collection_response.go @@ -8,7 +8,7 @@ import ( type SecureScoreCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSecureScoreCollectionResponse instantiates a new SecureScoreCollectionResponse and sets the default values. +// NewSecureScoreCollectionResponse instantiates a new secureScoreCollectionResponse and sets the default values. func NewSecureScoreCollectionResponse()(*SecureScoreCollectionResponse) { m := &SecureScoreCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/secure_score_control_profile.go b/models/secure_score_control_profile.go index a6164f91e9b..01f44cb5007 100644 --- a/models/secure_score_control_profile.go +++ b/models/secure_score_control_profile.go @@ -8,8 +8,10 @@ import ( // SecureScoreControlProfile type SecureScoreControlProfile struct { Entity + // The OdataType property + OdataType *string } -// NewSecureScoreControlProfile instantiates a new SecureScoreControlProfile and sets the default values. +// NewSecureScoreControlProfile instantiates a new secureScoreControlProfile and sets the default values. func NewSecureScoreControlProfile()(*SecureScoreControlProfile) { m := &SecureScoreControlProfile{ Entity: *NewEntity(), diff --git a/models/secure_score_control_profile_collection_response.go b/models/secure_score_control_profile_collection_response.go index 263d8a64ac5..95c98d35a0c 100644 --- a/models/secure_score_control_profile_collection_response.go +++ b/models/secure_score_control_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type SecureScoreControlProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSecureScoreControlProfileCollectionResponse instantiates a new SecureScoreControlProfileCollectionResponse and sets the default values. +// NewSecureScoreControlProfileCollectionResponse instantiates a new secureScoreControlProfileCollectionResponse and sets the default values. func NewSecureScoreControlProfileCollectionResponse()(*SecureScoreControlProfileCollectionResponse) { m := &SecureScoreControlProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/secure_sign_in_session_control.go b/models/secure_sign_in_session_control.go index 27502ae7bf5..0976a29431e 100644 --- a/models/secure_sign_in_session_control.go +++ b/models/secure_sign_in_session_control.go @@ -8,7 +8,7 @@ import ( type SecureSignInSessionControl struct { ConditionalAccessSessionControl } -// NewSecureSignInSessionControl instantiates a new SecureSignInSessionControl and sets the default values. +// NewSecureSignInSessionControl instantiates a new secureSignInSessionControl and sets the default values. func NewSecureSignInSessionControl()(*SecureSignInSessionControl) { m := &SecureSignInSessionControl{ ConditionalAccessSessionControl: *NewConditionalAccessSessionControl(), @@ -24,18 +24,54 @@ func CreateSecureSignInSessionControlFromDiscriminatorValue(parseNode i878a80d23 // GetFieldDeserializers the deserialization information for the current model func (m *SecureSignInSessionControl) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ConditionalAccessSessionControl.GetFieldDeserializers() + 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 *SecureSignInSessionControl) 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 *SecureSignInSessionControl) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ConditionalAccessSessionControl.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *SecureSignInSessionControl) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SecureSignInSessionControlable type SecureSignInSessionControlable interface { ConditionalAccessSessionControlable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/security.go b/models/security.go index 650a35cbc22..74521f1fda2 100644 --- a/models/security.go +++ b/models/security.go @@ -7,8 +7,10 @@ import ( // Security type Security struct { Entity + // The OdataType property + OdataType *string } -// NewSecurity instantiates a new Security and sets the default values. +// NewSecurity instantiates a new security and sets the default values. func NewSecurity()(*Security) { m := &Security{ Entity: *NewEntity(), diff --git a/models/security/add_content_footer_action.go b/models/security/add_content_footer_action.go index 0f39f6b534e..ff8ed201834 100644 --- a/models/security/add_content_footer_action.go +++ b/models/security/add_content_footer_action.go @@ -8,7 +8,7 @@ import ( type AddContentFooterAction struct { InformationProtectionAction } -// NewAddContentFooterAction instantiates a new AddContentFooterAction and sets the default values. +// NewAddContentFooterAction instantiates a new addContentFooterAction and sets the default values. func NewAddContentFooterAction()(*AddContentFooterAction) { m := &AddContentFooterAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -85,6 +85,16 @@ func (m *AddContentFooterAction) GetFieldDeserializers()(map[string]func(i878a80 } 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["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -151,6 +161,17 @@ func (m *AddContentFooterAction) GetMargin()(*int32) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AddContentFooterAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetText gets the text property value. The contents of the footer itself. func (m *AddContentFooterAction) GetText()(*string) { val, err := m.GetBackingStore().Get("text") @@ -210,6 +231,12 @@ func (m *AddContentFooterAction) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("text", m.GetText()) if err != nil { @@ -259,6 +286,13 @@ func (m *AddContentFooterAction) SetMargin(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AddContentFooterAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetText sets the text property value. The contents of the footer itself. func (m *AddContentFooterAction) SetText(value *string)() { err := m.GetBackingStore().Set("text", value) @@ -282,6 +316,7 @@ type AddContentFooterActionable interface { GetFontName()(*string) GetFontSize()(*int32) GetMargin()(*int32) + GetOdataType()(*string) GetText()(*string) GetUiElementName()(*string) SetAlignment(value *ContentAlignment)() @@ -289,6 +324,7 @@ type AddContentFooterActionable interface { SetFontName(value *string)() SetFontSize(value *int32)() SetMargin(value *int32)() + SetOdataType(value *string)() SetText(value *string)() SetUiElementName(value *string)() } diff --git a/models/security/add_content_header_action.go b/models/security/add_content_header_action.go index 47fd56219db..5bdcaf1baa7 100644 --- a/models/security/add_content_header_action.go +++ b/models/security/add_content_header_action.go @@ -8,7 +8,7 @@ import ( type AddContentHeaderAction struct { InformationProtectionAction } -// NewAddContentHeaderAction instantiates a new AddContentHeaderAction and sets the default values. +// NewAddContentHeaderAction instantiates a new addContentHeaderAction and sets the default values. func NewAddContentHeaderAction()(*AddContentHeaderAction) { m := &AddContentHeaderAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -85,6 +85,16 @@ func (m *AddContentHeaderAction) GetFieldDeserializers()(map[string]func(i878a80 } 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["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -151,6 +161,17 @@ func (m *AddContentHeaderAction) GetMargin()(*int32) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AddContentHeaderAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetText gets the text property value. The contents of the header itself. func (m *AddContentHeaderAction) GetText()(*string) { val, err := m.GetBackingStore().Get("text") @@ -210,6 +231,12 @@ func (m *AddContentHeaderAction) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("text", m.GetText()) if err != nil { @@ -259,6 +286,13 @@ func (m *AddContentHeaderAction) SetMargin(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AddContentHeaderAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetText sets the text property value. The contents of the header itself. func (m *AddContentHeaderAction) SetText(value *string)() { err := m.GetBackingStore().Set("text", value) @@ -282,6 +316,7 @@ type AddContentHeaderActionable interface { GetFontName()(*string) GetFontSize()(*int32) GetMargin()(*int32) + GetOdataType()(*string) GetText()(*string) GetUiElementName()(*string) SetAlignment(value *ContentAlignment)() @@ -289,6 +324,7 @@ type AddContentHeaderActionable interface { SetFontName(value *string)() SetFontSize(value *int32)() SetMargin(value *int32)() + SetOdataType(value *string)() SetText(value *string)() SetUiElementName(value *string)() } diff --git a/models/security/add_watermark_action.go b/models/security/add_watermark_action.go index 740f5754a26..710c741d492 100644 --- a/models/security/add_watermark_action.go +++ b/models/security/add_watermark_action.go @@ -8,7 +8,7 @@ import ( type AddWatermarkAction struct { InformationProtectionAction } -// NewAddWatermarkAction instantiates a new AddWatermarkAction and sets the default values. +// NewAddWatermarkAction instantiates a new addWatermarkAction and sets the default values. func NewAddWatermarkAction()(*AddWatermarkAction) { m := &AddWatermarkAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -64,6 +64,16 @@ func (m *AddWatermarkAction) GetFieldDeserializers()(map[string]func(i878a80d233 } 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["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -130,6 +140,17 @@ func (m *AddWatermarkAction) GetLayout()(*WatermarkLayout) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AddWatermarkAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetText gets the text property value. The contents of the watermark itself. func (m *AddWatermarkAction) GetText()(*string) { val, err := m.GetBackingStore().Get("text") @@ -183,6 +204,12 @@ func (m *AddWatermarkAction) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("text", m.GetText()) if err != nil { @@ -225,6 +252,13 @@ func (m *AddWatermarkAction) SetLayout(value *WatermarkLayout)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AddWatermarkAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetText sets the text property value. The contents of the watermark itself. func (m *AddWatermarkAction) SetText(value *string)() { err := m.GetBackingStore().Set("text", value) @@ -247,12 +281,14 @@ type AddWatermarkActionable interface { GetFontName()(*string) GetFontSize()(*int32) GetLayout()(*WatermarkLayout) + GetOdataType()(*string) GetText()(*string) GetUiElementName()(*string) SetFontColor(value *string)() SetFontName(value *string)() SetFontSize(value *int32)() SetLayout(value *WatermarkLayout)() + SetOdataType(value *string)() SetText(value *string)() SetUiElementName(value *string)() } diff --git a/models/security/alert.go b/models/security/alert.go index b8abf3511c2..703b2269ce4 100644 --- a/models/security/alert.go +++ b/models/security/alert.go @@ -9,6 +9,8 @@ import ( // Alert type Alert struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewAlert instantiates a new alert and sets the default values. func NewAlert()(*Alert) { diff --git a/models/security/alert_collection_response.go b/models/security/alert_collection_response.go index cbd0e8ee572..8888b2ef0fa 100644 --- a/models/security/alert_collection_response.go +++ b/models/security/alert_collection_response.go @@ -9,7 +9,7 @@ import ( type AlertCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewAlertCollectionResponse instantiates a new AlertCollectionResponse and sets the default values. +// NewAlertCollectionResponse instantiates a new alertCollectionResponse and sets the default values. func NewAlertCollectionResponse()(*AlertCollectionResponse) { m := &AlertCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/amazon_resource_evidence.go b/models/security/amazon_resource_evidence.go index 76aa3ed1f0d..725b96de2b3 100644 --- a/models/security/amazon_resource_evidence.go +++ b/models/security/amazon_resource_evidence.go @@ -8,7 +8,7 @@ import ( type AmazonResourceEvidence struct { AlertEvidence } -// NewAmazonResourceEvidence instantiates a new AmazonResourceEvidence and sets the default values. +// NewAmazonResourceEvidence instantiates a new amazonResourceEvidence and sets the default values. func NewAmazonResourceEvidence()(*AmazonResourceEvidence) { m := &AmazonResourceEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -64,6 +64,16 @@ func (m *AmazonResourceEvidence) GetFieldDeserializers()(map[string]func(i878a80 } 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["resourceName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -86,6 +96,17 @@ func (m *AmazonResourceEvidence) GetFieldDeserializers()(map[string]func(i878a80 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AmazonResourceEvidence) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetResourceName gets the resourceName property value. The name of the resource. func (m *AmazonResourceEvidence) GetResourceName()(*string) { val, err := m.GetBackingStore().Get("resourceName") @@ -126,6 +147,12 @@ func (m *AmazonResourceEvidence) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("resourceName", m.GetResourceName()) if err != nil { @@ -154,6 +181,13 @@ func (m *AmazonResourceEvidence) SetAmazonResourceId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AmazonResourceEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetResourceName sets the resourceName property value. The name of the resource. func (m *AmazonResourceEvidence) SetResourceName(value *string)() { err := m.GetBackingStore().Set("resourceName", value) @@ -174,10 +208,12 @@ type AmazonResourceEvidenceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAmazonAccountId()(*string) GetAmazonResourceId()(*string) + GetOdataType()(*string) GetResourceName()(*string) GetResourceType()(*string) SetAmazonAccountId(value *string)() SetAmazonResourceId(value *string)() + SetOdataType(value *string)() SetResourceName(value *string)() SetResourceType(value *string)() } diff --git a/models/security/analyzed_message_evidence.go b/models/security/analyzed_message_evidence.go index 0adc20a01b0..737fa59a13b 100644 --- a/models/security/analyzed_message_evidence.go +++ b/models/security/analyzed_message_evidence.go @@ -9,7 +9,7 @@ import ( type AnalyzedMessageEvidence struct { AlertEvidence } -// NewAnalyzedMessageEvidence instantiates a new AnalyzedMessageEvidence and sets the default values. +// NewAnalyzedMessageEvidence instantiates a new analyzedMessageEvidence and sets the default values. func NewAnalyzedMessageEvidence()(*AnalyzedMessageEvidence) { m := &AnalyzedMessageEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -137,6 +137,16 @@ func (m *AnalyzedMessageEvidence) GetFieldDeserializers()(map[string]func(i878a8 } 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["p1Sender"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateEmailSenderFromDiscriminatorValue) if err != nil { @@ -300,6 +310,17 @@ func (m *AnalyzedMessageEvidence) GetNetworkMessageId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AnalyzedMessageEvidence) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetP1Sender gets the p1Sender property value. The P1 sender. func (m *AnalyzedMessageEvidence) GetP1Sender()(EmailSenderable) { val, err := m.GetBackingStore().Get("p1Sender") @@ -469,6 +490,12 @@ func (m *AnalyzedMessageEvidence) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("p1Sender", m.GetP1Sender()) if err != nil { @@ -586,6 +613,13 @@ func (m *AnalyzedMessageEvidence) SetNetworkMessageId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AnalyzedMessageEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetP1Sender sets the p1Sender property value. The P1 sender. func (m *AnalyzedMessageEvidence) SetP1Sender(value EmailSenderable)() { err := m.GetBackingStore().Set("p1Sender", value) @@ -674,6 +708,7 @@ type AnalyzedMessageEvidenceable interface { GetInternetMessageId()(*string) GetLanguage()(*string) GetNetworkMessageId()(*string) + GetOdataType()(*string) GetP1Sender()(EmailSenderable) GetP2Sender()(EmailSenderable) GetReceivedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) @@ -692,6 +727,7 @@ type AnalyzedMessageEvidenceable interface { SetInternetMessageId(value *string)() SetLanguage(value *string)() SetNetworkMessageId(value *string)() + SetOdataType(value *string)() SetP1Sender(value EmailSenderable)() SetP2Sender(value EmailSenderable)() SetReceivedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() diff --git a/models/security/applied_category.go b/models/security/applied_category.go index 6a7f212611f..b1eaa1653e8 100644 --- a/models/security/applied_category.go +++ b/models/security/applied_category.go @@ -8,7 +8,7 @@ import ( type AppliedCategory struct { FilePlanDescriptorBase } -// NewAppliedCategory instantiates a new AppliedCategory and sets the default values. +// NewAppliedCategory instantiates a new appliedCategory and sets the default values. func NewAppliedCategory()(*AppliedCategory) { m := &AppliedCategory{ FilePlanDescriptorBase: *NewFilePlanDescriptorBase(), @@ -22,6 +22,16 @@ func CreateAppliedCategoryFromDiscriminatorValue(parseNode i878a80d2330e89d26896 // GetFieldDeserializers the deserialization information for the current model func (m *AppliedCategory) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.FilePlanDescriptorBase.GetFieldDeserializers() + 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["subCategory"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateSubCategoryFromDiscriminatorValue) if err != nil { @@ -34,6 +44,17 @@ func (m *AppliedCategory) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AppliedCategory) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSubCategory gets the subCategory property value. Represents the file plan descriptor for a subcategory under a specific category, which has been assigned to a particular retention label. func (m *AppliedCategory) GetSubCategory()(SubCategoryable) { val, err := m.GetBackingStore().Get("subCategory") @@ -51,6 +72,12 @@ func (m *AppliedCategory) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("subCategory", m.GetSubCategory()) if err != nil { @@ -59,6 +86,13 @@ func (m *AppliedCategory) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AppliedCategory) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSubCategory sets the subCategory property value. Represents the file plan descriptor for a subcategory under a specific category, which has been assigned to a particular retention label. func (m *AppliedCategory) SetSubCategory(value SubCategoryable)() { err := m.GetBackingStore().Set("subCategory", value) @@ -70,6 +104,8 @@ func (m *AppliedCategory) SetSubCategory(value SubCategoryable)() { type AppliedCategoryable interface { FilePlanDescriptorBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetSubCategory()(SubCategoryable) + SetOdataType(value *string)() SetSubCategory(value SubCategoryable)() } diff --git a/models/security/apply_label_action.go b/models/security/apply_label_action.go index ea4e6a8281e..d4070a78ae2 100644 --- a/models/security/apply_label_action.go +++ b/models/security/apply_label_action.go @@ -8,7 +8,7 @@ import ( type ApplyLabelAction struct { InformationProtectionAction } -// NewApplyLabelAction instantiates a new ApplyLabelAction and sets the default values. +// NewApplyLabelAction instantiates a new applyLabelAction and sets the default values. func NewApplyLabelAction()(*ApplyLabelAction) { m := &ApplyLabelAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -72,6 +72,16 @@ func (m *ApplyLabelAction) GetFieldDeserializers()(map[string]func(i878a80d2330e } 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["responsibleSensitiveTypeIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -100,6 +110,17 @@ func (m *ApplyLabelAction) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ApplyLabelAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetResponsibleSensitiveTypeIds gets the responsibleSensitiveTypeIds property value. If the label was the result of an automatic classification, supply the list of sensitive info type GUIDs that resulted in the returned label. func (m *ApplyLabelAction) GetResponsibleSensitiveTypeIds()([]string) { val, err := m.GetBackingStore().Get("responsibleSensitiveTypeIds") @@ -147,6 +168,12 @@ func (m *ApplyLabelAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetResponsibleSensitiveTypeIds() != nil { err = writer.WriteCollectionOfStringValues("responsibleSensitiveTypeIds", m.GetResponsibleSensitiveTypeIds()) if err != nil { @@ -175,6 +202,13 @@ func (m *ApplyLabelAction) SetActionSource(value *ActionSource)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ApplyLabelAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetResponsibleSensitiveTypeIds sets the responsibleSensitiveTypeIds property value. If the label was the result of an automatic classification, supply the list of sensitive info type GUIDs that resulted in the returned label. func (m *ApplyLabelAction) SetResponsibleSensitiveTypeIds(value []string)() { err := m.GetBackingStore().Set("responsibleSensitiveTypeIds", value) @@ -195,10 +229,12 @@ type ApplyLabelActionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetActions()([]InformationProtectionActionable) GetActionSource()(*ActionSource) + GetOdataType()(*string) GetResponsibleSensitiveTypeIds()([]string) GetSensitivityLabelId()(*string) SetActions(value []InformationProtectionActionable)() SetActionSource(value *ActionSource)() + SetOdataType(value *string)() SetResponsibleSensitiveTypeIds(value []string)() SetSensitivityLabelId(value *string)() } diff --git a/models/security/article.go b/models/security/article.go index 0d96e30245a..947bc31b646 100644 --- a/models/security/article.go +++ b/models/security/article.go @@ -9,6 +9,8 @@ import ( // Article type Article struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewArticle instantiates a new article and sets the default values. func NewArticle()(*Article) { diff --git a/models/security/article_collection_response.go b/models/security/article_collection_response.go index 369a3b345bf..a155374f789 100644 --- a/models/security/article_collection_response.go +++ b/models/security/article_collection_response.go @@ -9,7 +9,7 @@ import ( type ArticleCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewArticleCollectionResponse instantiates a new ArticleCollectionResponse and sets the default values. +// NewArticleCollectionResponse instantiates a new articleCollectionResponse and sets the default values. func NewArticleCollectionResponse()(*ArticleCollectionResponse) { m := &ArticleCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/article_indicator.go b/models/security/article_indicator.go index 3e1ab8c6f44..cff70d0da25 100644 --- a/models/security/article_indicator.go +++ b/models/security/article_indicator.go @@ -8,7 +8,7 @@ import ( type ArticleIndicator struct { Indicator } -// NewArticleIndicator instantiates a new ArticleIndicator and sets the default values. +// NewArticleIndicator instantiates a new articleIndicator and sets the default values. func NewArticleIndicator()(*ArticleIndicator) { m := &ArticleIndicator{ Indicator: *NewIndicator(), diff --git a/models/security/article_indicator_collection_response.go b/models/security/article_indicator_collection_response.go index 80cc17e9dc7..80eb5715ead 100644 --- a/models/security/article_indicator_collection_response.go +++ b/models/security/article_indicator_collection_response.go @@ -9,7 +9,7 @@ import ( type ArticleIndicatorCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewArticleIndicatorCollectionResponse instantiates a new ArticleIndicatorCollectionResponse and sets the default values. +// NewArticleIndicatorCollectionResponse instantiates a new articleIndicatorCollectionResponse and sets the default values. func NewArticleIndicatorCollectionResponse()(*ArticleIndicatorCollectionResponse) { m := &ArticleIndicatorCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/artifact.go b/models/security/artifact.go index 2c63b92730d..c63ac0f500e 100644 --- a/models/security/artifact.go +++ b/models/security/artifact.go @@ -8,6 +8,8 @@ import ( // Artifact type Artifact struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewArtifact instantiates a new artifact and sets the default values. func NewArtifact()(*Artifact) { diff --git a/models/security/authority.go b/models/security/authority.go index 76faf2c6c47..00ea95d62d9 100644 --- a/models/security/authority.go +++ b/models/security/authority.go @@ -7,8 +7,10 @@ import ( // Authority type Authority struct { FilePlanDescriptorBase + // The OdataType property + OdataType *string } -// NewAuthority instantiates a new Authority and sets the default values. +// NewAuthority instantiates a new authority and sets the default values. func NewAuthority()(*Authority) { m := &Authority{ FilePlanDescriptorBase: *NewFilePlanDescriptorBase(), diff --git a/models/security/authority_template.go b/models/security/authority_template.go index afe2df155c3..d23154cda94 100644 --- a/models/security/authority_template.go +++ b/models/security/authority_template.go @@ -8,7 +8,7 @@ import ( type AuthorityTemplate struct { FilePlanDescriptorTemplate } -// NewAuthorityTemplate instantiates a new AuthorityTemplate and sets the default values. +// NewAuthorityTemplate instantiates a new authorityTemplate and sets the default values. func NewAuthorityTemplate()(*AuthorityTemplate) { m := &AuthorityTemplate{ FilePlanDescriptorTemplate: *NewFilePlanDescriptorTemplate(), diff --git a/models/security/authority_template_collection_response.go b/models/security/authority_template_collection_response.go index 7dbdd5e8e69..a43eb2aba5c 100644 --- a/models/security/authority_template_collection_response.go +++ b/models/security/authority_template_collection_response.go @@ -9,7 +9,7 @@ import ( type AuthorityTemplateCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewAuthorityTemplateCollectionResponse instantiates a new AuthorityTemplateCollectionResponse and sets the default values. +// NewAuthorityTemplateCollectionResponse instantiates a new authorityTemplateCollectionResponse and sets the default values. func NewAuthorityTemplateCollectionResponse()(*AuthorityTemplateCollectionResponse) { m := &AuthorityTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/azure_resource_evidence.go b/models/security/azure_resource_evidence.go index 78ae13f539b..8b5fed69a53 100644 --- a/models/security/azure_resource_evidence.go +++ b/models/security/azure_resource_evidence.go @@ -8,7 +8,7 @@ import ( type AzureResourceEvidence struct { AlertEvidence } -// NewAzureResourceEvidence instantiates a new AzureResourceEvidence and sets the default values. +// NewAzureResourceEvidence instantiates a new azureResourceEvidence and sets the default values. func NewAzureResourceEvidence()(*AzureResourceEvidence) { m := &AzureResourceEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -22,6 +22,16 @@ func CreateAzureResourceEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89 // GetFieldDeserializers the deserialization information for the current model func (m *AzureResourceEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AlertEvidence.GetFieldDeserializers() + 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["resourceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -54,6 +64,17 @@ func (m *AzureResourceEvidence) GetFieldDeserializers()(map[string]func(i878a80d } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *AzureResourceEvidence) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetResourceId gets the resourceId property value. The unique identifier for the Azure resource. func (m *AzureResourceEvidence) GetResourceId()(*string) { val, err := m.GetBackingStore().Get("resourceId") @@ -93,6 +114,12 @@ func (m *AzureResourceEvidence) Serialize(writer i878a80d2330e89d26896388a3f487e if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("resourceId", m.GetResourceId()) if err != nil { @@ -113,6 +140,13 @@ func (m *AzureResourceEvidence) Serialize(writer i878a80d2330e89d26896388a3f487e } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AzureResourceEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetResourceId sets the resourceId property value. The unique identifier for the Azure resource. func (m *AzureResourceEvidence) SetResourceId(value *string)() { err := m.GetBackingStore().Set("resourceId", value) @@ -138,9 +172,11 @@ func (m *AzureResourceEvidence) SetResourceType(value *string)() { type AzureResourceEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetResourceId()(*string) GetResourceName()(*string) GetResourceType()(*string) + SetOdataType(value *string)() SetResourceId(value *string)() SetResourceName(value *string)() SetResourceType(value *string)() diff --git a/models/security/case_escaped.go b/models/security/case_escaped.go index fc059e8885f..016ab877ea6 100644 --- a/models/security/case_escaped.go +++ b/models/security/case_escaped.go @@ -9,6 +9,8 @@ import ( // CaseEscaped type CaseEscaped struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCaseEscaped instantiates a new caseEscaped and sets the default values. func NewCaseEscaped()(*CaseEscaped) { @@ -257,3 +259,20 @@ func (m *CaseEscaped) SetStatus(value *CaseStatus)() { panic(err) } } +// CaseEscapedable +type CaseEscapedable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDescription()(*string) + GetDisplayName()(*string) + GetLastModifiedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) + GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetStatus()(*CaseStatus) + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDescription(value *string)() + SetDisplayName(value *string)() + SetLastModifiedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() + SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetStatus(value *CaseStatus)() +} diff --git a/models/security/case_escapedable.go b/models/security/case_escapedable.go deleted file mode 100644 index fac81b73619..00000000000 --- a/models/security/case_escapedable.go +++ /dev/null @@ -1,25 +0,0 @@ -package security - -import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" -) - -// CaseEscapedable -type CaseEscapedable interface { - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetDescription()(*string) - GetDisplayName()(*string) - GetLastModifiedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable) - GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetStatus()(*CaseStatus) - SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetDescription(value *string)() - SetDisplayName(value *string)() - SetLastModifiedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentitySetable)() - SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetStatus(value *CaseStatus)() -} diff --git a/models/security/case_operation.go b/models/security/case_operation.go index 076e6dc1375..8bef1ae02ef 100644 --- a/models/security/case_operation.go +++ b/models/security/case_operation.go @@ -9,6 +9,8 @@ import ( // CaseOperation type CaseOperation struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCaseOperation instantiates a new caseOperation and sets the default values. func NewCaseOperation()(*CaseOperation) { diff --git a/models/security/case_operation_collection_response.go b/models/security/case_operation_collection_response.go index cb2380a0d5d..cd10ce01f3b 100644 --- a/models/security/case_operation_collection_response.go +++ b/models/security/case_operation_collection_response.go @@ -9,7 +9,7 @@ import ( type CaseOperationCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCaseOperationCollectionResponse instantiates a new CaseOperationCollectionResponse and sets the default values. +// NewCaseOperationCollectionResponse instantiates a new caseOperationCollectionResponse and sets the default values. func NewCaseOperationCollectionResponse()(*CaseOperationCollectionResponse) { m := &CaseOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/cases_root.go b/models/security/cases_root.go index 77b5e989821..bcb5a92b57a 100644 --- a/models/security/cases_root.go +++ b/models/security/cases_root.go @@ -8,6 +8,8 @@ import ( // CasesRoot type CasesRoot struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCasesRoot instantiates a new casesRoot and sets the default values. func NewCasesRoot()(*CasesRoot) { diff --git a/models/security/category_template.go b/models/security/category_template.go index 5a8571061e7..ab9578c2cbb 100644 --- a/models/security/category_template.go +++ b/models/security/category_template.go @@ -8,7 +8,7 @@ import ( type CategoryTemplate struct { FilePlanDescriptorTemplate } -// NewCategoryTemplate instantiates a new CategoryTemplate and sets the default values. +// NewCategoryTemplate instantiates a new categoryTemplate and sets the default values. func NewCategoryTemplate()(*CategoryTemplate) { m := &CategoryTemplate{ FilePlanDescriptorTemplate: *NewFilePlanDescriptorTemplate(), diff --git a/models/security/category_template_collection_response.go b/models/security/category_template_collection_response.go index 58db74d969a..0d8684848e8 100644 --- a/models/security/category_template_collection_response.go +++ b/models/security/category_template_collection_response.go @@ -9,7 +9,7 @@ import ( type CategoryTemplateCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCategoryTemplateCollectionResponse instantiates a new CategoryTemplateCollectionResponse and sets the default values. +// NewCategoryTemplateCollectionResponse instantiates a new categoryTemplateCollectionResponse and sets the default values. func NewCategoryTemplateCollectionResponse()(*CategoryTemplateCollectionResponse) { m := &CategoryTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/citation.go b/models/security/citation.go index c5c40b1ee5d..cd098e5a5e9 100644 --- a/models/security/citation.go +++ b/models/security/citation.go @@ -7,8 +7,10 @@ import ( // Citation type Citation struct { FilePlanDescriptorBase + // The OdataType property + OdataType *string } -// NewCitation instantiates a new Citation and sets the default values. +// NewCitation instantiates a new citation and sets the default values. func NewCitation()(*Citation) { m := &Citation{ FilePlanDescriptorBase: *NewFilePlanDescriptorBase(), diff --git a/models/security/citation_template.go b/models/security/citation_template.go index 2ee795f44ef..b326c9a4497 100644 --- a/models/security/citation_template.go +++ b/models/security/citation_template.go @@ -8,7 +8,7 @@ import ( type CitationTemplate struct { FilePlanDescriptorTemplate } -// NewCitationTemplate instantiates a new CitationTemplate and sets the default values. +// NewCitationTemplate instantiates a new citationTemplate and sets the default values. func NewCitationTemplate()(*CitationTemplate) { m := &CitationTemplate{ FilePlanDescriptorTemplate: *NewFilePlanDescriptorTemplate(), diff --git a/models/security/citation_template_collection_response.go b/models/security/citation_template_collection_response.go index 026ea1824ae..a218c15d7d5 100644 --- a/models/security/citation_template_collection_response.go +++ b/models/security/citation_template_collection_response.go @@ -9,7 +9,7 @@ import ( type CitationTemplateCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCitationTemplateCollectionResponse instantiates a new CitationTemplateCollectionResponse and sets the default values. +// NewCitationTemplateCollectionResponse instantiates a new citationTemplateCollectionResponse and sets the default values. func NewCitationTemplateCollectionResponse()(*CitationTemplateCollectionResponse) { m := &CitationTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/classification_result.go b/models/security/classification_result.go index d35bf299a78..5aeec95a994 100644 --- a/models/security/classification_result.go +++ b/models/security/classification_result.go @@ -10,7 +10,7 @@ type ClassificationResult struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewClassificationResult instantiates a new ClassificationResult and sets the default values. +// NewClassificationResult instantiates a new classificationResult and sets the default values. func NewClassificationResult()(*ClassificationResult) { m := &ClassificationResult{ } diff --git a/models/security/cloud_application_evidence.go b/models/security/cloud_application_evidence.go index 0e2ce4056b3..aac1de0dec9 100644 --- a/models/security/cloud_application_evidence.go +++ b/models/security/cloud_application_evidence.go @@ -7,8 +7,10 @@ import ( // CloudApplicationEvidence type CloudApplicationEvidence struct { AlertEvidence + // The OdataType property + OdataType *string } -// NewCloudApplicationEvidence instantiates a new CloudApplicationEvidence and sets the default values. +// NewCloudApplicationEvidence instantiates a new cloudApplicationEvidence and sets the default values. func NewCloudApplicationEvidence()(*CloudApplicationEvidence) { m := &CloudApplicationEvidence{ AlertEvidence: *NewAlertEvidence(), diff --git a/models/security/content_info.go b/models/security/content_info.go index dd68b996991..8dfa85a24c6 100644 --- a/models/security/content_info.go +++ b/models/security/content_info.go @@ -10,7 +10,7 @@ type ContentInfo struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewContentInfo instantiates a new ContentInfo and sets the default values. +// NewContentInfo instantiates a new contentInfo and sets the default values. func NewContentInfo()(*ContentInfo) { m := &ContentInfo{ } diff --git a/models/security/custom_action.go b/models/security/custom_action.go index 4bb82698284..f5944584705 100644 --- a/models/security/custom_action.go +++ b/models/security/custom_action.go @@ -8,7 +8,7 @@ import ( type CustomAction struct { InformationProtectionAction } -// NewCustomAction instantiates a new CustomAction and sets the default values. +// NewCustomAction instantiates a new customAction and sets the default values. func NewCustomAction()(*CustomAction) { m := &CustomAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -34,6 +34,16 @@ func (m *CustomAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } 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["properties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateKeyValuePairFromDiscriminatorValue) if err != nil { @@ -63,6 +73,17 @@ func (m *CustomAction) GetName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CustomAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetProperties gets the properties property value. Properties, in key-value pair format, of the action. func (m *CustomAction) GetProperties()([]KeyValuePairable) { val, err := m.GetBackingStore().Get("properties") @@ -86,6 +107,12 @@ func (m *CustomAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetProperties() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetProperties())) for i, v := range m.GetProperties() { @@ -107,6 +134,13 @@ func (m *CustomAction) SetName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CustomAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetProperties sets the properties property value. Properties, in key-value pair format, of the action. func (m *CustomAction) SetProperties(value []KeyValuePairable)() { err := m.GetBackingStore().Set("properties", value) @@ -119,7 +153,9 @@ type CustomActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetName()(*string) + GetOdataType()(*string) GetProperties()([]KeyValuePairable) SetName(value *string)() + SetOdataType(value *string)() SetProperties(value []KeyValuePairable)() } diff --git a/models/security/cvss_summary.go b/models/security/cvss_summary.go index 277ea8a003b..8b80e098b22 100644 --- a/models/security/cvss_summary.go +++ b/models/security/cvss_summary.go @@ -10,7 +10,7 @@ type CvssSummary struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewCvssSummary instantiates a new CvssSummary and sets the default values. +// NewCvssSummary instantiates a new cvssSummary and sets the default values. func NewCvssSummary()(*CvssSummary) { m := &CvssSummary{ } diff --git a/models/security/data_set.go b/models/security/data_set.go index 1e927383d0e..9cc5ca7ec38 100644 --- a/models/security/data_set.go +++ b/models/security/data_set.go @@ -9,6 +9,8 @@ import ( // DataSet type DataSet struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDataSet instantiates a new dataSet and sets the default values. func NewDataSet()(*DataSet) { diff --git a/models/security/data_source.go b/models/security/data_source.go index 67b1855cb37..a5be90f78df 100644 --- a/models/security/data_source.go +++ b/models/security/data_source.go @@ -9,6 +9,8 @@ import ( // DataSource type DataSource struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDataSource instantiates a new dataSource and sets the default values. func NewDataSource()(*DataSource) { diff --git a/models/security/data_source_collection_response.go b/models/security/data_source_collection_response.go index 36ae17a4ab8..2f6fd37d807 100644 --- a/models/security/data_source_collection_response.go +++ b/models/security/data_source_collection_response.go @@ -9,7 +9,7 @@ import ( type DataSourceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewDataSourceCollectionResponse instantiates a new DataSourceCollectionResponse and sets the default values. +// NewDataSourceCollectionResponse instantiates a new dataSourceCollectionResponse and sets the default values. func NewDataSourceCollectionResponse()(*DataSourceCollectionResponse) { m := &DataSourceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/data_source_container.go b/models/security/data_source_container.go index 15da9048054..05934b7d7ea 100644 --- a/models/security/data_source_container.go +++ b/models/security/data_source_container.go @@ -9,6 +9,8 @@ import ( // DataSourceContainer type DataSourceContainer struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDataSourceContainer instantiates a new dataSourceContainer and sets the default values. func NewDataSourceContainer()(*DataSourceContainer) { diff --git a/models/security/department.go b/models/security/department.go index beff120a4bd..f96dee3846b 100644 --- a/models/security/department.go +++ b/models/security/department.go @@ -7,8 +7,10 @@ import ( // Department type Department struct { FilePlanDescriptorBase + // The OdataType property + OdataType *string } -// NewDepartment instantiates a new Department and sets the default values. +// NewDepartment instantiates a new department and sets the default values. func NewDepartment()(*Department) { m := &Department{ FilePlanDescriptorBase: *NewFilePlanDescriptorBase(), diff --git a/models/security/department_template.go b/models/security/department_template.go index b25b0f054a1..1acbc437123 100644 --- a/models/security/department_template.go +++ b/models/security/department_template.go @@ -8,7 +8,7 @@ import ( type DepartmentTemplate struct { FilePlanDescriptorTemplate } -// NewDepartmentTemplate instantiates a new DepartmentTemplate and sets the default values. +// NewDepartmentTemplate instantiates a new departmentTemplate and sets the default values. func NewDepartmentTemplate()(*DepartmentTemplate) { m := &DepartmentTemplate{ FilePlanDescriptorTemplate: *NewFilePlanDescriptorTemplate(), diff --git a/models/security/department_template_collection_response.go b/models/security/department_template_collection_response.go index 6aa15d0d524..902cbf244e6 100644 --- a/models/security/department_template_collection_response.go +++ b/models/security/department_template_collection_response.go @@ -9,7 +9,7 @@ import ( type DepartmentTemplateCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewDepartmentTemplateCollectionResponse instantiates a new DepartmentTemplateCollectionResponse and sets the default values. +// NewDepartmentTemplateCollectionResponse instantiates a new departmentTemplateCollectionResponse and sets the default values. func NewDepartmentTemplateCollectionResponse()(*DepartmentTemplateCollectionResponse) { m := &DepartmentTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/device_evidence.go b/models/security/device_evidence.go index 211814f988b..523f67627f3 100644 --- a/models/security/device_evidence.go +++ b/models/security/device_evidence.go @@ -8,8 +8,10 @@ import ( // DeviceEvidence type DeviceEvidence struct { AlertEvidence + // The OdataType property + OdataType *string } -// NewDeviceEvidence instantiates a new DeviceEvidence and sets the default values. +// NewDeviceEvidence instantiates a new deviceEvidence and sets the default values. func NewDeviceEvidence()(*DeviceEvidence) { m := &DeviceEvidence{ AlertEvidence: *NewAlertEvidence(), diff --git a/models/security/disposition_review_stage.go b/models/security/disposition_review_stage.go index 13afca54322..69f3ea777ba 100644 --- a/models/security/disposition_review_stage.go +++ b/models/security/disposition_review_stage.go @@ -8,6 +8,8 @@ import ( // DispositionReviewStage type DispositionReviewStage struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDispositionReviewStage instantiates a new dispositionReviewStage and sets the default values. func NewDispositionReviewStage()(*DispositionReviewStage) { diff --git a/models/security/disposition_review_stage_collection_response.go b/models/security/disposition_review_stage_collection_response.go index d9755090dd3..2d4939b8f10 100644 --- a/models/security/disposition_review_stage_collection_response.go +++ b/models/security/disposition_review_stage_collection_response.go @@ -9,7 +9,7 @@ import ( type DispositionReviewStageCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewDispositionReviewStageCollectionResponse instantiates a new DispositionReviewStageCollectionResponse and sets the default values. +// NewDispositionReviewStageCollectionResponse instantiates a new dispositionReviewStageCollectionResponse and sets the default values. func NewDispositionReviewStageCollectionResponse()(*DispositionReviewStageCollectionResponse) { m := &DispositionReviewStageCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/ediscovery_add_to_review_set_operation.go b/models/security/ediscovery_add_to_review_set_operation.go index 1d453404c97..731b73fc3b7 100644 --- a/models/security/ediscovery_add_to_review_set_operation.go +++ b/models/security/ediscovery_add_to_review_set_operation.go @@ -8,7 +8,7 @@ import ( type EdiscoveryAddToReviewSetOperation struct { CaseOperation } -// NewEdiscoveryAddToReviewSetOperation instantiates a new EdiscoveryAddToReviewSetOperation and sets the default values. +// NewEdiscoveryAddToReviewSetOperation instantiates a new ediscoveryAddToReviewSetOperation and sets the default values. func NewEdiscoveryAddToReviewSetOperation()(*EdiscoveryAddToReviewSetOperation) { m := &EdiscoveryAddToReviewSetOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/security/ediscovery_case.go b/models/security/ediscovery_case.go index af8456308d6..1e36d058736 100644 --- a/models/security/ediscovery_case.go +++ b/models/security/ediscovery_case.go @@ -10,7 +10,7 @@ import ( type EdiscoveryCase struct { CaseEscaped } -// NewEdiscoveryCase instantiates a new EdiscoveryCase and sets the default values. +// NewEdiscoveryCase instantiates a new ediscoveryCase and sets the default values. func NewEdiscoveryCase()(*EdiscoveryCase) { m := &EdiscoveryCase{ CaseEscaped: *NewCaseEscaped(), diff --git a/models/security/ediscovery_case_collection_response.go b/models/security/ediscovery_case_collection_response.go index ccb32f2a0fb..53929984634 100644 --- a/models/security/ediscovery_case_collection_response.go +++ b/models/security/ediscovery_case_collection_response.go @@ -9,7 +9,7 @@ import ( type EdiscoveryCaseCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewEdiscoveryCaseCollectionResponse instantiates a new EdiscoveryCaseCollectionResponse and sets the default values. +// NewEdiscoveryCaseCollectionResponse instantiates a new ediscoveryCaseCollectionResponse and sets the default values. func NewEdiscoveryCaseCollectionResponse()(*EdiscoveryCaseCollectionResponse) { m := &EdiscoveryCaseCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/ediscovery_case_settings.go b/models/security/ediscovery_case_settings.go index 1ccafb1c98a..706cafa2dbb 100644 --- a/models/security/ediscovery_case_settings.go +++ b/models/security/ediscovery_case_settings.go @@ -8,6 +8,8 @@ import ( // EdiscoveryCaseSettings type EdiscoveryCaseSettings struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewEdiscoveryCaseSettings instantiates a new ediscoveryCaseSettings and sets the default values. func NewEdiscoveryCaseSettings()(*EdiscoveryCaseSettings) { diff --git a/models/security/ediscovery_custodian.go b/models/security/ediscovery_custodian.go index d6d9ae202ba..9fba4c8b58a 100644 --- a/models/security/ediscovery_custodian.go +++ b/models/security/ediscovery_custodian.go @@ -9,7 +9,7 @@ import ( type EdiscoveryCustodian struct { DataSourceContainer } -// NewEdiscoveryCustodian instantiates a new EdiscoveryCustodian and sets the default values. +// NewEdiscoveryCustodian instantiates a new ediscoveryCustodian and sets the default values. func NewEdiscoveryCustodian()(*EdiscoveryCustodian) { m := &EdiscoveryCustodian{ DataSourceContainer: *NewDataSourceContainer(), diff --git a/models/security/ediscovery_custodian_collection_response.go b/models/security/ediscovery_custodian_collection_response.go index 49c001c2adf..7d9f3afb874 100644 --- a/models/security/ediscovery_custodian_collection_response.go +++ b/models/security/ediscovery_custodian_collection_response.go @@ -9,7 +9,7 @@ import ( type EdiscoveryCustodianCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewEdiscoveryCustodianCollectionResponse instantiates a new EdiscoveryCustodianCollectionResponse and sets the default values. +// NewEdiscoveryCustodianCollectionResponse instantiates a new ediscoveryCustodianCollectionResponse and sets the default values. func NewEdiscoveryCustodianCollectionResponse()(*EdiscoveryCustodianCollectionResponse) { m := &EdiscoveryCustodianCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/ediscovery_export_operation.go b/models/security/ediscovery_export_operation.go index 6c4d83f1a55..01be4255b27 100644 --- a/models/security/ediscovery_export_operation.go +++ b/models/security/ediscovery_export_operation.go @@ -8,7 +8,7 @@ import ( type EdiscoveryExportOperation struct { CaseOperation } -// NewEdiscoveryExportOperation instantiates a new EdiscoveryExportOperation and sets the default values. +// NewEdiscoveryExportOperation instantiates a new ediscoveryExportOperation and sets the default values. func NewEdiscoveryExportOperation()(*EdiscoveryExportOperation) { m := &EdiscoveryExportOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/security/ediscovery_file.go b/models/security/ediscovery_file.go index fcb3a8723e2..99ca01c91dc 100644 --- a/models/security/ediscovery_file.go +++ b/models/security/ediscovery_file.go @@ -8,7 +8,7 @@ import ( type EdiscoveryFile struct { File } -// NewEdiscoveryFile instantiates a new EdiscoveryFile and sets the default values. +// NewEdiscoveryFile instantiates a new ediscoveryFile and sets the default values. func NewEdiscoveryFile()(*EdiscoveryFile) { m := &EdiscoveryFile{ File: *NewFile(), diff --git a/models/security/ediscovery_file_collection_response.go b/models/security/ediscovery_file_collection_response.go index 7aa60f84050..7d0e9bfad41 100644 --- a/models/security/ediscovery_file_collection_response.go +++ b/models/security/ediscovery_file_collection_response.go @@ -9,7 +9,7 @@ import ( type EdiscoveryFileCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewEdiscoveryFileCollectionResponse instantiates a new EdiscoveryFileCollectionResponse and sets the default values. +// NewEdiscoveryFileCollectionResponse instantiates a new ediscoveryFileCollectionResponse and sets the default values. func NewEdiscoveryFileCollectionResponse()(*EdiscoveryFileCollectionResponse) { m := &EdiscoveryFileCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/ediscovery_hold_operation.go b/models/security/ediscovery_hold_operation.go index b287172fd8b..49af36a932e 100644 --- a/models/security/ediscovery_hold_operation.go +++ b/models/security/ediscovery_hold_operation.go @@ -8,7 +8,7 @@ import ( type EdiscoveryHoldOperation struct { CaseOperation } -// NewEdiscoveryHoldOperation instantiates a new EdiscoveryHoldOperation and sets the default values. +// NewEdiscoveryHoldOperation instantiates a new ediscoveryHoldOperation and sets the default values. func NewEdiscoveryHoldOperation()(*EdiscoveryHoldOperation) { m := &EdiscoveryHoldOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/security/ediscovery_hold_policy.go b/models/security/ediscovery_hold_policy.go index 714ea75a720..858e92f606c 100644 --- a/models/security/ediscovery_hold_policy.go +++ b/models/security/ediscovery_hold_policy.go @@ -8,7 +8,7 @@ import ( type EdiscoveryHoldPolicy struct { PolicyBase } -// NewEdiscoveryHoldPolicy instantiates a new EdiscoveryHoldPolicy and sets the default values. +// NewEdiscoveryHoldPolicy instantiates a new ediscoveryHoldPolicy and sets the default values. func NewEdiscoveryHoldPolicy()(*EdiscoveryHoldPolicy) { m := &EdiscoveryHoldPolicy{ PolicyBase: *NewPolicyBase(), diff --git a/models/security/ediscovery_hold_policy_collection_response.go b/models/security/ediscovery_hold_policy_collection_response.go index b7e208dc9cd..17e690cde35 100644 --- a/models/security/ediscovery_hold_policy_collection_response.go +++ b/models/security/ediscovery_hold_policy_collection_response.go @@ -9,7 +9,7 @@ import ( type EdiscoveryHoldPolicyCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewEdiscoveryHoldPolicyCollectionResponse instantiates a new EdiscoveryHoldPolicyCollectionResponse and sets the default values. +// NewEdiscoveryHoldPolicyCollectionResponse instantiates a new ediscoveryHoldPolicyCollectionResponse and sets the default values. func NewEdiscoveryHoldPolicyCollectionResponse()(*EdiscoveryHoldPolicyCollectionResponse) { m := &EdiscoveryHoldPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/ediscovery_noncustodial_data_source_collection_response.go b/models/security/ediscovery_noncustodial_data_source_collection_response.go index 65b71436939..5158ca03541 100644 --- a/models/security/ediscovery_noncustodial_data_source_collection_response.go +++ b/models/security/ediscovery_noncustodial_data_source_collection_response.go @@ -9,7 +9,7 @@ import ( type EdiscoveryNoncustodialDataSourceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewEdiscoveryNoncustodialDataSourceCollectionResponse instantiates a new EdiscoveryNoncustodialDataSourceCollectionResponse and sets the default values. +// NewEdiscoveryNoncustodialDataSourceCollectionResponse instantiates a new ediscoveryNoncustodialDataSourceCollectionResponse and sets the default values. func NewEdiscoveryNoncustodialDataSourceCollectionResponse()(*EdiscoveryNoncustodialDataSourceCollectionResponse) { m := &EdiscoveryNoncustodialDataSourceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/ediscovery_purge_data_operation.go b/models/security/ediscovery_purge_data_operation.go index cb9cda4bbc4..74ec664da48 100644 --- a/models/security/ediscovery_purge_data_operation.go +++ b/models/security/ediscovery_purge_data_operation.go @@ -8,7 +8,7 @@ import ( type EdiscoveryPurgeDataOperation struct { CaseOperation } -// NewEdiscoveryPurgeDataOperation instantiates a new EdiscoveryPurgeDataOperation and sets the default values. +// NewEdiscoveryPurgeDataOperation instantiates a new ediscoveryPurgeDataOperation and sets the default values. func NewEdiscoveryPurgeDataOperation()(*EdiscoveryPurgeDataOperation) { m := &EdiscoveryPurgeDataOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/security/ediscovery_review_set.go b/models/security/ediscovery_review_set.go index 921485e990b..6c3e2e44a85 100644 --- a/models/security/ediscovery_review_set.go +++ b/models/security/ediscovery_review_set.go @@ -8,7 +8,7 @@ import ( type EdiscoveryReviewSet struct { DataSet } -// NewEdiscoveryReviewSet instantiates a new EdiscoveryReviewSet and sets the default values. +// NewEdiscoveryReviewSet instantiates a new ediscoveryReviewSet and sets the default values. func NewEdiscoveryReviewSet()(*EdiscoveryReviewSet) { m := &EdiscoveryReviewSet{ DataSet: *NewDataSet(), diff --git a/models/security/ediscovery_review_set_collection_response.go b/models/security/ediscovery_review_set_collection_response.go index a0a1ccb21bb..1a015346b4d 100644 --- a/models/security/ediscovery_review_set_collection_response.go +++ b/models/security/ediscovery_review_set_collection_response.go @@ -9,7 +9,7 @@ import ( type EdiscoveryReviewSetCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewEdiscoveryReviewSetCollectionResponse instantiates a new EdiscoveryReviewSetCollectionResponse and sets the default values. +// NewEdiscoveryReviewSetCollectionResponse instantiates a new ediscoveryReviewSetCollectionResponse and sets the default values. func NewEdiscoveryReviewSetCollectionResponse()(*EdiscoveryReviewSetCollectionResponse) { m := &EdiscoveryReviewSetCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/ediscovery_review_set_query.go b/models/security/ediscovery_review_set_query.go index d1988893811..5bcf7491054 100644 --- a/models/security/ediscovery_review_set_query.go +++ b/models/security/ediscovery_review_set_query.go @@ -8,7 +8,7 @@ import ( type EdiscoveryReviewSetQuery struct { Search } -// NewEdiscoveryReviewSetQuery instantiates a new EdiscoveryReviewSetQuery and sets the default values. +// NewEdiscoveryReviewSetQuery instantiates a new ediscoveryReviewSetQuery and sets the default values. func NewEdiscoveryReviewSetQuery()(*EdiscoveryReviewSetQuery) { m := &EdiscoveryReviewSetQuery{ Search: *NewSearch(), diff --git a/models/security/ediscovery_review_set_query_collection_response.go b/models/security/ediscovery_review_set_query_collection_response.go index 8b94667bb7c..1fadb526c20 100644 --- a/models/security/ediscovery_review_set_query_collection_response.go +++ b/models/security/ediscovery_review_set_query_collection_response.go @@ -9,7 +9,7 @@ import ( type EdiscoveryReviewSetQueryCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewEdiscoveryReviewSetQueryCollectionResponse instantiates a new EdiscoveryReviewSetQueryCollectionResponse and sets the default values. +// NewEdiscoveryReviewSetQueryCollectionResponse instantiates a new ediscoveryReviewSetQueryCollectionResponse and sets the default values. func NewEdiscoveryReviewSetQueryCollectionResponse()(*EdiscoveryReviewSetQueryCollectionResponse) { m := &EdiscoveryReviewSetQueryCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/ediscovery_review_tag.go b/models/security/ediscovery_review_tag.go index 17bb2994779..9c16ad8bf9c 100644 --- a/models/security/ediscovery_review_tag.go +++ b/models/security/ediscovery_review_tag.go @@ -8,7 +8,7 @@ import ( type EdiscoveryReviewTag struct { Tag } -// NewEdiscoveryReviewTag instantiates a new EdiscoveryReviewTag and sets the default values. +// NewEdiscoveryReviewTag instantiates a new ediscoveryReviewTag and sets the default values. func NewEdiscoveryReviewTag()(*EdiscoveryReviewTag) { m := &EdiscoveryReviewTag{ Tag: *NewTag(), diff --git a/models/security/ediscovery_review_tag_collection_response.go b/models/security/ediscovery_review_tag_collection_response.go index eeca78844fd..d31ca8f9897 100644 --- a/models/security/ediscovery_review_tag_collection_response.go +++ b/models/security/ediscovery_review_tag_collection_response.go @@ -9,7 +9,7 @@ import ( type EdiscoveryReviewTagCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewEdiscoveryReviewTagCollectionResponse instantiates a new EdiscoveryReviewTagCollectionResponse and sets the default values. +// NewEdiscoveryReviewTagCollectionResponse instantiates a new ediscoveryReviewTagCollectionResponse and sets the default values. func NewEdiscoveryReviewTagCollectionResponse()(*EdiscoveryReviewTagCollectionResponse) { m := &EdiscoveryReviewTagCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/ediscovery_search.go b/models/security/ediscovery_search.go index d98e552847e..0157f1314a6 100644 --- a/models/security/ediscovery_search.go +++ b/models/security/ediscovery_search.go @@ -8,7 +8,7 @@ import ( type EdiscoverySearch struct { Search } -// NewEdiscoverySearch instantiates a new EdiscoverySearch and sets the default values. +// NewEdiscoverySearch instantiates a new ediscoverySearch and sets the default values. func NewEdiscoverySearch()(*EdiscoverySearch) { m := &EdiscoverySearch{ Search: *NewSearch(), diff --git a/models/security/ediscovery_search_collection_response.go b/models/security/ediscovery_search_collection_response.go index 0832f6d7680..427592b654f 100644 --- a/models/security/ediscovery_search_collection_response.go +++ b/models/security/ediscovery_search_collection_response.go @@ -9,7 +9,7 @@ import ( type EdiscoverySearchCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewEdiscoverySearchCollectionResponse instantiates a new EdiscoverySearchCollectionResponse and sets the default values. +// NewEdiscoverySearchCollectionResponse instantiates a new ediscoverySearchCollectionResponse and sets the default values. func NewEdiscoverySearchCollectionResponse()(*EdiscoverySearchCollectionResponse) { m := &EdiscoverySearchCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/ediscovery_tag_operation.go b/models/security/ediscovery_tag_operation.go index e5e44c9ba01..f502892088e 100644 --- a/models/security/ediscovery_tag_operation.go +++ b/models/security/ediscovery_tag_operation.go @@ -8,7 +8,7 @@ import ( type EdiscoveryTagOperation struct { CaseOperation } -// NewEdiscoveryTagOperation instantiates a new EdiscoveryTagOperation and sets the default values. +// NewEdiscoveryTagOperation instantiates a new ediscoveryTagOperation and sets the default values. func NewEdiscoveryTagOperation()(*EdiscoveryTagOperation) { m := &EdiscoveryTagOperation{ CaseOperation: *NewCaseOperation(), diff --git a/models/security/email_content_threat_submission.go b/models/security/email_content_threat_submission.go index e34596c70bf..eba09181462 100644 --- a/models/security/email_content_threat_submission.go +++ b/models/security/email_content_threat_submission.go @@ -8,7 +8,7 @@ import ( type EmailContentThreatSubmission struct { EmailThreatSubmission } -// NewEmailContentThreatSubmission instantiates a new EmailContentThreatSubmission and sets the default values. +// NewEmailContentThreatSubmission instantiates a new emailContentThreatSubmission and sets the default values. func NewEmailContentThreatSubmission()(*EmailContentThreatSubmission) { m := &EmailContentThreatSubmission{ EmailThreatSubmission: *NewEmailThreatSubmission(), diff --git a/models/security/email_threat_submission.go b/models/security/email_threat_submission.go index 9101ea138d0..8e8e586bf27 100644 --- a/models/security/email_threat_submission.go +++ b/models/security/email_threat_submission.go @@ -9,7 +9,7 @@ import ( type EmailThreatSubmission struct { ThreatSubmission } -// NewEmailThreatSubmission instantiates a new EmailThreatSubmission and sets the default values. +// NewEmailThreatSubmission instantiates a new emailThreatSubmission and sets the default values. func NewEmailThreatSubmission()(*EmailThreatSubmission) { m := &EmailThreatSubmission{ ThreatSubmission: *NewThreatSubmission(), diff --git a/models/security/email_threat_submission_collection_response.go b/models/security/email_threat_submission_collection_response.go index 0d0ed9946ad..fa614101cf8 100644 --- a/models/security/email_threat_submission_collection_response.go +++ b/models/security/email_threat_submission_collection_response.go @@ -9,7 +9,7 @@ import ( type EmailThreatSubmissionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewEmailThreatSubmissionCollectionResponse instantiates a new EmailThreatSubmissionCollectionResponse and sets the default values. +// NewEmailThreatSubmissionCollectionResponse instantiates a new emailThreatSubmissionCollectionResponse and sets the default values. func NewEmailThreatSubmissionCollectionResponse()(*EmailThreatSubmissionCollectionResponse) { m := &EmailThreatSubmissionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/email_threat_submission_policy.go b/models/security/email_threat_submission_policy.go index 090afc72e14..ff8e05309f5 100644 --- a/models/security/email_threat_submission_policy.go +++ b/models/security/email_threat_submission_policy.go @@ -8,6 +8,8 @@ import ( // EmailThreatSubmissionPolicy type EmailThreatSubmissionPolicy struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewEmailThreatSubmissionPolicy instantiates a new emailThreatSubmissionPolicy and sets the default values. func NewEmailThreatSubmissionPolicy()(*EmailThreatSubmissionPolicy) { diff --git a/models/security/email_threat_submission_policy_collection_response.go b/models/security/email_threat_submission_policy_collection_response.go index 1c70420de31..a3d62f1b223 100644 --- a/models/security/email_threat_submission_policy_collection_response.go +++ b/models/security/email_threat_submission_policy_collection_response.go @@ -9,7 +9,7 @@ import ( type EmailThreatSubmissionPolicyCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewEmailThreatSubmissionPolicyCollectionResponse instantiates a new EmailThreatSubmissionPolicyCollectionResponse and sets the default values. +// NewEmailThreatSubmissionPolicyCollectionResponse instantiates a new emailThreatSubmissionPolicyCollectionResponse and sets the default values. func NewEmailThreatSubmissionPolicyCollectionResponse()(*EmailThreatSubmissionPolicyCollectionResponse) { m := &EmailThreatSubmissionPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/email_url_threat_submission.go b/models/security/email_url_threat_submission.go index f49787570b4..2a0a750d917 100644 --- a/models/security/email_url_threat_submission.go +++ b/models/security/email_url_threat_submission.go @@ -8,7 +8,7 @@ import ( type EmailUrlThreatSubmission struct { EmailThreatSubmission } -// NewEmailUrlThreatSubmission instantiates a new EmailUrlThreatSubmission and sets the default values. +// NewEmailUrlThreatSubmission instantiates a new emailUrlThreatSubmission and sets the default values. func NewEmailUrlThreatSubmission()(*EmailUrlThreatSubmission) { m := &EmailUrlThreatSubmission{ EmailThreatSubmission: *NewEmailThreatSubmission(), diff --git a/models/security/file.go b/models/security/file.go index e20eece558d..b0f358235f0 100644 --- a/models/security/file.go +++ b/models/security/file.go @@ -9,6 +9,8 @@ import ( // File type File struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewFile instantiates a new file and sets the default values. func NewFile()(*File) { diff --git a/models/security/file_content_threat_submission.go b/models/security/file_content_threat_submission.go index c301634ef49..be1d409f6c5 100644 --- a/models/security/file_content_threat_submission.go +++ b/models/security/file_content_threat_submission.go @@ -8,7 +8,7 @@ import ( type FileContentThreatSubmission struct { FileThreatSubmission } -// NewFileContentThreatSubmission instantiates a new FileContentThreatSubmission and sets the default values. +// NewFileContentThreatSubmission instantiates a new fileContentThreatSubmission and sets the default values. func NewFileContentThreatSubmission()(*FileContentThreatSubmission) { m := &FileContentThreatSubmission{ FileThreatSubmission: *NewFileThreatSubmission(), diff --git a/models/security/file_evidence.go b/models/security/file_evidence.go index b0d57474071..8578d82b48f 100644 --- a/models/security/file_evidence.go +++ b/models/security/file_evidence.go @@ -8,7 +8,7 @@ import ( type FileEvidence struct { AlertEvidence } -// NewFileEvidence instantiates a new FileEvidence and sets the default values. +// NewFileEvidence instantiates a new fileEvidence and sets the default values. func NewFileEvidence()(*FileEvidence) { m := &FileEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -63,6 +63,16 @@ func (m *FileEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } 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 } // GetFileDetails gets the fileDetails property value. The file details. @@ -87,6 +97,17 @@ func (m *FileEvidence) GetMdeDeviceId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *FileEvidence) 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 *FileEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AlertEvidence.Serialize(writer) @@ -112,6 +133,12 @@ func (m *FileEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDetectionStatus sets the detectionStatus property value. The status of the detection.The possible values are: detected, blocked, prevented, unknownFutureValue. @@ -135,6 +162,13 @@ func (m *FileEvidence) SetMdeDeviceId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *FileEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // FileEvidenceable type FileEvidenceable interface { AlertEvidenceable @@ -142,7 +176,9 @@ type FileEvidenceable interface { GetDetectionStatus()(*DetectionStatus) GetFileDetails()(FileDetailsable) GetMdeDeviceId()(*string) + GetOdataType()(*string) SetDetectionStatus(value *DetectionStatus)() SetFileDetails(value FileDetailsable)() SetMdeDeviceId(value *string)() + SetOdataType(value *string)() } diff --git a/models/security/file_plan_descriptor.go b/models/security/file_plan_descriptor.go index 6b45f638d55..6bcdce2b2a3 100644 --- a/models/security/file_plan_descriptor.go +++ b/models/security/file_plan_descriptor.go @@ -8,6 +8,8 @@ import ( // FilePlanDescriptor type FilePlanDescriptor struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewFilePlanDescriptor instantiates a new filePlanDescriptor and sets the default values. func NewFilePlanDescriptor()(*FilePlanDescriptor) { diff --git a/models/security/file_plan_descriptor_template.go b/models/security/file_plan_descriptor_template.go index 0221595609c..487ed60c7fd 100644 --- a/models/security/file_plan_descriptor_template.go +++ b/models/security/file_plan_descriptor_template.go @@ -9,6 +9,8 @@ import ( // FilePlanDescriptorTemplate type FilePlanDescriptorTemplate struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewFilePlanDescriptorTemplate instantiates a new filePlanDescriptorTemplate and sets the default values. func NewFilePlanDescriptorTemplate()(*FilePlanDescriptorTemplate) { diff --git a/models/security/file_plan_reference.go b/models/security/file_plan_reference.go index 3db21b01b9e..28f7e28a9eb 100644 --- a/models/security/file_plan_reference.go +++ b/models/security/file_plan_reference.go @@ -8,7 +8,7 @@ import ( type FilePlanReference struct { FilePlanDescriptorBase } -// NewFilePlanReference instantiates a new FilePlanReference and sets the default values. +// NewFilePlanReference instantiates a new filePlanReference and sets the default values. func NewFilePlanReference()(*FilePlanReference) { m := &FilePlanReference{ FilePlanDescriptorBase: *NewFilePlanDescriptorBase(), @@ -22,18 +22,54 @@ func CreateFilePlanReferenceFromDiscriminatorValue(parseNode i878a80d2330e89d268 // GetFieldDeserializers the deserialization information for the current model func (m *FilePlanReference) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.FilePlanDescriptorBase.GetFieldDeserializers() + 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 *FilePlanReference) 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 *FilePlanReference) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.FilePlanDescriptorBase.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *FilePlanReference) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // FilePlanReferenceable type FilePlanReferenceable interface { FilePlanDescriptorBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/security/file_plan_reference_template.go b/models/security/file_plan_reference_template.go index d72a5be5695..894a2f6ba22 100644 --- a/models/security/file_plan_reference_template.go +++ b/models/security/file_plan_reference_template.go @@ -8,7 +8,7 @@ import ( type FilePlanReferenceTemplate struct { FilePlanDescriptorTemplate } -// NewFilePlanReferenceTemplate instantiates a new FilePlanReferenceTemplate and sets the default values. +// NewFilePlanReferenceTemplate instantiates a new filePlanReferenceTemplate and sets the default values. func NewFilePlanReferenceTemplate()(*FilePlanReferenceTemplate) { m := &FilePlanReferenceTemplate{ FilePlanDescriptorTemplate: *NewFilePlanDescriptorTemplate(), diff --git a/models/security/file_plan_reference_template_collection_response.go b/models/security/file_plan_reference_template_collection_response.go index 7cf2cf63683..6d5ce244202 100644 --- a/models/security/file_plan_reference_template_collection_response.go +++ b/models/security/file_plan_reference_template_collection_response.go @@ -9,7 +9,7 @@ import ( type FilePlanReferenceTemplateCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewFilePlanReferenceTemplateCollectionResponse instantiates a new FilePlanReferenceTemplateCollectionResponse and sets the default values. +// NewFilePlanReferenceTemplateCollectionResponse instantiates a new filePlanReferenceTemplateCollectionResponse and sets the default values. func NewFilePlanReferenceTemplateCollectionResponse()(*FilePlanReferenceTemplateCollectionResponse) { m := &FilePlanReferenceTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/file_threat_submission.go b/models/security/file_threat_submission.go index ed43aacf7e1..27f14efe096 100644 --- a/models/security/file_threat_submission.go +++ b/models/security/file_threat_submission.go @@ -8,7 +8,7 @@ import ( type FileThreatSubmission struct { ThreatSubmission } -// NewFileThreatSubmission instantiates a new FileThreatSubmission and sets the default values. +// NewFileThreatSubmission instantiates a new fileThreatSubmission and sets the default values. func NewFileThreatSubmission()(*FileThreatSubmission) { m := &FileThreatSubmission{ ThreatSubmission: *NewThreatSubmission(), diff --git a/models/security/file_threat_submission_collection_response.go b/models/security/file_threat_submission_collection_response.go index fca5d68606f..4e2c32e4212 100644 --- a/models/security/file_threat_submission_collection_response.go +++ b/models/security/file_threat_submission_collection_response.go @@ -9,7 +9,7 @@ import ( type FileThreatSubmissionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewFileThreatSubmissionCollectionResponse instantiates a new FileThreatSubmissionCollectionResponse and sets the default values. +// NewFileThreatSubmissionCollectionResponse instantiates a new fileThreatSubmissionCollectionResponse and sets the default values. func NewFileThreatSubmissionCollectionResponse()(*FileThreatSubmissionCollectionResponse) { m := &FileThreatSubmissionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/file_url_threat_submission.go b/models/security/file_url_threat_submission.go index d68f322dc08..b4323499fad 100644 --- a/models/security/file_url_threat_submission.go +++ b/models/security/file_url_threat_submission.go @@ -8,7 +8,7 @@ import ( type FileUrlThreatSubmission struct { FileThreatSubmission } -// NewFileUrlThreatSubmission instantiates a new FileUrlThreatSubmission and sets the default values. +// NewFileUrlThreatSubmission instantiates a new fileUrlThreatSubmission and sets the default values. func NewFileUrlThreatSubmission()(*FileUrlThreatSubmission) { m := &FileUrlThreatSubmission{ FileThreatSubmission: *NewFileThreatSubmission(), diff --git a/models/security/formatted_content.go b/models/security/formatted_content.go index 848ebb0add3..ccb0af554b8 100644 --- a/models/security/formatted_content.go +++ b/models/security/formatted_content.go @@ -10,7 +10,7 @@ type FormattedContent struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewFormattedContent instantiates a new FormattedContent and sets the default values. +// NewFormattedContent instantiates a new formattedContent and sets the default values. func NewFormattedContent()(*FormattedContent) { m := &FormattedContent{ } diff --git a/models/security/google_cloud_resource_evidence.go b/models/security/google_cloud_resource_evidence.go index c5edb74134f..5f8c220736c 100644 --- a/models/security/google_cloud_resource_evidence.go +++ b/models/security/google_cloud_resource_evidence.go @@ -8,7 +8,7 @@ import ( type GoogleCloudResourceEvidence struct { AlertEvidence } -// NewGoogleCloudResourceEvidence instantiates a new GoogleCloudResourceEvidence and sets the default values. +// NewGoogleCloudResourceEvidence instantiates a new googleCloudResourceEvidence and sets the default values. func NewGoogleCloudResourceEvidence()(*GoogleCloudResourceEvidence) { m := &GoogleCloudResourceEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -42,6 +42,16 @@ func (m *GoogleCloudResourceEvidence) GetFieldDeserializers()(map[string]func(i8 } 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["projectId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -106,6 +116,17 @@ func (m *GoogleCloudResourceEvidence) GetLocationType()(*GoogleCloudLocationType } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *GoogleCloudResourceEvidence) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetProjectId gets the projectId property value. The Google project ID as defined by the user. func (m *GoogleCloudResourceEvidence) GetProjectId()(*string) { val, err := m.GetBackingStore().Get("projectId") @@ -169,6 +190,12 @@ func (m *GoogleCloudResourceEvidence) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("projectId", m.GetProjectId()) if err != nil { @@ -209,6 +236,13 @@ func (m *GoogleCloudResourceEvidence) SetLocationType(value *GoogleCloudLocation panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *GoogleCloudResourceEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetProjectId sets the projectId property value. The Google project ID as defined by the user. func (m *GoogleCloudResourceEvidence) SetProjectId(value *string)() { err := m.GetBackingStore().Set("projectId", value) @@ -243,12 +277,14 @@ type GoogleCloudResourceEvidenceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetLocation()(*string) GetLocationType()(*GoogleCloudLocationType) + GetOdataType()(*string) GetProjectId()(*string) GetProjectNumber()(*int64) GetResourceName()(*string) GetResourceType()(*string) SetLocation(value *string)() SetLocationType(value *GoogleCloudLocationType)() + SetOdataType(value *string)() SetProjectId(value *string)() SetProjectNumber(value *int64)() SetResourceName(value *string)() diff --git a/models/security/host.go b/models/security/host.go index 6080627ed08..7a464d6a189 100644 --- a/models/security/host.go +++ b/models/security/host.go @@ -9,7 +9,7 @@ import ( type Host struct { Artifact } -// NewHost instantiates a new Host and sets the default values. +// NewHost instantiates a new host and sets the default values. func NewHost()(*Host) { m := &Host{ Artifact: *NewArtifact(), diff --git a/models/security/host_collection_response.go b/models/security/host_collection_response.go index 16c36041a59..ec20c4e1dba 100644 --- a/models/security/host_collection_response.go +++ b/models/security/host_collection_response.go @@ -9,7 +9,7 @@ import ( type HostCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewHostCollectionResponse instantiates a new HostCollectionResponse and sets the default values. +// NewHostCollectionResponse instantiates a new hostCollectionResponse and sets the default values. func NewHostCollectionResponse()(*HostCollectionResponse) { m := &HostCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/host_component_collection_response.go b/models/security/host_component_collection_response.go index 9ceb881d2ed..13cb758b307 100644 --- a/models/security/host_component_collection_response.go +++ b/models/security/host_component_collection_response.go @@ -9,7 +9,7 @@ import ( type HostComponentCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewHostComponentCollectionResponse instantiates a new HostComponentCollectionResponse and sets the default values. +// NewHostComponentCollectionResponse instantiates a new hostComponentCollectionResponse and sets the default values. func NewHostComponentCollectionResponse()(*HostComponentCollectionResponse) { m := &HostComponentCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/host_cookie_collection_response.go b/models/security/host_cookie_collection_response.go index 7ff4c798316..ace72b8a67b 100644 --- a/models/security/host_cookie_collection_response.go +++ b/models/security/host_cookie_collection_response.go @@ -9,7 +9,7 @@ import ( type HostCookieCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewHostCookieCollectionResponse instantiates a new HostCookieCollectionResponse and sets the default values. +// NewHostCookieCollectionResponse instantiates a new hostCookieCollectionResponse and sets the default values. func NewHostCookieCollectionResponse()(*HostCookieCollectionResponse) { m := &HostCookieCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/host_reputation.go b/models/security/host_reputation.go index 30d0df0751a..0f28e2cf5d7 100644 --- a/models/security/host_reputation.go +++ b/models/security/host_reputation.go @@ -8,6 +8,8 @@ import ( // HostReputation type HostReputation struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewHostReputation instantiates a new hostReputation and sets the default values. func NewHostReputation()(*HostReputation) { diff --git a/models/security/host_tracker_collection_response.go b/models/security/host_tracker_collection_response.go index 11a128cdc88..514391f41e1 100644 --- a/models/security/host_tracker_collection_response.go +++ b/models/security/host_tracker_collection_response.go @@ -9,7 +9,7 @@ import ( type HostTrackerCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewHostTrackerCollectionResponse instantiates a new HostTrackerCollectionResponse and sets the default values. +// NewHostTrackerCollectionResponse instantiates a new hostTrackerCollectionResponse and sets the default values. func NewHostTrackerCollectionResponse()(*HostTrackerCollectionResponse) { m := &HostTrackerCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/hostname.go b/models/security/hostname.go index ef4161fe98c..c3788976e8e 100644 --- a/models/security/hostname.go +++ b/models/security/hostname.go @@ -8,7 +8,7 @@ import ( type Hostname struct { Host } -// NewHostname instantiates a new Hostname and sets the default values. +// NewHostname instantiates a new hostname and sets the default values. func NewHostname()(*Hostname) { m := &Hostname{ Host: *NewHost(), diff --git a/models/security/hunting_row_result.go b/models/security/hunting_row_result.go index da242c3ac67..371d86234fa 100644 --- a/models/security/hunting_row_result.go +++ b/models/security/hunting_row_result.go @@ -10,7 +10,7 @@ type HuntingRowResult struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewHuntingRowResult instantiates a new HuntingRowResult and sets the default values. +// NewHuntingRowResult instantiates a new huntingRowResult and sets the default values. func NewHuntingRowResult()(*HuntingRowResult) { m := &HuntingRowResult{ } diff --git a/models/security/hyperlink.go b/models/security/hyperlink.go index 61d93b70eb3..7f08f615cd7 100644 --- a/models/security/hyperlink.go +++ b/models/security/hyperlink.go @@ -10,7 +10,7 @@ type Hyperlink struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewHyperlink instantiates a new Hyperlink and sets the default values. +// NewHyperlink instantiates a new hyperlink and sets the default values. func NewHyperlink()(*Hyperlink) { m := &Hyperlink{ } diff --git a/models/security/incident.go b/models/security/incident.go index 60f6a2464b2..422083a5caf 100644 --- a/models/security/incident.go +++ b/models/security/incident.go @@ -9,6 +9,8 @@ import ( // Incident type Incident struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewIncident instantiates a new incident and sets the default values. func NewIncident()(*Incident) { diff --git a/models/security/incident_collection_response.go b/models/security/incident_collection_response.go index 7a0281d4794..5d047e41a40 100644 --- a/models/security/incident_collection_response.go +++ b/models/security/incident_collection_response.go @@ -9,7 +9,7 @@ import ( type IncidentCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewIncidentCollectionResponse instantiates a new IncidentCollectionResponse and sets the default values. +// NewIncidentCollectionResponse instantiates a new incidentCollectionResponse and sets the default values. func NewIncidentCollectionResponse()(*IncidentCollectionResponse) { m := &IncidentCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/indicator.go b/models/security/indicator.go index 06ca61d8b51..6a8fb3fb463 100644 --- a/models/security/indicator.go +++ b/models/security/indicator.go @@ -8,6 +8,8 @@ import ( // Indicator type Indicator struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewIndicator instantiates a new indicator and sets the default values. func NewIndicator()(*Indicator) { diff --git a/models/security/information_protection.go b/models/security/information_protection.go index 172f461ae2e..0945339c559 100644 --- a/models/security/information_protection.go +++ b/models/security/information_protection.go @@ -8,6 +8,8 @@ import ( // InformationProtection type InformationProtection struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewInformationProtection instantiates a new informationProtection and sets the default values. func NewInformationProtection()(*InformationProtection) { diff --git a/models/security/information_protection_action.go b/models/security/information_protection_action.go index 06c4679a2e0..e41a0a84071 100644 --- a/models/security/information_protection_action.go +++ b/models/security/information_protection_action.go @@ -10,7 +10,7 @@ type InformationProtectionAction struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewInformationProtectionAction instantiates a new InformationProtectionAction and sets the default values. +// NewInformationProtectionAction instantiates a new informationProtectionAction and sets the default values. func NewInformationProtectionAction()(*InformationProtectionAction) { m := &InformationProtectionAction{ } diff --git a/models/security/information_protection_policy_setting.go b/models/security/information_protection_policy_setting.go index 42855a5af66..d3389c8a90d 100644 --- a/models/security/information_protection_policy_setting.go +++ b/models/security/information_protection_policy_setting.go @@ -8,6 +8,8 @@ import ( // InformationProtectionPolicySetting type InformationProtectionPolicySetting struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewInformationProtectionPolicySetting instantiates a new informationProtectionPolicySetting and sets the default values. func NewInformationProtectionPolicySetting()(*InformationProtectionPolicySetting) { diff --git a/models/security/intelligence_profile.go b/models/security/intelligence_profile.go index 937d6b16e1d..bccaf3f019f 100644 --- a/models/security/intelligence_profile.go +++ b/models/security/intelligence_profile.go @@ -9,6 +9,8 @@ import ( // IntelligenceProfile type IntelligenceProfile struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewIntelligenceProfile instantiates a new intelligenceProfile and sets the default values. func NewIntelligenceProfile()(*IntelligenceProfile) { diff --git a/models/security/intelligence_profile_collection_response.go b/models/security/intelligence_profile_collection_response.go index 0c91eab44bb..0276a7c5986 100644 --- a/models/security/intelligence_profile_collection_response.go +++ b/models/security/intelligence_profile_collection_response.go @@ -9,7 +9,7 @@ import ( type IntelligenceProfileCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewIntelligenceProfileCollectionResponse instantiates a new IntelligenceProfileCollectionResponse and sets the default values. +// NewIntelligenceProfileCollectionResponse instantiates a new intelligenceProfileCollectionResponse and sets the default values. func NewIntelligenceProfileCollectionResponse()(*IntelligenceProfileCollectionResponse) { m := &IntelligenceProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/intelligence_profile_indicator.go b/models/security/intelligence_profile_indicator.go index 145c4582df5..83fb83aedb6 100644 --- a/models/security/intelligence_profile_indicator.go +++ b/models/security/intelligence_profile_indicator.go @@ -9,7 +9,7 @@ import ( type IntelligenceProfileIndicator struct { Indicator } -// NewIntelligenceProfileIndicator instantiates a new IntelligenceProfileIndicator and sets the default values. +// NewIntelligenceProfileIndicator instantiates a new intelligenceProfileIndicator and sets the default values. func NewIntelligenceProfileIndicator()(*IntelligenceProfileIndicator) { m := &IntelligenceProfileIndicator{ Indicator: *NewIndicator(), diff --git a/models/security/intelligence_profile_indicator_collection_response.go b/models/security/intelligence_profile_indicator_collection_response.go index aec6997aea2..f550cebdd5f 100644 --- a/models/security/intelligence_profile_indicator_collection_response.go +++ b/models/security/intelligence_profile_indicator_collection_response.go @@ -9,7 +9,7 @@ import ( type IntelligenceProfileIndicatorCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewIntelligenceProfileIndicatorCollectionResponse instantiates a new IntelligenceProfileIndicatorCollectionResponse and sets the default values. +// NewIntelligenceProfileIndicatorCollectionResponse instantiates a new intelligenceProfileIndicatorCollectionResponse and sets the default values. func NewIntelligenceProfileIndicatorCollectionResponse()(*IntelligenceProfileIndicatorCollectionResponse) { m := &IntelligenceProfileIndicatorCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/ip_address.go b/models/security/ip_address.go index 9d63e9ed9eb..c7fc8e65611 100644 --- a/models/security/ip_address.go +++ b/models/security/ip_address.go @@ -8,7 +8,7 @@ import ( type IpAddress struct { Host } -// NewIpAddress instantiates a new IpAddress and sets the default values. +// NewIpAddress instantiates a new ipAddress and sets the default values. func NewIpAddress()(*IpAddress) { m := &IpAddress{ Host: *NewHost(), diff --git a/models/security/ip_evidence.go b/models/security/ip_evidence.go index fa7dbed5a39..bfddd7f63f2 100644 --- a/models/security/ip_evidence.go +++ b/models/security/ip_evidence.go @@ -8,7 +8,7 @@ import ( type IpEvidence struct { AlertEvidence } -// NewIpEvidence instantiates a new IpEvidence and sets the default values. +// NewIpEvidence instantiates a new ipEvidence and sets the default values. func NewIpEvidence()(*IpEvidence) { m := &IpEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -53,6 +53,16 @@ func (m *IpEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } 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 } // GetIpAddress gets the ipAddress property value. The value of the IP Address, can be either in V4 address or V6 address format. @@ -66,6 +76,17 @@ func (m *IpEvidence) GetIpAddress()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *IpEvidence) 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 *IpEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.AlertEvidence.Serialize(writer) @@ -84,6 +105,12 @@ func (m *IpEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetCountryLetterCode sets the countryLetterCode property value. The two-letter country code according to ISO 3166 format, for example: US, UK, CA, etc..). @@ -100,12 +127,21 @@ func (m *IpEvidence) SetIpAddress(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IpEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // IpEvidenceable type IpEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCountryLetterCode()(*string) GetIpAddress()(*string) + GetOdataType()(*string) SetCountryLetterCode(value *string)() SetIpAddress(value *string)() + SetOdataType(value *string)() } diff --git a/models/security/justify_action.go b/models/security/justify_action.go index 94a1139e7fe..364e0628695 100644 --- a/models/security/justify_action.go +++ b/models/security/justify_action.go @@ -8,7 +8,7 @@ import ( type JustifyAction struct { InformationProtectionAction } -// NewJustifyAction instantiates a new JustifyAction and sets the default values. +// NewJustifyAction instantiates a new justifyAction and sets the default values. func NewJustifyAction()(*JustifyAction) { m := &JustifyAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,18 +24,54 @@ func CreateJustifyActionFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 // GetFieldDeserializers the deserialization information for the current model func (m *JustifyAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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 *JustifyAction) 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 *JustifyAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.InformationProtectionAction.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *JustifyAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // JustifyActionable type JustifyActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/security/key_value_pair.go b/models/security/key_value_pair.go index ef49fa2bd27..7ce0b07c1a1 100644 --- a/models/security/key_value_pair.go +++ b/models/security/key_value_pair.go @@ -10,7 +10,7 @@ type KeyValuePair struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewKeyValuePair instantiates a new KeyValuePair and sets the default values. +// NewKeyValuePair instantiates a new keyValuePair and sets the default values. func NewKeyValuePair()(*KeyValuePair) { m := &KeyValuePair{ } diff --git a/models/security/labeling_options.go b/models/security/labeling_options.go index 2943f8d8149..d0da52b8a47 100644 --- a/models/security/labeling_options.go +++ b/models/security/labeling_options.go @@ -10,7 +10,7 @@ type LabelingOptions struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewLabelingOptions instantiates a new LabelingOptions and sets the default values. +// NewLabelingOptions instantiates a new labelingOptions and sets the default values. func NewLabelingOptions()(*LabelingOptions) { m := &LabelingOptions{ } diff --git a/models/security/labels_root.go b/models/security/labels_root.go index 5dfcff0d414..a53596361a8 100644 --- a/models/security/labels_root.go +++ b/models/security/labels_root.go @@ -8,6 +8,8 @@ import ( // LabelsRoot type LabelsRoot struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewLabelsRoot instantiates a new labelsRoot and sets the default values. func NewLabelsRoot()(*LabelsRoot) { diff --git a/models/security/mail_cluster_evidence.go b/models/security/mail_cluster_evidence.go index ec8a0b1c69c..3cb86ac44ee 100644 --- a/models/security/mail_cluster_evidence.go +++ b/models/security/mail_cluster_evidence.go @@ -8,7 +8,7 @@ import ( type MailClusterEvidence struct { AlertEvidence } -// NewMailClusterEvidence instantiates a new MailClusterEvidence and sets the default values. +// NewMailClusterEvidence instantiates a new mailClusterEvidence and sets the default values. func NewMailClusterEvidence()(*MailClusterEvidence) { m := &MailClusterEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -101,6 +101,16 @@ func (m *MailClusterEvidence) GetFieldDeserializers()(map[string]func(i878a80d23 } 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["query"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -134,6 +144,17 @@ func (m *MailClusterEvidence) GetNetworkMessageIds()([]string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MailClusterEvidence) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetQuery gets the query property value. The query used to identify the email cluster. func (m *MailClusterEvidence) GetQuery()(*string) { val, err := m.GetBackingStore().Get("query") @@ -186,6 +207,12 @@ func (m *MailClusterEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("query", m.GetQuery()) if err != nil { @@ -228,6 +255,13 @@ func (m *MailClusterEvidence) SetNetworkMessageIds(value []string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MailClusterEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetQuery sets the query property value. The query used to identify the email cluster. func (m *MailClusterEvidence) SetQuery(value *string)() { err := m.GetBackingStore().Set("query", value) @@ -250,12 +284,14 @@ type MailClusterEvidenceable interface { GetClusterByValue()(*string) GetEmailCount()(*int64) GetNetworkMessageIds()([]string) + GetOdataType()(*string) GetQuery()(*string) GetUrn()(*string) SetClusterBy(value *string)() SetClusterByValue(value *string)() SetEmailCount(value *int64)() SetNetworkMessageIds(value []string)() + SetOdataType(value *string)() SetQuery(value *string)() SetUrn(value *string)() } diff --git a/models/security/mailbox_evidence.go b/models/security/mailbox_evidence.go index 8dfe02a426b..cefef875841 100644 --- a/models/security/mailbox_evidence.go +++ b/models/security/mailbox_evidence.go @@ -7,8 +7,10 @@ import ( // MailboxEvidence type MailboxEvidence struct { AlertEvidence + // The OdataType property + OdataType *string } -// NewMailboxEvidence instantiates a new MailboxEvidence and sets the default values. +// NewMailboxEvidence instantiates a new mailboxEvidence and sets the default values. func NewMailboxEvidence()(*MailboxEvidence) { m := &MailboxEvidence{ AlertEvidence: *NewAlertEvidence(), diff --git a/models/security/metadata_action.go b/models/security/metadata_action.go index 2776d6cf8b6..d6ec54b01be 100644 --- a/models/security/metadata_action.go +++ b/models/security/metadata_action.go @@ -8,7 +8,7 @@ import ( type MetadataAction struct { InformationProtectionAction } -// NewMetadataAction instantiates a new MetadataAction and sets the default values. +// NewMetadataAction instantiates a new metadataAction and sets the default values. func NewMetadataAction()(*MetadataAction) { m := &MetadataAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -56,6 +56,16 @@ func (m *MetadataAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } 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 } // GetMetadataToAdd gets the metadataToAdd property value. A collection of key-value pairs that should be added to the file. @@ -80,6 +90,17 @@ func (m *MetadataAction) GetMetadataToRemove()([]string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *MetadataAction) 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 *MetadataAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.InformationProtectionAction.Serialize(writer) @@ -104,6 +125,12 @@ func (m *MetadataAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetMetadataToAdd sets the metadataToAdd property value. A collection of key-value pairs that should be added to the file. @@ -120,12 +147,21 @@ func (m *MetadataAction) SetMetadataToRemove(value []string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MetadataAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // MetadataActionable type MetadataActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetMetadataToAdd()([]KeyValuePairable) GetMetadataToRemove()([]string) + GetOdataType()(*string) SetMetadataToAdd(value []KeyValuePairable)() SetMetadataToRemove(value []string)() + SetOdataType(value *string)() } diff --git a/models/security/oauth_application_evidence.go b/models/security/oauth_application_evidence.go index 0e609154c0f..5e41c37146e 100644 --- a/models/security/oauth_application_evidence.go +++ b/models/security/oauth_application_evidence.go @@ -8,7 +8,7 @@ import ( type OauthApplicationEvidence struct { AlertEvidence } -// NewOauthApplicationEvidence instantiates a new OauthApplicationEvidence and sets the default values. +// NewOauthApplicationEvidence instantiates a new oauthApplicationEvidence and sets the default values. func NewOauthApplicationEvidence()(*OauthApplicationEvidence) { m := &OauthApplicationEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -74,6 +74,16 @@ func (m *OauthApplicationEvidence) GetFieldDeserializers()(map[string]func(i878a } 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["publisher"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -97,6 +107,17 @@ func (m *OauthApplicationEvidence) GetObjectId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *OauthApplicationEvidence) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPublisher gets the publisher property value. The name of the application publisher. func (m *OauthApplicationEvidence) GetPublisher()(*string) { val, err := m.GetBackingStore().Get("publisher") @@ -132,6 +153,12 @@ func (m *OauthApplicationEvidence) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("publisher", m.GetPublisher()) if err != nil { @@ -161,6 +188,13 @@ func (m *OauthApplicationEvidence) SetObjectId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *OauthApplicationEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPublisher sets the publisher property value. The name of the application publisher. func (m *OauthApplicationEvidence) SetPublisher(value *string)() { err := m.GetBackingStore().Set("publisher", value) @@ -175,9 +209,11 @@ type OauthApplicationEvidenceable interface { GetAppId()(*string) GetDisplayName()(*string) GetObjectId()(*string) + GetOdataType()(*string) GetPublisher()(*string) SetAppId(value *string)() SetDisplayName(value *string)() SetObjectId(value *string)() + SetOdataType(value *string)() SetPublisher(value *string)() } diff --git a/models/security/passive_dns_record_collection_response.go b/models/security/passive_dns_record_collection_response.go index 1ea94bad9d8..66db1eea245 100644 --- a/models/security/passive_dns_record_collection_response.go +++ b/models/security/passive_dns_record_collection_response.go @@ -9,7 +9,7 @@ import ( type PassiveDnsRecordCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewPassiveDnsRecordCollectionResponse instantiates a new PassiveDnsRecordCollectionResponse and sets the default values. +// NewPassiveDnsRecordCollectionResponse instantiates a new passiveDnsRecordCollectionResponse and sets the default values. func NewPassiveDnsRecordCollectionResponse()(*PassiveDnsRecordCollectionResponse) { m := &PassiveDnsRecordCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/policy_base.go b/models/security/policy_base.go index 724e84cd186..6b9f730f4a5 100644 --- a/models/security/policy_base.go +++ b/models/security/policy_base.go @@ -9,6 +9,8 @@ import ( // PolicyBase type PolicyBase struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewPolicyBase instantiates a new policyBase and sets the default values. func NewPolicyBase()(*PolicyBase) { diff --git a/models/security/process_evidence.go b/models/security/process_evidence.go index 6964372387b..7ec67c5af5b 100644 --- a/models/security/process_evidence.go +++ b/models/security/process_evidence.go @@ -8,8 +8,10 @@ import ( // ProcessEvidence type ProcessEvidence struct { AlertEvidence + // The OdataType property + OdataType *string } -// NewProcessEvidence instantiates a new ProcessEvidence and sets the default values. +// NewProcessEvidence instantiates a new processEvidence and sets the default values. func NewProcessEvidence()(*ProcessEvidence) { m := &ProcessEvidence{ AlertEvidence: *NewAlertEvidence(), diff --git a/models/security/protect_adhoc_action.go b/models/security/protect_adhoc_action.go index 34578a67372..d30fe7b4e86 100644 --- a/models/security/protect_adhoc_action.go +++ b/models/security/protect_adhoc_action.go @@ -8,7 +8,7 @@ import ( type ProtectAdhocAction struct { InformationProtectionAction } -// NewProtectAdhocAction instantiates a new ProtectAdhocAction and sets the default values. +// NewProtectAdhocAction instantiates a new protectAdhocAction and sets the default values. func NewProtectAdhocAction()(*ProtectAdhocAction) { m := &ProtectAdhocAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,18 +24,54 @@ func CreateProtectAdhocActionFromDiscriminatorValue(parseNode i878a80d2330e89d26 // GetFieldDeserializers the deserialization information for the current model func (m *ProtectAdhocAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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 *ProtectAdhocAction) 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 *ProtectAdhocAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.InformationProtectionAction.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ProtectAdhocAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ProtectAdhocActionable type ProtectAdhocActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/security/protect_by_template_action.go b/models/security/protect_by_template_action.go index 3cb368c73a8..9a10e647d11 100644 --- a/models/security/protect_by_template_action.go +++ b/models/security/protect_by_template_action.go @@ -7,8 +7,10 @@ import ( // ProtectByTemplateAction type ProtectByTemplateAction struct { InformationProtectionAction + // The OdataType property + OdataType *string } -// NewProtectByTemplateAction instantiates a new ProtectByTemplateAction and sets the default values. +// NewProtectByTemplateAction instantiates a new protectByTemplateAction and sets the default values. func NewProtectByTemplateAction()(*ProtectByTemplateAction) { m := &ProtectByTemplateAction{ InformationProtectionAction: *NewInformationProtectionAction(), diff --git a/models/security/protect_do_not_forward_action.go b/models/security/protect_do_not_forward_action.go index bd845c81845..10964aa6205 100644 --- a/models/security/protect_do_not_forward_action.go +++ b/models/security/protect_do_not_forward_action.go @@ -8,7 +8,7 @@ import ( type ProtectDoNotForwardAction struct { InformationProtectionAction } -// NewProtectDoNotForwardAction instantiates a new ProtectDoNotForwardAction and sets the default values. +// NewProtectDoNotForwardAction instantiates a new protectDoNotForwardAction and sets the default values. func NewProtectDoNotForwardAction()(*ProtectDoNotForwardAction) { m := &ProtectDoNotForwardAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,18 +24,54 @@ func CreateProtectDoNotForwardActionFromDiscriminatorValue(parseNode i878a80d233 // GetFieldDeserializers the deserialization information for the current model func (m *ProtectDoNotForwardAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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 *ProtectDoNotForwardAction) 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 *ProtectDoNotForwardAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.InformationProtectionAction.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ProtectDoNotForwardAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ProtectDoNotForwardActionable type ProtectDoNotForwardActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/security/recommend_label_action.go b/models/security/recommend_label_action.go index b556b8ff382..a3229fa759c 100644 --- a/models/security/recommend_label_action.go +++ b/models/security/recommend_label_action.go @@ -8,7 +8,7 @@ import ( type RecommendLabelAction struct { InformationProtectionAction } -// NewRecommendLabelAction instantiates a new RecommendLabelAction and sets the default values. +// NewRecommendLabelAction instantiates a new recommendLabelAction and sets the default values. func NewRecommendLabelAction()(*RecommendLabelAction) { m := &RecommendLabelAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -72,6 +72,16 @@ func (m *RecommendLabelAction) GetFieldDeserializers()(map[string]func(i878a80d2 } 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["responsibleSensitiveTypeIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -100,6 +110,17 @@ func (m *RecommendLabelAction) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RecommendLabelAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetResponsibleSensitiveTypeIds gets the responsibleSensitiveTypeIds property value. The sensitive information type GUIDs that caused the recommendation to be given. func (m *RecommendLabelAction) GetResponsibleSensitiveTypeIds()([]string) { val, err := m.GetBackingStore().Get("responsibleSensitiveTypeIds") @@ -147,6 +168,12 @@ func (m *RecommendLabelAction) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetResponsibleSensitiveTypeIds() != nil { err = writer.WriteCollectionOfStringValues("responsibleSensitiveTypeIds", m.GetResponsibleSensitiveTypeIds()) if err != nil { @@ -175,6 +202,13 @@ func (m *RecommendLabelAction) SetActionSource(value *ActionSource)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RecommendLabelAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetResponsibleSensitiveTypeIds sets the responsibleSensitiveTypeIds property value. The sensitive information type GUIDs that caused the recommendation to be given. func (m *RecommendLabelAction) SetResponsibleSensitiveTypeIds(value []string)() { err := m.GetBackingStore().Set("responsibleSensitiveTypeIds", value) @@ -195,10 +229,12 @@ type RecommendLabelActionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetActions()([]InformationProtectionActionable) GetActionSource()(*ActionSource) + GetOdataType()(*string) GetResponsibleSensitiveTypeIds()([]string) GetSensitivityLabelId()(*string) SetActions(value []InformationProtectionActionable)() SetActionSource(value *ActionSource)() + SetOdataType(value *string)() SetResponsibleSensitiveTypeIds(value []string)() SetSensitivityLabelId(value *string)() } diff --git a/models/security/registry_key_evidence.go b/models/security/registry_key_evidence.go index f55b5676061..81ff7862f6c 100644 --- a/models/security/registry_key_evidence.go +++ b/models/security/registry_key_evidence.go @@ -8,7 +8,7 @@ import ( type RegistryKeyEvidence struct { AlertEvidence } -// NewRegistryKeyEvidence instantiates a new RegistryKeyEvidence and sets the default values. +// NewRegistryKeyEvidence instantiates a new registryKeyEvidence and sets the default values. func NewRegistryKeyEvidence()(*RegistryKeyEvidence) { m := &RegistryKeyEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -22,6 +22,16 @@ func CreateRegistryKeyEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d2 // GetFieldDeserializers the deserialization information for the current model func (m *RegistryKeyEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AlertEvidence.GetFieldDeserializers() + 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["registryHive"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -44,6 +54,17 @@ func (m *RegistryKeyEvidence) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RegistryKeyEvidence) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRegistryHive gets the registryHive property value. Registry hive of the key that the recorded action was applied to. func (m *RegistryKeyEvidence) GetRegistryHive()(*string) { val, err := m.GetBackingStore().Get("registryHive") @@ -72,6 +93,12 @@ func (m *RegistryKeyEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("registryHive", m.GetRegistryHive()) if err != nil { @@ -86,6 +113,13 @@ func (m *RegistryKeyEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RegistryKeyEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRegistryHive sets the registryHive property value. Registry hive of the key that the recorded action was applied to. func (m *RegistryKeyEvidence) SetRegistryHive(value *string)() { err := m.GetBackingStore().Set("registryHive", value) @@ -104,8 +138,10 @@ func (m *RegistryKeyEvidence) SetRegistryKey(value *string)() { type RegistryKeyEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetRegistryHive()(*string) GetRegistryKey()(*string) + SetOdataType(value *string)() SetRegistryHive(value *string)() SetRegistryKey(value *string)() } diff --git a/models/security/registry_value_evidence.go b/models/security/registry_value_evidence.go index 7ac9a294a1c..3a4cb12fc01 100644 --- a/models/security/registry_value_evidence.go +++ b/models/security/registry_value_evidence.go @@ -8,7 +8,7 @@ import ( type RegistryValueEvidence struct { AlertEvidence } -// NewRegistryValueEvidence instantiates a new RegistryValueEvidence and sets the default values. +// NewRegistryValueEvidence instantiates a new registryValueEvidence and sets the default values. func NewRegistryValueEvidence()(*RegistryValueEvidence) { m := &RegistryValueEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -32,6 +32,16 @@ func (m *RegistryValueEvidence) GetFieldDeserializers()(map[string]func(i878a80d } 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["registryHive"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -95,6 +105,17 @@ func (m *RegistryValueEvidence) GetMdeDeviceId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RegistryValueEvidence) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRegistryHive gets the registryHive property value. Registry hive of the key that the recorded action was applied to. func (m *RegistryValueEvidence) GetRegistryHive()(*string) { val, err := m.GetBackingStore().Get("registryHive") @@ -162,6 +183,12 @@ func (m *RegistryValueEvidence) Serialize(writer i878a80d2330e89d26896388a3f487e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("registryHive", m.GetRegistryHive()) if err != nil { @@ -201,6 +228,13 @@ func (m *RegistryValueEvidence) SetMdeDeviceId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RegistryValueEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRegistryHive sets the registryHive property value. Registry hive of the key that the recorded action was applied to. func (m *RegistryValueEvidence) SetRegistryHive(value *string)() { err := m.GetBackingStore().Set("registryHive", value) @@ -241,12 +275,14 @@ type RegistryValueEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetMdeDeviceId()(*string) + GetOdataType()(*string) GetRegistryHive()(*string) GetRegistryKey()(*string) GetRegistryValue()(*string) GetRegistryValueName()(*string) GetRegistryValueType()(*string) SetMdeDeviceId(value *string)() + SetOdataType(value *string)() SetRegistryHive(value *string)() SetRegistryKey(value *string)() SetRegistryValue(value *string)() diff --git a/models/security/remove_content_footer_action.go b/models/security/remove_content_footer_action.go index 48ac35837c4..24d257fad08 100644 --- a/models/security/remove_content_footer_action.go +++ b/models/security/remove_content_footer_action.go @@ -8,7 +8,7 @@ import ( type RemoveContentFooterAction struct { InformationProtectionAction } -// NewRemoveContentFooterAction instantiates a new RemoveContentFooterAction and sets the default values. +// NewRemoveContentFooterAction instantiates a new removeContentFooterAction and sets the default values. func NewRemoveContentFooterAction()(*RemoveContentFooterAction) { m := &RemoveContentFooterAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,6 +24,16 @@ func CreateRemoveContentFooterActionFromDiscriminatorValue(parseNode i878a80d233 // GetFieldDeserializers the deserialization information for the current model func (m *RemoveContentFooterAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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["uiElementNames"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -42,6 +52,17 @@ func (m *RemoveContentFooterAction) GetFieldDeserializers()(map[string]func(i878 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RemoveContentFooterAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUiElementNames gets the uiElementNames property value. The name of the UI element of the footer to be removed. func (m *RemoveContentFooterAction) GetUiElementNames()([]string) { val, err := m.GetBackingStore().Get("uiElementNames") @@ -59,6 +80,12 @@ func (m *RemoveContentFooterAction) Serialize(writer i878a80d2330e89d26896388a3f if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetUiElementNames() != nil { err = writer.WriteCollectionOfStringValues("uiElementNames", m.GetUiElementNames()) if err != nil { @@ -67,6 +94,13 @@ func (m *RemoveContentFooterAction) Serialize(writer i878a80d2330e89d26896388a3f } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RemoveContentFooterAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUiElementNames sets the uiElementNames property value. The name of the UI element of the footer to be removed. func (m *RemoveContentFooterAction) SetUiElementNames(value []string)() { err := m.GetBackingStore().Set("uiElementNames", value) @@ -78,6 +112,8 @@ func (m *RemoveContentFooterAction) SetUiElementNames(value []string)() { type RemoveContentFooterActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUiElementNames()([]string) + SetOdataType(value *string)() SetUiElementNames(value []string)() } diff --git a/models/security/remove_content_header_action.go b/models/security/remove_content_header_action.go index 8fb41e86eb0..58c8dc4c749 100644 --- a/models/security/remove_content_header_action.go +++ b/models/security/remove_content_header_action.go @@ -8,7 +8,7 @@ import ( type RemoveContentHeaderAction struct { InformationProtectionAction } -// NewRemoveContentHeaderAction instantiates a new RemoveContentHeaderAction and sets the default values. +// NewRemoveContentHeaderAction instantiates a new removeContentHeaderAction and sets the default values. func NewRemoveContentHeaderAction()(*RemoveContentHeaderAction) { m := &RemoveContentHeaderAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,6 +24,16 @@ func CreateRemoveContentHeaderActionFromDiscriminatorValue(parseNode i878a80d233 // GetFieldDeserializers the deserialization information for the current model func (m *RemoveContentHeaderAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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["uiElementNames"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -42,6 +52,17 @@ func (m *RemoveContentHeaderAction) GetFieldDeserializers()(map[string]func(i878 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RemoveContentHeaderAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUiElementNames gets the uiElementNames property value. The name of the UI element of the header to be removed. func (m *RemoveContentHeaderAction) GetUiElementNames()([]string) { val, err := m.GetBackingStore().Get("uiElementNames") @@ -59,6 +80,12 @@ func (m *RemoveContentHeaderAction) Serialize(writer i878a80d2330e89d26896388a3f if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetUiElementNames() != nil { err = writer.WriteCollectionOfStringValues("uiElementNames", m.GetUiElementNames()) if err != nil { @@ -67,6 +94,13 @@ func (m *RemoveContentHeaderAction) Serialize(writer i878a80d2330e89d26896388a3f } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RemoveContentHeaderAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUiElementNames sets the uiElementNames property value. The name of the UI element of the header to be removed. func (m *RemoveContentHeaderAction) SetUiElementNames(value []string)() { err := m.GetBackingStore().Set("uiElementNames", value) @@ -78,6 +112,8 @@ func (m *RemoveContentHeaderAction) SetUiElementNames(value []string)() { type RemoveContentHeaderActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUiElementNames()([]string) + SetOdataType(value *string)() SetUiElementNames(value []string)() } diff --git a/models/security/remove_protection_action.go b/models/security/remove_protection_action.go index 5921fe7220e..c4db6da4aa9 100644 --- a/models/security/remove_protection_action.go +++ b/models/security/remove_protection_action.go @@ -8,7 +8,7 @@ import ( type RemoveProtectionAction struct { InformationProtectionAction } -// NewRemoveProtectionAction instantiates a new RemoveProtectionAction and sets the default values. +// NewRemoveProtectionAction instantiates a new removeProtectionAction and sets the default values. func NewRemoveProtectionAction()(*RemoveProtectionAction) { m := &RemoveProtectionAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,18 +24,54 @@ func CreateRemoveProtectionActionFromDiscriminatorValue(parseNode i878a80d2330e8 // GetFieldDeserializers the deserialization information for the current model func (m *RemoveProtectionAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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 *RemoveProtectionAction) 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 *RemoveProtectionAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.InformationProtectionAction.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RemoveProtectionAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // RemoveProtectionActionable type RemoveProtectionActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/security/remove_watermark_action.go b/models/security/remove_watermark_action.go index c312708c853..3629cc7d50c 100644 --- a/models/security/remove_watermark_action.go +++ b/models/security/remove_watermark_action.go @@ -8,7 +8,7 @@ import ( type RemoveWatermarkAction struct { InformationProtectionAction } -// NewRemoveWatermarkAction instantiates a new RemoveWatermarkAction and sets the default values. +// NewRemoveWatermarkAction instantiates a new removeWatermarkAction and sets the default values. func NewRemoveWatermarkAction()(*RemoveWatermarkAction) { m := &RemoveWatermarkAction{ InformationProtectionAction: *NewInformationProtectionAction(), @@ -24,6 +24,16 @@ func CreateRemoveWatermarkActionFromDiscriminatorValue(parseNode i878a80d2330e89 // GetFieldDeserializers the deserialization information for the current model func (m *RemoveWatermarkAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.InformationProtectionAction.GetFieldDeserializers() + 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["uiElementNames"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -42,6 +52,17 @@ func (m *RemoveWatermarkAction) GetFieldDeserializers()(map[string]func(i878a80d } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RemoveWatermarkAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUiElementNames gets the uiElementNames property value. The name of the UI element of watermark to be removed. func (m *RemoveWatermarkAction) GetUiElementNames()([]string) { val, err := m.GetBackingStore().Get("uiElementNames") @@ -59,6 +80,12 @@ func (m *RemoveWatermarkAction) Serialize(writer i878a80d2330e89d26896388a3f487e if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetUiElementNames() != nil { err = writer.WriteCollectionOfStringValues("uiElementNames", m.GetUiElementNames()) if err != nil { @@ -67,6 +94,13 @@ func (m *RemoveWatermarkAction) Serialize(writer i878a80d2330e89d26896388a3f487e } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RemoveWatermarkAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUiElementNames sets the uiElementNames property value. The name of the UI element of watermark to be removed. func (m *RemoveWatermarkAction) SetUiElementNames(value []string)() { err := m.GetBackingStore().Set("uiElementNames", value) @@ -78,6 +112,8 @@ func (m *RemoveWatermarkAction) SetUiElementNames(value []string)() { type RemoveWatermarkActionable interface { InformationProtectionActionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUiElementNames()([]string) + SetOdataType(value *string)() SetUiElementNames(value []string)() } diff --git a/models/security/retention_duration_forever.go b/models/security/retention_duration_forever.go index 40127691849..af24e89eb2d 100644 --- a/models/security/retention_duration_forever.go +++ b/models/security/retention_duration_forever.go @@ -7,8 +7,10 @@ import ( // RetentionDurationForever type RetentionDurationForever struct { RetentionDuration + // The OdataType property + OdataType *string } -// NewRetentionDurationForever instantiates a new RetentionDurationForever and sets the default values. +// NewRetentionDurationForever instantiates a new retentionDurationForever and sets the default values. func NewRetentionDurationForever()(*RetentionDurationForever) { m := &RetentionDurationForever{ RetentionDuration: *NewRetentionDuration(), diff --git a/models/security/retention_duration_in_days.go b/models/security/retention_duration_in_days.go index b6e6293f017..cef8f7015ee 100644 --- a/models/security/retention_duration_in_days.go +++ b/models/security/retention_duration_in_days.go @@ -7,8 +7,10 @@ import ( // RetentionDurationInDays type RetentionDurationInDays struct { RetentionDuration + // The OdataType property + OdataType *string } -// NewRetentionDurationInDays instantiates a new RetentionDurationInDays and sets the default values. +// NewRetentionDurationInDays instantiates a new retentionDurationInDays and sets the default values. func NewRetentionDurationInDays()(*RetentionDurationInDays) { m := &RetentionDurationInDays{ RetentionDuration: *NewRetentionDuration(), diff --git a/models/security/retention_event.go b/models/security/retention_event.go index eba02c81e96..bb4af75c217 100644 --- a/models/security/retention_event.go +++ b/models/security/retention_event.go @@ -9,6 +9,8 @@ import ( // RetentionEvent type RetentionEvent struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewRetentionEvent instantiates a new retentionEvent and sets the default values. func NewRetentionEvent()(*RetentionEvent) { diff --git a/models/security/retention_event_collection_response.go b/models/security/retention_event_collection_response.go index 1eca36d4902..8a0b39afe7d 100644 --- a/models/security/retention_event_collection_response.go +++ b/models/security/retention_event_collection_response.go @@ -9,7 +9,7 @@ import ( type RetentionEventCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewRetentionEventCollectionResponse instantiates a new RetentionEventCollectionResponse and sets the default values. +// NewRetentionEventCollectionResponse instantiates a new retentionEventCollectionResponse and sets the default values. func NewRetentionEventCollectionResponse()(*RetentionEventCollectionResponse) { m := &RetentionEventCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/retention_event_type.go b/models/security/retention_event_type.go index 8a5f7e0a858..83fdd56c776 100644 --- a/models/security/retention_event_type.go +++ b/models/security/retention_event_type.go @@ -9,6 +9,8 @@ import ( // RetentionEventType type RetentionEventType struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewRetentionEventType instantiates a new retentionEventType and sets the default values. func NewRetentionEventType()(*RetentionEventType) { diff --git a/models/security/retention_event_type_collection_response.go b/models/security/retention_event_type_collection_response.go index 9900f25eeba..8db8c9f8a56 100644 --- a/models/security/retention_event_type_collection_response.go +++ b/models/security/retention_event_type_collection_response.go @@ -9,7 +9,7 @@ import ( type RetentionEventTypeCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewRetentionEventTypeCollectionResponse instantiates a new RetentionEventTypeCollectionResponse and sets the default values. +// NewRetentionEventTypeCollectionResponse instantiates a new retentionEventTypeCollectionResponse and sets the default values. func NewRetentionEventTypeCollectionResponse()(*RetentionEventTypeCollectionResponse) { m := &RetentionEventTypeCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/retention_label.go b/models/security/retention_label.go index c8f64104374..1c3af720dde 100644 --- a/models/security/retention_label.go +++ b/models/security/retention_label.go @@ -9,6 +9,8 @@ import ( // RetentionLabel type RetentionLabel struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewRetentionLabel instantiates a new retentionLabel and sets the default values. func NewRetentionLabel()(*RetentionLabel) { diff --git a/models/security/retention_label_collection_response.go b/models/security/retention_label_collection_response.go index 901c0393534..e01ddcccdfe 100644 --- a/models/security/retention_label_collection_response.go +++ b/models/security/retention_label_collection_response.go @@ -9,7 +9,7 @@ import ( type RetentionLabelCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewRetentionLabelCollectionResponse instantiates a new RetentionLabelCollectionResponse and sets the default values. +// NewRetentionLabelCollectionResponse instantiates a new retentionLabelCollectionResponse and sets the default values. func NewRetentionLabelCollectionResponse()(*RetentionLabelCollectionResponse) { m := &RetentionLabelCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/search.go b/models/security/search.go index 418260b54f2..97becd33eb2 100644 --- a/models/security/search.go +++ b/models/security/search.go @@ -9,6 +9,8 @@ import ( // Search type Search struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSearch instantiates a new search and sets the default values. func NewSearch()(*Search) { diff --git a/models/security/security.go b/models/security/security.go index 36a104ebc20..cb8fbdf1425 100644 --- a/models/security/security.go +++ b/models/security/security.go @@ -8,6 +8,8 @@ import ( // Security type Security struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSecurity instantiates a new security and sets the default values. func NewSecurity()(*Security) { diff --git a/models/security/security_group_evidence.go b/models/security/security_group_evidence.go index 9ba88ab2a2f..fe88f46f161 100644 --- a/models/security/security_group_evidence.go +++ b/models/security/security_group_evidence.go @@ -8,7 +8,7 @@ import ( type SecurityGroupEvidence struct { AlertEvidence } -// NewSecurityGroupEvidence instantiates a new SecurityGroupEvidence and sets the default values. +// NewSecurityGroupEvidence instantiates a new securityGroupEvidence and sets the default values. func NewSecurityGroupEvidence()(*SecurityGroupEvidence) { m := &SecurityGroupEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -43,6 +43,16 @@ func (m *SecurityGroupEvidence) GetFieldDeserializers()(map[string]func(i878a80d } 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["securityGroupId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -55,6 +65,17 @@ func (m *SecurityGroupEvidence) GetFieldDeserializers()(map[string]func(i878a80d } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *SecurityGroupEvidence) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSecurityGroupId gets the securityGroupId property value. Unique identifier of the security group. func (m *SecurityGroupEvidence) GetSecurityGroupId()(*string) { val, err := m.GetBackingStore().Get("securityGroupId") @@ -78,6 +99,12 @@ func (m *SecurityGroupEvidence) Serialize(writer i878a80d2330e89d26896388a3f487e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("securityGroupId", m.GetSecurityGroupId()) if err != nil { @@ -93,6 +120,13 @@ func (m *SecurityGroupEvidence) SetDisplayName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *SecurityGroupEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSecurityGroupId sets the securityGroupId property value. Unique identifier of the security group. func (m *SecurityGroupEvidence) SetSecurityGroupId(value *string)() { err := m.GetBackingStore().Set("securityGroupId", value) @@ -105,7 +139,9 @@ type SecurityGroupEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDisplayName()(*string) + GetOdataType()(*string) GetSecurityGroupId()(*string) SetDisplayName(value *string)() + SetOdataType(value *string)() SetSecurityGroupId(value *string)() } diff --git a/models/security/sensitivity_label.go b/models/security/sensitivity_label.go index 5910f8d21a1..9df38a0348a 100644 --- a/models/security/sensitivity_label.go +++ b/models/security/sensitivity_label.go @@ -8,6 +8,8 @@ import ( // SensitivityLabel type SensitivityLabel struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSensitivityLabel instantiates a new sensitivityLabel and sets the default values. func NewSensitivityLabel()(*SensitivityLabel) { diff --git a/models/security/sensitivity_label_collection_response.go b/models/security/sensitivity_label_collection_response.go index f23ee590e36..d48a77d04ea 100644 --- a/models/security/sensitivity_label_collection_response.go +++ b/models/security/sensitivity_label_collection_response.go @@ -9,7 +9,7 @@ import ( type SensitivityLabelCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewSensitivityLabelCollectionResponse instantiates a new SensitivityLabelCollectionResponse and sets the default values. +// NewSensitivityLabelCollectionResponse instantiates a new sensitivityLabelCollectionResponse and sets the default values. func NewSensitivityLabelCollectionResponse()(*SensitivityLabelCollectionResponse) { m := &SensitivityLabelCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/single_property_schema.go b/models/security/single_property_schema.go index 921ba69d270..8d9a4384f8d 100644 --- a/models/security/single_property_schema.go +++ b/models/security/single_property_schema.go @@ -10,7 +10,7 @@ type SinglePropertySchema struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSinglePropertySchema instantiates a new SinglePropertySchema and sets the default values. +// NewSinglePropertySchema instantiates a new singlePropertySchema and sets the default values. func NewSinglePropertySchema()(*SinglePropertySchema) { m := &SinglePropertySchema{ } diff --git a/models/security/site_source.go b/models/security/site_source.go index 6d3e57e008f..fd19915add3 100644 --- a/models/security/site_source.go +++ b/models/security/site_source.go @@ -9,7 +9,7 @@ import ( type SiteSource struct { DataSource } -// NewSiteSource instantiates a new SiteSource and sets the default values. +// NewSiteSource instantiates a new siteSource and sets the default values. func NewSiteSource()(*SiteSource) { m := &SiteSource{ DataSource: *NewDataSource(), diff --git a/models/security/site_source_collection_response.go b/models/security/site_source_collection_response.go index 13dbc7d7630..21f99dc5148 100644 --- a/models/security/site_source_collection_response.go +++ b/models/security/site_source_collection_response.go @@ -9,7 +9,7 @@ import ( type SiteSourceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewSiteSourceCollectionResponse instantiates a new SiteSourceCollectionResponse and sets the default values. +// NewSiteSourceCollectionResponse instantiates a new siteSourceCollectionResponse and sets the default values. func NewSiteSourceCollectionResponse()(*SiteSourceCollectionResponse) { m := &SiteSourceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/sub_category.go b/models/security/sub_category.go index 88f1c1673cb..4dfc80bddf6 100644 --- a/models/security/sub_category.go +++ b/models/security/sub_category.go @@ -7,6 +7,8 @@ import ( // SubCategory type SubCategory struct { FilePlanDescriptorBase + // The OdataType property + OdataType *string } // NewSubCategory instantiates a new subCategory and sets the default values. func NewSubCategory()(*SubCategory) { diff --git a/models/security/sub_category_template_collection_response.go b/models/security/sub_category_template_collection_response.go index 49f824312a8..2bceaa452c6 100644 --- a/models/security/sub_category_template_collection_response.go +++ b/models/security/sub_category_template_collection_response.go @@ -9,7 +9,7 @@ import ( type SubCategoryTemplateCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewSubCategoryTemplateCollectionResponse instantiates a new SubCategoryTemplateCollectionResponse and sets the default values. +// NewSubCategoryTemplateCollectionResponse instantiates a new subCategoryTemplateCollectionResponse and sets the default values. func NewSubCategoryTemplateCollectionResponse()(*SubCategoryTemplateCollectionResponse) { m := &SubCategoryTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/subdomain.go b/models/security/subdomain.go index 9bedaea2d3a..9be1ebf264f 100644 --- a/models/security/subdomain.go +++ b/models/security/subdomain.go @@ -9,6 +9,8 @@ import ( // Subdomain type Subdomain struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSubdomain instantiates a new subdomain and sets the default values. func NewSubdomain()(*Subdomain) { diff --git a/models/security/subdomain_collection_response.go b/models/security/subdomain_collection_response.go index 78b71929972..2917352e8d9 100644 --- a/models/security/subdomain_collection_response.go +++ b/models/security/subdomain_collection_response.go @@ -9,7 +9,7 @@ import ( type SubdomainCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewSubdomainCollectionResponse instantiates a new SubdomainCollectionResponse and sets the default values. +// NewSubdomainCollectionResponse instantiates a new subdomainCollectionResponse and sets the default values. func NewSubdomainCollectionResponse()(*SubdomainCollectionResponse) { m := &SubdomainCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/submission_user_identity.go b/models/security/submission_user_identity.go index 4bb6d2af992..dfef3b1fbd1 100644 --- a/models/security/submission_user_identity.go +++ b/models/security/submission_user_identity.go @@ -8,8 +8,10 @@ import ( // SubmissionUserIdentity type SubmissionUserIdentity struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Identity + // The OdataType property + OdataType *string } -// NewSubmissionUserIdentity instantiates a new SubmissionUserIdentity and sets the default values. +// NewSubmissionUserIdentity instantiates a new submissionUserIdentity and sets the default values. func NewSubmissionUserIdentity()(*SubmissionUserIdentity) { m := &SubmissionUserIdentity{ Identity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewIdentity(), diff --git a/models/security/tag.go b/models/security/tag.go index 3fa26afd756..27297fcafbd 100644 --- a/models/security/tag.go +++ b/models/security/tag.go @@ -9,6 +9,8 @@ import ( // Tag type Tag struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewTag instantiates a new tag and sets the default values. func NewTag()(*Tag) { diff --git a/models/security/threat_intelligence.go b/models/security/threat_intelligence.go index e2c0e531b4e..88060f99ff0 100644 --- a/models/security/threat_intelligence.go +++ b/models/security/threat_intelligence.go @@ -8,6 +8,8 @@ import ( // ThreatIntelligence type ThreatIntelligence struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewThreatIntelligence instantiates a new threatIntelligence and sets the default values. func NewThreatIntelligence()(*ThreatIntelligence) { diff --git a/models/security/threat_submission.go b/models/security/threat_submission.go index fe8169cc61a..9fae236ffc7 100644 --- a/models/security/threat_submission.go +++ b/models/security/threat_submission.go @@ -9,6 +9,8 @@ import ( // ThreatSubmission type ThreatSubmission struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewThreatSubmission instantiates a new threatSubmission and sets the default values. func NewThreatSubmission()(*ThreatSubmission) { diff --git a/models/security/threat_submission_root.go b/models/security/threat_submission_root.go index dd05b4b49eb..8b09ec2fef4 100644 --- a/models/security/threat_submission_root.go +++ b/models/security/threat_submission_root.go @@ -8,6 +8,8 @@ import ( // ThreatSubmissionRoot type ThreatSubmissionRoot struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewThreatSubmissionRoot instantiates a new threatSubmissionRoot and sets the default values. func NewThreatSubmissionRoot()(*ThreatSubmissionRoot) { diff --git a/models/security/trigger_types_root.go b/models/security/trigger_types_root.go index 63ec2ec8330..7323691efa9 100644 --- a/models/security/trigger_types_root.go +++ b/models/security/trigger_types_root.go @@ -8,6 +8,8 @@ import ( // TriggerTypesRoot type TriggerTypesRoot struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewTriggerTypesRoot instantiates a new triggerTypesRoot and sets the default values. func NewTriggerTypesRoot()(*TriggerTypesRoot) { diff --git a/models/security/triggers_root.go b/models/security/triggers_root.go index d05c444b0c7..7c58ce96ea1 100644 --- a/models/security/triggers_root.go +++ b/models/security/triggers_root.go @@ -8,6 +8,8 @@ import ( // TriggersRoot type TriggersRoot struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewTriggersRoot instantiates a new triggersRoot and sets the default values. func NewTriggersRoot()(*TriggersRoot) { diff --git a/models/security/unclassified_artifact.go b/models/security/unclassified_artifact.go index e2a60fa9f9b..9d640defa48 100644 --- a/models/security/unclassified_artifact.go +++ b/models/security/unclassified_artifact.go @@ -8,7 +8,7 @@ import ( type UnclassifiedArtifact struct { Artifact } -// NewUnclassifiedArtifact instantiates a new UnclassifiedArtifact and sets the default values. +// NewUnclassifiedArtifact instantiates a new unclassifiedArtifact and sets the default values. func NewUnclassifiedArtifact()(*UnclassifiedArtifact) { m := &UnclassifiedArtifact{ Artifact: *NewArtifact(), diff --git a/models/security/unified_group_source.go b/models/security/unified_group_source.go index 1180738eb7e..4c37309c41b 100644 --- a/models/security/unified_group_source.go +++ b/models/security/unified_group_source.go @@ -9,7 +9,7 @@ import ( type UnifiedGroupSource struct { DataSource } -// NewUnifiedGroupSource instantiates a new UnifiedGroupSource and sets the default values. +// NewUnifiedGroupSource instantiates a new unifiedGroupSource and sets the default values. func NewUnifiedGroupSource()(*UnifiedGroupSource) { m := &UnifiedGroupSource{ DataSource: *NewDataSource(), diff --git a/models/security/unified_group_source_collection_response.go b/models/security/unified_group_source_collection_response.go index 791936642e3..5f629f325eb 100644 --- a/models/security/unified_group_source_collection_response.go +++ b/models/security/unified_group_source_collection_response.go @@ -9,7 +9,7 @@ import ( type UnifiedGroupSourceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewUnifiedGroupSourceCollectionResponse instantiates a new UnifiedGroupSourceCollectionResponse and sets the default values. +// NewUnifiedGroupSourceCollectionResponse instantiates a new unifiedGroupSourceCollectionResponse and sets the default values. func NewUnifiedGroupSourceCollectionResponse()(*UnifiedGroupSourceCollectionResponse) { m := &UnifiedGroupSourceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/url_evidence.go b/models/security/url_evidence.go index cc7e7f7051a..5b7bc5fa080 100644 --- a/models/security/url_evidence.go +++ b/models/security/url_evidence.go @@ -8,7 +8,7 @@ import ( type UrlEvidence struct { AlertEvidence } -// NewUrlEvidence instantiates a new UrlEvidence and sets the default values. +// NewUrlEvidence instantiates a new urlEvidence and sets the default values. func NewUrlEvidence()(*UrlEvidence) { m := &UrlEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -22,6 +22,16 @@ func CreateUrlEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a // GetFieldDeserializers the deserialization information for the current model func (m *UrlEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AlertEvidence.GetFieldDeserializers() + 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["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -34,6 +44,17 @@ func (m *UrlEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *UrlEvidence) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUrl gets the url property value. The Unique Resource Locator (URL). func (m *UrlEvidence) GetUrl()(*string) { val, err := m.GetBackingStore().Get("url") @@ -51,6 +72,12 @@ func (m *UrlEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("url", m.GetUrl()) if err != nil { @@ -59,6 +86,13 @@ func (m *UrlEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *UrlEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUrl sets the url property value. The Unique Resource Locator (URL). func (m *UrlEvidence) SetUrl(value *string)() { err := m.GetBackingStore().Set("url", value) @@ -70,6 +104,8 @@ func (m *UrlEvidence) SetUrl(value *string)() { type UrlEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUrl()(*string) + SetOdataType(value *string)() SetUrl(value *string)() } diff --git a/models/security/url_threat_submission.go b/models/security/url_threat_submission.go index 7c163bf6ed5..9499ca056ce 100644 --- a/models/security/url_threat_submission.go +++ b/models/security/url_threat_submission.go @@ -8,7 +8,7 @@ import ( type UrlThreatSubmission struct { ThreatSubmission } -// NewUrlThreatSubmission instantiates a new UrlThreatSubmission and sets the default values. +// NewUrlThreatSubmission instantiates a new urlThreatSubmission and sets the default values. func NewUrlThreatSubmission()(*UrlThreatSubmission) { m := &UrlThreatSubmission{ ThreatSubmission: *NewThreatSubmission(), diff --git a/models/security/url_threat_submission_collection_response.go b/models/security/url_threat_submission_collection_response.go index 4a6260907b1..4e841e34512 100644 --- a/models/security/url_threat_submission_collection_response.go +++ b/models/security/url_threat_submission_collection_response.go @@ -9,7 +9,7 @@ import ( type UrlThreatSubmissionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewUrlThreatSubmissionCollectionResponse instantiates a new UrlThreatSubmissionCollectionResponse and sets the default values. +// NewUrlThreatSubmissionCollectionResponse instantiates a new urlThreatSubmissionCollectionResponse and sets the default values. func NewUrlThreatSubmissionCollectionResponse()(*UrlThreatSubmissionCollectionResponse) { m := &UrlThreatSubmissionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/user_evidence.go b/models/security/user_evidence.go index cb8a91174e4..f2b9ba87a79 100644 --- a/models/security/user_evidence.go +++ b/models/security/user_evidence.go @@ -8,7 +8,7 @@ import ( type UserEvidence struct { AlertEvidence } -// NewUserEvidence instantiates a new UserEvidence and sets the default values. +// NewUserEvidence instantiates a new userEvidence and sets the default values. func NewUserEvidence()(*UserEvidence) { m := &UserEvidence{ AlertEvidence: *NewAlertEvidence(), @@ -22,6 +22,16 @@ func CreateUserEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 // GetFieldDeserializers the deserialization information for the current model func (m *UserEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.AlertEvidence.GetFieldDeserializers() + 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["userAccount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateUserAccountFromDiscriminatorValue) if err != nil { @@ -34,6 +44,17 @@ func (m *UserEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *UserEvidence) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUserAccount gets the userAccount property value. The user account details. func (m *UserEvidence) GetUserAccount()(UserAccountable) { val, err := m.GetBackingStore().Get("userAccount") @@ -51,6 +72,12 @@ func (m *UserEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("userAccount", m.GetUserAccount()) if err != nil { @@ -59,6 +86,13 @@ func (m *UserEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *UserEvidence) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUserAccount sets the userAccount property value. The user account details. func (m *UserEvidence) SetUserAccount(value UserAccountable)() { err := m.GetBackingStore().Set("userAccount", value) @@ -70,6 +104,8 @@ func (m *UserEvidence) SetUserAccount(value UserAccountable)() { type UserEvidenceable interface { AlertEvidenceable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUserAccount()(UserAccountable) + SetOdataType(value *string)() SetUserAccount(value UserAccountable)() } diff --git a/models/security/user_source.go b/models/security/user_source.go index f749531819c..4446029a6e9 100644 --- a/models/security/user_source.go +++ b/models/security/user_source.go @@ -8,7 +8,7 @@ import ( type UserSource struct { DataSource } -// NewUserSource instantiates a new UserSource and sets the default values. +// NewUserSource instantiates a new userSource and sets the default values. func NewUserSource()(*UserSource) { m := &UserSource{ DataSource: *NewDataSource(), diff --git a/models/security/user_source_collection_response.go b/models/security/user_source_collection_response.go index 8e76e879df3..9753fe03eb9 100644 --- a/models/security/user_source_collection_response.go +++ b/models/security/user_source_collection_response.go @@ -9,7 +9,7 @@ import ( type UserSourceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewUserSourceCollectionResponse instantiates a new UserSourceCollectionResponse and sets the default values. +// NewUserSourceCollectionResponse instantiates a new userSourceCollectionResponse and sets the default values. func NewUserSourceCollectionResponse()(*UserSourceCollectionResponse) { m := &UserSourceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/vulnerability.go b/models/security/vulnerability.go index c3feee070de..54e0d60eb01 100644 --- a/models/security/vulnerability.go +++ b/models/security/vulnerability.go @@ -9,6 +9,8 @@ import ( // Vulnerability type Vulnerability struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewVulnerability instantiates a new vulnerability and sets the default values. func NewVulnerability()(*Vulnerability) { diff --git a/models/security/vulnerability_collection_response.go b/models/security/vulnerability_collection_response.go index 8e4987bdc6b..2bbf11b5d80 100644 --- a/models/security/vulnerability_collection_response.go +++ b/models/security/vulnerability_collection_response.go @@ -9,7 +9,7 @@ import ( type VulnerabilityCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewVulnerabilityCollectionResponse instantiates a new VulnerabilityCollectionResponse and sets the default values. +// NewVulnerabilityCollectionResponse instantiates a new vulnerabilityCollectionResponse and sets the default values. func NewVulnerabilityCollectionResponse()(*VulnerabilityCollectionResponse) { m := &VulnerabilityCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security/vulnerability_component.go b/models/security/vulnerability_component.go index 125a53a08fe..68591bb3cff 100644 --- a/models/security/vulnerability_component.go +++ b/models/security/vulnerability_component.go @@ -8,6 +8,8 @@ import ( // VulnerabilityComponent type VulnerabilityComponent struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewVulnerabilityComponent instantiates a new vulnerabilityComponent and sets the default values. func NewVulnerabilityComponent()(*VulnerabilityComponent) { diff --git a/models/security/vulnerability_component_collection_response.go b/models/security/vulnerability_component_collection_response.go index ee3cb36d4ac..21e81d52f66 100644 --- a/models/security/vulnerability_component_collection_response.go +++ b/models/security/vulnerability_component_collection_response.go @@ -9,7 +9,7 @@ import ( type VulnerabilityComponentCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewVulnerabilityComponentCollectionResponse instantiates a new VulnerabilityComponentCollectionResponse and sets the default values. +// NewVulnerabilityComponentCollectionResponse instantiates a new vulnerabilityComponentCollectionResponse and sets the default values. func NewVulnerabilityComponentCollectionResponse()(*VulnerabilityComponentCollectionResponse) { m := &VulnerabilityComponentCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/security_action.go b/models/security_action.go index 1884d442c19..dc2268e01d9 100644 --- a/models/security_action.go +++ b/models/security_action.go @@ -8,8 +8,10 @@ import ( // SecurityAction type SecurityAction struct { Entity + // The OdataType property + OdataType *string } -// NewSecurityAction instantiates a new SecurityAction and sets the default values. +// NewSecurityAction instantiates a new securityAction and sets the default values. func NewSecurityAction()(*SecurityAction) { m := &SecurityAction{ Entity: *NewEntity(), diff --git a/models/security_action_collection_response.go b/models/security_action_collection_response.go index 6783a5da3d3..0d2b9bf4722 100644 --- a/models/security_action_collection_response.go +++ b/models/security_action_collection_response.go @@ -8,7 +8,7 @@ import ( type SecurityActionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSecurityActionCollectionResponse instantiates a new SecurityActionCollectionResponse and sets the default values. +// NewSecurityActionCollectionResponse instantiates a new securityActionCollectionResponse and sets the default values. func NewSecurityActionCollectionResponse()(*SecurityActionCollectionResponse) { m := &SecurityActionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/security_baseline_category_state_summary.go b/models/security_baseline_category_state_summary.go index dc28eb7186e..51e706f970f 100644 --- a/models/security_baseline_category_state_summary.go +++ b/models/security_baseline_category_state_summary.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// SecurityBaselineCategoryStateSummary +// SecurityBaselineCategoryStateSummary the security baseline per category compliance state summary for the security baseline of the account. type SecurityBaselineCategoryStateSummary struct { SecurityBaselineStateSummary } -// NewSecurityBaselineCategoryStateSummary instantiates a new SecurityBaselineCategoryStateSummary and sets the default values. +// NewSecurityBaselineCategoryStateSummary instantiates a new securityBaselineCategoryStateSummary and sets the default values. func NewSecurityBaselineCategoryStateSummary()(*SecurityBaselineCategoryStateSummary) { m := &SecurityBaselineCategoryStateSummary{ SecurityBaselineStateSummary: *NewSecurityBaselineStateSummary(), diff --git a/models/security_baseline_device_state.go b/models/security_baseline_device_state.go index 994802442ff..58615671de5 100644 --- a/models/security_baseline_device_state.go +++ b/models/security_baseline_device_state.go @@ -8,6 +8,8 @@ import ( // SecurityBaselineDeviceState the security baseline compliance state summary of the security baseline for a device. type SecurityBaselineDeviceState struct { Entity + // The OdataType property + OdataType *string } // NewSecurityBaselineDeviceState instantiates a new securityBaselineDeviceState and sets the default values. func NewSecurityBaselineDeviceState()(*SecurityBaselineDeviceState) { diff --git a/models/security_baseline_setting_state.go b/models/security_baseline_setting_state.go index 48d06463997..db08df9d164 100644 --- a/models/security_baseline_setting_state.go +++ b/models/security_baseline_setting_state.go @@ -7,6 +7,8 @@ import ( // SecurityBaselineSettingState the security baseline compliance state of a setting for a device type SecurityBaselineSettingState struct { Entity + // The OdataType property + OdataType *string } // NewSecurityBaselineSettingState instantiates a new securityBaselineSettingState and sets the default values. func NewSecurityBaselineSettingState()(*SecurityBaselineSettingState) { diff --git a/models/security_baseline_setting_state_collection_response.go b/models/security_baseline_setting_state_collection_response.go index b877f6f788b..204ee33ce96 100644 --- a/models/security_baseline_setting_state_collection_response.go +++ b/models/security_baseline_setting_state_collection_response.go @@ -8,7 +8,7 @@ import ( type SecurityBaselineSettingStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSecurityBaselineSettingStateCollectionResponse instantiates a new SecurityBaselineSettingStateCollectionResponse and sets the default values. +// NewSecurityBaselineSettingStateCollectionResponse instantiates a new securityBaselineSettingStateCollectionResponse and sets the default values. func NewSecurityBaselineSettingStateCollectionResponse()(*SecurityBaselineSettingStateCollectionResponse) { m := &SecurityBaselineSettingStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/security_baseline_state.go b/models/security_baseline_state.go index fef7205567b..108f4be1aa4 100644 --- a/models/security_baseline_state.go +++ b/models/security_baseline_state.go @@ -7,6 +7,8 @@ import ( // SecurityBaselineState security baseline state for a device. type SecurityBaselineState struct { Entity + // The OdataType property + OdataType *string } // NewSecurityBaselineState instantiates a new securityBaselineState and sets the default values. func NewSecurityBaselineState()(*SecurityBaselineState) { diff --git a/models/security_baseline_state_collection_response.go b/models/security_baseline_state_collection_response.go index d6c89dd1412..05f769e85b9 100644 --- a/models/security_baseline_state_collection_response.go +++ b/models/security_baseline_state_collection_response.go @@ -8,7 +8,7 @@ import ( type SecurityBaselineStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSecurityBaselineStateCollectionResponse instantiates a new SecurityBaselineStateCollectionResponse and sets the default values. +// NewSecurityBaselineStateCollectionResponse instantiates a new securityBaselineStateCollectionResponse and sets the default values. func NewSecurityBaselineStateCollectionResponse()(*SecurityBaselineStateCollectionResponse) { m := &SecurityBaselineStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/security_baseline_state_summary.go b/models/security_baseline_state_summary.go index 3e665f527c2..ef23d30edbc 100644 --- a/models/security_baseline_state_summary.go +++ b/models/security_baseline_state_summary.go @@ -7,6 +7,8 @@ import ( // SecurityBaselineStateSummary the security baseline compliance state summary for the security baseline of the account. type SecurityBaselineStateSummary struct { Entity + // The OdataType property + OdataType *string } // NewSecurityBaselineStateSummary instantiates a new securityBaselineStateSummary and sets the default values. func NewSecurityBaselineStateSummary()(*SecurityBaselineStateSummary) { diff --git a/models/security_baseline_template.go b/models/security_baseline_template.go index 08e56a6bfa2..883c2c94cb6 100644 --- a/models/security_baseline_template.go +++ b/models/security_baseline_template.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// SecurityBaselineTemplate +// SecurityBaselineTemplate the security baseline template of the account type SecurityBaselineTemplate struct { DeviceManagementTemplate } -// NewSecurityBaselineTemplate instantiates a new SecurityBaselineTemplate and sets the default values. +// NewSecurityBaselineTemplate instantiates a new securityBaselineTemplate and sets the default values. func NewSecurityBaselineTemplate()(*SecurityBaselineTemplate) { m := &SecurityBaselineTemplate{ DeviceManagementTemplate: *NewDeviceManagementTemplate(), diff --git a/models/security_configuration_task.go b/models/security_configuration_task.go index ede716cfab1..bb5a85b3d5d 100644 --- a/models/security_configuration_task.go +++ b/models/security_configuration_task.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// SecurityConfigurationTask +// SecurityConfigurationTask a security configuration task. type SecurityConfigurationTask struct { DeviceAppManagementTask } -// NewSecurityConfigurationTask instantiates a new SecurityConfigurationTask and sets the default values. +// NewSecurityConfigurationTask instantiates a new securityConfigurationTask and sets the default values. func NewSecurityConfigurationTask()(*SecurityConfigurationTask) { m := &SecurityConfigurationTask{ DeviceAppManagementTask: *NewDeviceAppManagementTask(), diff --git a/models/security_reports_root.go b/models/security_reports_root.go index 8b8d6ad5798..5b679443611 100644 --- a/models/security_reports_root.go +++ b/models/security_reports_root.go @@ -7,6 +7,8 @@ import ( // SecurityReportsRoot type SecurityReportsRoot struct { Entity + // The OdataType property + OdataType *string } // NewSecurityReportsRoot instantiates a new securityReportsRoot and sets the default values. func NewSecurityReportsRoot()(*SecurityReportsRoot) { diff --git a/models/self_signed_certificate.go b/models/self_signed_certificate.go index 6e5342c7994..14c8555a3e3 100644 --- a/models/self_signed_certificate.go +++ b/models/self_signed_certificate.go @@ -12,7 +12,7 @@ type SelfSignedCertificate struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSelfSignedCertificate instantiates a new SelfSignedCertificate and sets the default values. +// NewSelfSignedCertificate instantiates a new selfSignedCertificate and sets the default values. func NewSelfSignedCertificate()(*SelfSignedCertificate) { m := &SelfSignedCertificate{ } diff --git a/models/sensitive_type.go b/models/sensitive_type.go index 9d93f453450..6d31d6424d7 100644 --- a/models/sensitive_type.go +++ b/models/sensitive_type.go @@ -7,6 +7,8 @@ import ( // SensitiveType type SensitiveType struct { Entity + // The OdataType property + OdataType *string } // NewSensitiveType instantiates a new sensitiveType and sets the default values. func NewSensitiveType()(*SensitiveType) { diff --git a/models/sensitive_type_collection_response.go b/models/sensitive_type_collection_response.go index 42028a9081b..26a182a2dbd 100644 --- a/models/sensitive_type_collection_response.go +++ b/models/sensitive_type_collection_response.go @@ -8,7 +8,7 @@ import ( type SensitiveTypeCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSensitiveTypeCollectionResponse instantiates a new SensitiveTypeCollectionResponse and sets the default values. +// NewSensitiveTypeCollectionResponse instantiates a new sensitiveTypeCollectionResponse and sets the default values. func NewSensitiveTypeCollectionResponse()(*SensitiveTypeCollectionResponse) { m := &SensitiveTypeCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sensitivity_label.go b/models/sensitivity_label.go index 936a50a8e5b..68b1307c92d 100644 --- a/models/sensitivity_label.go +++ b/models/sensitivity_label.go @@ -200,6 +200,16 @@ func (m *SensitivityLabel) GetFieldDeserializers()(map[string]func(i878a80d2330e } 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["priority"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -282,6 +292,17 @@ func (m *SensitivityLabel) GetName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *SensitivityLabel) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPriority gets the priority property value. The priority property func (m *SensitivityLabel) GetPriority()(*int32) { val, err := m.GetBackingStore().Get("priority") @@ -395,6 +416,12 @@ func (m *SensitivityLabel) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("priority", m.GetPriority()) if err != nil { @@ -491,6 +518,13 @@ func (m *SensitivityLabel) SetName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *SensitivityLabel) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPriority sets the priority property value. The priority property func (m *SensitivityLabel) SetPriority(value *int32)() { err := m.GetBackingStore().Set("priority", value) @@ -526,6 +560,7 @@ type SensitivityLabelable interface { GetIsEndpointProtectionEnabled()(*bool) GetLabelActions()([]LabelActionBaseable) GetName()(*string) + GetOdataType()(*string) GetPriority()(*int32) GetSublabels()([]SensitivityLabelable) GetToolTip()(*string) @@ -539,6 +574,7 @@ type SensitivityLabelable interface { SetIsEndpointProtectionEnabled(value *bool)() SetLabelActions(value []LabelActionBaseable)() SetName(value *string)() + SetOdataType(value *string)() SetPriority(value *int32)() SetSublabels(value []SensitivityLabelable)() SetToolTip(value *string)() diff --git a/models/sensitivity_label_assignment.go b/models/sensitivity_label_assignment.go index f17431bb6ea..373022f2132 100644 --- a/models/sensitivity_label_assignment.go +++ b/models/sensitivity_label_assignment.go @@ -10,7 +10,7 @@ type SensitivityLabelAssignment struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSensitivityLabelAssignment instantiates a new SensitivityLabelAssignment and sets the default values. +// NewSensitivityLabelAssignment instantiates a new sensitivityLabelAssignment and sets the default values. func NewSensitivityLabelAssignment()(*SensitivityLabelAssignment) { m := &SensitivityLabelAssignment{ } diff --git a/models/sensitivity_label_collection_response.go b/models/sensitivity_label_collection_response.go index 01fbaa7df5a..fd816a0e28d 100644 --- a/models/sensitivity_label_collection_response.go +++ b/models/sensitivity_label_collection_response.go @@ -8,7 +8,7 @@ import ( type SensitivityLabelCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSensitivityLabelCollectionResponse instantiates a new SensitivityLabelCollectionResponse and sets the default values. +// NewSensitivityLabelCollectionResponse instantiates a new sensitivityLabelCollectionResponse and sets the default values. func NewSensitivityLabelCollectionResponse()(*SensitivityLabelCollectionResponse) { m := &SensitivityLabelCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sensitivity_policy_settings.go b/models/sensitivity_policy_settings.go index aa01af713c7..3f55eb75795 100644 --- a/models/sensitivity_policy_settings.go +++ b/models/sensitivity_policy_settings.go @@ -7,6 +7,8 @@ import ( // SensitivityPolicySettings type SensitivityPolicySettings struct { Entity + // The OdataType property + OdataType *string } // NewSensitivityPolicySettings instantiates a new sensitivityPolicySettings and sets the default values. func NewSensitivityPolicySettings()(*SensitivityPolicySettings) { diff --git a/models/sequential_activation_renewals_alert_configuration.go b/models/sequential_activation_renewals_alert_configuration.go index 9dd52a54d98..25554249cd4 100644 --- a/models/sequential_activation_renewals_alert_configuration.go +++ b/models/sequential_activation_renewals_alert_configuration.go @@ -8,7 +8,7 @@ import ( type SequentialActivationRenewalsAlertConfiguration struct { UnifiedRoleManagementAlertConfiguration } -// NewSequentialActivationRenewalsAlertConfiguration instantiates a new SequentialActivationRenewalsAlertConfiguration and sets the default values. +// NewSequentialActivationRenewalsAlertConfiguration instantiates a new sequentialActivationRenewalsAlertConfiguration and sets the default values. func NewSequentialActivationRenewalsAlertConfiguration()(*SequentialActivationRenewalsAlertConfiguration) { m := &SequentialActivationRenewalsAlertConfiguration{ UnifiedRoleManagementAlertConfiguration: *NewUnifiedRoleManagementAlertConfiguration(), diff --git a/models/sequential_activation_renewals_alert_incident.go b/models/sequential_activation_renewals_alert_incident.go index 615aeb3fda7..774c7754bfb 100644 --- a/models/sequential_activation_renewals_alert_incident.go +++ b/models/sequential_activation_renewals_alert_incident.go @@ -9,7 +9,7 @@ import ( type SequentialActivationRenewalsAlertIncident struct { UnifiedRoleManagementAlertIncident } -// NewSequentialActivationRenewalsAlertIncident instantiates a new SequentialActivationRenewalsAlertIncident and sets the default values. +// NewSequentialActivationRenewalsAlertIncident instantiates a new sequentialActivationRenewalsAlertIncident and sets the default values. func NewSequentialActivationRenewalsAlertIncident()(*SequentialActivationRenewalsAlertIncident) { m := &SequentialActivationRenewalsAlertIncident{ UnifiedRoleManagementAlertIncident: *NewUnifiedRoleManagementAlertIncident(), diff --git a/models/service_announcement.go b/models/service_announcement.go index 7684f18476b..88703f89c67 100644 --- a/models/service_announcement.go +++ b/models/service_announcement.go @@ -7,8 +7,10 @@ import ( // ServiceAnnouncement type ServiceAnnouncement struct { Entity + // The OdataType property + OdataType *string } -// NewServiceAnnouncement instantiates a new ServiceAnnouncement and sets the default values. +// NewServiceAnnouncement instantiates a new serviceAnnouncement and sets the default values. func NewServiceAnnouncement()(*ServiceAnnouncement) { m := &ServiceAnnouncement{ Entity: *NewEntity(), diff --git a/models/service_announcement_attachment.go b/models/service_announcement_attachment.go index 896355cc0eb..e6f3711b126 100644 --- a/models/service_announcement_attachment.go +++ b/models/service_announcement_attachment.go @@ -8,6 +8,8 @@ import ( // ServiceAnnouncementAttachment type ServiceAnnouncementAttachment struct { Entity + // The OdataType property + OdataType *string } // NewServiceAnnouncementAttachment instantiates a new serviceAnnouncementAttachment and sets the default values. func NewServiceAnnouncementAttachment()(*ServiceAnnouncementAttachment) { diff --git a/models/service_announcement_attachment_collection_response.go b/models/service_announcement_attachment_collection_response.go index e96fc5d0998..7cd1ac6d101 100644 --- a/models/service_announcement_attachment_collection_response.go +++ b/models/service_announcement_attachment_collection_response.go @@ -8,7 +8,7 @@ import ( type ServiceAnnouncementAttachmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewServiceAnnouncementAttachmentCollectionResponse instantiates a new ServiceAnnouncementAttachmentCollectionResponse and sets the default values. +// NewServiceAnnouncementAttachmentCollectionResponse instantiates a new serviceAnnouncementAttachmentCollectionResponse and sets the default values. func NewServiceAnnouncementAttachmentCollectionResponse()(*ServiceAnnouncementAttachmentCollectionResponse) { m := &ServiceAnnouncementAttachmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/service_announcement_base.go b/models/service_announcement_base.go index ff58624cf91..8fc4d07bbd9 100644 --- a/models/service_announcement_base.go +++ b/models/service_announcement_base.go @@ -8,6 +8,8 @@ import ( // ServiceAnnouncementBase type ServiceAnnouncementBase struct { Entity + // The OdataType property + OdataType *string } // NewServiceAnnouncementBase instantiates a new serviceAnnouncementBase and sets the default values. func NewServiceAnnouncementBase()(*ServiceAnnouncementBase) { diff --git a/models/service_health.go b/models/service_health.go index 03e99d3799b..72dd8f1c4cf 100644 --- a/models/service_health.go +++ b/models/service_health.go @@ -7,6 +7,8 @@ import ( // ServiceHealth type ServiceHealth struct { Entity + // The OdataType property + OdataType *string } // NewServiceHealth instantiates a new serviceHealth and sets the default values. func NewServiceHealth()(*ServiceHealth) { diff --git a/models/service_health_collection_response.go b/models/service_health_collection_response.go index 0ae6112bcc3..4167c785750 100644 --- a/models/service_health_collection_response.go +++ b/models/service_health_collection_response.go @@ -8,7 +8,7 @@ import ( type ServiceHealthCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewServiceHealthCollectionResponse instantiates a new ServiceHealthCollectionResponse and sets the default values. +// NewServiceHealthCollectionResponse instantiates a new serviceHealthCollectionResponse and sets the default values. func NewServiceHealthCollectionResponse()(*ServiceHealthCollectionResponse) { m := &ServiceHealthCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/service_health_issue.go b/models/service_health_issue.go index 668ddf0dccc..d3752515500 100644 --- a/models/service_health_issue.go +++ b/models/service_health_issue.go @@ -8,7 +8,7 @@ import ( type ServiceHealthIssue struct { ServiceAnnouncementBase } -// NewServiceHealthIssue instantiates a new ServiceHealthIssue and sets the default values. +// NewServiceHealthIssue instantiates a new serviceHealthIssue and sets the default values. func NewServiceHealthIssue()(*ServiceHealthIssue) { m := &ServiceHealthIssue{ ServiceAnnouncementBase: *NewServiceAnnouncementBase(), diff --git a/models/service_health_issue_collection_response.go b/models/service_health_issue_collection_response.go index ce99a6ea17a..0e52b7b73f3 100644 --- a/models/service_health_issue_collection_response.go +++ b/models/service_health_issue_collection_response.go @@ -8,7 +8,7 @@ import ( type ServiceHealthIssueCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewServiceHealthIssueCollectionResponse instantiates a new ServiceHealthIssueCollectionResponse and sets the default values. +// NewServiceHealthIssueCollectionResponse instantiates a new serviceHealthIssueCollectionResponse and sets the default values. func NewServiceHealthIssueCollectionResponse()(*ServiceHealthIssueCollectionResponse) { m := &ServiceHealthIssueCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/service_health_issue_post.go b/models/service_health_issue_post.go index 68395fd12ad..9fcc2b8d844 100644 --- a/models/service_health_issue_post.go +++ b/models/service_health_issue_post.go @@ -11,7 +11,7 @@ type ServiceHealthIssuePost struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewServiceHealthIssuePost instantiates a new ServiceHealthIssuePost and sets the default values. +// NewServiceHealthIssuePost instantiates a new serviceHealthIssuePost and sets the default values. func NewServiceHealthIssuePost()(*ServiceHealthIssuePost) { m := &ServiceHealthIssuePost{ } diff --git a/models/service_hosted_media_config.go b/models/service_hosted_media_config.go index 6bbc44ab76a..7737d2a5e30 100644 --- a/models/service_hosted_media_config.go +++ b/models/service_hosted_media_config.go @@ -7,8 +7,10 @@ import ( // ServiceHostedMediaConfig type ServiceHostedMediaConfig struct { MediaConfig + // The OdataType property + OdataType *string } -// NewServiceHostedMediaConfig instantiates a new ServiceHostedMediaConfig and sets the default values. +// NewServiceHostedMediaConfig instantiates a new serviceHostedMediaConfig and sets the default values. func NewServiceHostedMediaConfig()(*ServiceHostedMediaConfig) { m := &ServiceHostedMediaConfig{ MediaConfig: *NewMediaConfig(), diff --git a/models/service_information.go b/models/service_information.go index 1c96138336b..40d2dcb14e7 100644 --- a/models/service_information.go +++ b/models/service_information.go @@ -10,7 +10,7 @@ type ServiceInformation struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewServiceInformation instantiates a new ServiceInformation and sets the default values. +// NewServiceInformation instantiates a new serviceInformation and sets the default values. func NewServiceInformation()(*ServiceInformation) { m := &ServiceInformation{ } diff --git a/models/service_level_agreement_attainment.go b/models/service_level_agreement_attainment.go new file mode 100644 index 00000000000..daedfe6493b --- /dev/null +++ b/models/service_level_agreement_attainment.go @@ -0,0 +1,218 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// ServiceLevelAgreementAttainment +type ServiceLevelAgreementAttainment struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewServiceLevelAgreementAttainment instantiates a new serviceLevelAgreementAttainment and sets the default values. +func NewServiceLevelAgreementAttainment()(*ServiceLevelAgreementAttainment) { + m := &ServiceLevelAgreementAttainment{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateServiceLevelAgreementAttainmentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateServiceLevelAgreementAttainmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewServiceLevelAgreementAttainment(), 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 *ServiceLevelAgreementAttainment) 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 *ServiceLevelAgreementAttainment) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetEndDate gets the endDate property value. The end date for the calendar month for which SLA attainment is measured. +func (m *ServiceLevelAgreementAttainment) GetEndDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { + val, err := m.GetBackingStore().Get("endDate") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ServiceLevelAgreementAttainment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["endDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetDateOnlyValue() + if err != nil { + return err + } + if val != nil { + m.SetEndDate(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["score"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetFloat64Value() + if err != nil { + return err + } + if val != nil { + m.SetScore(val) + } + return nil + } + res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetDateOnlyValue() + if err != nil { + return err + } + if val != nil { + m.SetStartDate(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ServiceLevelAgreementAttainment) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetScore gets the score property value. The level of SLA attainment achieved by the tenant for the calendar month identified, as described in Azure Active Directory SLA performance. Values are truncated, not rounded, so the actual value is always equal to or higher than the displayed value. Values are expressed as a percentage of availability for the tenant. +func (m *ServiceLevelAgreementAttainment) GetScore()(*float64) { + val, err := m.GetBackingStore().Get("score") + if err != nil { + panic(err) + } + if val != nil { + return val.(*float64) + } + return nil +} +// GetStartDate gets the startDate property value. The start date for the calendar month for which SLA attainment is measured. +func (m *ServiceLevelAgreementAttainment) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { + val, err := m.GetBackingStore().Get("startDate") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + } + return nil +} +// Serialize serializes information the current object +func (m *ServiceLevelAgreementAttainment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteDateOnlyValue("endDate", m.GetEndDate()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteFloat64Value("score", m.GetScore()) + if err != nil { + return err + } + } + { + err := writer.WriteDateOnlyValue("startDate", m.GetStartDate()) + 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 *ServiceLevelAgreementAttainment) 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 *ServiceLevelAgreementAttainment) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetEndDate sets the endDate property value. The end date for the calendar month for which SLA attainment is measured. +func (m *ServiceLevelAgreementAttainment) SetEndDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { + err := m.GetBackingStore().Set("endDate", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ServiceLevelAgreementAttainment) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetScore sets the score property value. The level of SLA attainment achieved by the tenant for the calendar month identified, as described in Azure Active Directory SLA performance. Values are truncated, not rounded, so the actual value is always equal to or higher than the displayed value. Values are expressed as a percentage of availability for the tenant. +func (m *ServiceLevelAgreementAttainment) SetScore(value *float64)() { + err := m.GetBackingStore().Set("score", value) + if err != nil { + panic(err) + } +} +// SetStartDate sets the startDate property value. The start date for the calendar month for which SLA attainment is measured. +func (m *ServiceLevelAgreementAttainment) SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { + err := m.GetBackingStore().Set("startDate", value) + if err != nil { + panic(err) + } +} +// ServiceLevelAgreementAttainmentable +type ServiceLevelAgreementAttainmentable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetEndDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + GetOdataType()(*string) + GetScore()(*float64) + GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetEndDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() + SetOdataType(value *string)() + SetScore(value *float64)() + SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() +} diff --git a/models/service_level_agreement_root.go b/models/service_level_agreement_root.go new file mode 100644 index 00000000000..0fba28877db --- /dev/null +++ b/models/service_level_agreement_root.go @@ -0,0 +1,77 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ServiceLevelAgreementRoot +type ServiceLevelAgreementRoot struct { + Entity + // The OdataType property + OdataType *string +} +// NewServiceLevelAgreementRoot instantiates a new serviceLevelAgreementRoot and sets the default values. +func NewServiceLevelAgreementRoot()(*ServiceLevelAgreementRoot) { + m := &ServiceLevelAgreementRoot{ + Entity: *NewEntity(), + } + return m +} +// CreateServiceLevelAgreementRootFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateServiceLevelAgreementRootFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewServiceLevelAgreementRoot(), nil +} +// GetAzureADAuthentication gets the azureADAuthentication property value. Collects the Azure AD SLA attainment for each month for an Azure AD tenant. +func (m *ServiceLevelAgreementRoot) GetAzureADAuthentication()(AzureADAuthenticationable) { + val, err := m.GetBackingStore().Get("azureADAuthentication") + if err != nil { + panic(err) + } + if val != nil { + return val.(AzureADAuthenticationable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ServiceLevelAgreementRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["azureADAuthentication"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAzureADAuthenticationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAzureADAuthentication(val.(AzureADAuthenticationable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ServiceLevelAgreementRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("azureADAuthentication", m.GetAzureADAuthentication()) + if err != nil { + return err + } + } + return nil +} +// SetAzureADAuthentication sets the azureADAuthentication property value. Collects the Azure AD SLA attainment for each month for an Azure AD tenant. +func (m *ServiceLevelAgreementRoot) SetAzureADAuthentication(value AzureADAuthenticationable)() { + err := m.GetBackingStore().Set("azureADAuthentication", value) + if err != nil { + panic(err) + } +} +// ServiceLevelAgreementRootable +type ServiceLevelAgreementRootable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAzureADAuthentication()(AzureADAuthenticationable) + SetAzureADAuthentication(value AzureADAuthenticationable)() +} diff --git a/models/service_now_connection.go b/models/service_now_connection.go index c0177b801b1..24be66451e9 100644 --- a/models/service_now_connection.go +++ b/models/service_now_connection.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ServiceNowConnection +// ServiceNowConnection serviceNow properties including the ServiceNow instanceUrl, connection credentials and other metadata. type ServiceNowConnection struct { Entity + // The OdataType property + OdataType *string } -// NewServiceNowConnection instantiates a new ServiceNowConnection and sets the default values. +// NewServiceNowConnection instantiates a new serviceNowConnection and sets the default values. func NewServiceNowConnection()(*ServiceNowConnection) { m := &ServiceNowConnection{ Entity: *NewEntity(), diff --git a/models/service_now_connection_collection_response.go b/models/service_now_connection_collection_response.go index fc6da667f98..e7b760e40bf 100644 --- a/models/service_now_connection_collection_response.go +++ b/models/service_now_connection_collection_response.go @@ -8,7 +8,7 @@ import ( type ServiceNowConnectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewServiceNowConnectionCollectionResponse instantiates a new ServiceNowConnectionCollectionResponse and sets the default values. +// NewServiceNowConnectionCollectionResponse instantiates a new serviceNowConnectionCollectionResponse and sets the default values. func NewServiceNowConnectionCollectionResponse()(*ServiceNowConnectionCollectionResponse) { m := &ServiceNowConnectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/service_now_oauth_secret_authentication.go b/models/service_now_oauth_secret_authentication.go index 2f046046e1a..b5393ae11fb 100644 --- a/models/service_now_oauth_secret_authentication.go +++ b/models/service_now_oauth_secret_authentication.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ServiceNowOauthSecretAuthentication +// ServiceNowOauthSecretAuthentication app id for the ServiceNow client app. type ServiceNowOauthSecretAuthentication struct { ServiceNowAuthenticationMethod } -// NewServiceNowOauthSecretAuthentication instantiates a new ServiceNowOauthSecretAuthentication and sets the default values. +// NewServiceNowOauthSecretAuthentication instantiates a new serviceNowOauthSecretAuthentication and sets the default values. func NewServiceNowOauthSecretAuthentication()(*ServiceNowOauthSecretAuthentication) { m := &ServiceNowOauthSecretAuthentication{ ServiceNowAuthenticationMethod: *NewServiceNowAuthenticationMethod(), @@ -45,8 +45,29 @@ func (m *ServiceNowOauthSecretAuthentication) GetFieldDeserializers()(map[string } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ServiceNowOauthSecretAuthentication) 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 *ServiceNowOauthSecretAuthentication) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ServiceNowAuthenticationMethod.Serialize(writer) @@ -59,6 +80,12 @@ func (m *ServiceNowOauthSecretAuthentication) Serialize(writer i878a80d2330e89d2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAppId sets the appId property value. Tenant appId registered with Azure AD @@ -68,10 +95,19 @@ func (m *ServiceNowOauthSecretAuthentication) SetAppId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ServiceNowOauthSecretAuthentication) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ServiceNowOauthSecretAuthenticationable type ServiceNowOauthSecretAuthenticationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ServiceNowAuthenticationMethodable GetAppId()(*string) + GetOdataType()(*string) SetAppId(value *string)() + SetOdataType(value *string)() } diff --git a/models/service_plan_info.go b/models/service_plan_info.go index f0d810bffd2..69f26036307 100644 --- a/models/service_plan_info.go +++ b/models/service_plan_info.go @@ -11,7 +11,7 @@ type ServicePlanInfo struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewServicePlanInfo instantiates a new ServicePlanInfo and sets the default values. +// NewServicePlanInfo instantiates a new servicePlanInfo and sets the default values. func NewServicePlanInfo()(*ServicePlanInfo) { m := &ServicePlanInfo{ } diff --git a/models/service_principal.go b/models/service_principal.go index e84d692d8c6..cbffda8f426 100644 --- a/models/service_principal.go +++ b/models/service_principal.go @@ -10,7 +10,7 @@ import ( type ServicePrincipal struct { DirectoryObject } -// NewServicePrincipal instantiates a new ServicePrincipal and sets the default values. +// NewServicePrincipal instantiates a new servicePrincipal and sets the default values. func NewServicePrincipal()(*ServicePrincipal) { m := &ServicePrincipal{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/service_principal_collection_response.go b/models/service_principal_collection_response.go index 3e9a6f20af1..124d04b954e 100644 --- a/models/service_principal_collection_response.go +++ b/models/service_principal_collection_response.go @@ -8,7 +8,7 @@ import ( type ServicePrincipalCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewServicePrincipalCollectionResponse instantiates a new ServicePrincipalCollectionResponse and sets the default values. +// NewServicePrincipalCollectionResponse instantiates a new servicePrincipalCollectionResponse and sets the default values. func NewServicePrincipalCollectionResponse()(*ServicePrincipalCollectionResponse) { m := &ServicePrincipalCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/service_principal_creation_condition_set.go b/models/service_principal_creation_condition_set.go index a7335ee4790..58c65007890 100644 --- a/models/service_principal_creation_condition_set.go +++ b/models/service_principal_creation_condition_set.go @@ -7,6 +7,8 @@ import ( // ServicePrincipalCreationConditionSet type ServicePrincipalCreationConditionSet struct { Entity + // The OdataType property + OdataType *string } // NewServicePrincipalCreationConditionSet instantiates a new servicePrincipalCreationConditionSet and sets the default values. func NewServicePrincipalCreationConditionSet()(*ServicePrincipalCreationConditionSet) { diff --git a/models/service_principal_creation_condition_set_collection_response.go b/models/service_principal_creation_condition_set_collection_response.go index ab1a91c9036..e7e9dcb179d 100644 --- a/models/service_principal_creation_condition_set_collection_response.go +++ b/models/service_principal_creation_condition_set_collection_response.go @@ -8,7 +8,7 @@ import ( type ServicePrincipalCreationConditionSetCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewServicePrincipalCreationConditionSetCollectionResponse instantiates a new ServicePrincipalCreationConditionSetCollectionResponse and sets the default values. +// NewServicePrincipalCreationConditionSetCollectionResponse instantiates a new servicePrincipalCreationConditionSetCollectionResponse and sets the default values. func NewServicePrincipalCreationConditionSetCollectionResponse()(*ServicePrincipalCreationConditionSetCollectionResponse) { m := &ServicePrincipalCreationConditionSetCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/service_principal_creation_policy.go b/models/service_principal_creation_policy.go index 1550ec1029d..25531f24e90 100644 --- a/models/service_principal_creation_policy.go +++ b/models/service_principal_creation_policy.go @@ -8,7 +8,7 @@ import ( type ServicePrincipalCreationPolicy struct { PolicyBase } -// NewServicePrincipalCreationPolicy instantiates a new ServicePrincipalCreationPolicy and sets the default values. +// NewServicePrincipalCreationPolicy instantiates a new servicePrincipalCreationPolicy and sets the default values. func NewServicePrincipalCreationPolicy()(*ServicePrincipalCreationPolicy) { m := &ServicePrincipalCreationPolicy{ PolicyBase: *NewPolicyBase(), diff --git a/models/service_principal_creation_policy_collection_response.go b/models/service_principal_creation_policy_collection_response.go index 3c04abeadea..bc5743bdb8d 100644 --- a/models/service_principal_creation_policy_collection_response.go +++ b/models/service_principal_creation_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type ServicePrincipalCreationPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewServicePrincipalCreationPolicyCollectionResponse instantiates a new ServicePrincipalCreationPolicyCollectionResponse and sets the default values. +// NewServicePrincipalCreationPolicyCollectionResponse instantiates a new servicePrincipalCreationPolicyCollectionResponse and sets the default values. func NewServicePrincipalCreationPolicyCollectionResponse()(*ServicePrincipalCreationPolicyCollectionResponse) { m := &ServicePrincipalCreationPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/service_principal_identity.go b/models/service_principal_identity.go index 1223acc0fe0..1b738fbc1d2 100644 --- a/models/service_principal_identity.go +++ b/models/service_principal_identity.go @@ -7,8 +7,10 @@ import ( // ServicePrincipalIdentity type ServicePrincipalIdentity struct { Identity + // The OdataType property + OdataType *string } -// NewServicePrincipalIdentity instantiates a new ServicePrincipalIdentity and sets the default values. +// NewServicePrincipalIdentity instantiates a new servicePrincipalIdentity and sets the default values. func NewServicePrincipalIdentity()(*ServicePrincipalIdentity) { m := &ServicePrincipalIdentity{ Identity: *NewIdentity(), diff --git a/models/service_principal_risk_detection.go b/models/service_principal_risk_detection.go index a79fd5d738a..8c69ab8afe1 100644 --- a/models/service_principal_risk_detection.go +++ b/models/service_principal_risk_detection.go @@ -8,8 +8,10 @@ import ( // ServicePrincipalRiskDetection type ServicePrincipalRiskDetection struct { Entity + // The OdataType property + OdataType *string } -// NewServicePrincipalRiskDetection instantiates a new ServicePrincipalRiskDetection and sets the default values. +// NewServicePrincipalRiskDetection instantiates a new servicePrincipalRiskDetection and sets the default values. func NewServicePrincipalRiskDetection()(*ServicePrincipalRiskDetection) { m := &ServicePrincipalRiskDetection{ Entity: *NewEntity(), diff --git a/models/service_principal_risk_detection_collection_response.go b/models/service_principal_risk_detection_collection_response.go index 8b9b8056652..09aa9d654f2 100644 --- a/models/service_principal_risk_detection_collection_response.go +++ b/models/service_principal_risk_detection_collection_response.go @@ -8,7 +8,7 @@ import ( type ServicePrincipalRiskDetectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewServicePrincipalRiskDetectionCollectionResponse instantiates a new ServicePrincipalRiskDetectionCollectionResponse and sets the default values. +// NewServicePrincipalRiskDetectionCollectionResponse instantiates a new servicePrincipalRiskDetectionCollectionResponse and sets the default values. func NewServicePrincipalRiskDetectionCollectionResponse()(*ServicePrincipalRiskDetectionCollectionResponse) { m := &ServicePrincipalRiskDetectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/service_principal_sign_in_activity.go b/models/service_principal_sign_in_activity.go index 1820fe0b4b1..0c38572c5ab 100644 --- a/models/service_principal_sign_in_activity.go +++ b/models/service_principal_sign_in_activity.go @@ -7,6 +7,8 @@ import ( // ServicePrincipalSignInActivity type ServicePrincipalSignInActivity struct { Entity + // The OdataType property + OdataType *string } // NewServicePrincipalSignInActivity instantiates a new servicePrincipalSignInActivity and sets the default values. func NewServicePrincipalSignInActivity()(*ServicePrincipalSignInActivity) { diff --git a/models/service_principal_sign_in_activity_collection_response.go b/models/service_principal_sign_in_activity_collection_response.go index 59f9da756d9..5ab7dc45152 100644 --- a/models/service_principal_sign_in_activity_collection_response.go +++ b/models/service_principal_sign_in_activity_collection_response.go @@ -8,7 +8,7 @@ import ( type ServicePrincipalSignInActivityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewServicePrincipalSignInActivityCollectionResponse instantiates a new ServicePrincipalSignInActivityCollectionResponse and sets the default values. +// NewServicePrincipalSignInActivityCollectionResponse instantiates a new servicePrincipalSignInActivityCollectionResponse and sets the default values. func NewServicePrincipalSignInActivityCollectionResponse()(*ServicePrincipalSignInActivityCollectionResponse) { m := &ServicePrincipalSignInActivityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/service_provisioning_linked_resource_error_detail.go b/models/service_provisioning_linked_resource_error_detail.go index 18494577326..bb2608902db 100644 --- a/models/service_provisioning_linked_resource_error_detail.go +++ b/models/service_provisioning_linked_resource_error_detail.go @@ -8,7 +8,7 @@ import ( type ServiceProvisioningLinkedResourceErrorDetail struct { ServiceProvisioningResourceErrorDetail } -// NewServiceProvisioningLinkedResourceErrorDetail instantiates a new ServiceProvisioningLinkedResourceErrorDetail and sets the default values. +// NewServiceProvisioningLinkedResourceErrorDetail instantiates a new serviceProvisioningLinkedResourceErrorDetail and sets the default values. func NewServiceProvisioningLinkedResourceErrorDetail()(*ServiceProvisioningLinkedResourceErrorDetail) { m := &ServiceProvisioningLinkedResourceErrorDetail{ ServiceProvisioningResourceErrorDetail: *NewServiceProvisioningResourceErrorDetail(), @@ -22,6 +22,16 @@ func CreateServiceProvisioningLinkedResourceErrorDetailFromDiscriminatorValue(pa // GetFieldDeserializers the deserialization information for the current model func (m *ServiceProvisioningLinkedResourceErrorDetail) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ServiceProvisioningResourceErrorDetail.GetFieldDeserializers() + 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["propertyName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -44,6 +54,17 @@ func (m *ServiceProvisioningLinkedResourceErrorDetail) GetFieldDeserializers()(m } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ServiceProvisioningLinkedResourceErrorDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPropertyName gets the propertyName property value. The propertyName property func (m *ServiceProvisioningLinkedResourceErrorDetail) GetPropertyName()(*string) { val, err := m.GetBackingStore().Get("propertyName") @@ -72,6 +93,12 @@ func (m *ServiceProvisioningLinkedResourceErrorDetail) Serialize(writer i878a80d if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("propertyName", m.GetPropertyName()) if err != nil { @@ -86,6 +113,13 @@ func (m *ServiceProvisioningLinkedResourceErrorDetail) Serialize(writer i878a80d } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ServiceProvisioningLinkedResourceErrorDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPropertyName sets the propertyName property value. The propertyName property func (m *ServiceProvisioningLinkedResourceErrorDetail) SetPropertyName(value *string)() { err := m.GetBackingStore().Set("propertyName", value) @@ -104,8 +138,10 @@ func (m *ServiceProvisioningLinkedResourceErrorDetail) SetTarget(value *string)( type ServiceProvisioningLinkedResourceErrorDetailable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ServiceProvisioningResourceErrorDetailable + GetOdataType()(*string) GetPropertyName()(*string) GetTarget()(*string) + SetOdataType(value *string)() SetPropertyName(value *string)() SetTarget(value *string)() } diff --git a/models/service_provisioning_resource_error.go b/models/service_provisioning_resource_error.go index 2394c76eb0d..b9639ebde22 100644 --- a/models/service_provisioning_resource_error.go +++ b/models/service_provisioning_resource_error.go @@ -8,7 +8,7 @@ import ( type ServiceProvisioningResourceError struct { ServiceProvisioningError } -// NewServiceProvisioningResourceError instantiates a new ServiceProvisioningResourceError and sets the default values. +// NewServiceProvisioningResourceError instantiates a new serviceProvisioningResourceError and sets the default values. func NewServiceProvisioningResourceError()(*ServiceProvisioningResourceError) { m := &ServiceProvisioningResourceError{ ServiceProvisioningError: *NewServiceProvisioningError(), @@ -51,8 +51,29 @@ func (m *ServiceProvisioningResourceError) GetFieldDeserializers()(map[string]fu } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ServiceProvisioningResourceError) 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 *ServiceProvisioningResourceError) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ServiceProvisioningError.Serialize(writer) @@ -71,6 +92,12 @@ func (m *ServiceProvisioningResourceError) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetErrors sets the errors property value. The errors property @@ -80,10 +107,19 @@ func (m *ServiceProvisioningResourceError) SetErrors(value []ServiceProvisioning panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ServiceProvisioningResourceError) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ServiceProvisioningResourceErrorable type ServiceProvisioningResourceErrorable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ServiceProvisioningErrorable GetErrors()([]ServiceProvisioningResourceErrorDetailable) + GetOdataType()(*string) SetErrors(value []ServiceProvisioningResourceErrorDetailable)() + SetOdataType(value *string)() } diff --git a/models/service_provisioning_xml_error.go b/models/service_provisioning_xml_error.go index 07445ad7375..4708c74f6c8 100644 --- a/models/service_provisioning_xml_error.go +++ b/models/service_provisioning_xml_error.go @@ -8,7 +8,7 @@ import ( type ServiceProvisioningXmlError struct { ServiceProvisioningError } -// NewServiceProvisioningXmlError instantiates a new ServiceProvisioningXmlError and sets the default values. +// NewServiceProvisioningXmlError instantiates a new serviceProvisioningXmlError and sets the default values. func NewServiceProvisioningXmlError()(*ServiceProvisioningXmlError) { m := &ServiceProvisioningXmlError{ ServiceProvisioningError: *NewServiceProvisioningError(), @@ -45,8 +45,29 @@ func (m *ServiceProvisioningXmlError) GetFieldDeserializers()(map[string]func(i8 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ServiceProvisioningXmlError) 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 *ServiceProvisioningXmlError) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ServiceProvisioningError.Serialize(writer) @@ -59,6 +80,12 @@ func (m *ServiceProvisioningXmlError) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetErrorDetail sets the errorDetail property value. Error Information published by the Federated Service as an xml string . @@ -68,10 +95,19 @@ func (m *ServiceProvisioningXmlError) SetErrorDetail(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ServiceProvisioningXmlError) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ServiceProvisioningXmlErrorable type ServiceProvisioningXmlErrorable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ServiceProvisioningErrorable GetErrorDetail()(*string) + GetOdataType()(*string) SetErrorDetail(value *string)() + SetOdataType(value *string)() } diff --git a/models/service_update_message.go b/models/service_update_message.go index 2293ad90ae3..4598674b987 100644 --- a/models/service_update_message.go +++ b/models/service_update_message.go @@ -9,7 +9,7 @@ import ( type ServiceUpdateMessage struct { ServiceAnnouncementBase } -// NewServiceUpdateMessage instantiates a new ServiceUpdateMessage and sets the default values. +// NewServiceUpdateMessage instantiates a new serviceUpdateMessage and sets the default values. func NewServiceUpdateMessage()(*ServiceUpdateMessage) { m := &ServiceUpdateMessage{ ServiceAnnouncementBase: *NewServiceAnnouncementBase(), diff --git a/models/service_update_message_collection_response.go b/models/service_update_message_collection_response.go index f802c4895a3..31bc4a39f71 100644 --- a/models/service_update_message_collection_response.go +++ b/models/service_update_message_collection_response.go @@ -8,7 +8,7 @@ import ( type ServiceUpdateMessageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewServiceUpdateMessageCollectionResponse instantiates a new ServiceUpdateMessageCollectionResponse and sets the default values. +// NewServiceUpdateMessageCollectionResponse instantiates a new serviceUpdateMessageCollectionResponse and sets the default values. func NewServiceUpdateMessageCollectionResponse()(*ServiceUpdateMessageCollectionResponse) { m := &ServiceUpdateMessageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/setting_state_device_summary.go b/models/setting_state_device_summary.go index 5c6d62b0042..9fc7c564652 100644 --- a/models/setting_state_device_summary.go +++ b/models/setting_state_device_summary.go @@ -7,6 +7,8 @@ import ( // SettingStateDeviceSummary device Compilance Policy and Configuration for a Setting State summary type SettingStateDeviceSummary struct { Entity + // The OdataType property + OdataType *string } // NewSettingStateDeviceSummary instantiates a new settingStateDeviceSummary and sets the default values. func NewSettingStateDeviceSummary()(*SettingStateDeviceSummary) { diff --git a/models/setting_state_device_summary_collection_response.go b/models/setting_state_device_summary_collection_response.go index 6acc516c7bb..e28e6250ea9 100644 --- a/models/setting_state_device_summary_collection_response.go +++ b/models/setting_state_device_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type SettingStateDeviceSummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSettingStateDeviceSummaryCollectionResponse instantiates a new SettingStateDeviceSummaryCollectionResponse and sets the default values. +// NewSettingStateDeviceSummaryCollectionResponse instantiates a new settingStateDeviceSummaryCollectionResponse and sets the default values. func NewSettingStateDeviceSummaryCollectionResponse()(*SettingStateDeviceSummaryCollectionResponse) { m := &SettingStateDeviceSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/setting_template_value.go b/models/setting_template_value.go index 71ec8ab2f85..fd7fe991ede 100644 --- a/models/setting_template_value.go +++ b/models/setting_template_value.go @@ -10,7 +10,7 @@ type SettingTemplateValue struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSettingTemplateValue instantiates a new SettingTemplateValue and sets the default values. +// NewSettingTemplateValue instantiates a new settingTemplateValue and sets the default values. func NewSettingTemplateValue()(*SettingTemplateValue) { m := &SettingTemplateValue{ } diff --git a/models/setting_value.go b/models/setting_value.go index 5fdbf93fb8e..9f6588f074c 100644 --- a/models/setting_value.go +++ b/models/setting_value.go @@ -10,7 +10,7 @@ type SettingValue struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSettingValue instantiates a new SettingValue and sets the default values. +// NewSettingValue instantiates a new settingValue and sets the default values. func NewSettingValue()(*SettingValue) { m := &SettingValue{ } diff --git a/models/share_point_identity.go b/models/share_point_identity.go index 0b7aacf1037..2efe79964a9 100644 --- a/models/share_point_identity.go +++ b/models/share_point_identity.go @@ -8,7 +8,7 @@ import ( type SharePointIdentity struct { Identity } -// NewSharePointIdentity instantiates a new SharePointIdentity and sets the default values. +// NewSharePointIdentity instantiates a new sharePointIdentity and sets the default values. func NewSharePointIdentity()(*SharePointIdentity) { m := &SharePointIdentity{ Identity: *NewIdentity(), @@ -34,6 +34,16 @@ func (m *SharePointIdentity) GetFieldDeserializers()(map[string]func(i878a80d233 } 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 } // GetLoginName gets the loginName property value. The sign in name of the SharePoint identity. @@ -47,6 +57,17 @@ func (m *SharePointIdentity) GetLoginName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *SharePointIdentity) 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 *SharePointIdentity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Identity.Serialize(writer) @@ -59,6 +80,12 @@ func (m *SharePointIdentity) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetLoginName sets the loginName property value. The sign in name of the SharePoint identity. @@ -68,10 +95,19 @@ func (m *SharePointIdentity) SetLoginName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *SharePointIdentity) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SharePointIdentityable type SharePointIdentityable interface { Identityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetLoginName()(*string) + GetOdataType()(*string) SetLoginName(value *string)() + SetOdataType(value *string)() } diff --git a/models/share_point_identity_set.go b/models/share_point_identity_set.go index 4fee3797fd3..0f844591f60 100644 --- a/models/share_point_identity_set.go +++ b/models/share_point_identity_set.go @@ -8,7 +8,7 @@ import ( type SharePointIdentitySet struct { IdentitySet } -// NewSharePointIdentitySet instantiates a new SharePointIdentitySet and sets the default values. +// NewSharePointIdentitySet instantiates a new sharePointIdentitySet and sets the default values. func NewSharePointIdentitySet()(*SharePointIdentitySet) { m := &SharePointIdentitySet{ IdentitySet: *NewIdentitySet(), @@ -34,6 +34,16 @@ func (m *SharePointIdentitySet) GetFieldDeserializers()(map[string]func(i878a80d } 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["siteGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateSharePointIdentityFromDiscriminatorValue) if err != nil { @@ -67,6 +77,17 @@ func (m *SharePointIdentitySet) GetGroup()(Identityable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *SharePointIdentitySet) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSiteGroup gets the siteGroup property value. The SharePoint group associated with this action. Optional. func (m *SharePointIdentitySet) GetSiteGroup()(SharePointIdentityable) { val, err := m.GetBackingStore().Get("siteGroup") @@ -101,6 +122,12 @@ func (m *SharePointIdentitySet) Serialize(writer i878a80d2330e89d26896388a3f487e return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("siteGroup", m.GetSiteGroup()) if err != nil { @@ -122,6 +149,13 @@ func (m *SharePointIdentitySet) SetGroup(value Identityable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *SharePointIdentitySet) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSiteGroup sets the siteGroup property value. The SharePoint group associated with this action. Optional. func (m *SharePointIdentitySet) SetSiteGroup(value SharePointIdentityable)() { err := m.GetBackingStore().Set("siteGroup", value) @@ -141,9 +175,11 @@ type SharePointIdentitySetable interface { IdentitySetable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetGroup()(Identityable) + GetOdataType()(*string) GetSiteGroup()(SharePointIdentityable) GetSiteUser()(SharePointIdentityable) SetGroup(value Identityable)() + SetOdataType(value *string)() SetSiteGroup(value SharePointIdentityable)() SetSiteUser(value SharePointIdentityable)() } diff --git a/models/shared_drive_item.go b/models/shared_drive_item.go index a50b1ca90d9..ffb81778216 100644 --- a/models/shared_drive_item.go +++ b/models/shared_drive_item.go @@ -7,8 +7,10 @@ import ( // SharedDriveItem type SharedDriveItem struct { BaseItem + // The OdataType property + OdataType *string } -// NewSharedDriveItem instantiates a new SharedDriveItem and sets the default values. +// NewSharedDriveItem instantiates a new sharedDriveItem and sets the default values. func NewSharedDriveItem()(*SharedDriveItem) { m := &SharedDriveItem{ BaseItem: *NewBaseItem(), diff --git a/models/shared_drive_item_collection_response.go b/models/shared_drive_item_collection_response.go index e073bbec154..d38f4d4a7d4 100644 --- a/models/shared_drive_item_collection_response.go +++ b/models/shared_drive_item_collection_response.go @@ -8,7 +8,7 @@ import ( type SharedDriveItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSharedDriveItemCollectionResponse instantiates a new SharedDriveItemCollectionResponse and sets the default values. +// NewSharedDriveItemCollectionResponse instantiates a new sharedDriveItemCollectionResponse and sets the default values. func NewSharedDriveItemCollectionResponse()(*SharedDriveItemCollectionResponse) { m := &SharedDriveItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/shared_email_domain.go b/models/shared_email_domain.go index d46457bd2a3..3d297f30f7a 100644 --- a/models/shared_email_domain.go +++ b/models/shared_email_domain.go @@ -7,8 +7,10 @@ import ( // SharedEmailDomain type SharedEmailDomain struct { Entity + // The OdataType property + OdataType *string } -// NewSharedEmailDomain instantiates a new SharedEmailDomain and sets the default values. +// NewSharedEmailDomain instantiates a new sharedEmailDomain and sets the default values. func NewSharedEmailDomain()(*SharedEmailDomain) { m := &SharedEmailDomain{ Entity: *NewEntity(), diff --git a/models/shared_email_domain_collection_response.go b/models/shared_email_domain_collection_response.go index d5f7d198a8f..baf4f158cd8 100644 --- a/models/shared_email_domain_collection_response.go +++ b/models/shared_email_domain_collection_response.go @@ -8,7 +8,7 @@ import ( type SharedEmailDomainCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSharedEmailDomainCollectionResponse instantiates a new SharedEmailDomainCollectionResponse and sets the default values. +// NewSharedEmailDomainCollectionResponse instantiates a new sharedEmailDomainCollectionResponse and sets the default values. func NewSharedEmailDomainCollectionResponse()(*SharedEmailDomainCollectionResponse) { m := &SharedEmailDomainCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/shared_email_domain_invitation.go b/models/shared_email_domain_invitation.go index aea9b88c4a3..a47dced6d80 100644 --- a/models/shared_email_domain_invitation.go +++ b/models/shared_email_domain_invitation.go @@ -8,6 +8,8 @@ import ( // SharedEmailDomainInvitation type SharedEmailDomainInvitation struct { Entity + // The OdataType property + OdataType *string } // NewSharedEmailDomainInvitation instantiates a new sharedEmailDomainInvitation and sets the default values. func NewSharedEmailDomainInvitation()(*SharedEmailDomainInvitation) { diff --git a/models/shared_email_domain_invitation_collection_response.go b/models/shared_email_domain_invitation_collection_response.go index 7e5c0efb475..b8af612b9b6 100644 --- a/models/shared_email_domain_invitation_collection_response.go +++ b/models/shared_email_domain_invitation_collection_response.go @@ -8,7 +8,7 @@ import ( type SharedEmailDomainInvitationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSharedEmailDomainInvitationCollectionResponse instantiates a new SharedEmailDomainInvitationCollectionResponse and sets the default values. +// NewSharedEmailDomainInvitationCollectionResponse instantiates a new sharedEmailDomainInvitationCollectionResponse and sets the default values. func NewSharedEmailDomainInvitationCollectionResponse()(*SharedEmailDomainInvitationCollectionResponse) { m := &SharedEmailDomainInvitationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/shared_insight.go b/models/shared_insight.go index b97d22447fa..c0442332460 100644 --- a/models/shared_insight.go +++ b/models/shared_insight.go @@ -7,6 +7,8 @@ import ( // SharedInsight type SharedInsight struct { Entity + // The OdataType property + OdataType *string } // NewSharedInsight instantiates a new sharedInsight and sets the default values. func NewSharedInsight()(*SharedInsight) { diff --git a/models/shared_insight_collection_response.go b/models/shared_insight_collection_response.go index 8692d197f81..446c667ae9c 100644 --- a/models/shared_insight_collection_response.go +++ b/models/shared_insight_collection_response.go @@ -8,7 +8,7 @@ import ( type SharedInsightCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSharedInsightCollectionResponse instantiates a new SharedInsightCollectionResponse and sets the default values. +// NewSharedInsightCollectionResponse instantiates a new sharedInsightCollectionResponse and sets the default values. func NewSharedInsightCollectionResponse()(*SharedInsightCollectionResponse) { m := &SharedInsightCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/shared_p_c_configuration.go b/models/shared_p_c_configuration.go index 6faf5679e17..11c23b4d3b3 100644 --- a/models/shared_p_c_configuration.go +++ b/models/shared_p_c_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// SharedPCConfiguration +// SharedPCConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the sharedPCConfiguration resource. type SharedPCConfiguration struct { DeviceConfiguration } -// NewSharedPCConfiguration instantiates a new SharedPCConfiguration and sets the default values. +// NewSharedPCConfiguration instantiates a new sharedPCConfiguration and sets the default values. func NewSharedPCConfiguration()(*SharedPCConfiguration) { m := &SharedPCConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/shared_with_channel_team_info.go b/models/shared_with_channel_team_info.go index cc46bd7fd76..69cd4f30fe0 100644 --- a/models/shared_with_channel_team_info.go +++ b/models/shared_with_channel_team_info.go @@ -8,7 +8,7 @@ import ( type SharedWithChannelTeamInfo struct { TeamInfo } -// NewSharedWithChannelTeamInfo instantiates a new SharedWithChannelTeamInfo and sets the default values. +// NewSharedWithChannelTeamInfo instantiates a new sharedWithChannelTeamInfo and sets the default values. func NewSharedWithChannelTeamInfo()(*SharedWithChannelTeamInfo) { m := &SharedWithChannelTeamInfo{ TeamInfo: *NewTeamInfo(), diff --git a/models/shared_with_channel_team_info_collection_response.go b/models/shared_with_channel_team_info_collection_response.go index 048c15239c9..d98155d7c7d 100644 --- a/models/shared_with_channel_team_info_collection_response.go +++ b/models/shared_with_channel_team_info_collection_response.go @@ -8,7 +8,7 @@ import ( type SharedWithChannelTeamInfoCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSharedWithChannelTeamInfoCollectionResponse instantiates a new SharedWithChannelTeamInfoCollectionResponse and sets the default values. +// NewSharedWithChannelTeamInfoCollectionResponse instantiates a new sharedWithChannelTeamInfoCollectionResponse and sets the default values. func NewSharedWithChannelTeamInfoCollectionResponse()(*SharedWithChannelTeamInfoCollectionResponse) { m := &SharedWithChannelTeamInfoCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sharepoint.go b/models/sharepoint.go index deb9ac27794..01317b91953 100644 --- a/models/sharepoint.go +++ b/models/sharepoint.go @@ -7,8 +7,10 @@ import ( // Sharepoint type Sharepoint struct { Entity + // The OdataType property + OdataType *string } -// NewSharepoint instantiates a new Sharepoint and sets the default values. +// NewSharepoint instantiates a new sharepoint and sets the default values. func NewSharepoint()(*Sharepoint) { m := &Sharepoint{ Entity: *NewEntity(), diff --git a/models/sharepoint_settings.go b/models/sharepoint_settings.go index 74a146d1997..78e5a8c319f 100644 --- a/models/sharepoint_settings.go +++ b/models/sharepoint_settings.go @@ -8,6 +8,8 @@ import ( // SharepointSettings type SharepointSettings struct { Entity + // The OdataType property + OdataType *string } // NewSharepointSettings instantiates a new sharepointSettings and sets the default values. func NewSharepointSettings()(*SharepointSettings) { diff --git a/models/shift.go b/models/shift.go index 9e44e422cd4..9f5a90b50c9 100644 --- a/models/shift.go +++ b/models/shift.go @@ -8,7 +8,7 @@ import ( type Shift struct { ChangeTrackedEntity } -// NewShift instantiates a new Shift and sets the default values. +// NewShift instantiates a new shift and sets the default values. func NewShift()(*Shift) { m := &Shift{ ChangeTrackedEntity: *NewChangeTrackedEntity(), diff --git a/models/shift_collection_response.go b/models/shift_collection_response.go index 9a0e1065a9a..c42af9b51f2 100644 --- a/models/shift_collection_response.go +++ b/models/shift_collection_response.go @@ -8,7 +8,7 @@ import ( type ShiftCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewShiftCollectionResponse instantiates a new ShiftCollectionResponse and sets the default values. +// NewShiftCollectionResponse instantiates a new shiftCollectionResponse and sets the default values. func NewShiftCollectionResponse()(*ShiftCollectionResponse) { m := &ShiftCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/shift_item.go b/models/shift_item.go index 6b2fac386df..7fff352a4f5 100644 --- a/models/shift_item.go +++ b/models/shift_item.go @@ -7,8 +7,10 @@ import ( // ShiftItem type ShiftItem struct { ScheduleEntity + // The OdataType property + OdataType *string } -// NewShiftItem instantiates a new ShiftItem and sets the default values. +// NewShiftItem instantiates a new shiftItem and sets the default values. func NewShiftItem()(*ShiftItem) { m := &ShiftItem{ ScheduleEntity: *NewScheduleEntity(), diff --git a/models/shift_preferences.go b/models/shift_preferences.go index fb8d681123c..406de506c82 100644 --- a/models/shift_preferences.go +++ b/models/shift_preferences.go @@ -8,7 +8,7 @@ import ( type ShiftPreferences struct { ChangeTrackedEntity } -// NewShiftPreferences instantiates a new ShiftPreferences and sets the default values. +// NewShiftPreferences instantiates a new shiftPreferences and sets the default values. func NewShiftPreferences()(*ShiftPreferences) { m := &ShiftPreferences{ ChangeTrackedEntity: *NewChangeTrackedEntity(), diff --git a/models/shipment_method_collection_response.go b/models/shipment_method_collection_response.go index 2e37181a7ff..fc4bab329c5 100644 --- a/models/shipment_method_collection_response.go +++ b/models/shipment_method_collection_response.go @@ -8,7 +8,7 @@ import ( type ShipmentMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewShipmentMethodCollectionResponse instantiates a new ShipmentMethodCollectionResponse and sets the default values. +// NewShipmentMethodCollectionResponse instantiates a new shipmentMethodCollectionResponse and sets the default values. func NewShipmentMethodCollectionResponse()(*ShipmentMethodCollectionResponse) { m := &ShipmentMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sign_in.go b/models/sign_in.go index af136b0b291..41533efcab3 100644 --- a/models/sign_in.go +++ b/models/sign_in.go @@ -8,8 +8,10 @@ import ( // SignIn type SignIn struct { Entity + // The OdataType property + OdataType *string } -// NewSignIn instantiates a new SignIn and sets the default values. +// NewSignIn instantiates a new signIn and sets the default values. func NewSignIn()(*SignIn) { m := &SignIn{ Entity: *NewEntity(), diff --git a/models/sign_in_collection_response.go b/models/sign_in_collection_response.go index 690b3792c6f..c6f75dec834 100644 --- a/models/sign_in_collection_response.go +++ b/models/sign_in_collection_response.go @@ -8,7 +8,7 @@ import ( type SignInCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSignInCollectionResponse instantiates a new SignInCollectionResponse and sets the default values. +// NewSignInCollectionResponse instantiates a new signInCollectionResponse and sets the default values. func NewSignInCollectionResponse()(*SignInCollectionResponse) { m := &SignInCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/sign_in_frequency_session_control.go b/models/sign_in_frequency_session_control.go index 4f03d27a8ee..8722a1a578f 100644 --- a/models/sign_in_frequency_session_control.go +++ b/models/sign_in_frequency_session_control.go @@ -8,7 +8,7 @@ import ( type SignInFrequencySessionControl struct { ConditionalAccessSessionControl } -// NewSignInFrequencySessionControl instantiates a new SignInFrequencySessionControl and sets the default values. +// NewSignInFrequencySessionControl instantiates a new signInFrequencySessionControl and sets the default values. func NewSignInFrequencySessionControl()(*SignInFrequencySessionControl) { m := &SignInFrequencySessionControl{ ConditionalAccessSessionControl: *NewConditionalAccessSessionControl(), @@ -55,6 +55,16 @@ func (m *SignInFrequencySessionControl) GetFieldDeserializers()(map[string]func( } 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["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseSigninFrequencyType) if err != nil { @@ -88,6 +98,17 @@ func (m *SignInFrequencySessionControl) GetFrequencyInterval()(*SignInFrequencyI } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *SignInFrequencySessionControl) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetType gets the type property value. Possible values are: days, hours, or null if frequencyInterval is everyTime . func (m *SignInFrequencySessionControl) GetType()(*SigninFrequencyType) { val, err := m.GetBackingStore().Get("typeEscaped") @@ -130,6 +151,12 @@ func (m *SignInFrequencySessionControl) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetType() != nil { cast := (*m.GetType()).String() err = writer.WriteStringValue("type", &cast) @@ -159,6 +186,13 @@ func (m *SignInFrequencySessionControl) SetFrequencyInterval(value *SignInFreque panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *SignInFrequencySessionControl) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetType sets the type property value. Possible values are: days, hours, or null if frequencyInterval is everyTime . func (m *SignInFrequencySessionControl) SetType(value *SigninFrequencyType)() { err := m.GetBackingStore().Set("typeEscaped", value) @@ -179,10 +213,12 @@ type SignInFrequencySessionControlable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAuthenticationType()(*SignInFrequencyAuthenticationType) GetFrequencyInterval()(*SignInFrequencyInterval) + GetOdataType()(*string) GetType()(*SigninFrequencyType) GetValue()(*int32) SetAuthenticationType(value *SignInFrequencyAuthenticationType)() SetFrequencyInterval(value *SignInFrequencyInterval)() + SetOdataType(value *string)() SetType(value *SigninFrequencyType)() SetValue(value *int32)() } diff --git a/models/simulation.go b/models/simulation.go index ed862e668f0..bb41b49cafd 100644 --- a/models/simulation.go +++ b/models/simulation.go @@ -8,6 +8,8 @@ import ( // Simulation type Simulation struct { Entity + // The OdataType property + OdataType *string } // NewSimulation instantiates a new simulation and sets the default values. func NewSimulation()(*Simulation) { diff --git a/models/simulation_automation.go b/models/simulation_automation.go index 0a7240b7b2a..9cd1599fca6 100644 --- a/models/simulation_automation.go +++ b/models/simulation_automation.go @@ -8,6 +8,8 @@ import ( // SimulationAutomation type SimulationAutomation struct { Entity + // The OdataType property + OdataType *string } // NewSimulationAutomation instantiates a new simulationAutomation and sets the default values. func NewSimulationAutomation()(*SimulationAutomation) { diff --git a/models/simulation_automation_collection_response.go b/models/simulation_automation_collection_response.go index ed45917438b..fea826e0df4 100644 --- a/models/simulation_automation_collection_response.go +++ b/models/simulation_automation_collection_response.go @@ -8,7 +8,7 @@ import ( type SimulationAutomationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSimulationAutomationCollectionResponse instantiates a new SimulationAutomationCollectionResponse and sets the default values. +// NewSimulationAutomationCollectionResponse instantiates a new simulationAutomationCollectionResponse and sets the default values. func NewSimulationAutomationCollectionResponse()(*SimulationAutomationCollectionResponse) { m := &SimulationAutomationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/simulation_automation_run.go b/models/simulation_automation_run.go index fd061a7cc3d..ae82ae5da13 100644 --- a/models/simulation_automation_run.go +++ b/models/simulation_automation_run.go @@ -8,6 +8,8 @@ import ( // SimulationAutomationRun type SimulationAutomationRun struct { Entity + // The OdataType property + OdataType *string } // NewSimulationAutomationRun instantiates a new simulationAutomationRun and sets the default values. func NewSimulationAutomationRun()(*SimulationAutomationRun) { diff --git a/models/simulation_automation_run_collection_response.go b/models/simulation_automation_run_collection_response.go index 79eb8021348..5bc9c7eb1b0 100644 --- a/models/simulation_automation_run_collection_response.go +++ b/models/simulation_automation_run_collection_response.go @@ -8,7 +8,7 @@ import ( type SimulationAutomationRunCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSimulationAutomationRunCollectionResponse instantiates a new SimulationAutomationRunCollectionResponse and sets the default values. +// NewSimulationAutomationRunCollectionResponse instantiates a new simulationAutomationRunCollectionResponse and sets the default values. func NewSimulationAutomationRunCollectionResponse()(*SimulationAutomationRunCollectionResponse) { m := &SimulationAutomationRunCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/simulation_collection_response.go b/models/simulation_collection_response.go index df68f107420..3935bede226 100644 --- a/models/simulation_collection_response.go +++ b/models/simulation_collection_response.go @@ -8,7 +8,7 @@ import ( type SimulationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSimulationCollectionResponse instantiates a new SimulationCollectionResponse and sets the default values. +// NewSimulationCollectionResponse instantiates a new simulationCollectionResponse and sets the default values. func NewSimulationCollectionResponse()(*SimulationCollectionResponse) { m := &SimulationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/simulation_notification.go b/models/simulation_notification.go index 36c82b4e0cd..a4308ac2ce7 100644 --- a/models/simulation_notification.go +++ b/models/simulation_notification.go @@ -7,8 +7,10 @@ import ( // SimulationNotification type SimulationNotification struct { BaseEndUserNotification + // The OdataType property + OdataType *string } -// NewSimulationNotification instantiates a new SimulationNotification and sets the default values. +// NewSimulationNotification instantiates a new simulationNotification and sets the default values. func NewSimulationNotification()(*SimulationNotification) { m := &SimulationNotification{ BaseEndUserNotification: *NewBaseEndUserNotification(), diff --git a/models/single_user.go b/models/single_user.go index 4432aee87af..9dbbdc0b708 100644 --- a/models/single_user.go +++ b/models/single_user.go @@ -7,8 +7,10 @@ import ( // SingleUser type SingleUser struct { UserSet + // The OdataType property + OdataType *string } -// NewSingleUser instantiates a new SingleUser and sets the default values. +// NewSingleUser instantiates a new singleUser and sets the default values. func NewSingleUser()(*SingleUser) { m := &SingleUser{ UserSet: *NewUserSet(), diff --git a/models/single_value_legacy_extended_property.go b/models/single_value_legacy_extended_property.go index 09b4be81ee4..f153f387fd8 100644 --- a/models/single_value_legacy_extended_property.go +++ b/models/single_value_legacy_extended_property.go @@ -7,6 +7,8 @@ import ( // SingleValueLegacyExtendedProperty type SingleValueLegacyExtendedProperty struct { Entity + // The OdataType property + OdataType *string } // NewSingleValueLegacyExtendedProperty instantiates a new singleValueLegacyExtendedProperty and sets the default values. func NewSingleValueLegacyExtendedProperty()(*SingleValueLegacyExtendedProperty) { diff --git a/models/site.go b/models/site.go index 87ffc5d5821..5f91c56ace4 100644 --- a/models/site.go +++ b/models/site.go @@ -7,6 +7,8 @@ import ( // Site type Site struct { BaseItem + // The OdataType property + OdataType *string } // NewSite instantiates a new site and sets the default values. func NewSite()(*Site) { diff --git a/models/site_collection_response.go b/models/site_collection_response.go index d20a54abad0..351701dba31 100644 --- a/models/site_collection_response.go +++ b/models/site_collection_response.go @@ -8,7 +8,7 @@ import ( type SiteCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSiteCollectionResponse instantiates a new SiteCollectionResponse and sets the default values. +// NewSiteCollectionResponse instantiates a new siteCollectionResponse and sets the default values. func NewSiteCollectionResponse()(*SiteCollectionResponse) { m := &SiteCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/site_page.go b/models/site_page.go index 60001d5461c..b67b0ed7265 100644 --- a/models/site_page.go +++ b/models/site_page.go @@ -7,6 +7,8 @@ import ( // SitePage type SitePage struct { BaseItem + // The OdataType property + OdataType *string } // NewSitePage instantiates a new sitePage and sets the default values. func NewSitePage()(*SitePage) { diff --git a/models/site_page_collection_response.go b/models/site_page_collection_response.go index 73db6084431..ea345c4f790 100644 --- a/models/site_page_collection_response.go +++ b/models/site_page_collection_response.go @@ -8,7 +8,7 @@ import ( type SitePageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSitePageCollectionResponse instantiates a new SitePageCollectionResponse and sets the default values. +// NewSitePageCollectionResponse instantiates a new sitePageCollectionResponse and sets the default values. func NewSitePageCollectionResponse()(*SitePageCollectionResponse) { m := &SitePageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/skill_proficiency.go b/models/skill_proficiency.go index 30955d56b44..5c139ac91fc 100644 --- a/models/skill_proficiency.go +++ b/models/skill_proficiency.go @@ -8,7 +8,7 @@ import ( type SkillProficiency struct { ItemFacet } -// NewSkillProficiency instantiates a new SkillProficiency and sets the default values. +// NewSkillProficiency instantiates a new skillProficiency and sets the default values. func NewSkillProficiency()(*SkillProficiency) { m := &SkillProficiency{ ItemFacet: *NewItemFacet(), diff --git a/models/skill_proficiency_collection_response.go b/models/skill_proficiency_collection_response.go index 6e84db8e0f9..0e05e828798 100644 --- a/models/skill_proficiency_collection_response.go +++ b/models/skill_proficiency_collection_response.go @@ -8,7 +8,7 @@ import ( type SkillProficiencyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSkillProficiencyCollectionResponse instantiates a new SkillProficiencyCollectionResponse and sets the default values. +// NewSkillProficiencyCollectionResponse instantiates a new skillProficiencyCollectionResponse and sets the default values. func NewSkillProficiencyCollectionResponse()(*SkillProficiencyCollectionResponse) { m := &SkillProficiencyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/skype_for_business_user_conversation_member.go b/models/skype_for_business_user_conversation_member.go index 7f7e4574805..747b4788c32 100644 --- a/models/skype_for_business_user_conversation_member.go +++ b/models/skype_for_business_user_conversation_member.go @@ -8,7 +8,7 @@ import ( type SkypeForBusinessUserConversationMember struct { ConversationMember } -// NewSkypeForBusinessUserConversationMember instantiates a new SkypeForBusinessUserConversationMember and sets the default values. +// NewSkypeForBusinessUserConversationMember instantiates a new skypeForBusinessUserConversationMember and sets the default values. func NewSkypeForBusinessUserConversationMember()(*SkypeForBusinessUserConversationMember) { m := &SkypeForBusinessUserConversationMember{ ConversationMember: *NewConversationMember(), diff --git a/models/skype_user_conversation_member.go b/models/skype_user_conversation_member.go index b8d48efb8e2..9e57218351d 100644 --- a/models/skype_user_conversation_member.go +++ b/models/skype_user_conversation_member.go @@ -8,7 +8,7 @@ import ( type SkypeUserConversationMember struct { ConversationMember } -// NewSkypeUserConversationMember instantiates a new SkypeUserConversationMember and sets the default values. +// NewSkypeUserConversationMember instantiates a new skypeUserConversationMember and sets the default values. func NewSkypeUserConversationMember()(*SkypeUserConversationMember) { m := &SkypeUserConversationMember{ ConversationMember: *NewConversationMember(), diff --git a/models/sms_authentication_method_configuration.go b/models/sms_authentication_method_configuration.go index 6c684fbb82d..50fc3b0c3ff 100644 --- a/models/sms_authentication_method_configuration.go +++ b/models/sms_authentication_method_configuration.go @@ -8,7 +8,7 @@ import ( type SmsAuthenticationMethodConfiguration struct { AuthenticationMethodConfiguration } -// NewSmsAuthenticationMethodConfiguration instantiates a new SmsAuthenticationMethodConfiguration and sets the default values. +// NewSmsAuthenticationMethodConfiguration instantiates a new smsAuthenticationMethodConfiguration and sets the default values. func NewSmsAuthenticationMethodConfiguration()(*SmsAuthenticationMethodConfiguration) { m := &SmsAuthenticationMethodConfiguration{ AuthenticationMethodConfiguration: *NewAuthenticationMethodConfiguration(), diff --git a/models/sms_authentication_method_target.go b/models/sms_authentication_method_target.go index f8eec1fe6a1..289d54bed2c 100644 --- a/models/sms_authentication_method_target.go +++ b/models/sms_authentication_method_target.go @@ -8,7 +8,7 @@ import ( type SmsAuthenticationMethodTarget struct { AuthenticationMethodTarget } -// NewSmsAuthenticationMethodTarget instantiates a new SmsAuthenticationMethodTarget and sets the default values. +// NewSmsAuthenticationMethodTarget instantiates a new smsAuthenticationMethodTarget and sets the default values. func NewSmsAuthenticationMethodTarget()(*SmsAuthenticationMethodTarget) { m := &SmsAuthenticationMethodTarget{ AuthenticationMethodTarget: *NewAuthenticationMethodTarget(), diff --git a/models/social_identity_provider.go b/models/social_identity_provider.go index f47bae1e7f2..bb699fdb8a1 100644 --- a/models/social_identity_provider.go +++ b/models/social_identity_provider.go @@ -8,7 +8,7 @@ import ( type SocialIdentityProvider struct { IdentityProviderBase } -// NewSocialIdentityProvider instantiates a new SocialIdentityProvider and sets the default values. +// NewSocialIdentityProvider instantiates a new socialIdentityProvider and sets the default values. func NewSocialIdentityProvider()(*SocialIdentityProvider) { m := &SocialIdentityProvider{ IdentityProviderBase: *NewIdentityProviderBase(), diff --git a/models/software_oath_authentication_method.go b/models/software_oath_authentication_method.go index d2d3a94faed..8b522c75b5f 100644 --- a/models/software_oath_authentication_method.go +++ b/models/software_oath_authentication_method.go @@ -8,7 +8,7 @@ import ( type SoftwareOathAuthenticationMethod struct { AuthenticationMethod } -// NewSoftwareOathAuthenticationMethod instantiates a new SoftwareOathAuthenticationMethod and sets the default values. +// NewSoftwareOathAuthenticationMethod instantiates a new softwareOathAuthenticationMethod and sets the default values. func NewSoftwareOathAuthenticationMethod()(*SoftwareOathAuthenticationMethod) { m := &SoftwareOathAuthenticationMethod{ AuthenticationMethod: *NewAuthenticationMethod(), diff --git a/models/software_oath_authentication_method_collection_response.go b/models/software_oath_authentication_method_collection_response.go index 8df145239f0..37fdf07e122 100644 --- a/models/software_oath_authentication_method_collection_response.go +++ b/models/software_oath_authentication_method_collection_response.go @@ -8,7 +8,7 @@ import ( type SoftwareOathAuthenticationMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSoftwareOathAuthenticationMethodCollectionResponse instantiates a new SoftwareOathAuthenticationMethodCollectionResponse and sets the default values. +// NewSoftwareOathAuthenticationMethodCollectionResponse instantiates a new softwareOathAuthenticationMethodCollectionResponse and sets the default values. func NewSoftwareOathAuthenticationMethodCollectionResponse()(*SoftwareOathAuthenticationMethodCollectionResponse) { m := &SoftwareOathAuthenticationMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/software_oath_authentication_method_configuration.go b/models/software_oath_authentication_method_configuration.go index 6a36e225aca..55f7068ec47 100644 --- a/models/software_oath_authentication_method_configuration.go +++ b/models/software_oath_authentication_method_configuration.go @@ -8,7 +8,7 @@ import ( type SoftwareOathAuthenticationMethodConfiguration struct { AuthenticationMethodConfiguration } -// NewSoftwareOathAuthenticationMethodConfiguration instantiates a new SoftwareOathAuthenticationMethodConfiguration and sets the default values. +// NewSoftwareOathAuthenticationMethodConfiguration instantiates a new softwareOathAuthenticationMethodConfiguration and sets the default values. func NewSoftwareOathAuthenticationMethodConfiguration()(*SoftwareOathAuthenticationMethodConfiguration) { m := &SoftwareOathAuthenticationMethodConfiguration{ AuthenticationMethodConfiguration: *NewAuthenticationMethodConfiguration(), diff --git a/models/software_update_status_summary.go b/models/software_update_status_summary.go index 2f15cca0f51..3987309d0c4 100644 --- a/models/software_update_status_summary.go +++ b/models/software_update_status_summary.go @@ -7,6 +7,8 @@ import ( // SoftwareUpdateStatusSummary type SoftwareUpdateStatusSummary struct { Entity + // The OdataType property + OdataType *string } // NewSoftwareUpdateStatusSummary instantiates a new softwareUpdateStatusSummary and sets the default values. func NewSoftwareUpdateStatusSummary()(*SoftwareUpdateStatusSummary) { diff --git a/models/solutions_root.go b/models/solutions_root.go index 6bfd99e78cb..5d22b5ae211 100644 --- a/models/solutions_root.go +++ b/models/solutions_root.go @@ -10,7 +10,7 @@ type SolutionsRoot struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSolutionsRoot instantiates a new SolutionsRoot and sets the default values. +// NewSolutionsRoot instantiates a new solutionsRoot and sets the default values. func NewSolutionsRoot()(*SolutionsRoot) { m := &SolutionsRoot{ } diff --git a/models/sort_property.go b/models/sort_property.go index a7dd0f69308..de825ad44cb 100644 --- a/models/sort_property.go +++ b/models/sort_property.go @@ -10,7 +10,7 @@ type SortProperty struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSortProperty instantiates a new SortProperty and sets the default values. +// NewSortProperty instantiates a new sortProperty and sets the default values. func NewSortProperty()(*SortProperty) { m := &SortProperty{ } diff --git a/models/stale_sign_in_alert_configuration.go b/models/stale_sign_in_alert_configuration.go index c1f824ee2eb..d2b61222e9f 100644 --- a/models/stale_sign_in_alert_configuration.go +++ b/models/stale_sign_in_alert_configuration.go @@ -8,7 +8,7 @@ import ( type StaleSignInAlertConfiguration struct { UnifiedRoleManagementAlertConfiguration } -// NewStaleSignInAlertConfiguration instantiates a new StaleSignInAlertConfiguration and sets the default values. +// NewStaleSignInAlertConfiguration instantiates a new staleSignInAlertConfiguration and sets the default values. func NewStaleSignInAlertConfiguration()(*StaleSignInAlertConfiguration) { m := &StaleSignInAlertConfiguration{ UnifiedRoleManagementAlertConfiguration: *NewUnifiedRoleManagementAlertConfiguration(), diff --git a/models/stale_sign_in_alert_incident.go b/models/stale_sign_in_alert_incident.go index 7eea178fdc3..37cf13b9b79 100644 --- a/models/stale_sign_in_alert_incident.go +++ b/models/stale_sign_in_alert_incident.go @@ -9,7 +9,7 @@ import ( type StaleSignInAlertIncident struct { UnifiedRoleManagementAlertIncident } -// NewStaleSignInAlertIncident instantiates a new StaleSignInAlertIncident and sets the default values. +// NewStaleSignInAlertIncident instantiates a new staleSignInAlertIncident and sets the default values. func NewStaleSignInAlertIncident()(*StaleSignInAlertIncident) { m := &StaleSignInAlertIncident{ UnifiedRoleManagementAlertIncident: *NewUnifiedRoleManagementAlertIncident(), diff --git a/models/standard_web_part.go b/models/standard_web_part.go index b43efb35640..e425febd22d 100644 --- a/models/standard_web_part.go +++ b/models/standard_web_part.go @@ -8,7 +8,7 @@ import ( type StandardWebPart struct { WebPart } -// NewStandardWebPart instantiates a new StandardWebPart and sets the default values. +// NewStandardWebPart instantiates a new standardWebPart and sets the default values. func NewStandardWebPart()(*StandardWebPart) { m := &StandardWebPart{ WebPart: *NewWebPart(), @@ -57,7 +57,7 @@ func (m *StandardWebPart) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } -// GetWebPartType gets the webPartType property value. A Guid which indicates the type of the webParts +// GetWebPartType gets the webPartType property value. A Guid that indicates the webPart type. func (m *StandardWebPart) GetWebPartType()(*string) { val, err := m.GetBackingStore().Get("webPartType") if err != nil { @@ -95,7 +95,7 @@ func (m *StandardWebPart) SetData(value WebPartDataable)() { panic(err) } } -// SetWebPartType sets the webPartType property value. A Guid which indicates the type of the webParts +// SetWebPartType sets the webPartType property value. A Guid that indicates the webPart type. func (m *StandardWebPart) SetWebPartType(value *string)() { err := m.GetBackingStore().Set("webPartType", value) if err != nil { diff --git a/models/start_hold_music_operation.go b/models/start_hold_music_operation.go index e51557fdae7..5ebfa3b1294 100644 --- a/models/start_hold_music_operation.go +++ b/models/start_hold_music_operation.go @@ -8,7 +8,7 @@ import ( type StartHoldMusicOperation struct { CommsOperation } -// NewStartHoldMusicOperation instantiates a new StartHoldMusicOperation and sets the default values. +// NewStartHoldMusicOperation instantiates a new startHoldMusicOperation and sets the default values. func NewStartHoldMusicOperation()(*StartHoldMusicOperation) { m := &StartHoldMusicOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/status_details.go b/models/status_details.go index 316655b59bf..f35d12c647a 100644 --- a/models/status_details.go +++ b/models/status_details.go @@ -8,7 +8,7 @@ import ( type StatusDetails struct { StatusBase } -// NewStatusDetails instantiates a new StatusDetails and sets the default values. +// NewStatusDetails instantiates a new statusDetails and sets the default values. func NewStatusDetails()(*StatusDetails) { m := &StatusDetails{ StatusBase: *NewStatusBase(), @@ -87,6 +87,16 @@ func (m *StatusDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } 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["reason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -109,6 +119,17 @@ func (m *StatusDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *StatusDetails) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetReason gets the reason property value. Summarizes the status and describes why the status happened. func (m *StatusDetails) GetReason()(*string) { val, err := m.GetBackingStore().Get("reason") @@ -156,6 +177,12 @@ func (m *StatusDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("reason", m.GetReason()) if err != nil { @@ -191,6 +218,13 @@ func (m *StatusDetails) SetErrorCode(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *StatusDetails) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetReason sets the reason property value. Summarizes the status and describes why the status happened. func (m *StatusDetails) SetReason(value *string)() { err := m.GetBackingStore().Set("reason", value) @@ -212,11 +246,13 @@ type StatusDetailsable interface { GetAdditionalDetails()(*string) GetErrorCategory()(*ProvisioningStatusErrorCategory) GetErrorCode()(*string) + GetOdataType()(*string) GetReason()(*string) GetRecommendedAction()(*string) SetAdditionalDetails(value *string)() SetErrorCategory(value *ProvisioningStatusErrorCategory)() SetErrorCode(value *string)() + SetOdataType(value *string)() SetReason(value *string)() SetRecommendedAction(value *string)() } diff --git a/models/stop_hold_music_operation.go b/models/stop_hold_music_operation.go index 936ce10b8df..cd78b96327e 100644 --- a/models/stop_hold_music_operation.go +++ b/models/stop_hold_music_operation.go @@ -8,7 +8,7 @@ import ( type StopHoldMusicOperation struct { CommsOperation } -// NewStopHoldMusicOperation instantiates a new StopHoldMusicOperation and sets the default values. +// NewStopHoldMusicOperation instantiates a new stopHoldMusicOperation and sets the default values. func NewStopHoldMusicOperation()(*StopHoldMusicOperation) { m := &StopHoldMusicOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/string_key_object_value_pair.go b/models/string_key_object_value_pair.go index 3599a621247..87dd75baeab 100644 --- a/models/string_key_object_value_pair.go +++ b/models/string_key_object_value_pair.go @@ -10,7 +10,7 @@ type StringKeyObjectValuePair struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewStringKeyObjectValuePair instantiates a new StringKeyObjectValuePair and sets the default values. +// NewStringKeyObjectValuePair instantiates a new stringKeyObjectValuePair and sets the default values. func NewStringKeyObjectValuePair()(*StringKeyObjectValuePair) { m := &StringKeyObjectValuePair{ } diff --git a/models/strong_authentication_detail.go b/models/strong_authentication_detail.go index 8ba3d465b15..d613d6a9ad0 100644 --- a/models/strong_authentication_detail.go +++ b/models/strong_authentication_detail.go @@ -7,8 +7,10 @@ import ( // StrongAuthenticationDetail type StrongAuthenticationDetail struct { Entity + // The OdataType property + OdataType *string } -// NewStrongAuthenticationDetail instantiates a new StrongAuthenticationDetail and sets the default values. +// NewStrongAuthenticationDetail instantiates a new strongAuthenticationDetail and sets the default values. func NewStrongAuthenticationDetail()(*StrongAuthenticationDetail) { m := &StrongAuthenticationDetail{ Entity: *NewEntity(), diff --git a/models/strong_authentication_phone_app_detail.go b/models/strong_authentication_phone_app_detail.go index 5f3e71c4cd1..7366ab49d24 100644 --- a/models/strong_authentication_phone_app_detail.go +++ b/models/strong_authentication_phone_app_detail.go @@ -9,8 +9,10 @@ import ( // StrongAuthenticationPhoneAppDetail type StrongAuthenticationPhoneAppDetail struct { Entity + // The OdataType property + OdataType *string } -// NewStrongAuthenticationPhoneAppDetail instantiates a new StrongAuthenticationPhoneAppDetail and sets the default values. +// NewStrongAuthenticationPhoneAppDetail instantiates a new strongAuthenticationPhoneAppDetail and sets the default values. func NewStrongAuthenticationPhoneAppDetail()(*StrongAuthenticationPhoneAppDetail) { m := &StrongAuthenticationPhoneAppDetail{ Entity: *NewEntity(), diff --git a/models/sts_policy.go b/models/sts_policy.go index 925cd53d825..d7fa4ccf667 100644 --- a/models/sts_policy.go +++ b/models/sts_policy.go @@ -8,7 +8,7 @@ import ( type StsPolicy struct { PolicyBase } -// NewStsPolicy instantiates a new StsPolicy and sets the default values. +// NewStsPolicy instantiates a new stsPolicy and sets the default values. func NewStsPolicy()(*StsPolicy) { m := &StsPolicy{ PolicyBase: *NewPolicyBase(), diff --git a/models/subject_rights_request.go b/models/subject_rights_request.go index bbcd55f1227..6fb7a126795 100644 --- a/models/subject_rights_request.go +++ b/models/subject_rights_request.go @@ -8,8 +8,10 @@ import ( // SubjectRightsRequest type SubjectRightsRequest struct { Entity + // The OdataType property + OdataType *string } -// NewSubjectRightsRequest instantiates a new SubjectRightsRequest and sets the default values. +// NewSubjectRightsRequest instantiates a new subjectRightsRequest and sets the default values. func NewSubjectRightsRequest()(*SubjectRightsRequest) { m := &SubjectRightsRequest{ Entity: *NewEntity(), diff --git a/models/subject_rights_request_all_mailbox_location.go b/models/subject_rights_request_all_mailbox_location.go index 363b6fd24a6..6ee67fdece5 100644 --- a/models/subject_rights_request_all_mailbox_location.go +++ b/models/subject_rights_request_all_mailbox_location.go @@ -7,8 +7,10 @@ import ( // SubjectRightsRequestAllMailboxLocation type SubjectRightsRequestAllMailboxLocation struct { SubjectRightsRequestMailboxLocation + // The OdataType property + OdataType *string } -// NewSubjectRightsRequestAllMailboxLocation instantiates a new SubjectRightsRequestAllMailboxLocation and sets the default values. +// NewSubjectRightsRequestAllMailboxLocation instantiates a new subjectRightsRequestAllMailboxLocation and sets the default values. func NewSubjectRightsRequestAllMailboxLocation()(*SubjectRightsRequestAllMailboxLocation) { m := &SubjectRightsRequestAllMailboxLocation{ SubjectRightsRequestMailboxLocation: *NewSubjectRightsRequestMailboxLocation(), diff --git a/models/subject_rights_request_all_site_location.go b/models/subject_rights_request_all_site_location.go index fd0269671e7..28ba0e54450 100644 --- a/models/subject_rights_request_all_site_location.go +++ b/models/subject_rights_request_all_site_location.go @@ -7,8 +7,10 @@ import ( // SubjectRightsRequestAllSiteLocation type SubjectRightsRequestAllSiteLocation struct { SubjectRightsRequestSiteLocation + // The OdataType property + OdataType *string } -// NewSubjectRightsRequestAllSiteLocation instantiates a new SubjectRightsRequestAllSiteLocation and sets the default values. +// NewSubjectRightsRequestAllSiteLocation instantiates a new subjectRightsRequestAllSiteLocation and sets the default values. func NewSubjectRightsRequestAllSiteLocation()(*SubjectRightsRequestAllSiteLocation) { m := &SubjectRightsRequestAllSiteLocation{ SubjectRightsRequestSiteLocation: *NewSubjectRightsRequestSiteLocation(), diff --git a/models/subject_rights_request_collection_response.go b/models/subject_rights_request_collection_response.go index de5151b4f09..423c7deb8a6 100644 --- a/models/subject_rights_request_collection_response.go +++ b/models/subject_rights_request_collection_response.go @@ -8,7 +8,7 @@ import ( type SubjectRightsRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSubjectRightsRequestCollectionResponse instantiates a new SubjectRightsRequestCollectionResponse and sets the default values. +// NewSubjectRightsRequestCollectionResponse instantiates a new subjectRightsRequestCollectionResponse and sets the default values. func NewSubjectRightsRequestCollectionResponse()(*SubjectRightsRequestCollectionResponse) { m := &SubjectRightsRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/subject_rights_request_enumerated_mailbox_location.go b/models/subject_rights_request_enumerated_mailbox_location.go index 23145a11051..d785c14f7d4 100644 --- a/models/subject_rights_request_enumerated_mailbox_location.go +++ b/models/subject_rights_request_enumerated_mailbox_location.go @@ -7,8 +7,10 @@ import ( // SubjectRightsRequestEnumeratedMailboxLocation type SubjectRightsRequestEnumeratedMailboxLocation struct { SubjectRightsRequestMailboxLocation + // The OdataType property + OdataType *string } -// NewSubjectRightsRequestEnumeratedMailboxLocation instantiates a new SubjectRightsRequestEnumeratedMailboxLocation and sets the default values. +// NewSubjectRightsRequestEnumeratedMailboxLocation instantiates a new subjectRightsRequestEnumeratedMailboxLocation and sets the default values. func NewSubjectRightsRequestEnumeratedMailboxLocation()(*SubjectRightsRequestEnumeratedMailboxLocation) { m := &SubjectRightsRequestEnumeratedMailboxLocation{ SubjectRightsRequestMailboxLocation: *NewSubjectRightsRequestMailboxLocation(), diff --git a/models/subject_rights_request_enumerated_site_location.go b/models/subject_rights_request_enumerated_site_location.go index 8869e400e66..e7fcca21322 100644 --- a/models/subject_rights_request_enumerated_site_location.go +++ b/models/subject_rights_request_enumerated_site_location.go @@ -8,7 +8,7 @@ import ( type SubjectRightsRequestEnumeratedSiteLocation struct { SubjectRightsRequestSiteLocation } -// NewSubjectRightsRequestEnumeratedSiteLocation instantiates a new SubjectRightsRequestEnumeratedSiteLocation and sets the default values. +// NewSubjectRightsRequestEnumeratedSiteLocation instantiates a new subjectRightsRequestEnumeratedSiteLocation and sets the default values. func NewSubjectRightsRequestEnumeratedSiteLocation()(*SubjectRightsRequestEnumeratedSiteLocation) { m := &SubjectRightsRequestEnumeratedSiteLocation{ SubjectRightsRequestSiteLocation: *NewSubjectRightsRequestSiteLocation(), @@ -24,6 +24,16 @@ func CreateSubjectRightsRequestEnumeratedSiteLocationFromDiscriminatorValue(pars // GetFieldDeserializers the deserialization information for the current model func (m *SubjectRightsRequestEnumeratedSiteLocation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.SubjectRightsRequestSiteLocation.GetFieldDeserializers() + 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["urls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -42,6 +52,17 @@ func (m *SubjectRightsRequestEnumeratedSiteLocation) GetFieldDeserializers()(map } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *SubjectRightsRequestEnumeratedSiteLocation) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUrls gets the urls property value. Collection of site URLs that should be included. Includes the URL of each site, for example, https://www.contoso.com/site1. func (m *SubjectRightsRequestEnumeratedSiteLocation) GetUrls()([]string) { val, err := m.GetBackingStore().Get("urls") @@ -59,6 +80,12 @@ func (m *SubjectRightsRequestEnumeratedSiteLocation) Serialize(writer i878a80d23 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetUrls() != nil { err = writer.WriteCollectionOfStringValues("urls", m.GetUrls()) if err != nil { @@ -67,6 +94,13 @@ func (m *SubjectRightsRequestEnumeratedSiteLocation) Serialize(writer i878a80d23 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *SubjectRightsRequestEnumeratedSiteLocation) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUrls sets the urls property value. Collection of site URLs that should be included. Includes the URL of each site, for example, https://www.contoso.com/site1. func (m *SubjectRightsRequestEnumeratedSiteLocation) SetUrls(value []string)() { err := m.GetBackingStore().Set("urls", value) @@ -78,6 +112,8 @@ func (m *SubjectRightsRequestEnumeratedSiteLocation) SetUrls(value []string)() { type SubjectRightsRequestEnumeratedSiteLocationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable SubjectRightsRequestSiteLocationable + GetOdataType()(*string) GetUrls()([]string) + SetOdataType(value *string)() SetUrls(value []string)() } diff --git a/models/subscribe_to_tone_operation.go b/models/subscribe_to_tone_operation.go index e7a7a68b703..5ad2c72345d 100644 --- a/models/subscribe_to_tone_operation.go +++ b/models/subscribe_to_tone_operation.go @@ -8,7 +8,7 @@ import ( type SubscribeToToneOperation struct { CommsOperation } -// NewSubscribeToToneOperation instantiates a new SubscribeToToneOperation and sets the default values. +// NewSubscribeToToneOperation instantiates a new subscribeToToneOperation and sets the default values. func NewSubscribeToToneOperation()(*SubscribeToToneOperation) { m := &SubscribeToToneOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/subscribed_sku.go b/models/subscribed_sku.go index fe37fd81da7..4d3fc466a13 100644 --- a/models/subscribed_sku.go +++ b/models/subscribed_sku.go @@ -8,6 +8,8 @@ import ( // SubscribedSku type SubscribedSku struct { Entity + // The OdataType property + OdataType *string } // NewSubscribedSku instantiates a new subscribedSku and sets the default values. func NewSubscribedSku()(*SubscribedSku) { diff --git a/models/subscribed_sku_collection_response.go b/models/subscribed_sku_collection_response.go index db28e3e628e..3a55026e697 100644 --- a/models/subscribed_sku_collection_response.go +++ b/models/subscribed_sku_collection_response.go @@ -8,7 +8,7 @@ import ( type SubscribedSkuCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSubscribedSkuCollectionResponse instantiates a new SubscribedSkuCollectionResponse and sets the default values. +// NewSubscribedSkuCollectionResponse instantiates a new subscribedSkuCollectionResponse and sets the default values. func NewSubscribedSkuCollectionResponse()(*SubscribedSkuCollectionResponse) { m := &SubscribedSkuCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/subscription.go b/models/subscription.go index 94de32db1d6..8769a4fa68e 100644 --- a/models/subscription.go +++ b/models/subscription.go @@ -8,6 +8,8 @@ import ( // Subscription type Subscription struct { Entity + // The OdataType property + OdataType *string } // NewSubscription instantiates a new subscription and sets the default values. func NewSubscription()(*Subscription) { diff --git a/models/subscription_collection_response.go b/models/subscription_collection_response.go index e2c9af41a0b..9a23bb64456 100644 --- a/models/subscription_collection_response.go +++ b/models/subscription_collection_response.go @@ -8,7 +8,7 @@ import ( type SubscriptionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSubscriptionCollectionResponse instantiates a new SubscriptionCollectionResponse and sets the default values. +// NewSubscriptionCollectionResponse instantiates a new subscriptionCollectionResponse and sets the default values. func NewSubscriptionCollectionResponse()(*SubscriptionCollectionResponse) { m := &SubscriptionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/swap_shifts_change_request.go b/models/swap_shifts_change_request.go index e01662d703b..5ec2f2189c8 100644 --- a/models/swap_shifts_change_request.go +++ b/models/swap_shifts_change_request.go @@ -8,7 +8,7 @@ import ( type SwapShiftsChangeRequest struct { OfferShiftRequest } -// NewSwapShiftsChangeRequest instantiates a new SwapShiftsChangeRequest and sets the default values. +// NewSwapShiftsChangeRequest instantiates a new swapShiftsChangeRequest and sets the default values. func NewSwapShiftsChangeRequest()(*SwapShiftsChangeRequest) { m := &SwapShiftsChangeRequest{ OfferShiftRequest: *NewOfferShiftRequest(), diff --git a/models/swap_shifts_change_request_collection_response.go b/models/swap_shifts_change_request_collection_response.go index 41a858490a3..9eca7a176c9 100644 --- a/models/swap_shifts_change_request_collection_response.go +++ b/models/swap_shifts_change_request_collection_response.go @@ -8,7 +8,7 @@ import ( type SwapShiftsChangeRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSwapShiftsChangeRequestCollectionResponse instantiates a new SwapShiftsChangeRequestCollectionResponse and sets the default values. +// NewSwapShiftsChangeRequestCollectionResponse instantiates a new swapShiftsChangeRequestCollectionResponse and sets the default values. func NewSwapShiftsChangeRequestCollectionResponse()(*SwapShiftsChangeRequestCollectionResponse) { m := &SwapShiftsChangeRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/symantec_code_signing_certificate.go b/models/symantec_code_signing_certificate.go index 256fa12facc..332369f5288 100644 --- a/models/symantec_code_signing_certificate.go +++ b/models/symantec_code_signing_certificate.go @@ -8,6 +8,8 @@ import ( // SymantecCodeSigningCertificate type SymantecCodeSigningCertificate struct { Entity + // The OdataType property + OdataType *string } // NewSymantecCodeSigningCertificate instantiates a new symantecCodeSigningCertificate and sets the default values. func NewSymantecCodeSigningCertificate()(*SymantecCodeSigningCertificate) { diff --git a/models/synchronization.go b/models/synchronization.go index 0c5ee572c9d..9f9a1be5a6d 100644 --- a/models/synchronization.go +++ b/models/synchronization.go @@ -7,6 +7,8 @@ import ( // Synchronization type Synchronization struct { Entity + // The OdataType property + OdataType *string } // NewSynchronization instantiates a new synchronization and sets the default values. func NewSynchronization()(*Synchronization) { diff --git a/models/synchronization_job.go b/models/synchronization_job.go index 92dd51da881..cf822c70352 100644 --- a/models/synchronization_job.go +++ b/models/synchronization_job.go @@ -7,6 +7,8 @@ import ( // SynchronizationJob type SynchronizationJob struct { Entity + // The OdataType property + OdataType *string } // NewSynchronizationJob instantiates a new synchronizationJob and sets the default values. func NewSynchronizationJob()(*SynchronizationJob) { @@ -19,9 +21,30 @@ func NewSynchronizationJob()(*SynchronizationJob) { func CreateSynchronizationJobFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewSynchronizationJob(), nil } +// GetBulkUpload gets the bulkUpload property value. The bulk upload operation for the job. +func (m *SynchronizationJob) GetBulkUpload()(BulkUploadable) { + val, err := m.GetBackingStore().Get("bulkUpload") + if err != nil { + panic(err) + } + if val != nil { + return val.(BulkUploadable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model func (m *SynchronizationJob) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + res["bulkUpload"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateBulkUploadFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBulkUpload(val.(BulkUploadable)) + } + return nil + } res["schedule"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateSynchronizationScheduleFromDiscriminatorValue) if err != nil { @@ -141,6 +164,12 @@ func (m *SynchronizationJob) Serialize(writer i878a80d2330e89d26896388a3f487eef2 if err != nil { return err } + { + err = writer.WriteObjectValue("bulkUpload", m.GetBulkUpload()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("schedule", m.GetSchedule()) if err != nil { @@ -179,6 +208,13 @@ func (m *SynchronizationJob) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } +// SetBulkUpload sets the bulkUpload property value. The bulk upload operation for the job. +func (m *SynchronizationJob) SetBulkUpload(value BulkUploadable)() { + err := m.GetBackingStore().Set("bulkUpload", value) + if err != nil { + panic(err) + } +} // SetSchedule sets the schedule property value. Schedule used to run the job. Read-only. func (m *SynchronizationJob) SetSchedule(value SynchronizationScheduleable)() { err := m.GetBackingStore().Set("schedule", value) @@ -218,11 +254,13 @@ func (m *SynchronizationJob) SetTemplateId(value *string)() { type SynchronizationJobable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBulkUpload()(BulkUploadable) GetSchedule()(SynchronizationScheduleable) GetSchema()(SynchronizationSchemaable) GetStatus()(SynchronizationStatusable) GetSynchronizationJobSettings()([]KeyValuePairable) GetTemplateId()(*string) + SetBulkUpload(value BulkUploadable)() SetSchedule(value SynchronizationScheduleable)() SetSchema(value SynchronizationSchemaable)() SetStatus(value SynchronizationStatusable)() diff --git a/models/synchronization_job_collection_response.go b/models/synchronization_job_collection_response.go index 61112c62648..46a31ff223d 100644 --- a/models/synchronization_job_collection_response.go +++ b/models/synchronization_job_collection_response.go @@ -8,7 +8,7 @@ import ( type SynchronizationJobCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSynchronizationJobCollectionResponse instantiates a new SynchronizationJobCollectionResponse and sets the default values. +// NewSynchronizationJobCollectionResponse instantiates a new synchronizationJobCollectionResponse and sets the default values. func NewSynchronizationJobCollectionResponse()(*SynchronizationJobCollectionResponse) { m := &SynchronizationJobCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/synchronization_job_subject.go b/models/synchronization_job_subject.go index 4f96ecc627c..8fda266c4b1 100644 --- a/models/synchronization_job_subject.go +++ b/models/synchronization_job_subject.go @@ -10,7 +10,7 @@ type SynchronizationJobSubject struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewSynchronizationJobSubject instantiates a new SynchronizationJobSubject and sets the default values. +// NewSynchronizationJobSubject instantiates a new synchronizationJobSubject and sets the default values. func NewSynchronizationJobSubject()(*SynchronizationJobSubject) { m := &SynchronizationJobSubject{ } diff --git a/models/synchronization_schema.go b/models/synchronization_schema.go index 62f497b03b0..374e52f80ee 100644 --- a/models/synchronization_schema.go +++ b/models/synchronization_schema.go @@ -7,6 +7,8 @@ import ( // SynchronizationSchema type SynchronizationSchema struct { Entity + // The OdataType property + OdataType *string } // NewSynchronizationSchema instantiates a new synchronizationSchema and sets the default values. func NewSynchronizationSchema()(*SynchronizationSchema) { diff --git a/models/synchronization_template.go b/models/synchronization_template.go index 0e882554373..c006a2028cb 100644 --- a/models/synchronization_template.go +++ b/models/synchronization_template.go @@ -8,6 +8,8 @@ import ( // SynchronizationTemplate type SynchronizationTemplate struct { Entity + // The OdataType property + OdataType *string } // NewSynchronizationTemplate instantiates a new synchronizationTemplate and sets the default values. func NewSynchronizationTemplate()(*SynchronizationTemplate) { diff --git a/models/synchronization_template_collection_response.go b/models/synchronization_template_collection_response.go index 58901b9b33f..ec641a69647 100644 --- a/models/synchronization_template_collection_response.go +++ b/models/synchronization_template_collection_response.go @@ -8,7 +8,7 @@ import ( type SynchronizationTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewSynchronizationTemplateCollectionResponse instantiates a new SynchronizationTemplateCollectionResponse and sets the default values. +// NewSynchronizationTemplateCollectionResponse instantiates a new synchronizationTemplateCollectionResponse and sets the default values. func NewSynchronizationTemplateCollectionResponse()(*SynchronizationTemplateCollectionResponse) { m := &SynchronizationTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/tab_updated_event_message_detail.go b/models/tab_updated_event_message_detail.go index e0660c9b541..6cdb2b1fae2 100644 --- a/models/tab_updated_event_message_detail.go +++ b/models/tab_updated_event_message_detail.go @@ -8,7 +8,7 @@ import ( type TabUpdatedEventMessageDetail struct { EventMessageDetail } -// NewTabUpdatedEventMessageDetail instantiates a new TabUpdatedEventMessageDetail and sets the default values. +// NewTabUpdatedEventMessageDetail instantiates a new tabUpdatedEventMessageDetail and sets the default values. func NewTabUpdatedEventMessageDetail()(*TabUpdatedEventMessageDetail) { m := &TabUpdatedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -34,6 +34,16 @@ func (m *TabUpdatedEventMessageDetail) GetFieldDeserializers()(map[string]func(i } 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["tabId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -57,6 +67,17 @@ func (m *TabUpdatedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TabUpdatedEventMessageDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTabId gets the tabId property value. Unique identifier of the tab. func (m *TabUpdatedEventMessageDetail) GetTabId()(*string) { val, err := m.GetBackingStore().Get("tabId") @@ -80,6 +101,12 @@ func (m *TabUpdatedEventMessageDetail) Serialize(writer i878a80d2330e89d26896388 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("tabId", m.GetTabId()) if err != nil { @@ -95,6 +122,13 @@ func (m *TabUpdatedEventMessageDetail) SetInitiator(value IdentitySetable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TabUpdatedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTabId sets the tabId property value. Unique identifier of the tab. func (m *TabUpdatedEventMessageDetail) SetTabId(value *string)() { err := m.GetBackingStore().Set("tabId", value) @@ -107,7 +141,9 @@ type TabUpdatedEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) + GetOdataType()(*string) GetTabId()(*string) SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() SetTabId(value *string)() } diff --git a/models/target_user_sponsors.go b/models/target_user_sponsors.go new file mode 100644 index 00000000000..beb10b68414 --- /dev/null +++ b/models/target_user_sponsors.go @@ -0,0 +1,43 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// TargetUserSponsors +type TargetUserSponsors struct { + UserSet + // The OdataType property + OdataType *string +} +// NewTargetUserSponsors instantiates a new targetUserSponsors and sets the default values. +func NewTargetUserSponsors()(*TargetUserSponsors) { + m := &TargetUserSponsors{ + UserSet: *NewUserSet(), + } + odataTypeValue := "#microsoft.graph.targetUserSponsors" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateTargetUserSponsorsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateTargetUserSponsorsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTargetUserSponsors(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *TargetUserSponsors) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.UserSet.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *TargetUserSponsors) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.UserSet.Serialize(writer) + if err != nil { + return err + } + return nil +} +// TargetUserSponsorsable +type TargetUserSponsorsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + UserSetable +} diff --git a/models/targeted_managed_app_configuration.go b/models/targeted_managed_app_configuration.go index 8e60bdcff6b..d13f31ba9f4 100644 --- a/models/targeted_managed_app_configuration.go +++ b/models/targeted_managed_app_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// TargetedManagedAppConfiguration +// TargetedManagedAppConfiguration configuration used to deliver a set of custom settings as-is to all users in the targeted security group type TargetedManagedAppConfiguration struct { ManagedAppConfiguration } -// NewTargetedManagedAppConfiguration instantiates a new TargetedManagedAppConfiguration and sets the default values. +// NewTargetedManagedAppConfiguration instantiates a new targetedManagedAppConfiguration and sets the default values. func NewTargetedManagedAppConfiguration()(*TargetedManagedAppConfiguration) { m := &TargetedManagedAppConfiguration{ ManagedAppConfiguration: *NewManagedAppConfiguration(), diff --git a/models/targeted_managed_app_configuration_collection_response.go b/models/targeted_managed_app_configuration_collection_response.go index 7020a299c51..f15f593e720 100644 --- a/models/targeted_managed_app_configuration_collection_response.go +++ b/models/targeted_managed_app_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type TargetedManagedAppConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTargetedManagedAppConfigurationCollectionResponse instantiates a new TargetedManagedAppConfigurationCollectionResponse and sets the default values. +// NewTargetedManagedAppConfigurationCollectionResponse instantiates a new targetedManagedAppConfigurationCollectionResponse and sets the default values. func NewTargetedManagedAppConfigurationCollectionResponse()(*TargetedManagedAppConfigurationCollectionResponse) { m := &TargetedManagedAppConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/targeted_managed_app_configuration_policy_set_item.go b/models/targeted_managed_app_configuration_policy_set_item.go index 6a9292b1f7b..3c17ebaa11e 100644 --- a/models/targeted_managed_app_configuration_policy_set_item.go +++ b/models/targeted_managed_app_configuration_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// TargetedManagedAppConfigurationPolicySetItem +// TargetedManagedAppConfigurationPolicySetItem a class containing the properties used for Targeted managed app configuration PolicySetItem. type TargetedManagedAppConfigurationPolicySetItem struct { PolicySetItem } -// NewTargetedManagedAppConfigurationPolicySetItem instantiates a new TargetedManagedAppConfigurationPolicySetItem and sets the default values. +// NewTargetedManagedAppConfigurationPolicySetItem instantiates a new targetedManagedAppConfigurationPolicySetItem and sets the default values. func NewTargetedManagedAppConfigurationPolicySetItem()(*TargetedManagedAppConfigurationPolicySetItem) { m := &TargetedManagedAppConfigurationPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/targeted_managed_app_policy_assignment.go b/models/targeted_managed_app_policy_assignment.go index 4457ffc4f5b..cbea496d703 100644 --- a/models/targeted_managed_app_policy_assignment.go +++ b/models/targeted_managed_app_policy_assignment.go @@ -7,6 +7,8 @@ import ( // TargetedManagedAppPolicyAssignment the type for deployment of groups or apps. type TargetedManagedAppPolicyAssignment struct { Entity + // The OdataType property + OdataType *string } // NewTargetedManagedAppPolicyAssignment instantiates a new targetedManagedAppPolicyAssignment and sets the default values. func NewTargetedManagedAppPolicyAssignment()(*TargetedManagedAppPolicyAssignment) { diff --git a/models/targeted_managed_app_policy_assignment_collection_response.go b/models/targeted_managed_app_policy_assignment_collection_response.go index b6bbc948063..b138e171ca0 100644 --- a/models/targeted_managed_app_policy_assignment_collection_response.go +++ b/models/targeted_managed_app_policy_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type TargetedManagedAppPolicyAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTargetedManagedAppPolicyAssignmentCollectionResponse instantiates a new TargetedManagedAppPolicyAssignmentCollectionResponse and sets the default values. +// NewTargetedManagedAppPolicyAssignmentCollectionResponse instantiates a new targetedManagedAppPolicyAssignmentCollectionResponse and sets the default values. func NewTargetedManagedAppPolicyAssignmentCollectionResponse()(*TargetedManagedAppPolicyAssignmentCollectionResponse) { m := &TargetedManagedAppPolicyAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/targeted_managed_app_protection.go b/models/targeted_managed_app_protection.go index e7b5be064ca..e44ad2fdb05 100644 --- a/models/targeted_managed_app_protection.go +++ b/models/targeted_managed_app_protection.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// TargetedManagedAppProtection +// TargetedManagedAppProtection policy used to configure detailed management settings targeted to specific security groups type TargetedManagedAppProtection struct { ManagedAppProtection } -// NewTargetedManagedAppProtection instantiates a new TargetedManagedAppProtection and sets the default values. +// NewTargetedManagedAppProtection instantiates a new targetedManagedAppProtection and sets the default values. func NewTargetedManagedAppProtection()(*TargetedManagedAppProtection) { m := &TargetedManagedAppProtection{ ManagedAppProtection: *NewManagedAppProtection(), diff --git a/models/task_file_attachment.go b/models/task_file_attachment.go index 4d71fd2bc08..028fa23bd3e 100644 --- a/models/task_file_attachment.go +++ b/models/task_file_attachment.go @@ -7,8 +7,10 @@ import ( // TaskFileAttachment type TaskFileAttachment struct { AttachmentBase + // The OdataType property + OdataType *string } -// NewTaskFileAttachment instantiates a new TaskFileAttachment and sets the default values. +// NewTaskFileAttachment instantiates a new taskFileAttachment and sets the default values. func NewTaskFileAttachment()(*TaskFileAttachment) { m := &TaskFileAttachment{ AttachmentBase: *NewAttachmentBase(), diff --git a/models/tax_area.go b/models/tax_area.go index c62060eb383..aa99e289ca9 100644 --- a/models/tax_area.go +++ b/models/tax_area.go @@ -12,7 +12,7 @@ type TaxArea struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTaxArea instantiates a new TaxArea and sets the default values. +// NewTaxArea instantiates a new taxArea and sets the default values. func NewTaxArea()(*TaxArea) { m := &TaxArea{ } diff --git a/models/tax_area_collection_response.go b/models/tax_area_collection_response.go index 570c2d3daa2..cef6bac3d1e 100644 --- a/models/tax_area_collection_response.go +++ b/models/tax_area_collection_response.go @@ -8,7 +8,7 @@ import ( type TaxAreaCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTaxAreaCollectionResponse instantiates a new TaxAreaCollectionResponse and sets the default values. +// NewTaxAreaCollectionResponse instantiates a new taxAreaCollectionResponse and sets the default values. func NewTaxAreaCollectionResponse()(*TaxAreaCollectionResponse) { m := &TaxAreaCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/tax_group.go b/models/tax_group.go index 2293db0a763..0f6dbe10d49 100644 --- a/models/tax_group.go +++ b/models/tax_group.go @@ -8,8 +8,10 @@ import ( // TaxGroup type TaxGroup struct { Entity + // The OdataType property + OdataType *string } -// NewTaxGroup instantiates a new TaxGroup and sets the default values. +// NewTaxGroup instantiates a new taxGroup and sets the default values. func NewTaxGroup()(*TaxGroup) { m := &TaxGroup{ Entity: *NewEntity(), diff --git a/models/tax_group_collection_response.go b/models/tax_group_collection_response.go index 9f0e7513274..b143b4bdf18 100644 --- a/models/tax_group_collection_response.go +++ b/models/tax_group_collection_response.go @@ -8,7 +8,7 @@ import ( type TaxGroupCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTaxGroupCollectionResponse instantiates a new TaxGroupCollectionResponse and sets the default values. +// NewTaxGroupCollectionResponse instantiates a new taxGroupCollectionResponse and sets the default values. func NewTaxGroupCollectionResponse()(*TaxGroupCollectionResponse) { m := &TaxGroupCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/team.go b/models/team.go index e690a33525f..5d3b40046ea 100644 --- a/models/team.go +++ b/models/team.go @@ -8,6 +8,8 @@ import ( // Team type Team struct { Entity + // The OdataType property + OdataType *string } // NewTeam instantiates a new team and sets the default values. func NewTeam()(*Team) { diff --git a/models/team_archived_event_message_detail.go b/models/team_archived_event_message_detail.go index 63f1dd424cd..8abb458c3af 100644 --- a/models/team_archived_event_message_detail.go +++ b/models/team_archived_event_message_detail.go @@ -8,7 +8,7 @@ import ( type TeamArchivedEventMessageDetail struct { EventMessageDetail } -// NewTeamArchivedEventMessageDetail instantiates a new TeamArchivedEventMessageDetail and sets the default values. +// NewTeamArchivedEventMessageDetail instantiates a new teamArchivedEventMessageDetail and sets the default values. func NewTeamArchivedEventMessageDetail()(*TeamArchivedEventMessageDetail) { m := &TeamArchivedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -34,6 +34,16 @@ func (m *TeamArchivedEventMessageDetail) GetFieldDeserializers()(map[string]func } 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["teamId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -57,6 +67,17 @@ func (m *TeamArchivedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TeamArchivedEventMessageDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTeamId gets the teamId property value. Unique identifier of the team. func (m *TeamArchivedEventMessageDetail) GetTeamId()(*string) { val, err := m.GetBackingStore().Get("teamId") @@ -80,6 +101,12 @@ func (m *TeamArchivedEventMessageDetail) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("teamId", m.GetTeamId()) if err != nil { @@ -95,6 +122,13 @@ func (m *TeamArchivedEventMessageDetail) SetInitiator(value IdentitySetable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamArchivedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTeamId sets the teamId property value. Unique identifier of the team. func (m *TeamArchivedEventMessageDetail) SetTeamId(value *string)() { err := m.GetBackingStore().Set("teamId", value) @@ -107,7 +141,9 @@ type TeamArchivedEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) + GetOdataType()(*string) GetTeamId()(*string) SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() SetTeamId(value *string)() } diff --git a/models/team_collection_response.go b/models/team_collection_response.go index 8bd3731a14d..07719b62abe 100644 --- a/models/team_collection_response.go +++ b/models/team_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamCollectionResponse instantiates a new TeamCollectionResponse and sets the default values. +// NewTeamCollectionResponse instantiates a new teamCollectionResponse and sets the default values. func NewTeamCollectionResponse()(*TeamCollectionResponse) { m := &TeamCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/team_created_event_message_detail.go b/models/team_created_event_message_detail.go index d0a5d34a79b..8dfda201180 100644 --- a/models/team_created_event_message_detail.go +++ b/models/team_created_event_message_detail.go @@ -7,8 +7,10 @@ import ( // TeamCreatedEventMessageDetail type TeamCreatedEventMessageDetail struct { EventMessageDetail + // The OdataType property + OdataType *string } -// NewTeamCreatedEventMessageDetail instantiates a new TeamCreatedEventMessageDetail and sets the default values. +// NewTeamCreatedEventMessageDetail instantiates a new teamCreatedEventMessageDetail and sets the default values. func NewTeamCreatedEventMessageDetail()(*TeamCreatedEventMessageDetail) { m := &TeamCreatedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), diff --git a/models/team_description_updated_event_message_detail.go b/models/team_description_updated_event_message_detail.go index 09548e87c7f..455da2aead6 100644 --- a/models/team_description_updated_event_message_detail.go +++ b/models/team_description_updated_event_message_detail.go @@ -8,7 +8,7 @@ import ( type TeamDescriptionUpdatedEventMessageDetail struct { EventMessageDetail } -// NewTeamDescriptionUpdatedEventMessageDetail instantiates a new TeamDescriptionUpdatedEventMessageDetail and sets the default values. +// NewTeamDescriptionUpdatedEventMessageDetail instantiates a new teamDescriptionUpdatedEventMessageDetail and sets the default values. func NewTeamDescriptionUpdatedEventMessageDetail()(*TeamDescriptionUpdatedEventMessageDetail) { m := &TeamDescriptionUpdatedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -34,6 +34,16 @@ func (m *TeamDescriptionUpdatedEventMessageDetail) GetFieldDeserializers()(map[s } 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["teamDescription"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -67,6 +77,17 @@ func (m *TeamDescriptionUpdatedEventMessageDetail) GetInitiator()(IdentitySetabl } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TeamDescriptionUpdatedEventMessageDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTeamDescription gets the teamDescription property value. The updated description for the team. func (m *TeamDescriptionUpdatedEventMessageDetail) GetTeamDescription()(*string) { val, err := m.GetBackingStore().Get("teamDescription") @@ -101,6 +122,12 @@ func (m *TeamDescriptionUpdatedEventMessageDetail) Serialize(writer i878a80d2330 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("teamDescription", m.GetTeamDescription()) if err != nil { @@ -122,6 +149,13 @@ func (m *TeamDescriptionUpdatedEventMessageDetail) SetInitiator(value IdentitySe panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamDescriptionUpdatedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTeamDescription sets the teamDescription property value. The updated description for the team. func (m *TeamDescriptionUpdatedEventMessageDetail) SetTeamDescription(value *string)() { err := m.GetBackingStore().Set("teamDescription", value) @@ -141,9 +175,11 @@ type TeamDescriptionUpdatedEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) + GetOdataType()(*string) GetTeamDescription()(*string) GetTeamId()(*string) SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() SetTeamDescription(value *string)() SetTeamId(value *string)() } diff --git a/models/team_info.go b/models/team_info.go index c834e503bf4..f8befc74c76 100644 --- a/models/team_info.go +++ b/models/team_info.go @@ -7,6 +7,8 @@ import ( // TeamInfo type TeamInfo struct { Entity + // The OdataType property + OdataType *string } // NewTeamInfo instantiates a new teamInfo and sets the default values. func NewTeamInfo()(*TeamInfo) { diff --git a/models/team_joining_disabled_event_message_detail.go b/models/team_joining_disabled_event_message_detail.go index bdada046db9..78974698707 100644 --- a/models/team_joining_disabled_event_message_detail.go +++ b/models/team_joining_disabled_event_message_detail.go @@ -8,7 +8,7 @@ import ( type TeamJoiningDisabledEventMessageDetail struct { EventMessageDetail } -// NewTeamJoiningDisabledEventMessageDetail instantiates a new TeamJoiningDisabledEventMessageDetail and sets the default values. +// NewTeamJoiningDisabledEventMessageDetail instantiates a new teamJoiningDisabledEventMessageDetail and sets the default values. func NewTeamJoiningDisabledEventMessageDetail()(*TeamJoiningDisabledEventMessageDetail) { m := &TeamJoiningDisabledEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -34,6 +34,16 @@ func (m *TeamJoiningDisabledEventMessageDetail) GetFieldDeserializers()(map[stri } 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["teamId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -57,6 +67,17 @@ func (m *TeamJoiningDisabledEventMessageDetail) GetInitiator()(IdentitySetable) } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TeamJoiningDisabledEventMessageDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTeamId gets the teamId property value. Unique identifier of the team. func (m *TeamJoiningDisabledEventMessageDetail) GetTeamId()(*string) { val, err := m.GetBackingStore().Get("teamId") @@ -80,6 +101,12 @@ func (m *TeamJoiningDisabledEventMessageDetail) Serialize(writer i878a80d2330e89 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("teamId", m.GetTeamId()) if err != nil { @@ -95,6 +122,13 @@ func (m *TeamJoiningDisabledEventMessageDetail) SetInitiator(value IdentitySetab panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamJoiningDisabledEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTeamId sets the teamId property value. Unique identifier of the team. func (m *TeamJoiningDisabledEventMessageDetail) SetTeamId(value *string)() { err := m.GetBackingStore().Set("teamId", value) @@ -107,7 +141,9 @@ type TeamJoiningDisabledEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) + GetOdataType()(*string) GetTeamId()(*string) SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() SetTeamId(value *string)() } diff --git a/models/team_joining_enabled_event_message_detail.go b/models/team_joining_enabled_event_message_detail.go index a6b6beada42..379ecbd184e 100644 --- a/models/team_joining_enabled_event_message_detail.go +++ b/models/team_joining_enabled_event_message_detail.go @@ -8,7 +8,7 @@ import ( type TeamJoiningEnabledEventMessageDetail struct { EventMessageDetail } -// NewTeamJoiningEnabledEventMessageDetail instantiates a new TeamJoiningEnabledEventMessageDetail and sets the default values. +// NewTeamJoiningEnabledEventMessageDetail instantiates a new teamJoiningEnabledEventMessageDetail and sets the default values. func NewTeamJoiningEnabledEventMessageDetail()(*TeamJoiningEnabledEventMessageDetail) { m := &TeamJoiningEnabledEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -34,6 +34,16 @@ func (m *TeamJoiningEnabledEventMessageDetail) GetFieldDeserializers()(map[strin } 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["teamId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -57,6 +67,17 @@ func (m *TeamJoiningEnabledEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TeamJoiningEnabledEventMessageDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTeamId gets the teamId property value. Unique identifier of the team. func (m *TeamJoiningEnabledEventMessageDetail) GetTeamId()(*string) { val, err := m.GetBackingStore().Get("teamId") @@ -80,6 +101,12 @@ func (m *TeamJoiningEnabledEventMessageDetail) Serialize(writer i878a80d2330e89d return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("teamId", m.GetTeamId()) if err != nil { @@ -95,6 +122,13 @@ func (m *TeamJoiningEnabledEventMessageDetail) SetInitiator(value IdentitySetabl panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamJoiningEnabledEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTeamId sets the teamId property value. Unique identifier of the team. func (m *TeamJoiningEnabledEventMessageDetail) SetTeamId(value *string)() { err := m.GetBackingStore().Set("teamId", value) @@ -107,7 +141,9 @@ type TeamJoiningEnabledEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) + GetOdataType()(*string) GetTeamId()(*string) SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() SetTeamId(value *string)() } diff --git a/models/team_members_notification_recipient.go b/models/team_members_notification_recipient.go index 8bd880a5945..57cba113fa3 100644 --- a/models/team_members_notification_recipient.go +++ b/models/team_members_notification_recipient.go @@ -7,8 +7,10 @@ import ( // TeamMembersNotificationRecipient type TeamMembersNotificationRecipient struct { TeamworkNotificationRecipient + // The OdataType property + OdataType *string } -// NewTeamMembersNotificationRecipient instantiates a new TeamMembersNotificationRecipient and sets the default values. +// NewTeamMembersNotificationRecipient instantiates a new teamMembersNotificationRecipient and sets the default values. func NewTeamMembersNotificationRecipient()(*TeamMembersNotificationRecipient) { m := &TeamMembersNotificationRecipient{ TeamworkNotificationRecipient: *NewTeamworkNotificationRecipient(), diff --git a/models/team_renamed_event_message_detail.go b/models/team_renamed_event_message_detail.go index ff4be6af9b3..ed6cdae18a1 100644 --- a/models/team_renamed_event_message_detail.go +++ b/models/team_renamed_event_message_detail.go @@ -8,7 +8,7 @@ import ( type TeamRenamedEventMessageDetail struct { EventMessageDetail } -// NewTeamRenamedEventMessageDetail instantiates a new TeamRenamedEventMessageDetail and sets the default values. +// NewTeamRenamedEventMessageDetail instantiates a new teamRenamedEventMessageDetail and sets the default values. func NewTeamRenamedEventMessageDetail()(*TeamRenamedEventMessageDetail) { m := &TeamRenamedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -34,6 +34,16 @@ func (m *TeamRenamedEventMessageDetail) GetFieldDeserializers()(map[string]func( } 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["teamDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -67,6 +77,17 @@ func (m *TeamRenamedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TeamRenamedEventMessageDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTeamDisplayName gets the teamDisplayName property value. The updated name of the team. func (m *TeamRenamedEventMessageDetail) GetTeamDisplayName()(*string) { val, err := m.GetBackingStore().Get("teamDisplayName") @@ -101,6 +122,12 @@ func (m *TeamRenamedEventMessageDetail) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("teamDisplayName", m.GetTeamDisplayName()) if err != nil { @@ -122,6 +149,13 @@ func (m *TeamRenamedEventMessageDetail) SetInitiator(value IdentitySetable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamRenamedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTeamDisplayName sets the teamDisplayName property value. The updated name of the team. func (m *TeamRenamedEventMessageDetail) SetTeamDisplayName(value *string)() { err := m.GetBackingStore().Set("teamDisplayName", value) @@ -141,9 +175,11 @@ type TeamRenamedEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) + GetOdataType()(*string) GetTeamDisplayName()(*string) GetTeamId()(*string) SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() SetTeamDisplayName(value *string)() SetTeamId(value *string)() } diff --git a/models/team_template.go b/models/team_template.go index 4af6e5de873..6483e277e50 100644 --- a/models/team_template.go +++ b/models/team_template.go @@ -7,8 +7,10 @@ import ( // TeamTemplate type TeamTemplate struct { Entity + // The OdataType property + OdataType *string } -// NewTeamTemplate instantiates a new TeamTemplate and sets the default values. +// NewTeamTemplate instantiates a new teamTemplate and sets the default values. func NewTeamTemplate()(*TeamTemplate) { m := &TeamTemplate{ Entity: *NewEntity(), diff --git a/models/team_template_collection_response.go b/models/team_template_collection_response.go index 5ef38d64a5e..d9047e52bcc 100644 --- a/models/team_template_collection_response.go +++ b/models/team_template_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamTemplateCollectionResponse instantiates a new TeamTemplateCollectionResponse and sets the default values. +// NewTeamTemplateCollectionResponse instantiates a new teamTemplateCollectionResponse and sets the default values. func NewTeamTemplateCollectionResponse()(*TeamTemplateCollectionResponse) { m := &TeamTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/team_template_definition.go b/models/team_template_definition.go index 920c5f7d12f..ed31064a70e 100644 --- a/models/team_template_definition.go +++ b/models/team_template_definition.go @@ -8,6 +8,8 @@ import ( // TeamTemplateDefinition type TeamTemplateDefinition struct { Entity + // The OdataType property + OdataType *string } // NewTeamTemplateDefinition instantiates a new teamTemplateDefinition and sets the default values. func NewTeamTemplateDefinition()(*TeamTemplateDefinition) { diff --git a/models/team_template_definition_collection_response.go b/models/team_template_definition_collection_response.go index 97cacc22f63..a6a2668cbfe 100644 --- a/models/team_template_definition_collection_response.go +++ b/models/team_template_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamTemplateDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamTemplateDefinitionCollectionResponse instantiates a new TeamTemplateDefinitionCollectionResponse and sets the default values. +// NewTeamTemplateDefinitionCollectionResponse instantiates a new teamTemplateDefinitionCollectionResponse and sets the default values. func NewTeamTemplateDefinitionCollectionResponse()(*TeamTemplateDefinitionCollectionResponse) { m := &TeamTemplateDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/team_unarchived_event_message_detail.go b/models/team_unarchived_event_message_detail.go index 588c1211142..e69bdab2e6c 100644 --- a/models/team_unarchived_event_message_detail.go +++ b/models/team_unarchived_event_message_detail.go @@ -8,7 +8,7 @@ import ( type TeamUnarchivedEventMessageDetail struct { EventMessageDetail } -// NewTeamUnarchivedEventMessageDetail instantiates a new TeamUnarchivedEventMessageDetail and sets the default values. +// NewTeamUnarchivedEventMessageDetail instantiates a new teamUnarchivedEventMessageDetail and sets the default values. func NewTeamUnarchivedEventMessageDetail()(*TeamUnarchivedEventMessageDetail) { m := &TeamUnarchivedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -34,6 +34,16 @@ func (m *TeamUnarchivedEventMessageDetail) GetFieldDeserializers()(map[string]fu } 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["teamId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -57,6 +67,17 @@ func (m *TeamUnarchivedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TeamUnarchivedEventMessageDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTeamId gets the teamId property value. Unique identifier of the team. func (m *TeamUnarchivedEventMessageDetail) GetTeamId()(*string) { val, err := m.GetBackingStore().Get("teamId") @@ -80,6 +101,12 @@ func (m *TeamUnarchivedEventMessageDetail) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("teamId", m.GetTeamId()) if err != nil { @@ -95,6 +122,13 @@ func (m *TeamUnarchivedEventMessageDetail) SetInitiator(value IdentitySetable)() panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamUnarchivedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTeamId sets the teamId property value. Unique identifier of the team. func (m *TeamUnarchivedEventMessageDetail) SetTeamId(value *string)() { err := m.GetBackingStore().Set("teamId", value) @@ -107,7 +141,9 @@ type TeamUnarchivedEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) + GetOdataType()(*string) GetTeamId()(*string) SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() SetTeamId(value *string)() } diff --git a/models/teams_app.go b/models/teams_app.go index 4ce40104bb8..e304fc0cf96 100644 --- a/models/teams_app.go +++ b/models/teams_app.go @@ -7,6 +7,8 @@ import ( // TeamsApp type TeamsApp struct { Entity + // The OdataType property + OdataType *string } // NewTeamsApp instantiates a new teamsApp and sets the default values. func NewTeamsApp()(*TeamsApp) { diff --git a/models/teams_app_collection_response.go b/models/teams_app_collection_response.go index c304f989404..b511e18fe6c 100644 --- a/models/teams_app_collection_response.go +++ b/models/teams_app_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamsAppCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamsAppCollectionResponse instantiates a new TeamsAppCollectionResponse and sets the default values. +// NewTeamsAppCollectionResponse instantiates a new teamsAppCollectionResponse and sets the default values. func NewTeamsAppCollectionResponse()(*TeamsAppCollectionResponse) { m := &TeamsAppCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/teams_app_definition.go b/models/teams_app_definition.go index dded2bafcab..07cd7b142db 100644 --- a/models/teams_app_definition.go +++ b/models/teams_app_definition.go @@ -8,6 +8,8 @@ import ( // TeamsAppDefinition type TeamsAppDefinition struct { Entity + // The OdataType property + OdataType *string } // NewTeamsAppDefinition instantiates a new teamsAppDefinition and sets the default values. func NewTeamsAppDefinition()(*TeamsAppDefinition) { diff --git a/models/teams_app_definition_collection_response.go b/models/teams_app_definition_collection_response.go index a4324fec201..b408877d0e1 100644 --- a/models/teams_app_definition_collection_response.go +++ b/models/teams_app_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamsAppDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamsAppDefinitionCollectionResponse instantiates a new TeamsAppDefinitionCollectionResponse and sets the default values. +// NewTeamsAppDefinitionCollectionResponse instantiates a new teamsAppDefinitionCollectionResponse and sets the default values. func NewTeamsAppDefinitionCollectionResponse()(*TeamsAppDefinitionCollectionResponse) { m := &TeamsAppDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/teams_app_icon.go b/models/teams_app_icon.go index 3425af825c9..b792fcce32d 100644 --- a/models/teams_app_icon.go +++ b/models/teams_app_icon.go @@ -7,6 +7,8 @@ import ( // TeamsAppIcon type TeamsAppIcon struct { Entity + // The OdataType property + OdataType *string } // NewTeamsAppIcon instantiates a new teamsAppIcon and sets the default values. func NewTeamsAppIcon()(*TeamsAppIcon) { diff --git a/models/teams_app_installation.go b/models/teams_app_installation.go index e02b6b2018f..639909e0f48 100644 --- a/models/teams_app_installation.go +++ b/models/teams_app_installation.go @@ -7,6 +7,8 @@ import ( // TeamsAppInstallation type TeamsAppInstallation struct { Entity + // The OdataType property + OdataType *string } // NewTeamsAppInstallation instantiates a new teamsAppInstallation and sets the default values. func NewTeamsAppInstallation()(*TeamsAppInstallation) { diff --git a/models/teams_app_installation_collection_response.go b/models/teams_app_installation_collection_response.go index 5d5db5429d9..abf4b09322e 100644 --- a/models/teams_app_installation_collection_response.go +++ b/models/teams_app_installation_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamsAppInstallationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamsAppInstallationCollectionResponse instantiates a new TeamsAppInstallationCollectionResponse and sets the default values. +// NewTeamsAppInstallationCollectionResponse instantiates a new teamsAppInstallationCollectionResponse and sets the default values. func NewTeamsAppInstallationCollectionResponse()(*TeamsAppInstallationCollectionResponse) { m := &TeamsAppInstallationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/teams_app_installed_event_message_detail.go b/models/teams_app_installed_event_message_detail.go index f6afc0c146b..4591523bd76 100644 --- a/models/teams_app_installed_event_message_detail.go +++ b/models/teams_app_installed_event_message_detail.go @@ -8,7 +8,7 @@ import ( type TeamsAppInstalledEventMessageDetail struct { EventMessageDetail } -// NewTeamsAppInstalledEventMessageDetail instantiates a new TeamsAppInstalledEventMessageDetail and sets the default values. +// NewTeamsAppInstalledEventMessageDetail instantiates a new teamsAppInstalledEventMessageDetail and sets the default values. func NewTeamsAppInstalledEventMessageDetail()(*TeamsAppInstalledEventMessageDetail) { m := &TeamsAppInstalledEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -34,6 +34,16 @@ func (m *TeamsAppInstalledEventMessageDetail) GetFieldDeserializers()(map[string } 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["teamsAppDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -67,6 +77,17 @@ func (m *TeamsAppInstalledEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TeamsAppInstalledEventMessageDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTeamsAppDisplayName gets the teamsAppDisplayName property value. Display name of the teamsApp. func (m *TeamsAppInstalledEventMessageDetail) GetTeamsAppDisplayName()(*string) { val, err := m.GetBackingStore().Get("teamsAppDisplayName") @@ -101,6 +122,12 @@ func (m *TeamsAppInstalledEventMessageDetail) Serialize(writer i878a80d2330e89d2 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("teamsAppDisplayName", m.GetTeamsAppDisplayName()) if err != nil { @@ -122,6 +149,13 @@ func (m *TeamsAppInstalledEventMessageDetail) SetInitiator(value IdentitySetable panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamsAppInstalledEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTeamsAppDisplayName sets the teamsAppDisplayName property value. Display name of the teamsApp. func (m *TeamsAppInstalledEventMessageDetail) SetTeamsAppDisplayName(value *string)() { err := m.GetBackingStore().Set("teamsAppDisplayName", value) @@ -141,9 +175,11 @@ type TeamsAppInstalledEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) + GetOdataType()(*string) GetTeamsAppDisplayName()(*string) GetTeamsAppId()(*string) SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() SetTeamsAppDisplayName(value *string)() SetTeamsAppId(value *string)() } diff --git a/models/teams_app_removed_event_message_detail.go b/models/teams_app_removed_event_message_detail.go index e482c9f96fe..e3aaa9b98cd 100644 --- a/models/teams_app_removed_event_message_detail.go +++ b/models/teams_app_removed_event_message_detail.go @@ -8,7 +8,7 @@ import ( type TeamsAppRemovedEventMessageDetail struct { EventMessageDetail } -// NewTeamsAppRemovedEventMessageDetail instantiates a new TeamsAppRemovedEventMessageDetail and sets the default values. +// NewTeamsAppRemovedEventMessageDetail instantiates a new teamsAppRemovedEventMessageDetail and sets the default values. func NewTeamsAppRemovedEventMessageDetail()(*TeamsAppRemovedEventMessageDetail) { m := &TeamsAppRemovedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), @@ -34,6 +34,16 @@ func (m *TeamsAppRemovedEventMessageDetail) GetFieldDeserializers()(map[string]f } 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["teamsAppDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -67,6 +77,17 @@ func (m *TeamsAppRemovedEventMessageDetail) GetInitiator()(IdentitySetable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TeamsAppRemovedEventMessageDetail) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTeamsAppDisplayName gets the teamsAppDisplayName property value. Display name of the teamsApp. func (m *TeamsAppRemovedEventMessageDetail) GetTeamsAppDisplayName()(*string) { val, err := m.GetBackingStore().Get("teamsAppDisplayName") @@ -101,6 +122,12 @@ func (m *TeamsAppRemovedEventMessageDetail) Serialize(writer i878a80d2330e89d268 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("teamsAppDisplayName", m.GetTeamsAppDisplayName()) if err != nil { @@ -122,6 +149,13 @@ func (m *TeamsAppRemovedEventMessageDetail) SetInitiator(value IdentitySetable)( panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamsAppRemovedEventMessageDetail) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTeamsAppDisplayName sets the teamsAppDisplayName property value. Display name of the teamsApp. func (m *TeamsAppRemovedEventMessageDetail) SetTeamsAppDisplayName(value *string)() { err := m.GetBackingStore().Set("teamsAppDisplayName", value) @@ -141,9 +175,11 @@ type TeamsAppRemovedEventMessageDetailable interface { EventMessageDetailable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInitiator()(IdentitySetable) + GetOdataType()(*string) GetTeamsAppDisplayName()(*string) GetTeamsAppId()(*string) SetInitiator(value IdentitySetable)() + SetOdataType(value *string)() SetTeamsAppDisplayName(value *string)() SetTeamsAppId(value *string)() } diff --git a/models/teams_app_settings.go b/models/teams_app_settings.go index 10ca7d3c73f..9fc2480b07e 100644 --- a/models/teams_app_settings.go +++ b/models/teams_app_settings.go @@ -8,7 +8,7 @@ import ( type TeamsAppSettings struct { Entity } -// NewTeamsAppSettings instantiates a new TeamsAppSettings and sets the default values. +// NewTeamsAppSettings instantiates a new teamsAppSettings and sets the default values. func NewTeamsAppSettings()(*TeamsAppSettings) { m := &TeamsAppSettings{ Entity: *NewEntity(), @@ -63,6 +63,16 @@ func (m *TeamsAppSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e } 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 } // GetIsChatResourceSpecificConsentEnabled gets the isChatResourceSpecificConsentEnabled property value. Indicates whether resource-specific consent for chats/meetings has been enabled for the tenant. If true, Teams apps that are allowed in the tenant and require resource-specific permissions can be installed inside chats and meetings. If false, the installation of any Teams app that requires resource-specific permissions in a chat or a meeting will be blocked. @@ -87,6 +97,17 @@ func (m *TeamsAppSettings) GetIsUserPersonalScopeResourceSpecificConsentEnabled( } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TeamsAppSettings) 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 *TeamsAppSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -111,6 +132,12 @@ func (m *TeamsAppSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAllowUserRequestsForAppAccess sets the allowUserRequestsForAppAccess property value. Indicates whether users are allowed to request access to the unavailable Teams apps. @@ -134,6 +161,13 @@ func (m *TeamsAppSettings) SetIsUserPersonalScopeResourceSpecificConsentEnabled( panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamsAppSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // TeamsAppSettingsable type TeamsAppSettingsable interface { Entityable @@ -141,7 +175,9 @@ type TeamsAppSettingsable interface { GetAllowUserRequestsForAppAccess()(*bool) GetIsChatResourceSpecificConsentEnabled()(*bool) GetIsUserPersonalScopeResourceSpecificConsentEnabled()(*bool) + GetOdataType()(*string) SetAllowUserRequestsForAppAccess(value *bool)() SetIsChatResourceSpecificConsentEnabled(value *bool)() SetIsUserPersonalScopeResourceSpecificConsentEnabled(value *bool)() + SetOdataType(value *string)() } diff --git a/models/teams_app_upgraded_event_message_detail.go b/models/teams_app_upgraded_event_message_detail.go index f8d6af2d4cd..87775d46475 100644 --- a/models/teams_app_upgraded_event_message_detail.go +++ b/models/teams_app_upgraded_event_message_detail.go @@ -7,8 +7,10 @@ import ( // TeamsAppUpgradedEventMessageDetail type TeamsAppUpgradedEventMessageDetail struct { EventMessageDetail + // The OdataType property + OdataType *string } -// NewTeamsAppUpgradedEventMessageDetail instantiates a new TeamsAppUpgradedEventMessageDetail and sets the default values. +// NewTeamsAppUpgradedEventMessageDetail instantiates a new teamsAppUpgradedEventMessageDetail and sets the default values. func NewTeamsAppUpgradedEventMessageDetail()(*TeamsAppUpgradedEventMessageDetail) { m := &TeamsAppUpgradedEventMessageDetail{ EventMessageDetail: *NewEventMessageDetail(), diff --git a/models/teams_async_operation.go b/models/teams_async_operation.go index 900e8b45199..c814ca8a1fa 100644 --- a/models/teams_async_operation.go +++ b/models/teams_async_operation.go @@ -8,6 +8,8 @@ import ( // TeamsAsyncOperation type TeamsAsyncOperation struct { Entity + // The OdataType property + OdataType *string } // NewTeamsAsyncOperation instantiates a new teamsAsyncOperation and sets the default values. func NewTeamsAsyncOperation()(*TeamsAsyncOperation) { diff --git a/models/teams_async_operation_collection_response.go b/models/teams_async_operation_collection_response.go index 48f84eee978..0344aedd35b 100644 --- a/models/teams_async_operation_collection_response.go +++ b/models/teams_async_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamsAsyncOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamsAsyncOperationCollectionResponse instantiates a new TeamsAsyncOperationCollectionResponse and sets the default values. +// NewTeamsAsyncOperationCollectionResponse instantiates a new teamsAsyncOperationCollectionResponse and sets the default values. func NewTeamsAsyncOperationCollectionResponse()(*TeamsAsyncOperationCollectionResponse) { m := &TeamsAsyncOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/teams_tab.go b/models/teams_tab.go index 5219b1ab078..70568161afb 100644 --- a/models/teams_tab.go +++ b/models/teams_tab.go @@ -7,6 +7,8 @@ import ( // TeamsTab type TeamsTab struct { Entity + // The OdataType property + OdataType *string } // NewTeamsTab instantiates a new teamsTab and sets the default values. func NewTeamsTab()(*TeamsTab) { diff --git a/models/teams_tab_collection_response.go b/models/teams_tab_collection_response.go index 02dfb86f35d..8a84dab3890 100644 --- a/models/teams_tab_collection_response.go +++ b/models/teams_tab_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamsTabCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamsTabCollectionResponse instantiates a new TeamsTabCollectionResponse and sets the default values. +// NewTeamsTabCollectionResponse instantiates a new teamsTabCollectionResponse and sets the default values. func NewTeamsTabCollectionResponse()(*TeamsTabCollectionResponse) { m := &TeamsTabCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/teams_template.go b/models/teams_template.go index 937401b2cad..88c518943f8 100644 --- a/models/teams_template.go +++ b/models/teams_template.go @@ -7,6 +7,8 @@ import ( // TeamsTemplate type TeamsTemplate struct { Entity + // The OdataType property + OdataType *string } // NewTeamsTemplate instantiates a new teamsTemplate and sets the default values. func NewTeamsTemplate()(*TeamsTemplate) { diff --git a/models/teams_template_collection_response.go b/models/teams_template_collection_response.go index d01f8c4b81a..34bc4b644cc 100644 --- a/models/teams_template_collection_response.go +++ b/models/teams_template_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamsTemplateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamsTemplateCollectionResponse instantiates a new TeamsTemplateCollectionResponse and sets the default values. +// NewTeamsTemplateCollectionResponse instantiates a new teamsTemplateCollectionResponse and sets the default values. func NewTeamsTemplateCollectionResponse()(*TeamsTemplateCollectionResponse) { m := &TeamsTemplateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/teamwork.go b/models/teamwork.go index eb76675d60f..863a897d5da 100644 --- a/models/teamwork.go +++ b/models/teamwork.go @@ -7,8 +7,10 @@ import ( // Teamwork type Teamwork struct { Entity + // The OdataType property + OdataType *string } -// NewTeamwork instantiates a new Teamwork and sets the default values. +// NewTeamwork instantiates a new teamwork and sets the default values. func NewTeamwork()(*Teamwork) { m := &Teamwork{ Entity: *NewEntity(), diff --git a/models/teamwork_application_identity.go b/models/teamwork_application_identity.go index 9f2f7322abb..2bfaced3ff6 100644 --- a/models/teamwork_application_identity.go +++ b/models/teamwork_application_identity.go @@ -8,7 +8,7 @@ import ( type TeamworkApplicationIdentity struct { Identity } -// NewTeamworkApplicationIdentity instantiates a new TeamworkApplicationIdentity and sets the default values. +// NewTeamworkApplicationIdentity instantiates a new teamworkApplicationIdentity and sets the default values. func NewTeamworkApplicationIdentity()(*TeamworkApplicationIdentity) { m := &TeamworkApplicationIdentity{ Identity: *NewIdentity(), @@ -45,8 +45,29 @@ func (m *TeamworkApplicationIdentity) GetFieldDeserializers()(map[string]func(i8 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TeamworkApplicationIdentity) 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 *TeamworkApplicationIdentity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Identity.Serialize(writer) @@ -60,6 +81,12 @@ func (m *TeamworkApplicationIdentity) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetApplicationIdentityType sets the applicationIdentityType property value. Type of application that is referenced. Possible values are: aadApplication, bot, tenantBot, office365Connector, and outgoingWebhook. @@ -69,10 +96,19 @@ func (m *TeamworkApplicationIdentity) SetApplicationIdentityType(value *Teamwork panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamworkApplicationIdentity) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // TeamworkApplicationIdentityable type TeamworkApplicationIdentityable interface { Identityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetApplicationIdentityType()(*TeamworkApplicationIdentityType) + GetOdataType()(*string) SetApplicationIdentityType(value *TeamworkApplicationIdentityType)() + SetOdataType(value *string)() } diff --git a/models/teamwork_bot.go b/models/teamwork_bot.go index 06963d63ee8..04941f3abc6 100644 --- a/models/teamwork_bot.go +++ b/models/teamwork_bot.go @@ -7,6 +7,8 @@ import ( // TeamworkBot type TeamworkBot struct { Entity + // The OdataType property + OdataType *string } // NewTeamworkBot instantiates a new teamworkBot and sets the default values. func NewTeamworkBot()(*TeamworkBot) { diff --git a/models/teamwork_configured_peripheral.go b/models/teamwork_configured_peripheral.go index d18f0803305..074d5bdbb53 100644 --- a/models/teamwork_configured_peripheral.go +++ b/models/teamwork_configured_peripheral.go @@ -10,7 +10,7 @@ type TeamworkConfiguredPeripheral struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTeamworkConfiguredPeripheral instantiates a new TeamworkConfiguredPeripheral and sets the default values. +// NewTeamworkConfiguredPeripheral instantiates a new teamworkConfiguredPeripheral and sets the default values. func NewTeamworkConfiguredPeripheral()(*TeamworkConfiguredPeripheral) { m := &TeamworkConfiguredPeripheral{ } diff --git a/models/teamwork_connection.go b/models/teamwork_connection.go index 9b34f048016..22ea60589a1 100644 --- a/models/teamwork_connection.go +++ b/models/teamwork_connection.go @@ -11,7 +11,7 @@ type TeamworkConnection struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTeamworkConnection instantiates a new TeamworkConnection and sets the default values. +// NewTeamworkConnection instantiates a new teamworkConnection and sets the default values. func NewTeamworkConnection()(*TeamworkConnection) { m := &TeamworkConnection{ } diff --git a/models/teamwork_conversation_identity.go b/models/teamwork_conversation_identity.go index 0b5e9f73ca7..c3beaf1ee48 100644 --- a/models/teamwork_conversation_identity.go +++ b/models/teamwork_conversation_identity.go @@ -7,8 +7,10 @@ import ( // TeamworkConversationIdentity type TeamworkConversationIdentity struct { Identity + // The OdataType property + OdataType *string } -// NewTeamworkConversationIdentity instantiates a new TeamworkConversationIdentity and sets the default values. +// NewTeamworkConversationIdentity instantiates a new teamworkConversationIdentity and sets the default values. func NewTeamworkConversationIdentity()(*TeamworkConversationIdentity) { m := &TeamworkConversationIdentity{ Identity: *NewIdentity(), diff --git a/models/teamwork_device.go b/models/teamwork_device.go index 67c1b9434eb..6bc9711dea5 100644 --- a/models/teamwork_device.go +++ b/models/teamwork_device.go @@ -8,6 +8,8 @@ import ( // TeamworkDevice type TeamworkDevice struct { Entity + // The OdataType property + OdataType *string } // NewTeamworkDevice instantiates a new teamworkDevice and sets the default values. func NewTeamworkDevice()(*TeamworkDevice) { diff --git a/models/teamwork_device_activity.go b/models/teamwork_device_activity.go index e42c3fffe29..6aa4503215a 100644 --- a/models/teamwork_device_activity.go +++ b/models/teamwork_device_activity.go @@ -8,6 +8,8 @@ import ( // TeamworkDeviceActivity type TeamworkDeviceActivity struct { Entity + // The OdataType property + OdataType *string } // NewTeamworkDeviceActivity instantiates a new teamworkDeviceActivity and sets the default values. func NewTeamworkDeviceActivity()(*TeamworkDeviceActivity) { diff --git a/models/teamwork_device_collection_response.go b/models/teamwork_device_collection_response.go index cb06a10fc97..db474f9fe92 100644 --- a/models/teamwork_device_collection_response.go +++ b/models/teamwork_device_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamworkDeviceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamworkDeviceCollectionResponse instantiates a new TeamworkDeviceCollectionResponse and sets the default values. +// NewTeamworkDeviceCollectionResponse instantiates a new teamworkDeviceCollectionResponse and sets the default values. func NewTeamworkDeviceCollectionResponse()(*TeamworkDeviceCollectionResponse) { m := &TeamworkDeviceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/teamwork_device_configuration.go b/models/teamwork_device_configuration.go index fe9d7caac45..14466c8eade 100644 --- a/models/teamwork_device_configuration.go +++ b/models/teamwork_device_configuration.go @@ -8,6 +8,8 @@ import ( // TeamworkDeviceConfiguration type TeamworkDeviceConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewTeamworkDeviceConfiguration instantiates a new teamworkDeviceConfiguration and sets the default values. func NewTeamworkDeviceConfiguration()(*TeamworkDeviceConfiguration) { diff --git a/models/teamwork_device_health.go b/models/teamwork_device_health.go index 78aa41b51ce..c8639b21a76 100644 --- a/models/teamwork_device_health.go +++ b/models/teamwork_device_health.go @@ -8,8 +8,10 @@ import ( // TeamworkDeviceHealth type TeamworkDeviceHealth struct { Entity + // The OdataType property + OdataType *string } -// NewTeamworkDeviceHealth instantiates a new TeamworkDeviceHealth and sets the default values. +// NewTeamworkDeviceHealth instantiates a new teamworkDeviceHealth and sets the default values. func NewTeamworkDeviceHealth()(*TeamworkDeviceHealth) { m := &TeamworkDeviceHealth{ Entity: *NewEntity(), diff --git a/models/teamwork_device_operation.go b/models/teamwork_device_operation.go index 75bbd6a8164..891b3b92573 100644 --- a/models/teamwork_device_operation.go +++ b/models/teamwork_device_operation.go @@ -8,6 +8,8 @@ import ( // TeamworkDeviceOperation type TeamworkDeviceOperation struct { Entity + // The OdataType property + OdataType *string } // NewTeamworkDeviceOperation instantiates a new teamworkDeviceOperation and sets the default values. func NewTeamworkDeviceOperation()(*TeamworkDeviceOperation) { diff --git a/models/teamwork_device_operation_collection_response.go b/models/teamwork_device_operation_collection_response.go index be345e57729..7c59683d8f8 100644 --- a/models/teamwork_device_operation_collection_response.go +++ b/models/teamwork_device_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamworkDeviceOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamworkDeviceOperationCollectionResponse instantiates a new TeamworkDeviceOperationCollectionResponse and sets the default values. +// NewTeamworkDeviceOperationCollectionResponse instantiates a new teamworkDeviceOperationCollectionResponse and sets the default values. func NewTeamworkDeviceOperationCollectionResponse()(*TeamworkDeviceOperationCollectionResponse) { m := &TeamworkDeviceOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/teamwork_hardware_detail.go b/models/teamwork_hardware_detail.go index 61558b399ae..b278765b995 100644 --- a/models/teamwork_hardware_detail.go +++ b/models/teamwork_hardware_detail.go @@ -10,7 +10,7 @@ type TeamworkHardwareDetail struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTeamworkHardwareDetail instantiates a new TeamworkHardwareDetail and sets the default values. +// NewTeamworkHardwareDetail instantiates a new teamworkHardwareDetail and sets the default values. func NewTeamworkHardwareDetail()(*TeamworkHardwareDetail) { m := &TeamworkHardwareDetail{ } diff --git a/models/teamwork_hosted_content.go b/models/teamwork_hosted_content.go index d8329fd4a6c..124ea2c3f5a 100644 --- a/models/teamwork_hosted_content.go +++ b/models/teamwork_hosted_content.go @@ -7,6 +7,8 @@ import ( // TeamworkHostedContent type TeamworkHostedContent struct { Entity + // The OdataType property + OdataType *string } // NewTeamworkHostedContent instantiates a new teamworkHostedContent and sets the default values. func NewTeamworkHostedContent()(*TeamworkHostedContent) { diff --git a/models/teamwork_peripheral.go b/models/teamwork_peripheral.go index 1d2187b31c0..b2184927372 100644 --- a/models/teamwork_peripheral.go +++ b/models/teamwork_peripheral.go @@ -7,6 +7,8 @@ import ( // TeamworkPeripheral type TeamworkPeripheral struct { Entity + // The OdataType property + OdataType *string } // NewTeamworkPeripheral instantiates a new teamworkPeripheral and sets the default values. func NewTeamworkPeripheral()(*TeamworkPeripheral) { diff --git a/models/teamwork_tag.go b/models/teamwork_tag.go index 4e51328acff..93cc8c4c4e2 100644 --- a/models/teamwork_tag.go +++ b/models/teamwork_tag.go @@ -7,6 +7,8 @@ import ( // TeamworkTag type TeamworkTag struct { Entity + // The OdataType property + OdataType *string } // NewTeamworkTag instantiates a new teamworkTag and sets the default values. func NewTeamworkTag()(*TeamworkTag) { diff --git a/models/teamwork_tag_collection_response.go b/models/teamwork_tag_collection_response.go index 801ebc0b132..84d6721b23f 100644 --- a/models/teamwork_tag_collection_response.go +++ b/models/teamwork_tag_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamworkTagCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamworkTagCollectionResponse instantiates a new TeamworkTagCollectionResponse and sets the default values. +// NewTeamworkTagCollectionResponse instantiates a new teamworkTagCollectionResponse and sets the default values. func NewTeamworkTagCollectionResponse()(*TeamworkTagCollectionResponse) { m := &TeamworkTagCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/teamwork_tag_identity.go b/models/teamwork_tag_identity.go index 53bb30743d6..b5344ea762a 100644 --- a/models/teamwork_tag_identity.go +++ b/models/teamwork_tag_identity.go @@ -8,7 +8,7 @@ import ( type TeamworkTagIdentity struct { Identity } -// NewTeamworkTagIdentity instantiates a new TeamworkTagIdentity and sets the default values. +// NewTeamworkTagIdentity instantiates a new teamworkTagIdentity and sets the default values. func NewTeamworkTagIdentity()(*TeamworkTagIdentity) { m := &TeamworkTagIdentity{ Identity: *NewIdentity(), @@ -24,18 +24,54 @@ func CreateTeamworkTagIdentityFromDiscriminatorValue(parseNode i878a80d2330e89d2 // GetFieldDeserializers the deserialization information for the current model func (m *TeamworkTagIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Identity.GetFieldDeserializers() + 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 *TeamworkTagIdentity) 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 *TeamworkTagIdentity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Identity.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamworkTagIdentity) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // TeamworkTagIdentityable type TeamworkTagIdentityable interface { Identityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/teamwork_tag_member.go b/models/teamwork_tag_member.go index 949a21dcd85..5564842fbca 100644 --- a/models/teamwork_tag_member.go +++ b/models/teamwork_tag_member.go @@ -7,6 +7,8 @@ import ( // TeamworkTagMember type TeamworkTagMember struct { Entity + // The OdataType property + OdataType *string } // NewTeamworkTagMember instantiates a new teamworkTagMember and sets the default values. func NewTeamworkTagMember()(*TeamworkTagMember) { diff --git a/models/teamwork_tag_member_collection_response.go b/models/teamwork_tag_member_collection_response.go index ceec7280372..71925b09609 100644 --- a/models/teamwork_tag_member_collection_response.go +++ b/models/teamwork_tag_member_collection_response.go @@ -8,7 +8,7 @@ import ( type TeamworkTagMemberCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTeamworkTagMemberCollectionResponse instantiates a new TeamworkTagMemberCollectionResponse and sets the default values. +// NewTeamworkTagMemberCollectionResponse instantiates a new teamworkTagMemberCollectionResponse and sets the default values. func NewTeamworkTagMemberCollectionResponse()(*TeamworkTagMemberCollectionResponse) { m := &TeamworkTagMemberCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/teamwork_user_identity.go b/models/teamwork_user_identity.go index 4309a9eb393..121d01e42e1 100644 --- a/models/teamwork_user_identity.go +++ b/models/teamwork_user_identity.go @@ -7,8 +7,10 @@ import ( // TeamworkUserIdentity type TeamworkUserIdentity struct { Identity + // The OdataType property + OdataType *string } -// NewTeamworkUserIdentity instantiates a new TeamworkUserIdentity and sets the default values. +// NewTeamworkUserIdentity instantiates a new teamworkUserIdentity and sets the default values. func NewTeamworkUserIdentity()(*TeamworkUserIdentity) { m := &TeamworkUserIdentity{ Identity: *NewIdentity(), diff --git a/models/telecom_expense_management_partner.go b/models/telecom_expense_management_partner.go index cdac222929a..7129b32301e 100644 --- a/models/telecom_expense_management_partner.go +++ b/models/telecom_expense_management_partner.go @@ -8,6 +8,8 @@ import ( // TelecomExpenseManagementPartner telecomExpenseManagementPartner resources represent the metadata and status of a given TEM service. Once your organization has onboarded with a partner, the partner can be enabled or disabled to switch TEM functionality on or off. type TelecomExpenseManagementPartner struct { Entity + // The OdataType property + OdataType *string } // NewTelecomExpenseManagementPartner instantiates a new telecomExpenseManagementPartner and sets the default values. func NewTelecomExpenseManagementPartner()(*TelecomExpenseManagementPartner) { diff --git a/models/telecom_expense_management_partner_collection_response.go b/models/telecom_expense_management_partner_collection_response.go index 3a00a6da6db..ab53a8cb5f6 100644 --- a/models/telecom_expense_management_partner_collection_response.go +++ b/models/telecom_expense_management_partner_collection_response.go @@ -8,7 +8,7 @@ import ( type TelecomExpenseManagementPartnerCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTelecomExpenseManagementPartnerCollectionResponse instantiates a new TelecomExpenseManagementPartnerCollectionResponse and sets the default values. +// NewTelecomExpenseManagementPartnerCollectionResponse instantiates a new telecomExpenseManagementPartnerCollectionResponse and sets the default values. func NewTelecomExpenseManagementPartnerCollectionResponse()(*TelecomExpenseManagementPartnerCollectionResponse) { m := &TelecomExpenseManagementPartnerCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/teleconference_device_audio_quality.go b/models/teleconference_device_audio_quality.go index 0654f24011a..cf29c656459 100644 --- a/models/teleconference_device_audio_quality.go +++ b/models/teleconference_device_audio_quality.go @@ -8,7 +8,7 @@ import ( type TeleconferenceDeviceAudioQuality struct { TeleconferenceDeviceMediaQuality } -// NewTeleconferenceDeviceAudioQuality instantiates a new TeleconferenceDeviceAudioQuality and sets the default values. +// NewTeleconferenceDeviceAudioQuality instantiates a new teleconferenceDeviceAudioQuality and sets the default values. func NewTeleconferenceDeviceAudioQuality()(*TeleconferenceDeviceAudioQuality) { m := &TeleconferenceDeviceAudioQuality{ TeleconferenceDeviceMediaQuality: *NewTeleconferenceDeviceMediaQuality(), @@ -24,18 +24,54 @@ func CreateTeleconferenceDeviceAudioQualityFromDiscriminatorValue(parseNode i878 // GetFieldDeserializers the deserialization information for the current model func (m *TeleconferenceDeviceAudioQuality) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.TeleconferenceDeviceMediaQuality.GetFieldDeserializers() + 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 *TeleconferenceDeviceAudioQuality) 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 *TeleconferenceDeviceAudioQuality) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.TeleconferenceDeviceMediaQuality.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeleconferenceDeviceAudioQuality) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // TeleconferenceDeviceAudioQualityable type TeleconferenceDeviceAudioQualityable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable TeleconferenceDeviceMediaQualityable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/teleconference_device_media_quality.go b/models/teleconference_device_media_quality.go index f8d6faf22da..178bf001453 100644 --- a/models/teleconference_device_media_quality.go +++ b/models/teleconference_device_media_quality.go @@ -10,7 +10,7 @@ type TeleconferenceDeviceMediaQuality struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTeleconferenceDeviceMediaQuality instantiates a new TeleconferenceDeviceMediaQuality and sets the default values. +// NewTeleconferenceDeviceMediaQuality instantiates a new teleconferenceDeviceMediaQuality and sets the default values. func NewTeleconferenceDeviceMediaQuality()(*TeleconferenceDeviceMediaQuality) { m := &TeleconferenceDeviceMediaQuality{ } diff --git a/models/teleconference_device_quality.go b/models/teleconference_device_quality.go index 9a181a4a06d..1b9f400f5ef 100644 --- a/models/teleconference_device_quality.go +++ b/models/teleconference_device_quality.go @@ -11,7 +11,7 @@ type TeleconferenceDeviceQuality struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTeleconferenceDeviceQuality instantiates a new TeleconferenceDeviceQuality and sets the default values. +// NewTeleconferenceDeviceQuality instantiates a new teleconferenceDeviceQuality and sets the default values. func NewTeleconferenceDeviceQuality()(*TeleconferenceDeviceQuality) { m := &TeleconferenceDeviceQuality{ } diff --git a/models/teleconference_device_screen_sharing_quality.go b/models/teleconference_device_screen_sharing_quality.go index 67b17eb62af..766d4106c74 100644 --- a/models/teleconference_device_screen_sharing_quality.go +++ b/models/teleconference_device_screen_sharing_quality.go @@ -7,8 +7,10 @@ import ( // TeleconferenceDeviceScreenSharingQuality type TeleconferenceDeviceScreenSharingQuality struct { TeleconferenceDeviceVideoQuality + // The OdataType property + OdataType *string } -// NewTeleconferenceDeviceScreenSharingQuality instantiates a new TeleconferenceDeviceScreenSharingQuality and sets the default values. +// NewTeleconferenceDeviceScreenSharingQuality instantiates a new teleconferenceDeviceScreenSharingQuality and sets the default values. func NewTeleconferenceDeviceScreenSharingQuality()(*TeleconferenceDeviceScreenSharingQuality) { m := &TeleconferenceDeviceScreenSharingQuality{ TeleconferenceDeviceVideoQuality: *NewTeleconferenceDeviceVideoQuality(), diff --git a/models/teleconference_device_video_quality.go b/models/teleconference_device_video_quality.go index 39f33279ad5..844f3634b06 100644 --- a/models/teleconference_device_video_quality.go +++ b/models/teleconference_device_video_quality.go @@ -8,7 +8,7 @@ import ( type TeleconferenceDeviceVideoQuality struct { TeleconferenceDeviceMediaQuality } -// NewTeleconferenceDeviceVideoQuality instantiates a new TeleconferenceDeviceVideoQuality and sets the default values. +// NewTeleconferenceDeviceVideoQuality instantiates a new teleconferenceDeviceVideoQuality and sets the default values. func NewTeleconferenceDeviceVideoQuality()(*TeleconferenceDeviceVideoQuality) { m := &TeleconferenceDeviceVideoQuality{ TeleconferenceDeviceMediaQuality: *NewTeleconferenceDeviceMediaQuality(), @@ -126,8 +126,29 @@ func (m *TeleconferenceDeviceVideoQuality) GetFieldDeserializers()(map[string]fu } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TeleconferenceDeviceVideoQuality) 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 *TeleconferenceDeviceVideoQuality) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.TeleconferenceDeviceMediaQuality.Serialize(writer) @@ -158,6 +179,12 @@ func (m *TeleconferenceDeviceVideoQuality) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetAverageInboundBitRate sets the averageInboundBitRate property value. The average inbound stream video bit rate per second. @@ -188,6 +215,13 @@ func (m *TeleconferenceDeviceVideoQuality) SetAverageOutboundFrameRate(value *fl panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeleconferenceDeviceVideoQuality) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // TeleconferenceDeviceVideoQualityable type TeleconferenceDeviceVideoQualityable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -196,8 +230,10 @@ type TeleconferenceDeviceVideoQualityable interface { GetAverageInboundFrameRate()(*float64) GetAverageOutboundBitRate()(*float64) GetAverageOutboundFrameRate()(*float64) + GetOdataType()(*string) SetAverageInboundBitRate(value *float64)() SetAverageInboundFrameRate(value *float64)() SetAverageOutboundBitRate(value *float64)() SetAverageOutboundFrameRate(value *float64)() + SetOdataType(value *string)() } diff --git a/models/temporary_access_pass_authentication_method.go b/models/temporary_access_pass_authentication_method.go index e3e5d41106c..b9c5d219cb8 100644 --- a/models/temporary_access_pass_authentication_method.go +++ b/models/temporary_access_pass_authentication_method.go @@ -9,7 +9,7 @@ import ( type TemporaryAccessPassAuthenticationMethod struct { AuthenticationMethod } -// NewTemporaryAccessPassAuthenticationMethod instantiates a new TemporaryAccessPassAuthenticationMethod and sets the default values. +// NewTemporaryAccessPassAuthenticationMethod instantiates a new temporaryAccessPassAuthenticationMethod and sets the default values. func NewTemporaryAccessPassAuthenticationMethod()(*TemporaryAccessPassAuthenticationMethod) { m := &TemporaryAccessPassAuthenticationMethod{ AuthenticationMethod: *NewAuthenticationMethod(), diff --git a/models/temporary_access_pass_authentication_method_collection_response.go b/models/temporary_access_pass_authentication_method_collection_response.go index 73bedcb959b..c49e89358f4 100644 --- a/models/temporary_access_pass_authentication_method_collection_response.go +++ b/models/temporary_access_pass_authentication_method_collection_response.go @@ -8,7 +8,7 @@ import ( type TemporaryAccessPassAuthenticationMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTemporaryAccessPassAuthenticationMethodCollectionResponse instantiates a new TemporaryAccessPassAuthenticationMethodCollectionResponse and sets the default values. +// NewTemporaryAccessPassAuthenticationMethodCollectionResponse instantiates a new temporaryAccessPassAuthenticationMethodCollectionResponse and sets the default values. func NewTemporaryAccessPassAuthenticationMethodCollectionResponse()(*TemporaryAccessPassAuthenticationMethodCollectionResponse) { m := &TemporaryAccessPassAuthenticationMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/temporary_access_pass_authentication_method_configuration.go b/models/temporary_access_pass_authentication_method_configuration.go index c3d0c5bcca7..63534a2d502 100644 --- a/models/temporary_access_pass_authentication_method_configuration.go +++ b/models/temporary_access_pass_authentication_method_configuration.go @@ -8,7 +8,7 @@ import ( type TemporaryAccessPassAuthenticationMethodConfiguration struct { AuthenticationMethodConfiguration } -// NewTemporaryAccessPassAuthenticationMethodConfiguration instantiates a new TemporaryAccessPassAuthenticationMethodConfiguration and sets the default values. +// NewTemporaryAccessPassAuthenticationMethodConfiguration instantiates a new temporaryAccessPassAuthenticationMethodConfiguration and sets the default values. func NewTemporaryAccessPassAuthenticationMethodConfiguration()(*TemporaryAccessPassAuthenticationMethodConfiguration) { m := &TemporaryAccessPassAuthenticationMethodConfiguration{ AuthenticationMethodConfiguration: *NewAuthenticationMethodConfiguration(), diff --git a/models/tenant_app_management_policy.go b/models/tenant_app_management_policy.go index ea382b04de3..3988f5c6586 100644 --- a/models/tenant_app_management_policy.go +++ b/models/tenant_app_management_policy.go @@ -8,7 +8,7 @@ import ( type TenantAppManagementPolicy struct { PolicyBase } -// NewTenantAppManagementPolicy instantiates a new TenantAppManagementPolicy and sets the default values. +// NewTenantAppManagementPolicy instantiates a new tenantAppManagementPolicy and sets the default values. func NewTenantAppManagementPolicy()(*TenantAppManagementPolicy) { m := &TenantAppManagementPolicy{ PolicyBase: *NewPolicyBase(), diff --git a/models/tenant_attach_r_b_a_c.go b/models/tenant_attach_r_b_a_c.go index 9147993367d..a9c0c8ff225 100644 --- a/models/tenant_attach_r_b_a_c.go +++ b/models/tenant_attach_r_b_a_c.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// TenantAttachRBAC +// TenantAttachRBAC singleton entity that acts as a container for tenant attach enablement functionality. type TenantAttachRBAC struct { Entity + // The OdataType property + OdataType *string } // NewTenantAttachRBAC instantiates a new tenantAttachRBAC and sets the default values. func NewTenantAttachRBAC()(*TenantAttachRBAC) { diff --git a/models/tenant_reference.go b/models/tenant_reference.go index deae108a609..b16a2fdb24e 100644 --- a/models/tenant_reference.go +++ b/models/tenant_reference.go @@ -10,7 +10,7 @@ type TenantReference struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTenantReference instantiates a new TenantReference and sets the default values. +// NewTenantReference instantiates a new tenantReference and sets the default values. func NewTenantReference()(*TenantReference) { m := &TenantReference{ } diff --git a/models/tenant_reference_collection_response.go b/models/tenant_reference_collection_response.go index e421ea65428..18b87b737b7 100644 --- a/models/tenant_reference_collection_response.go +++ b/models/tenant_reference_collection_response.go @@ -8,7 +8,7 @@ import ( type TenantReferenceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTenantReferenceCollectionResponse instantiates a new TenantReferenceCollectionResponse and sets the default values. +// NewTenantReferenceCollectionResponse instantiates a new tenantReferenceCollectionResponse and sets the default values. func NewTenantReferenceCollectionResponse()(*TenantReferenceCollectionResponse) { m := &TenantReferenceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/tenant_relationship.go b/models/tenant_relationship.go index bea4794be63..f2025546fee 100644 --- a/models/tenant_relationship.go +++ b/models/tenant_relationship.go @@ -10,7 +10,7 @@ type TenantRelationship struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTenantRelationship instantiates a new TenantRelationship and sets the default values. +// NewTenantRelationship instantiates a new tenantRelationship and sets the default values. func NewTenantRelationship()(*TenantRelationship) { m := &TenantRelationship{ } diff --git a/models/tenant_relationship_access_policy_base.go b/models/tenant_relationship_access_policy_base.go index 23311441cbe..a7b49dff955 100644 --- a/models/tenant_relationship_access_policy_base.go +++ b/models/tenant_relationship_access_policy_base.go @@ -8,7 +8,7 @@ import ( type TenantRelationshipAccessPolicyBase struct { PolicyBase } -// NewTenantRelationshipAccessPolicyBase instantiates a new TenantRelationshipAccessPolicyBase and sets the default values. +// NewTenantRelationshipAccessPolicyBase instantiates a new tenantRelationshipAccessPolicyBase and sets the default values. func NewTenantRelationshipAccessPolicyBase()(*TenantRelationshipAccessPolicyBase) { m := &TenantRelationshipAccessPolicyBase{ PolicyBase: *NewPolicyBase(), diff --git a/models/tenant_setup_info.go b/models/tenant_setup_info.go index 03ee3ddab92..e3e00642730 100644 --- a/models/tenant_setup_info.go +++ b/models/tenant_setup_info.go @@ -7,8 +7,10 @@ import ( // TenantSetupInfo type TenantSetupInfo struct { Entity + // The OdataType property + OdataType *string } -// NewTenantSetupInfo instantiates a new TenantSetupInfo and sets the default values. +// NewTenantSetupInfo instantiates a new tenantSetupInfo and sets the default values. func NewTenantSetupInfo()(*TenantSetupInfo) { m := &TenantSetupInfo{ Entity: *NewEntity(), diff --git a/models/terms_and_conditions.go b/models/terms_and_conditions.go index d3162ce8644..00f2fbe406f 100644 --- a/models/terms_and_conditions.go +++ b/models/terms_and_conditions.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// TermsAndConditions +// TermsAndConditions a termsAndConditions entity represents the metadata and contents of a given Terms and Conditions (T&C) policy. T&C policies’ contents are presented to users upon their first attempt to enroll into Intune and subsequently upon edits where an administrator has required re-acceptance. They enable administrators to communicate the provisions to which a user must agree in order to have devices enrolled into Intune. type TermsAndConditions struct { Entity + // The OdataType property + OdataType *string } -// NewTermsAndConditions instantiates a new TermsAndConditions and sets the default values. +// NewTermsAndConditions instantiates a new termsAndConditions and sets the default values. func NewTermsAndConditions()(*TermsAndConditions) { m := &TermsAndConditions{ Entity: *NewEntity(), diff --git a/models/terms_and_conditions_acceptance_status.go b/models/terms_and_conditions_acceptance_status.go index 6ffad44fffb..70a0d339a58 100644 --- a/models/terms_and_conditions_acceptance_status.go +++ b/models/terms_and_conditions_acceptance_status.go @@ -8,6 +8,8 @@ import ( // TermsAndConditionsAcceptanceStatus a termsAndConditionsAcceptanceStatus entity represents the acceptance status of a given Terms and Conditions (T&C) policy by a given user. Users must accept the most up-to-date version of the terms in order to retain access to the Company Portal. type TermsAndConditionsAcceptanceStatus struct { Entity + // The OdataType property + OdataType *string } // NewTermsAndConditionsAcceptanceStatus instantiates a new termsAndConditionsAcceptanceStatus and sets the default values. func NewTermsAndConditionsAcceptanceStatus()(*TermsAndConditionsAcceptanceStatus) { diff --git a/models/terms_and_conditions_acceptance_status_collection_response.go b/models/terms_and_conditions_acceptance_status_collection_response.go index e0a53529d47..8e4748d619c 100644 --- a/models/terms_and_conditions_acceptance_status_collection_response.go +++ b/models/terms_and_conditions_acceptance_status_collection_response.go @@ -8,7 +8,7 @@ import ( type TermsAndConditionsAcceptanceStatusCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTermsAndConditionsAcceptanceStatusCollectionResponse instantiates a new TermsAndConditionsAcceptanceStatusCollectionResponse and sets the default values. +// NewTermsAndConditionsAcceptanceStatusCollectionResponse instantiates a new termsAndConditionsAcceptanceStatusCollectionResponse and sets the default values. func NewTermsAndConditionsAcceptanceStatusCollectionResponse()(*TermsAndConditionsAcceptanceStatusCollectionResponse) { m := &TermsAndConditionsAcceptanceStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/terms_and_conditions_assignment.go b/models/terms_and_conditions_assignment.go index 0a220e37258..18f14b32826 100644 --- a/models/terms_and_conditions_assignment.go +++ b/models/terms_and_conditions_assignment.go @@ -7,6 +7,8 @@ import ( // TermsAndConditionsAssignment a termsAndConditionsAssignment entity represents the assignment of a given Terms and Conditions (T&C) policy to a given group. Users in the group will be required to accept the terms in order to have devices enrolled into Intune. type TermsAndConditionsAssignment struct { Entity + // The OdataType property + OdataType *string } // NewTermsAndConditionsAssignment instantiates a new termsAndConditionsAssignment and sets the default values. func NewTermsAndConditionsAssignment()(*TermsAndConditionsAssignment) { diff --git a/models/terms_and_conditions_assignment_collection_response.go b/models/terms_and_conditions_assignment_collection_response.go index f39d36a7c80..38a0b409872 100644 --- a/models/terms_and_conditions_assignment_collection_response.go +++ b/models/terms_and_conditions_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type TermsAndConditionsAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTermsAndConditionsAssignmentCollectionResponse instantiates a new TermsAndConditionsAssignmentCollectionResponse and sets the default values. +// NewTermsAndConditionsAssignmentCollectionResponse instantiates a new termsAndConditionsAssignmentCollectionResponse and sets the default values. func NewTermsAndConditionsAssignmentCollectionResponse()(*TermsAndConditionsAssignmentCollectionResponse) { m := &TermsAndConditionsAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/terms_and_conditions_collection_response.go b/models/terms_and_conditions_collection_response.go index ffda33e135d..c2673a1ecf3 100644 --- a/models/terms_and_conditions_collection_response.go +++ b/models/terms_and_conditions_collection_response.go @@ -8,7 +8,7 @@ import ( type TermsAndConditionsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTermsAndConditionsCollectionResponse instantiates a new TermsAndConditionsCollectionResponse and sets the default values. +// NewTermsAndConditionsCollectionResponse instantiates a new termsAndConditionsCollectionResponse and sets the default values. func NewTermsAndConditionsCollectionResponse()(*TermsAndConditionsCollectionResponse) { m := &TermsAndConditionsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/terms_and_conditions_group_assignment.go b/models/terms_and_conditions_group_assignment.go index f4705f99c25..ec68bda984c 100644 --- a/models/terms_and_conditions_group_assignment.go +++ b/models/terms_and_conditions_group_assignment.go @@ -7,6 +7,8 @@ import ( // TermsAndConditionsGroupAssignment a termsAndConditionsGroupAssignment entity represents the assignment of a given Terms and Conditions (T&C) policy to a given group. Users in the group will be required to accept the terms in order to have devices enrolled into Intune. type TermsAndConditionsGroupAssignment struct { Entity + // The OdataType property + OdataType *string } // NewTermsAndConditionsGroupAssignment instantiates a new termsAndConditionsGroupAssignment and sets the default values. func NewTermsAndConditionsGroupAssignment()(*TermsAndConditionsGroupAssignment) { diff --git a/models/terms_and_conditions_group_assignment_collection_response.go b/models/terms_and_conditions_group_assignment_collection_response.go index 957ea855eec..654a568ec1b 100644 --- a/models/terms_and_conditions_group_assignment_collection_response.go +++ b/models/terms_and_conditions_group_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type TermsAndConditionsGroupAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTermsAndConditionsGroupAssignmentCollectionResponse instantiates a new TermsAndConditionsGroupAssignmentCollectionResponse and sets the default values. +// NewTermsAndConditionsGroupAssignmentCollectionResponse instantiates a new termsAndConditionsGroupAssignmentCollectionResponse and sets the default values. func NewTermsAndConditionsGroupAssignmentCollectionResponse()(*TermsAndConditionsGroupAssignmentCollectionResponse) { m := &TermsAndConditionsGroupAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/terms_of_use_container.go b/models/terms_of_use_container.go index d99035988e5..2a639f9722a 100644 --- a/models/terms_of_use_container.go +++ b/models/terms_of_use_container.go @@ -7,8 +7,10 @@ import ( // TermsOfUseContainer type TermsOfUseContainer struct { Entity + // The OdataType property + OdataType *string } -// NewTermsOfUseContainer instantiates a new TermsOfUseContainer and sets the default values. +// NewTermsOfUseContainer instantiates a new termsOfUseContainer and sets the default values. func NewTermsOfUseContainer()(*TermsOfUseContainer) { m := &TermsOfUseContainer{ Entity: *NewEntity(), diff --git a/models/termstore/group.go b/models/termstore/group.go index 15e3222fcd9..0f834a46b56 100644 --- a/models/termstore/group.go +++ b/models/termstore/group.go @@ -9,6 +9,8 @@ import ( // Group type Group struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewGroup instantiates a new group and sets the default values. func NewGroup()(*Group) { diff --git a/models/termstore/group_collection_response.go b/models/termstore/group_collection_response.go index c41e293ffd2..086dc6209b5 100644 --- a/models/termstore/group_collection_response.go +++ b/models/termstore/group_collection_response.go @@ -9,7 +9,7 @@ import ( type GroupCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewGroupCollectionResponse instantiates a new GroupCollectionResponse and sets the default values. +// NewGroupCollectionResponse instantiates a new groupCollectionResponse and sets the default values. func NewGroupCollectionResponse()(*GroupCollectionResponse) { m := &GroupCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/termstore/relation.go b/models/termstore/relation.go index ddb42dbce55..aa1af49ef66 100644 --- a/models/termstore/relation.go +++ b/models/termstore/relation.go @@ -8,6 +8,8 @@ import ( // Relation type Relation struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewRelation instantiates a new relation and sets the default values. func NewRelation()(*Relation) { diff --git a/models/termstore/relation_collection_response.go b/models/termstore/relation_collection_response.go index 1beb244c830..ba113aa16fb 100644 --- a/models/termstore/relation_collection_response.go +++ b/models/termstore/relation_collection_response.go @@ -9,7 +9,7 @@ import ( type RelationCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewRelationCollectionResponse instantiates a new RelationCollectionResponse and sets the default values. +// NewRelationCollectionResponse instantiates a new relationCollectionResponse and sets the default values. func NewRelationCollectionResponse()(*RelationCollectionResponse) { m := &RelationCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/termstore/set.go b/models/termstore/set.go index d746a8de825..f329562c185 100644 --- a/models/termstore/set.go +++ b/models/termstore/set.go @@ -9,6 +9,8 @@ import ( // Set type Set struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewSet instantiates a new set and sets the default values. func NewSet()(*Set) { diff --git a/models/termstore/set_collection_response.go b/models/termstore/set_collection_response.go index 96109397b97..65afb3e8d14 100644 --- a/models/termstore/set_collection_response.go +++ b/models/termstore/set_collection_response.go @@ -9,7 +9,7 @@ import ( type SetCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewSetCollectionResponse instantiates a new SetCollectionResponse and sets the default values. +// NewSetCollectionResponse instantiates a new setCollectionResponse and sets the default values. func NewSetCollectionResponse()(*SetCollectionResponse) { m := &SetCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/termstore/store.go b/models/termstore/store.go index 05dcd28de83..dea38f514b9 100644 --- a/models/termstore/store.go +++ b/models/termstore/store.go @@ -8,6 +8,8 @@ import ( // Store type Store struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewStore instantiates a new store and sets the default values. func NewStore()(*Store) { diff --git a/models/termstore/term.go b/models/termstore/term.go index d6dd79b21bf..6bdeb4a867f 100644 --- a/models/termstore/term.go +++ b/models/termstore/term.go @@ -9,6 +9,8 @@ import ( // Term type Term struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewTerm instantiates a new term and sets the default values. func NewTerm()(*Term) { diff --git a/models/termstore/term_collection_response.go b/models/termstore/term_collection_response.go index e1293999071..ffcc7f8a1d3 100644 --- a/models/termstore/term_collection_response.go +++ b/models/termstore/term_collection_response.go @@ -9,7 +9,7 @@ import ( type TermCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewTermCollectionResponse instantiates a new TermCollectionResponse and sets the default values. +// NewTermCollectionResponse instantiates a new termCollectionResponse and sets the default values. func NewTermCollectionResponse()(*TermCollectionResponse) { m := &TermCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/text_classification_request.go b/models/text_classification_request.go index bf5733130dc..a3ced2846db 100644 --- a/models/text_classification_request.go +++ b/models/text_classification_request.go @@ -7,8 +7,10 @@ import ( // TextClassificationRequest type TextClassificationRequest struct { Entity + // The OdataType property + OdataType *string } -// NewTextClassificationRequest instantiates a new TextClassificationRequest and sets the default values. +// NewTextClassificationRequest instantiates a new textClassificationRequest and sets the default values. func NewTextClassificationRequest()(*TextClassificationRequest) { m := &TextClassificationRequest{ Entity: *NewEntity(), diff --git a/models/text_web_part.go b/models/text_web_part.go index 80592a52633..ddb33ebaf45 100644 --- a/models/text_web_part.go +++ b/models/text_web_part.go @@ -8,7 +8,7 @@ import ( type TextWebPart struct { WebPart } -// NewTextWebPart instantiates a new TextWebPart and sets the default values. +// NewTextWebPart instantiates a new textWebPart and sets the default values. func NewTextWebPart()(*TextWebPart) { m := &TextWebPart{ WebPart: *NewWebPart(), diff --git a/models/threat_assessment_request.go b/models/threat_assessment_request.go index c9982f430b9..eec04b422fe 100644 --- a/models/threat_assessment_request.go +++ b/models/threat_assessment_request.go @@ -8,6 +8,8 @@ import ( // ThreatAssessmentRequest type ThreatAssessmentRequest struct { Entity + // The OdataType property + OdataType *string } // NewThreatAssessmentRequest instantiates a new threatAssessmentRequest and sets the default values. func NewThreatAssessmentRequest()(*ThreatAssessmentRequest) { diff --git a/models/threat_assessment_request_collection_response.go b/models/threat_assessment_request_collection_response.go index 65eeaf00c83..f09b06500ae 100644 --- a/models/threat_assessment_request_collection_response.go +++ b/models/threat_assessment_request_collection_response.go @@ -8,7 +8,7 @@ import ( type ThreatAssessmentRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewThreatAssessmentRequestCollectionResponse instantiates a new ThreatAssessmentRequestCollectionResponse and sets the default values. +// NewThreatAssessmentRequestCollectionResponse instantiates a new threatAssessmentRequestCollectionResponse and sets the default values. func NewThreatAssessmentRequestCollectionResponse()(*ThreatAssessmentRequestCollectionResponse) { m := &ThreatAssessmentRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/threat_assessment_result.go b/models/threat_assessment_result.go index b7abf422824..e0e375a1c3d 100644 --- a/models/threat_assessment_result.go +++ b/models/threat_assessment_result.go @@ -54,6 +54,16 @@ func (m *ThreatAssessmentResult) GetFieldDeserializers()(map[string]func(i878a80 } 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["resultType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseThreatAssessmentResultType) if err != nil { @@ -77,6 +87,17 @@ func (m *ThreatAssessmentResult) GetMessage()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ThreatAssessmentResult) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*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) { val, err := m.GetBackingStore().Get("resultType") @@ -106,6 +127,12 @@ func (m *ThreatAssessmentResult) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetResultType() != nil { cast := (*m.GetResultType()).String() err = writer.WriteStringValue("resultType", &cast) @@ -129,6 +156,13 @@ func (m *ThreatAssessmentResult) SetMessage(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ThreatAssessmentResult) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // 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)() { err := m.GetBackingStore().Set("resultType", value) @@ -142,8 +176,10 @@ type ThreatAssessmentResultable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMessage()(*string) + GetOdataType()(*string) GetResultType()(*ThreatAssessmentResultType) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMessage(value *string)() + SetOdataType(value *string)() SetResultType(value *ThreatAssessmentResultType)() } diff --git a/models/threat_assessment_result_collection_response.go b/models/threat_assessment_result_collection_response.go index a46697e9a33..7c8e39e205f 100644 --- a/models/threat_assessment_result_collection_response.go +++ b/models/threat_assessment_result_collection_response.go @@ -8,7 +8,7 @@ import ( type ThreatAssessmentResultCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewThreatAssessmentResultCollectionResponse instantiates a new ThreatAssessmentResultCollectionResponse and sets the default values. +// NewThreatAssessmentResultCollectionResponse instantiates a new threatAssessmentResultCollectionResponse and sets the default values. func NewThreatAssessmentResultCollectionResponse()(*ThreatAssessmentResultCollectionResponse) { m := &ThreatAssessmentResultCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/thumbnail_set.go b/models/thumbnail_set.go index adfd9a35d0d..e69d20630d7 100644 --- a/models/thumbnail_set.go +++ b/models/thumbnail_set.go @@ -7,6 +7,8 @@ import ( // ThumbnailSet type ThumbnailSet struct { Entity + // The OdataType property + OdataType *string } // NewThumbnailSet instantiates a new thumbnailSet and sets the default values. func NewThumbnailSet()(*ThumbnailSet) { diff --git a/models/thumbnail_set_collection_response.go b/models/thumbnail_set_collection_response.go index 245f5dd4dfd..21343d9fe8d 100644 --- a/models/thumbnail_set_collection_response.go +++ b/models/thumbnail_set_collection_response.go @@ -8,7 +8,7 @@ import ( type ThumbnailSetCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewThumbnailSetCollectionResponse instantiates a new ThumbnailSetCollectionResponse and sets the default values. +// NewThumbnailSetCollectionResponse instantiates a new thumbnailSetCollectionResponse and sets the default values. func NewThumbnailSetCollectionResponse()(*ThumbnailSetCollectionResponse) { m := &ThumbnailSetCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/ti_indicator.go b/models/ti_indicator.go index ec367b9df35..3c1e8669cfe 100644 --- a/models/ti_indicator.go +++ b/models/ti_indicator.go @@ -8,8 +8,10 @@ import ( // TiIndicator type TiIndicator struct { Entity + // The OdataType property + OdataType *string } -// NewTiIndicator instantiates a new TiIndicator and sets the default values. +// NewTiIndicator instantiates a new tiIndicator and sets the default values. func NewTiIndicator()(*TiIndicator) { m := &TiIndicator{ Entity: *NewEntity(), diff --git a/models/ti_indicator_collection_response.go b/models/ti_indicator_collection_response.go index 98942bb589c..60669539426 100644 --- a/models/ti_indicator_collection_response.go +++ b/models/ti_indicator_collection_response.go @@ -8,7 +8,7 @@ import ( type TiIndicatorCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTiIndicatorCollectionResponse instantiates a new TiIndicatorCollectionResponse and sets the default values. +// NewTiIndicatorCollectionResponse instantiates a new tiIndicatorCollectionResponse and sets the default values. func NewTiIndicatorCollectionResponse()(*TiIndicatorCollectionResponse) { m := &TiIndicatorCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/time_card.go b/models/time_card.go index c6c0249109c..ece2466d105 100644 --- a/models/time_card.go +++ b/models/time_card.go @@ -8,7 +8,7 @@ import ( type TimeCard struct { ChangeTrackedEntity } -// NewTimeCard instantiates a new TimeCard and sets the default values. +// NewTimeCard instantiates a new timeCard and sets the default values. func NewTimeCard()(*TimeCard) { m := &TimeCard{ ChangeTrackedEntity: *NewChangeTrackedEntity(), diff --git a/models/time_card_collection_response.go b/models/time_card_collection_response.go index 3fdec8b4adc..e17298e7135 100644 --- a/models/time_card_collection_response.go +++ b/models/time_card_collection_response.go @@ -8,7 +8,7 @@ import ( type TimeCardCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTimeCardCollectionResponse instantiates a new TimeCardCollectionResponse and sets the default values. +// NewTimeCardCollectionResponse instantiates a new timeCardCollectionResponse and sets the default values. func NewTimeCardCollectionResponse()(*TimeCardCollectionResponse) { m := &TimeCardCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/time_off.go b/models/time_off.go index f9549db9601..aebb59f03e4 100644 --- a/models/time_off.go +++ b/models/time_off.go @@ -8,7 +8,7 @@ import ( type TimeOff struct { ChangeTrackedEntity } -// NewTimeOff instantiates a new TimeOff and sets the default values. +// NewTimeOff instantiates a new timeOff and sets the default values. func NewTimeOff()(*TimeOff) { m := &TimeOff{ ChangeTrackedEntity: *NewChangeTrackedEntity(), diff --git a/models/time_off_collection_response.go b/models/time_off_collection_response.go index ddb78ebe482..e829f749f1a 100644 --- a/models/time_off_collection_response.go +++ b/models/time_off_collection_response.go @@ -8,7 +8,7 @@ import ( type TimeOffCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTimeOffCollectionResponse instantiates a new TimeOffCollectionResponse and sets the default values. +// NewTimeOffCollectionResponse instantiates a new timeOffCollectionResponse and sets the default values. func NewTimeOffCollectionResponse()(*TimeOffCollectionResponse) { m := &TimeOffCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/time_off_item.go b/models/time_off_item.go index 4dbf64d9347..f8ead5685dc 100644 --- a/models/time_off_item.go +++ b/models/time_off_item.go @@ -8,7 +8,7 @@ import ( type TimeOffItem struct { ScheduleEntity } -// NewTimeOffItem instantiates a new TimeOffItem and sets the default values. +// NewTimeOffItem instantiates a new timeOffItem and sets the default values. func NewTimeOffItem()(*TimeOffItem) { m := &TimeOffItem{ ScheduleEntity: *NewScheduleEntity(), @@ -22,6 +22,16 @@ func CreateTimeOffItemFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a // GetFieldDeserializers the deserialization information for the current model func (m *TimeOffItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ScheduleEntity.GetFieldDeserializers() + 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["timeOffReasonId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -34,6 +44,17 @@ func (m *TimeOffItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TimeOffItem) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTimeOffReasonId gets the timeOffReasonId property value. ID of the timeOffReason for this timeOffItem. Required. func (m *TimeOffItem) GetTimeOffReasonId()(*string) { val, err := m.GetBackingStore().Get("timeOffReasonId") @@ -51,6 +72,12 @@ func (m *TimeOffItem) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("timeOffReasonId", m.GetTimeOffReasonId()) if err != nil { @@ -59,6 +86,13 @@ func (m *TimeOffItem) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TimeOffItem) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTimeOffReasonId sets the timeOffReasonId property value. ID of the timeOffReason for this timeOffItem. Required. func (m *TimeOffItem) SetTimeOffReasonId(value *string)() { err := m.GetBackingStore().Set("timeOffReasonId", value) @@ -70,6 +104,8 @@ func (m *TimeOffItem) SetTimeOffReasonId(value *string)() { type TimeOffItemable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable ScheduleEntityable + GetOdataType()(*string) GetTimeOffReasonId()(*string) + SetOdataType(value *string)() SetTimeOffReasonId(value *string)() } diff --git a/models/time_off_reason.go b/models/time_off_reason.go index ef35207fdc3..6fc669bc2d4 100644 --- a/models/time_off_reason.go +++ b/models/time_off_reason.go @@ -8,7 +8,7 @@ import ( type TimeOffReason struct { ChangeTrackedEntity } -// NewTimeOffReason instantiates a new TimeOffReason and sets the default values. +// NewTimeOffReason instantiates a new timeOffReason and sets the default values. func NewTimeOffReason()(*TimeOffReason) { m := &TimeOffReason{ ChangeTrackedEntity: *NewChangeTrackedEntity(), diff --git a/models/time_off_reason_collection_response.go b/models/time_off_reason_collection_response.go index 2ca97ba844a..b5ef8eb8ec9 100644 --- a/models/time_off_reason_collection_response.go +++ b/models/time_off_reason_collection_response.go @@ -8,7 +8,7 @@ import ( type TimeOffReasonCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTimeOffReasonCollectionResponse instantiates a new TimeOffReasonCollectionResponse and sets the default values. +// NewTimeOffReasonCollectionResponse instantiates a new timeOffReasonCollectionResponse and sets the default values. func NewTimeOffReasonCollectionResponse()(*TimeOffReasonCollectionResponse) { m := &TimeOffReasonCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/time_off_request.go b/models/time_off_request.go index 46a06ea4960..76549ef265c 100644 --- a/models/time_off_request.go +++ b/models/time_off_request.go @@ -9,7 +9,7 @@ import ( type TimeOffRequest struct { ScheduleChangeRequest } -// NewTimeOffRequest instantiates a new TimeOffRequest and sets the default values. +// NewTimeOffRequest instantiates a new timeOffRequest and sets the default values. func NewTimeOffRequest()(*TimeOffRequest) { m := &TimeOffRequest{ ScheduleChangeRequest: *NewScheduleChangeRequest(), diff --git a/models/time_off_request_collection_response.go b/models/time_off_request_collection_response.go index 6aebf86565c..fdbc38dcfcd 100644 --- a/models/time_off_request_collection_response.go +++ b/models/time_off_request_collection_response.go @@ -8,7 +8,7 @@ import ( type TimeOffRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTimeOffRequestCollectionResponse instantiates a new TimeOffRequestCollectionResponse and sets the default values. +// NewTimeOffRequestCollectionResponse instantiates a new timeOffRequestCollectionResponse and sets the default values. func NewTimeOffRequestCollectionResponse()(*TimeOffRequestCollectionResponse) { m := &TimeOffRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/time_zone_information.go b/models/time_zone_information.go index f9bdec6e36a..5f339d02e28 100644 --- a/models/time_zone_information.go +++ b/models/time_zone_information.go @@ -10,7 +10,7 @@ type TimeZoneInformation struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTimeZoneInformation instantiates a new TimeZoneInformation and sets the default values. +// NewTimeZoneInformation instantiates a new timeZoneInformation and sets the default values. func NewTimeZoneInformation()(*TimeZoneInformation) { m := &TimeZoneInformation{ } diff --git a/models/todo.go b/models/todo.go index c5805909b20..2ec114679fd 100644 --- a/models/todo.go +++ b/models/todo.go @@ -7,8 +7,10 @@ import ( // Todo type Todo struct { Entity + // The OdataType property + OdataType *string } -// NewTodo instantiates a new Todo and sets the default values. +// NewTodo instantiates a new todo and sets the default values. func NewTodo()(*Todo) { m := &Todo{ Entity: *NewEntity(), diff --git a/models/todo_settings.go b/models/todo_settings.go index 80031949b32..133e1541668 100644 --- a/models/todo_settings.go +++ b/models/todo_settings.go @@ -10,7 +10,7 @@ type TodoSettings struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTodoSettings instantiates a new TodoSettings and sets the default values. +// NewTodoSettings instantiates a new todoSettings and sets the default values. func NewTodoSettings()(*TodoSettings) { m := &TodoSettings{ } @@ -83,7 +83,7 @@ func (m *TodoSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } -// GetIsExternalJoinEnabled gets the isExternalJoinEnabled property value. The isExternalJoinEnabled property +// GetIsExternalJoinEnabled gets the isExternalJoinEnabled property value. Controls whether users can join lists from users external to your organization. func (m *TodoSettings) GetIsExternalJoinEnabled()(*bool) { val, err := m.GetBackingStore().Get("isExternalJoinEnabled") if err != nil { @@ -94,7 +94,7 @@ func (m *TodoSettings) GetIsExternalJoinEnabled()(*bool) { } return nil } -// GetIsExternalShareEnabled gets the isExternalShareEnabled property value. The isExternalShareEnabled property +// GetIsExternalShareEnabled gets the isExternalShareEnabled property value. Controls whether users can share lists with external users. func (m *TodoSettings) GetIsExternalShareEnabled()(*bool) { val, err := m.GetBackingStore().Get("isExternalShareEnabled") if err != nil { @@ -105,7 +105,7 @@ func (m *TodoSettings) GetIsExternalShareEnabled()(*bool) { } return nil } -// GetIsPushNotificationEnabled gets the isPushNotificationEnabled property value. The isPushNotificationEnabled property +// GetIsPushNotificationEnabled gets the isPushNotificationEnabled property value. Controls whether push notifications are enabled for your users. func (m *TodoSettings) GetIsPushNotificationEnabled()(*bool) { val, err := m.GetBackingStore().Get("isPushNotificationEnabled") if err != nil { @@ -172,21 +172,21 @@ func (m *TodoSettings) SetAdditionalData(value map[string]any)() { func (m *TodoSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIsExternalJoinEnabled sets the isExternalJoinEnabled property value. The isExternalJoinEnabled property +// SetIsExternalJoinEnabled sets the isExternalJoinEnabled property value. Controls whether users can join lists from users external to your organization. func (m *TodoSettings) SetIsExternalJoinEnabled(value *bool)() { err := m.GetBackingStore().Set("isExternalJoinEnabled", value) if err != nil { panic(err) } } -// SetIsExternalShareEnabled sets the isExternalShareEnabled property value. The isExternalShareEnabled property +// SetIsExternalShareEnabled sets the isExternalShareEnabled property value. Controls whether users can share lists with external users. func (m *TodoSettings) SetIsExternalShareEnabled(value *bool)() { err := m.GetBackingStore().Set("isExternalShareEnabled", value) if err != nil { panic(err) } } -// SetIsPushNotificationEnabled sets the isPushNotificationEnabled property value. The isPushNotificationEnabled property +// SetIsPushNotificationEnabled sets the isPushNotificationEnabled property value. Controls whether push notifications are enabled for your users. func (m *TodoSettings) SetIsPushNotificationEnabled(value *bool)() { err := m.GetBackingStore().Set("isPushNotificationEnabled", value) if err != nil { diff --git a/models/todo_task.go b/models/todo_task.go index 7b4c6a5003b..874d64f5fec 100644 --- a/models/todo_task.go +++ b/models/todo_task.go @@ -8,6 +8,8 @@ import ( // TodoTask type TodoTask struct { Entity + // The OdataType property + OdataType *string } // NewTodoTask instantiates a new todoTask and sets the default values. func NewTodoTask()(*TodoTask) { diff --git a/models/todo_task_collection_response.go b/models/todo_task_collection_response.go index 43ec24df7e4..9acbfe58cda 100644 --- a/models/todo_task_collection_response.go +++ b/models/todo_task_collection_response.go @@ -8,7 +8,7 @@ import ( type TodoTaskCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTodoTaskCollectionResponse instantiates a new TodoTaskCollectionResponse and sets the default values. +// NewTodoTaskCollectionResponse instantiates a new todoTaskCollectionResponse and sets the default values. func NewTodoTaskCollectionResponse()(*TodoTaskCollectionResponse) { m := &TodoTaskCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/todo_task_list.go b/models/todo_task_list.go index 2f3094367d5..f53d871399b 100644 --- a/models/todo_task_list.go +++ b/models/todo_task_list.go @@ -7,6 +7,8 @@ import ( // TodoTaskList type TodoTaskList struct { Entity + // The OdataType property + OdataType *string } // NewTodoTaskList instantiates a new todoTaskList and sets the default values. func NewTodoTaskList()(*TodoTaskList) { diff --git a/models/todo_task_list_collection_response.go b/models/todo_task_list_collection_response.go index a4ab58ecaf6..bd9110670ef 100644 --- a/models/todo_task_list_collection_response.go +++ b/models/todo_task_list_collection_response.go @@ -8,7 +8,7 @@ import ( type TodoTaskListCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTodoTaskListCollectionResponse instantiates a new TodoTaskListCollectionResponse and sets the default values. +// NewTodoTaskListCollectionResponse instantiates a new todoTaskListCollectionResponse and sets the default values. func NewTodoTaskListCollectionResponse()(*TodoTaskListCollectionResponse) { m := &TodoTaskListCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/token_issuance_policy.go b/models/token_issuance_policy.go index af9c0cb32ed..534ca751dbb 100644 --- a/models/token_issuance_policy.go +++ b/models/token_issuance_policy.go @@ -8,7 +8,7 @@ import ( type TokenIssuancePolicy struct { StsPolicy } -// NewTokenIssuancePolicy instantiates a new TokenIssuancePolicy and sets the default values. +// NewTokenIssuancePolicy instantiates a new tokenIssuancePolicy and sets the default values. func NewTokenIssuancePolicy()(*TokenIssuancePolicy) { m := &TokenIssuancePolicy{ StsPolicy: *NewStsPolicy(), diff --git a/models/token_issuance_policy_collection_response.go b/models/token_issuance_policy_collection_response.go index ebc02793ab0..e229687e57c 100644 --- a/models/token_issuance_policy_collection_response.go +++ b/models/token_issuance_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type TokenIssuancePolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTokenIssuancePolicyCollectionResponse instantiates a new TokenIssuancePolicyCollectionResponse and sets the default values. +// NewTokenIssuancePolicyCollectionResponse instantiates a new tokenIssuancePolicyCollectionResponse and sets the default values. func NewTokenIssuancePolicyCollectionResponse()(*TokenIssuancePolicyCollectionResponse) { m := &TokenIssuancePolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/token_lifetime_policy.go b/models/token_lifetime_policy.go index e9d2dc6c9e6..e9ea533df2c 100644 --- a/models/token_lifetime_policy.go +++ b/models/token_lifetime_policy.go @@ -8,7 +8,7 @@ import ( type TokenLifetimePolicy struct { StsPolicy } -// NewTokenLifetimePolicy instantiates a new TokenLifetimePolicy and sets the default values. +// NewTokenLifetimePolicy instantiates a new tokenLifetimePolicy and sets the default values. func NewTokenLifetimePolicy()(*TokenLifetimePolicy) { m := &TokenLifetimePolicy{ StsPolicy: *NewStsPolicy(), diff --git a/models/token_lifetime_policy_collection_response.go b/models/token_lifetime_policy_collection_response.go index 5085be661c0..4c231d678a2 100644 --- a/models/token_lifetime_policy_collection_response.go +++ b/models/token_lifetime_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type TokenLifetimePolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTokenLifetimePolicyCollectionResponse instantiates a new TokenLifetimePolicyCollectionResponse and sets the default values. +// NewTokenLifetimePolicyCollectionResponse instantiates a new tokenLifetimePolicyCollectionResponse and sets the default values. func NewTokenLifetimePolicyCollectionResponse()(*TokenLifetimePolicyCollectionResponse) { m := &TokenLifetimePolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/token_meeting_info.go b/models/token_meeting_info.go index 23067b5d641..b9bce02a70e 100644 --- a/models/token_meeting_info.go +++ b/models/token_meeting_info.go @@ -8,7 +8,7 @@ import ( type TokenMeetingInfo struct { MeetingInfo } -// NewTokenMeetingInfo instantiates a new TokenMeetingInfo and sets the default values. +// NewTokenMeetingInfo instantiates a new tokenMeetingInfo and sets the default values. func NewTokenMeetingInfo()(*TokenMeetingInfo) { m := &TokenMeetingInfo{ MeetingInfo: *NewMeetingInfo(), @@ -24,6 +24,16 @@ func CreateTokenMeetingInfoFromDiscriminatorValue(parseNode i878a80d2330e89d2689 // GetFieldDeserializers the deserialization information for the current model func (m *TokenMeetingInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MeetingInfo.GetFieldDeserializers() + 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["token"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,6 +46,17 @@ func (m *TokenMeetingInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TokenMeetingInfo) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetToken gets the token property value. The token used to join the call. func (m *TokenMeetingInfo) GetToken()(*string) { val, err := m.GetBackingStore().Get("token") @@ -53,6 +74,12 @@ func (m *TokenMeetingInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("token", m.GetToken()) if err != nil { @@ -61,6 +88,13 @@ func (m *TokenMeetingInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TokenMeetingInfo) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetToken sets the token property value. The token used to join the call. func (m *TokenMeetingInfo) SetToken(value *string)() { err := m.GetBackingStore().Set("token", value) @@ -72,6 +106,8 @@ func (m *TokenMeetingInfo) SetToken(value *string)() { type TokenMeetingInfoable interface { MeetingInfoable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetToken()(*string) + SetOdataType(value *string)() SetToken(value *string)() } diff --git a/models/too_many_global_admins_assigned_to_tenant_alert_configuration.go b/models/too_many_global_admins_assigned_to_tenant_alert_configuration.go index 7aecb47f89c..7a45a6ccd9e 100644 --- a/models/too_many_global_admins_assigned_to_tenant_alert_configuration.go +++ b/models/too_many_global_admins_assigned_to_tenant_alert_configuration.go @@ -8,7 +8,7 @@ import ( type TooManyGlobalAdminsAssignedToTenantAlertConfiguration struct { UnifiedRoleManagementAlertConfiguration } -// NewTooManyGlobalAdminsAssignedToTenantAlertConfiguration instantiates a new TooManyGlobalAdminsAssignedToTenantAlertConfiguration and sets the default values. +// NewTooManyGlobalAdminsAssignedToTenantAlertConfiguration instantiates a new tooManyGlobalAdminsAssignedToTenantAlertConfiguration and sets the default values. func NewTooManyGlobalAdminsAssignedToTenantAlertConfiguration()(*TooManyGlobalAdminsAssignedToTenantAlertConfiguration) { m := &TooManyGlobalAdminsAssignedToTenantAlertConfiguration{ UnifiedRoleManagementAlertConfiguration: *NewUnifiedRoleManagementAlertConfiguration(), diff --git a/models/too_many_global_admins_assigned_to_tenant_alert_incident.go b/models/too_many_global_admins_assigned_to_tenant_alert_incident.go index 3469968f5d5..c8e25ed6974 100644 --- a/models/too_many_global_admins_assigned_to_tenant_alert_incident.go +++ b/models/too_many_global_admins_assigned_to_tenant_alert_incident.go @@ -8,7 +8,7 @@ import ( type TooManyGlobalAdminsAssignedToTenantAlertIncident struct { UnifiedRoleManagementAlertIncident } -// NewTooManyGlobalAdminsAssignedToTenantAlertIncident instantiates a new TooManyGlobalAdminsAssignedToTenantAlertIncident and sets the default values. +// NewTooManyGlobalAdminsAssignedToTenantAlertIncident instantiates a new tooManyGlobalAdminsAssignedToTenantAlertIncident and sets the default values. func NewTooManyGlobalAdminsAssignedToTenantAlertIncident()(*TooManyGlobalAdminsAssignedToTenantAlertIncident) { m := &TooManyGlobalAdminsAssignedToTenantAlertIncident{ UnifiedRoleManagementAlertIncident: *NewUnifiedRoleManagementAlertIncident(), diff --git a/models/training.go b/models/training.go index cd9695941b4..9b959310f52 100644 --- a/models/training.go +++ b/models/training.go @@ -8,6 +8,8 @@ import ( // Training type Training struct { Entity + // The OdataType property + OdataType *string } // NewTraining instantiates a new training and sets the default values. func NewTraining()(*Training) { diff --git a/models/training_collection_response.go b/models/training_collection_response.go index b92c838f4eb..45e4f692ced 100644 --- a/models/training_collection_response.go +++ b/models/training_collection_response.go @@ -8,7 +8,7 @@ import ( type TrainingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTrainingCollectionResponse instantiates a new TrainingCollectionResponse and sets the default values. +// NewTrainingCollectionResponse instantiates a new trainingCollectionResponse and sets the default values. func NewTrainingCollectionResponse()(*TrainingCollectionResponse) { m := &TrainingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/training_language_detail.go b/models/training_language_detail.go index 922ba6cfd9a..066845b1a38 100644 --- a/models/training_language_detail.go +++ b/models/training_language_detail.go @@ -8,6 +8,8 @@ import ( // TrainingLanguageDetail type TrainingLanguageDetail struct { Entity + // The OdataType property + OdataType *string } // NewTrainingLanguageDetail instantiates a new trainingLanguageDetail and sets the default values. func NewTrainingLanguageDetail()(*TrainingLanguageDetail) { diff --git a/models/training_language_detail_collection_response.go b/models/training_language_detail_collection_response.go index fa1c97f9237..2d24fb491ff 100644 --- a/models/training_language_detail_collection_response.go +++ b/models/training_language_detail_collection_response.go @@ -8,7 +8,7 @@ import ( type TrainingLanguageDetailCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTrainingLanguageDetailCollectionResponse instantiates a new TrainingLanguageDetailCollectionResponse and sets the default values. +// NewTrainingLanguageDetailCollectionResponse instantiates a new trainingLanguageDetailCollectionResponse and sets the default values. func NewTrainingLanguageDetailCollectionResponse()(*TrainingLanguageDetailCollectionResponse) { m := &TrainingLanguageDetailCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/training_notification_setting.go b/models/training_notification_setting.go index d4c7e223a16..0e7da03b0a1 100644 --- a/models/training_notification_setting.go +++ b/models/training_notification_setting.go @@ -7,8 +7,10 @@ import ( // TrainingNotificationSetting type TrainingNotificationSetting struct { EndUserNotificationSetting + // The OdataType property + OdataType *string } -// NewTrainingNotificationSetting instantiates a new TrainingNotificationSetting and sets the default values. +// NewTrainingNotificationSetting instantiates a new trainingNotificationSetting and sets the default values. func NewTrainingNotificationSetting()(*TrainingNotificationSetting) { m := &TrainingNotificationSetting{ EndUserNotificationSetting: *NewEndUserNotificationSetting(), diff --git a/models/training_reminder_notification.go b/models/training_reminder_notification.go index 6a4302848a9..db54edf8e7b 100644 --- a/models/training_reminder_notification.go +++ b/models/training_reminder_notification.go @@ -7,8 +7,10 @@ import ( // TrainingReminderNotification type TrainingReminderNotification struct { BaseEndUserNotification + // The OdataType property + OdataType *string } -// NewTrainingReminderNotification instantiates a new TrainingReminderNotification and sets the default values. +// NewTrainingReminderNotification instantiates a new trainingReminderNotification and sets the default values. func NewTrainingReminderNotification()(*TrainingReminderNotification) { m := &TrainingReminderNotification{ BaseEndUserNotification: *NewBaseEndUserNotification(), diff --git a/models/translation_language_override.go b/models/translation_language_override.go index d82b34146e2..b893e3598ec 100644 --- a/models/translation_language_override.go +++ b/models/translation_language_override.go @@ -10,7 +10,7 @@ type TranslationLanguageOverride struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTranslationLanguageOverride instantiates a new TranslationLanguageOverride and sets the default values. +// NewTranslationLanguageOverride instantiates a new translationLanguageOverride and sets the default values. func NewTranslationLanguageOverride()(*TranslationLanguageOverride) { m := &TranslationLanguageOverride{ } diff --git a/models/trending.go b/models/trending.go index 29f02b9b136..225fa3a36b9 100644 --- a/models/trending.go +++ b/models/trending.go @@ -8,6 +8,8 @@ import ( // Trending type Trending struct { Entity + // The OdataType property + OdataType *string } // NewTrending instantiates a new trending and sets the default values. func NewTrending()(*Trending) { diff --git a/models/trending_collection_response.go b/models/trending_collection_response.go index 960899db9fd..75dc93dd1b0 100644 --- a/models/trending_collection_response.go +++ b/models/trending_collection_response.go @@ -8,7 +8,7 @@ import ( type TrendingCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTrendingCollectionResponse instantiates a new TrendingCollectionResponse and sets the default values. +// NewTrendingCollectionResponse instantiates a new trendingCollectionResponse and sets the default values. func NewTrendingCollectionResponse()(*TrendingCollectionResponse) { m := &TrendingCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/trust_framework.go b/models/trust_framework.go index de22df77b78..42baeeec61a 100644 --- a/models/trust_framework.go +++ b/models/trust_framework.go @@ -10,7 +10,7 @@ type TrustFramework struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTrustFramework instantiates a new TrustFramework and sets the default values. +// NewTrustFramework instantiates a new trustFramework and sets the default values. func NewTrustFramework()(*TrustFramework) { m := &TrustFramework{ } diff --git a/models/trust_framework_key.go b/models/trust_framework_key.go index 1a85b18e468..7d32a7267cf 100644 --- a/models/trust_framework_key.go +++ b/models/trust_framework_key.go @@ -10,7 +10,7 @@ type TrustFrameworkKey struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewTrustFrameworkKey instantiates a new TrustFrameworkKey and sets the default values. +// NewTrustFrameworkKey instantiates a new trustFrameworkKey and sets the default values. func NewTrustFrameworkKey()(*TrustFrameworkKey) { m := &TrustFrameworkKey{ } diff --git a/models/trust_framework_key_set.go b/models/trust_framework_key_set.go index 5836b87e9c3..dd156546ae2 100644 --- a/models/trust_framework_key_set.go +++ b/models/trust_framework_key_set.go @@ -7,8 +7,10 @@ import ( // TrustFrameworkKeySet type TrustFrameworkKeySet struct { Entity + // The OdataType property + OdataType *string } -// NewTrustFrameworkKeySet instantiates a new TrustFrameworkKeySet and sets the default values. +// NewTrustFrameworkKeySet instantiates a new trustFrameworkKeySet and sets the default values. func NewTrustFrameworkKeySet()(*TrustFrameworkKeySet) { m := &TrustFrameworkKeySet{ Entity: *NewEntity(), diff --git a/models/trust_framework_key_set_collection_response.go b/models/trust_framework_key_set_collection_response.go index 62c786304d0..b6b6bc4bded 100644 --- a/models/trust_framework_key_set_collection_response.go +++ b/models/trust_framework_key_set_collection_response.go @@ -8,7 +8,7 @@ import ( type TrustFrameworkKeySetCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTrustFrameworkKeySetCollectionResponse instantiates a new TrustFrameworkKeySetCollectionResponse and sets the default values. +// NewTrustFrameworkKeySetCollectionResponse instantiates a new trustFrameworkKeySetCollectionResponse and sets the default values. func NewTrustFrameworkKeySetCollectionResponse()(*TrustFrameworkKeySetCollectionResponse) { m := &TrustFrameworkKeySetCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/trust_framework_policy.go b/models/trust_framework_policy.go index 3692221e8aa..501443a8564 100644 --- a/models/trust_framework_policy.go +++ b/models/trust_framework_policy.go @@ -7,8 +7,10 @@ import ( // TrustFrameworkPolicy type TrustFrameworkPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewTrustFrameworkPolicy instantiates a new TrustFrameworkPolicy and sets the default values. +// NewTrustFrameworkPolicy instantiates a new trustFrameworkPolicy and sets the default values. func NewTrustFrameworkPolicy()(*TrustFrameworkPolicy) { m := &TrustFrameworkPolicy{ Entity: *NewEntity(), diff --git a/models/trust_framework_policy_collection_response.go b/models/trust_framework_policy_collection_response.go index 33d35a93bf9..5c392a09965 100644 --- a/models/trust_framework_policy_collection_response.go +++ b/models/trust_framework_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type TrustFrameworkPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewTrustFrameworkPolicyCollectionResponse instantiates a new TrustFrameworkPolicyCollectionResponse and sets the default values. +// NewTrustFrameworkPolicyCollectionResponse instantiates a new trustFrameworkPolicyCollectionResponse and sets the default values. func NewTrustFrameworkPolicyCollectionResponse()(*TrustFrameworkPolicyCollectionResponse) { m := &TrustFrameworkPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/trusted_certificate_authority_as_entity_base.go b/models/trusted_certificate_authority_as_entity_base.go index da0124f0834..a71ed459234 100644 --- a/models/trusted_certificate_authority_as_entity_base.go +++ b/models/trusted_certificate_authority_as_entity_base.go @@ -8,7 +8,7 @@ import ( type TrustedCertificateAuthorityAsEntityBase struct { DirectoryObject } -// NewTrustedCertificateAuthorityAsEntityBase instantiates a new TrustedCertificateAuthorityAsEntityBase and sets the default values. +// NewTrustedCertificateAuthorityAsEntityBase instantiates a new trustedCertificateAuthorityAsEntityBase and sets the default values. func NewTrustedCertificateAuthorityAsEntityBase()(*TrustedCertificateAuthorityAsEntityBase) { m := &TrustedCertificateAuthorityAsEntityBase{ DirectoryObject: *NewDirectoryObject(), diff --git a/models/typed_email_address.go b/models/typed_email_address.go index 9a1cc0ac37a..37b43567926 100644 --- a/models/typed_email_address.go +++ b/models/typed_email_address.go @@ -8,7 +8,7 @@ import ( type TypedEmailAddress struct { EmailAddress } -// NewTypedEmailAddress instantiates a new TypedEmailAddress and sets the default values. +// NewTypedEmailAddress instantiates a new typedEmailAddress and sets the default values. func NewTypedEmailAddress()(*TypedEmailAddress) { m := &TypedEmailAddress{ EmailAddress: *NewEmailAddress(), @@ -24,6 +24,16 @@ func CreateTypedEmailAddressFromDiscriminatorValue(parseNode i878a80d2330e89d268 // GetFieldDeserializers the deserialization information for the current model func (m *TypedEmailAddress) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.EmailAddress.GetFieldDeserializers() + 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["otherLabel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -46,6 +56,17 @@ func (m *TypedEmailAddress) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TypedEmailAddress) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOtherLabel gets the otherLabel property value. To specify a custom type of email address, set type to other, and assign otherLabel to a custom string. For example, you may use a specific email address for your volunteer activities. Set type to other, and set otherLabel to a custom string such as Volunteer work. func (m *TypedEmailAddress) GetOtherLabel()(*string) { val, err := m.GetBackingStore().Get("otherLabel") @@ -74,6 +95,12 @@ func (m *TypedEmailAddress) Serialize(writer i878a80d2330e89d26896388a3f487eef27 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("otherLabel", m.GetOtherLabel()) if err != nil { @@ -89,6 +116,13 @@ func (m *TypedEmailAddress) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TypedEmailAddress) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOtherLabel sets the otherLabel property value. To specify a custom type of email address, set type to other, and assign otherLabel to a custom string. For example, you may use a specific email address for your volunteer activities. Set type to other, and set otherLabel to a custom string such as Volunteer work. func (m *TypedEmailAddress) SetOtherLabel(value *string)() { err := m.GetBackingStore().Set("otherLabel", value) @@ -107,8 +141,10 @@ func (m *TypedEmailAddress) SetType(value *EmailType)() { type TypedEmailAddressable interface { EmailAddressable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetOtherLabel()(*string) GetType()(*EmailType) + SetOdataType(value *string)() SetOtherLabel(value *string)() SetType(value *EmailType)() } diff --git a/models/unified_rbac_application.go b/models/unified_rbac_application.go index 149b58fd334..0be99ccc8a9 100644 --- a/models/unified_rbac_application.go +++ b/models/unified_rbac_application.go @@ -7,8 +7,10 @@ import ( // UnifiedRbacApplication type UnifiedRbacApplication struct { Entity + // The OdataType property + OdataType *string } -// NewUnifiedRbacApplication instantiates a new UnifiedRbacApplication and sets the default values. +// NewUnifiedRbacApplication instantiates a new unifiedRbacApplication and sets the default values. func NewUnifiedRbacApplication()(*UnifiedRbacApplication) { m := &UnifiedRbacApplication{ Entity: *NewEntity(), diff --git a/models/unified_rbac_resource_action.go b/models/unified_rbac_resource_action.go index 720aa259635..0b6951a1150 100644 --- a/models/unified_rbac_resource_action.go +++ b/models/unified_rbac_resource_action.go @@ -7,6 +7,8 @@ import ( // UnifiedRbacResourceAction type UnifiedRbacResourceAction struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRbacResourceAction instantiates a new unifiedRbacResourceAction and sets the default values. func NewUnifiedRbacResourceAction()(*UnifiedRbacResourceAction) { diff --git a/models/unified_rbac_resource_action_collection_response.go b/models/unified_rbac_resource_action_collection_response.go index 358912e4a7b..ab6170a2342 100644 --- a/models/unified_rbac_resource_action_collection_response.go +++ b/models/unified_rbac_resource_action_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRbacResourceActionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRbacResourceActionCollectionResponse instantiates a new UnifiedRbacResourceActionCollectionResponse and sets the default values. +// NewUnifiedRbacResourceActionCollectionResponse instantiates a new unifiedRbacResourceActionCollectionResponse and sets the default values. func NewUnifiedRbacResourceActionCollectionResponse()(*UnifiedRbacResourceActionCollectionResponse) { m := &UnifiedRbacResourceActionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_rbac_resource_namespace.go b/models/unified_rbac_resource_namespace.go index 55a7a41d37a..4e79e853621 100644 --- a/models/unified_rbac_resource_namespace.go +++ b/models/unified_rbac_resource_namespace.go @@ -7,6 +7,8 @@ import ( // UnifiedRbacResourceNamespace type UnifiedRbacResourceNamespace struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRbacResourceNamespace instantiates a new unifiedRbacResourceNamespace and sets the default values. func NewUnifiedRbacResourceNamespace()(*UnifiedRbacResourceNamespace) { diff --git a/models/unified_rbac_resource_namespace_collection_response.go b/models/unified_rbac_resource_namespace_collection_response.go index ba3b081688d..0b27cb8fabd 100644 --- a/models/unified_rbac_resource_namespace_collection_response.go +++ b/models/unified_rbac_resource_namespace_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRbacResourceNamespaceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRbacResourceNamespaceCollectionResponse instantiates a new UnifiedRbacResourceNamespaceCollectionResponse and sets the default values. +// NewUnifiedRbacResourceNamespaceCollectionResponse instantiates a new unifiedRbacResourceNamespaceCollectionResponse and sets the default values. func NewUnifiedRbacResourceNamespaceCollectionResponse()(*UnifiedRbacResourceNamespaceCollectionResponse) { m := &UnifiedRbacResourceNamespaceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_rbac_resource_scope.go b/models/unified_rbac_resource_scope.go index 6db75468751..c4713a3e6d0 100644 --- a/models/unified_rbac_resource_scope.go +++ b/models/unified_rbac_resource_scope.go @@ -7,6 +7,8 @@ import ( // UnifiedRbacResourceScope type UnifiedRbacResourceScope struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRbacResourceScope instantiates a new unifiedRbacResourceScope and sets the default values. func NewUnifiedRbacResourceScope()(*UnifiedRbacResourceScope) { diff --git a/models/unified_role.go b/models/unified_role.go index c9b0fc1ca1e..263c429d032 100644 --- a/models/unified_role.go +++ b/models/unified_role.go @@ -10,7 +10,7 @@ type UnifiedRole struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewUnifiedRole instantiates a new UnifiedRole and sets the default values. +// NewUnifiedRole instantiates a new unifiedRole and sets the default values. func NewUnifiedRole()(*UnifiedRole) { m := &UnifiedRole{ } diff --git a/models/unified_role_assignment.go b/models/unified_role_assignment.go index 7139e390286..5bfdd0bdffd 100644 --- a/models/unified_role_assignment.go +++ b/models/unified_role_assignment.go @@ -7,6 +7,8 @@ import ( // UnifiedRoleAssignment type UnifiedRoleAssignment struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRoleAssignment instantiates a new unifiedRoleAssignment and sets the default values. func NewUnifiedRoleAssignment()(*UnifiedRoleAssignment) { diff --git a/models/unified_role_assignment_collection_response.go b/models/unified_role_assignment_collection_response.go index 61f5341c70d..2329a552b89 100644 --- a/models/unified_role_assignment_collection_response.go +++ b/models/unified_role_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleAssignmentCollectionResponse instantiates a new UnifiedRoleAssignmentCollectionResponse and sets the default values. +// NewUnifiedRoleAssignmentCollectionResponse instantiates a new unifiedRoleAssignmentCollectionResponse and sets the default values. func NewUnifiedRoleAssignmentCollectionResponse()(*UnifiedRoleAssignmentCollectionResponse) { m := &UnifiedRoleAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_assignment_multiple.go b/models/unified_role_assignment_multiple.go index 299a4514aab..fdca8f39e55 100644 --- a/models/unified_role_assignment_multiple.go +++ b/models/unified_role_assignment_multiple.go @@ -7,6 +7,8 @@ import ( // UnifiedRoleAssignmentMultiple type UnifiedRoleAssignmentMultiple struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRoleAssignmentMultiple instantiates a new unifiedRoleAssignmentMultiple and sets the default values. func NewUnifiedRoleAssignmentMultiple()(*UnifiedRoleAssignmentMultiple) { diff --git a/models/unified_role_assignment_multiple_collection_response.go b/models/unified_role_assignment_multiple_collection_response.go index a7804c32c79..d1b4cc81482 100644 --- a/models/unified_role_assignment_multiple_collection_response.go +++ b/models/unified_role_assignment_multiple_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleAssignmentMultipleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleAssignmentMultipleCollectionResponse instantiates a new UnifiedRoleAssignmentMultipleCollectionResponse and sets the default values. +// NewUnifiedRoleAssignmentMultipleCollectionResponse instantiates a new unifiedRoleAssignmentMultipleCollectionResponse and sets the default values. func NewUnifiedRoleAssignmentMultipleCollectionResponse()(*UnifiedRoleAssignmentMultipleCollectionResponse) { m := &UnifiedRoleAssignmentMultipleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_assignment_schedule.go b/models/unified_role_assignment_schedule.go index c55ccd95503..b3cb9852551 100644 --- a/models/unified_role_assignment_schedule.go +++ b/models/unified_role_assignment_schedule.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleAssignmentSchedule struct { UnifiedRoleScheduleBase } -// NewUnifiedRoleAssignmentSchedule instantiates a new UnifiedRoleAssignmentSchedule and sets the default values. +// NewUnifiedRoleAssignmentSchedule instantiates a new unifiedRoleAssignmentSchedule and sets the default values. func NewUnifiedRoleAssignmentSchedule()(*UnifiedRoleAssignmentSchedule) { m := &UnifiedRoleAssignmentSchedule{ UnifiedRoleScheduleBase: *NewUnifiedRoleScheduleBase(), diff --git a/models/unified_role_assignment_schedule_collection_response.go b/models/unified_role_assignment_schedule_collection_response.go index c9946f861e5..4e24e122dee 100644 --- a/models/unified_role_assignment_schedule_collection_response.go +++ b/models/unified_role_assignment_schedule_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleAssignmentScheduleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleAssignmentScheduleCollectionResponse instantiates a new UnifiedRoleAssignmentScheduleCollectionResponse and sets the default values. +// NewUnifiedRoleAssignmentScheduleCollectionResponse instantiates a new unifiedRoleAssignmentScheduleCollectionResponse and sets the default values. func NewUnifiedRoleAssignmentScheduleCollectionResponse()(*UnifiedRoleAssignmentScheduleCollectionResponse) { m := &UnifiedRoleAssignmentScheduleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_assignment_schedule_instance.go b/models/unified_role_assignment_schedule_instance.go index b767542c247..b80e3bddb60 100644 --- a/models/unified_role_assignment_schedule_instance.go +++ b/models/unified_role_assignment_schedule_instance.go @@ -9,7 +9,7 @@ import ( type UnifiedRoleAssignmentScheduleInstance struct { UnifiedRoleScheduleInstanceBase } -// NewUnifiedRoleAssignmentScheduleInstance instantiates a new UnifiedRoleAssignmentScheduleInstance and sets the default values. +// NewUnifiedRoleAssignmentScheduleInstance instantiates a new unifiedRoleAssignmentScheduleInstance and sets the default values. func NewUnifiedRoleAssignmentScheduleInstance()(*UnifiedRoleAssignmentScheduleInstance) { m := &UnifiedRoleAssignmentScheduleInstance{ UnifiedRoleScheduleInstanceBase: *NewUnifiedRoleScheduleInstanceBase(), diff --git a/models/unified_role_assignment_schedule_instance_collection_response.go b/models/unified_role_assignment_schedule_instance_collection_response.go index 9cb3aaae064..ca388c32514 100644 --- a/models/unified_role_assignment_schedule_instance_collection_response.go +++ b/models/unified_role_assignment_schedule_instance_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleAssignmentScheduleInstanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleAssignmentScheduleInstanceCollectionResponse instantiates a new UnifiedRoleAssignmentScheduleInstanceCollectionResponse and sets the default values. +// NewUnifiedRoleAssignmentScheduleInstanceCollectionResponse instantiates a new unifiedRoleAssignmentScheduleInstanceCollectionResponse and sets the default values. func NewUnifiedRoleAssignmentScheduleInstanceCollectionResponse()(*UnifiedRoleAssignmentScheduleInstanceCollectionResponse) { m := &UnifiedRoleAssignmentScheduleInstanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_assignment_schedule_request.go b/models/unified_role_assignment_schedule_request.go index bb1e9b1611f..e9b9f0d7955 100644 --- a/models/unified_role_assignment_schedule_request.go +++ b/models/unified_role_assignment_schedule_request.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleAssignmentScheduleRequest struct { Request } -// NewUnifiedRoleAssignmentScheduleRequest instantiates a new UnifiedRoleAssignmentScheduleRequest and sets the default values. +// NewUnifiedRoleAssignmentScheduleRequest instantiates a new unifiedRoleAssignmentScheduleRequest and sets the default values. func NewUnifiedRoleAssignmentScheduleRequest()(*UnifiedRoleAssignmentScheduleRequest) { m := &UnifiedRoleAssignmentScheduleRequest{ Request: *NewRequest(), diff --git a/models/unified_role_assignment_schedule_request_collection_response.go b/models/unified_role_assignment_schedule_request_collection_response.go index 75afc94f576..a4e6b6ab662 100644 --- a/models/unified_role_assignment_schedule_request_collection_response.go +++ b/models/unified_role_assignment_schedule_request_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleAssignmentScheduleRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleAssignmentScheduleRequestCollectionResponse instantiates a new UnifiedRoleAssignmentScheduleRequestCollectionResponse and sets the default values. +// NewUnifiedRoleAssignmentScheduleRequestCollectionResponse instantiates a new unifiedRoleAssignmentScheduleRequestCollectionResponse and sets the default values. func NewUnifiedRoleAssignmentScheduleRequestCollectionResponse()(*UnifiedRoleAssignmentScheduleRequestCollectionResponse) { m := &UnifiedRoleAssignmentScheduleRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_definition.go b/models/unified_role_definition.go index eec41191516..1b77634ee2f 100644 --- a/models/unified_role_definition.go +++ b/models/unified_role_definition.go @@ -7,6 +7,8 @@ import ( // UnifiedRoleDefinition type UnifiedRoleDefinition struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRoleDefinition instantiates a new unifiedRoleDefinition and sets the default values. func NewUnifiedRoleDefinition()(*UnifiedRoleDefinition) { diff --git a/models/unified_role_definition_collection_response.go b/models/unified_role_definition_collection_response.go index 87f9c1f25a4..6fa71771077 100644 --- a/models/unified_role_definition_collection_response.go +++ b/models/unified_role_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleDefinitionCollectionResponse instantiates a new UnifiedRoleDefinitionCollectionResponse and sets the default values. +// NewUnifiedRoleDefinitionCollectionResponse instantiates a new unifiedRoleDefinitionCollectionResponse and sets the default values. func NewUnifiedRoleDefinitionCollectionResponse()(*UnifiedRoleDefinitionCollectionResponse) { m := &UnifiedRoleDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_eligibility_schedule_collection_response.go b/models/unified_role_eligibility_schedule_collection_response.go index af09711f4c1..7932c8e64d1 100644 --- a/models/unified_role_eligibility_schedule_collection_response.go +++ b/models/unified_role_eligibility_schedule_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleEligibilityScheduleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleEligibilityScheduleCollectionResponse instantiates a new UnifiedRoleEligibilityScheduleCollectionResponse and sets the default values. +// NewUnifiedRoleEligibilityScheduleCollectionResponse instantiates a new unifiedRoleEligibilityScheduleCollectionResponse and sets the default values. func NewUnifiedRoleEligibilityScheduleCollectionResponse()(*UnifiedRoleEligibilityScheduleCollectionResponse) { m := &UnifiedRoleEligibilityScheduleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_eligibility_schedule_instance_collection_response.go b/models/unified_role_eligibility_schedule_instance_collection_response.go index 8c103038a4b..381dad117b5 100644 --- a/models/unified_role_eligibility_schedule_instance_collection_response.go +++ b/models/unified_role_eligibility_schedule_instance_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleEligibilityScheduleInstanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleEligibilityScheduleInstanceCollectionResponse instantiates a new UnifiedRoleEligibilityScheduleInstanceCollectionResponse and sets the default values. +// NewUnifiedRoleEligibilityScheduleInstanceCollectionResponse instantiates a new unifiedRoleEligibilityScheduleInstanceCollectionResponse and sets the default values. func NewUnifiedRoleEligibilityScheduleInstanceCollectionResponse()(*UnifiedRoleEligibilityScheduleInstanceCollectionResponse) { m := &UnifiedRoleEligibilityScheduleInstanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_eligibility_schedule_request.go b/models/unified_role_eligibility_schedule_request.go index 4ad38f59625..219e184811d 100644 --- a/models/unified_role_eligibility_schedule_request.go +++ b/models/unified_role_eligibility_schedule_request.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleEligibilityScheduleRequest struct { Request } -// NewUnifiedRoleEligibilityScheduleRequest instantiates a new UnifiedRoleEligibilityScheduleRequest and sets the default values. +// NewUnifiedRoleEligibilityScheduleRequest instantiates a new unifiedRoleEligibilityScheduleRequest and sets the default values. func NewUnifiedRoleEligibilityScheduleRequest()(*UnifiedRoleEligibilityScheduleRequest) { m := &UnifiedRoleEligibilityScheduleRequest{ Request: *NewRequest(), diff --git a/models/unified_role_eligibility_schedule_request_collection_response.go b/models/unified_role_eligibility_schedule_request_collection_response.go index 2618125ca42..c4323f1d345 100644 --- a/models/unified_role_eligibility_schedule_request_collection_response.go +++ b/models/unified_role_eligibility_schedule_request_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleEligibilityScheduleRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleEligibilityScheduleRequestCollectionResponse instantiates a new UnifiedRoleEligibilityScheduleRequestCollectionResponse and sets the default values. +// NewUnifiedRoleEligibilityScheduleRequestCollectionResponse instantiates a new unifiedRoleEligibilityScheduleRequestCollectionResponse and sets the default values. func NewUnifiedRoleEligibilityScheduleRequestCollectionResponse()(*UnifiedRoleEligibilityScheduleRequestCollectionResponse) { m := &UnifiedRoleEligibilityScheduleRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_management_alert.go b/models/unified_role_management_alert.go index 3b8c3943ba2..153870416ce 100644 --- a/models/unified_role_management_alert.go +++ b/models/unified_role_management_alert.go @@ -8,6 +8,8 @@ import ( // UnifiedRoleManagementAlert type UnifiedRoleManagementAlert struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRoleManagementAlert instantiates a new unifiedRoleManagementAlert and sets the default values. func NewUnifiedRoleManagementAlert()(*UnifiedRoleManagementAlert) { diff --git a/models/unified_role_management_alert_collection_response.go b/models/unified_role_management_alert_collection_response.go index 83f2b81fc48..9a4bcc0963a 100644 --- a/models/unified_role_management_alert_collection_response.go +++ b/models/unified_role_management_alert_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementAlertCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleManagementAlertCollectionResponse instantiates a new UnifiedRoleManagementAlertCollectionResponse and sets the default values. +// NewUnifiedRoleManagementAlertCollectionResponse instantiates a new unifiedRoleManagementAlertCollectionResponse and sets the default values. func NewUnifiedRoleManagementAlertCollectionResponse()(*UnifiedRoleManagementAlertCollectionResponse) { m := &UnifiedRoleManagementAlertCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_management_alert_configuration.go b/models/unified_role_management_alert_configuration.go index 52a0ea004bf..3ca54922859 100644 --- a/models/unified_role_management_alert_configuration.go +++ b/models/unified_role_management_alert_configuration.go @@ -7,6 +7,8 @@ import ( // UnifiedRoleManagementAlertConfiguration type UnifiedRoleManagementAlertConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRoleManagementAlertConfiguration instantiates a new unifiedRoleManagementAlertConfiguration and sets the default values. func NewUnifiedRoleManagementAlertConfiguration()(*UnifiedRoleManagementAlertConfiguration) { diff --git a/models/unified_role_management_alert_configuration_collection_response.go b/models/unified_role_management_alert_configuration_collection_response.go index 7526026623f..a1dc23aa08d 100644 --- a/models/unified_role_management_alert_configuration_collection_response.go +++ b/models/unified_role_management_alert_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementAlertConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleManagementAlertConfigurationCollectionResponse instantiates a new UnifiedRoleManagementAlertConfigurationCollectionResponse and sets the default values. +// NewUnifiedRoleManagementAlertConfigurationCollectionResponse instantiates a new unifiedRoleManagementAlertConfigurationCollectionResponse and sets the default values. func NewUnifiedRoleManagementAlertConfigurationCollectionResponse()(*UnifiedRoleManagementAlertConfigurationCollectionResponse) { m := &UnifiedRoleManagementAlertConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_management_alert_definition.go b/models/unified_role_management_alert_definition.go index bddf9b63034..6c57f040df9 100644 --- a/models/unified_role_management_alert_definition.go +++ b/models/unified_role_management_alert_definition.go @@ -7,6 +7,8 @@ import ( // UnifiedRoleManagementAlertDefinition type UnifiedRoleManagementAlertDefinition struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRoleManagementAlertDefinition instantiates a new unifiedRoleManagementAlertDefinition and sets the default values. func NewUnifiedRoleManagementAlertDefinition()(*UnifiedRoleManagementAlertDefinition) { diff --git a/models/unified_role_management_alert_definition_collection_response.go b/models/unified_role_management_alert_definition_collection_response.go index 3b16494ef60..4b417f2539e 100644 --- a/models/unified_role_management_alert_definition_collection_response.go +++ b/models/unified_role_management_alert_definition_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementAlertDefinitionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleManagementAlertDefinitionCollectionResponse instantiates a new UnifiedRoleManagementAlertDefinitionCollectionResponse and sets the default values. +// NewUnifiedRoleManagementAlertDefinitionCollectionResponse instantiates a new unifiedRoleManagementAlertDefinitionCollectionResponse and sets the default values. func NewUnifiedRoleManagementAlertDefinitionCollectionResponse()(*UnifiedRoleManagementAlertDefinitionCollectionResponse) { m := &UnifiedRoleManagementAlertDefinitionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_management_alert_incident.go b/models/unified_role_management_alert_incident.go index 326397ae30e..e497940469c 100644 --- a/models/unified_role_management_alert_incident.go +++ b/models/unified_role_management_alert_incident.go @@ -7,6 +7,8 @@ import ( // UnifiedRoleManagementAlertIncident type UnifiedRoleManagementAlertIncident struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRoleManagementAlertIncident instantiates a new unifiedRoleManagementAlertIncident and sets the default values. func NewUnifiedRoleManagementAlertIncident()(*UnifiedRoleManagementAlertIncident) { diff --git a/models/unified_role_management_alert_incident_collection_response.go b/models/unified_role_management_alert_incident_collection_response.go index 84e69d5c0d2..52940afa1ad 100644 --- a/models/unified_role_management_alert_incident_collection_response.go +++ b/models/unified_role_management_alert_incident_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementAlertIncidentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleManagementAlertIncidentCollectionResponse instantiates a new UnifiedRoleManagementAlertIncidentCollectionResponse and sets the default values. +// NewUnifiedRoleManagementAlertIncidentCollectionResponse instantiates a new unifiedRoleManagementAlertIncidentCollectionResponse and sets the default values. func NewUnifiedRoleManagementAlertIncidentCollectionResponse()(*UnifiedRoleManagementAlertIncidentCollectionResponse) { m := &UnifiedRoleManagementAlertIncidentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_management_policy.go b/models/unified_role_management_policy.go index 34010fcb6eb..8a80bc26b7a 100644 --- a/models/unified_role_management_policy.go +++ b/models/unified_role_management_policy.go @@ -8,8 +8,10 @@ import ( // UnifiedRoleManagementPolicy type UnifiedRoleManagementPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewUnifiedRoleManagementPolicy instantiates a new UnifiedRoleManagementPolicy and sets the default values. +// NewUnifiedRoleManagementPolicy instantiates a new unifiedRoleManagementPolicy and sets the default values. func NewUnifiedRoleManagementPolicy()(*UnifiedRoleManagementPolicy) { m := &UnifiedRoleManagementPolicy{ Entity: *NewEntity(), diff --git a/models/unified_role_management_policy_approval_rule.go b/models/unified_role_management_policy_approval_rule.go index 57e0a23d4e3..a8e4532f4f3 100644 --- a/models/unified_role_management_policy_approval_rule.go +++ b/models/unified_role_management_policy_approval_rule.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementPolicyApprovalRule struct { UnifiedRoleManagementPolicyRule } -// NewUnifiedRoleManagementPolicyApprovalRule instantiates a new UnifiedRoleManagementPolicyApprovalRule and sets the default values. +// NewUnifiedRoleManagementPolicyApprovalRule instantiates a new unifiedRoleManagementPolicyApprovalRule and sets the default values. func NewUnifiedRoleManagementPolicyApprovalRule()(*UnifiedRoleManagementPolicyApprovalRule) { m := &UnifiedRoleManagementPolicyApprovalRule{ UnifiedRoleManagementPolicyRule: *NewUnifiedRoleManagementPolicyRule(), diff --git a/models/unified_role_management_policy_assignment.go b/models/unified_role_management_policy_assignment.go index 147abb8b579..f54bec25489 100644 --- a/models/unified_role_management_policy_assignment.go +++ b/models/unified_role_management_policy_assignment.go @@ -7,8 +7,10 @@ import ( // UnifiedRoleManagementPolicyAssignment type UnifiedRoleManagementPolicyAssignment struct { Entity + // The OdataType property + OdataType *string } -// NewUnifiedRoleManagementPolicyAssignment instantiates a new UnifiedRoleManagementPolicyAssignment and sets the default values. +// NewUnifiedRoleManagementPolicyAssignment instantiates a new unifiedRoleManagementPolicyAssignment and sets the default values. func NewUnifiedRoleManagementPolicyAssignment()(*UnifiedRoleManagementPolicyAssignment) { m := &UnifiedRoleManagementPolicyAssignment{ Entity: *NewEntity(), diff --git a/models/unified_role_management_policy_assignment_collection_response.go b/models/unified_role_management_policy_assignment_collection_response.go index 30b7cc6761d..fa6e988b894 100644 --- a/models/unified_role_management_policy_assignment_collection_response.go +++ b/models/unified_role_management_policy_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementPolicyAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleManagementPolicyAssignmentCollectionResponse instantiates a new UnifiedRoleManagementPolicyAssignmentCollectionResponse and sets the default values. +// NewUnifiedRoleManagementPolicyAssignmentCollectionResponse instantiates a new unifiedRoleManagementPolicyAssignmentCollectionResponse and sets the default values. func NewUnifiedRoleManagementPolicyAssignmentCollectionResponse()(*UnifiedRoleManagementPolicyAssignmentCollectionResponse) { m := &UnifiedRoleManagementPolicyAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_management_policy_authentication_context_rule.go b/models/unified_role_management_policy_authentication_context_rule.go index 35d489fe785..6b32167210d 100644 --- a/models/unified_role_management_policy_authentication_context_rule.go +++ b/models/unified_role_management_policy_authentication_context_rule.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementPolicyAuthenticationContextRule struct { UnifiedRoleManagementPolicyRule } -// NewUnifiedRoleManagementPolicyAuthenticationContextRule instantiates a new UnifiedRoleManagementPolicyAuthenticationContextRule and sets the default values. +// NewUnifiedRoleManagementPolicyAuthenticationContextRule instantiates a new unifiedRoleManagementPolicyAuthenticationContextRule and sets the default values. func NewUnifiedRoleManagementPolicyAuthenticationContextRule()(*UnifiedRoleManagementPolicyAuthenticationContextRule) { m := &UnifiedRoleManagementPolicyAuthenticationContextRule{ UnifiedRoleManagementPolicyRule: *NewUnifiedRoleManagementPolicyRule(), diff --git a/models/unified_role_management_policy_collection_response.go b/models/unified_role_management_policy_collection_response.go index 7f778da8aa1..f20dd8f20bd 100644 --- a/models/unified_role_management_policy_collection_response.go +++ b/models/unified_role_management_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleManagementPolicyCollectionResponse instantiates a new UnifiedRoleManagementPolicyCollectionResponse and sets the default values. +// NewUnifiedRoleManagementPolicyCollectionResponse instantiates a new unifiedRoleManagementPolicyCollectionResponse and sets the default values. func NewUnifiedRoleManagementPolicyCollectionResponse()(*UnifiedRoleManagementPolicyCollectionResponse) { m := &UnifiedRoleManagementPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_management_policy_enablement_rule.go b/models/unified_role_management_policy_enablement_rule.go index 122947fc8a4..c529f14fa0e 100644 --- a/models/unified_role_management_policy_enablement_rule.go +++ b/models/unified_role_management_policy_enablement_rule.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementPolicyEnablementRule struct { UnifiedRoleManagementPolicyRule } -// NewUnifiedRoleManagementPolicyEnablementRule instantiates a new UnifiedRoleManagementPolicyEnablementRule and sets the default values. +// NewUnifiedRoleManagementPolicyEnablementRule instantiates a new unifiedRoleManagementPolicyEnablementRule and sets the default values. func NewUnifiedRoleManagementPolicyEnablementRule()(*UnifiedRoleManagementPolicyEnablementRule) { m := &UnifiedRoleManagementPolicyEnablementRule{ UnifiedRoleManagementPolicyRule: *NewUnifiedRoleManagementPolicyRule(), diff --git a/models/unified_role_management_policy_expiration_rule.go b/models/unified_role_management_policy_expiration_rule.go index 94d12d9f92f..bdc0fb8112d 100644 --- a/models/unified_role_management_policy_expiration_rule.go +++ b/models/unified_role_management_policy_expiration_rule.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementPolicyExpirationRule struct { UnifiedRoleManagementPolicyRule } -// NewUnifiedRoleManagementPolicyExpirationRule instantiates a new UnifiedRoleManagementPolicyExpirationRule and sets the default values. +// NewUnifiedRoleManagementPolicyExpirationRule instantiates a new unifiedRoleManagementPolicyExpirationRule and sets the default values. func NewUnifiedRoleManagementPolicyExpirationRule()(*UnifiedRoleManagementPolicyExpirationRule) { m := &UnifiedRoleManagementPolicyExpirationRule{ UnifiedRoleManagementPolicyRule: *NewUnifiedRoleManagementPolicyRule(), diff --git a/models/unified_role_management_policy_notification_rule.go b/models/unified_role_management_policy_notification_rule.go index 6d2d82345a5..f02511a1daf 100644 --- a/models/unified_role_management_policy_notification_rule.go +++ b/models/unified_role_management_policy_notification_rule.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementPolicyNotificationRule struct { UnifiedRoleManagementPolicyRule } -// NewUnifiedRoleManagementPolicyNotificationRule instantiates a new UnifiedRoleManagementPolicyNotificationRule and sets the default values. +// NewUnifiedRoleManagementPolicyNotificationRule instantiates a new unifiedRoleManagementPolicyNotificationRule and sets the default values. func NewUnifiedRoleManagementPolicyNotificationRule()(*UnifiedRoleManagementPolicyNotificationRule) { m := &UnifiedRoleManagementPolicyNotificationRule{ UnifiedRoleManagementPolicyRule: *NewUnifiedRoleManagementPolicyRule(), diff --git a/models/unified_role_management_policy_rule.go b/models/unified_role_management_policy_rule.go index bc2031fb568..6ca473199a2 100644 --- a/models/unified_role_management_policy_rule.go +++ b/models/unified_role_management_policy_rule.go @@ -7,6 +7,8 @@ import ( // UnifiedRoleManagementPolicyRule type UnifiedRoleManagementPolicyRule struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRoleManagementPolicyRule instantiates a new unifiedRoleManagementPolicyRule and sets the default values. func NewUnifiedRoleManagementPolicyRule()(*UnifiedRoleManagementPolicyRule) { diff --git a/models/unified_role_management_policy_rule_collection_response.go b/models/unified_role_management_policy_rule_collection_response.go index 27b620f06c7..7b4809c1a34 100644 --- a/models/unified_role_management_policy_rule_collection_response.go +++ b/models/unified_role_management_policy_rule_collection_response.go @@ -8,7 +8,7 @@ import ( type UnifiedRoleManagementPolicyRuleCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnifiedRoleManagementPolicyRuleCollectionResponse instantiates a new UnifiedRoleManagementPolicyRuleCollectionResponse and sets the default values. +// NewUnifiedRoleManagementPolicyRuleCollectionResponse instantiates a new unifiedRoleManagementPolicyRuleCollectionResponse and sets the default values. func NewUnifiedRoleManagementPolicyRuleCollectionResponse()(*UnifiedRoleManagementPolicyRuleCollectionResponse) { m := &UnifiedRoleManagementPolicyRuleCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unified_role_schedule_base.go b/models/unified_role_schedule_base.go index 5f933d1dd8a..3bf1a9fac68 100644 --- a/models/unified_role_schedule_base.go +++ b/models/unified_role_schedule_base.go @@ -8,6 +8,8 @@ import ( // UnifiedRoleScheduleBase type UnifiedRoleScheduleBase struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRoleScheduleBase instantiates a new unifiedRoleScheduleBase and sets the default values. func NewUnifiedRoleScheduleBase()(*UnifiedRoleScheduleBase) { diff --git a/models/unified_role_schedule_instance_base.go b/models/unified_role_schedule_instance_base.go index f29493ba381..48ccf8c5118 100644 --- a/models/unified_role_schedule_instance_base.go +++ b/models/unified_role_schedule_instance_base.go @@ -7,6 +7,8 @@ import ( // UnifiedRoleScheduleInstanceBase type UnifiedRoleScheduleInstanceBase struct { Entity + // The OdataType property + OdataType *string } // NewUnifiedRoleScheduleInstanceBase instantiates a new unifiedRoleScheduleInstanceBase and sets the default values. func NewUnifiedRoleScheduleInstanceBase()(*UnifiedRoleScheduleInstanceBase) { diff --git a/models/unit_of_measure.go b/models/unit_of_measure.go index 4ab3f1d14fa..b7055aa72de 100644 --- a/models/unit_of_measure.go +++ b/models/unit_of_measure.go @@ -12,7 +12,7 @@ type UnitOfMeasure struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewUnitOfMeasure instantiates a new UnitOfMeasure and sets the default values. +// NewUnitOfMeasure instantiates a new unitOfMeasure and sets the default values. func NewUnitOfMeasure()(*UnitOfMeasure) { m := &UnitOfMeasure{ } diff --git a/models/unit_of_measure_collection_response.go b/models/unit_of_measure_collection_response.go index 6ef8a1a7190..72657972dab 100644 --- a/models/unit_of_measure_collection_response.go +++ b/models/unit_of_measure_collection_response.go @@ -8,7 +8,7 @@ import ( type UnitOfMeasureCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnitOfMeasureCollectionResponse instantiates a new UnitOfMeasureCollectionResponse and sets the default values. +// NewUnitOfMeasureCollectionResponse instantiates a new unitOfMeasureCollectionResponse and sets the default values. func NewUnitOfMeasureCollectionResponse()(*UnitOfMeasureCollectionResponse) { m := &UnitOfMeasureCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/unmanaged_device_discovery_task.go b/models/unmanaged_device_discovery_task.go index 9aaa2e48625..e7a08c0ef2b 100644 --- a/models/unmanaged_device_discovery_task.go +++ b/models/unmanaged_device_discovery_task.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// UnmanagedDeviceDiscoveryTask +// UnmanagedDeviceDiscoveryTask this task derived type represents a list of unmanaged devices discovered in the network. type UnmanagedDeviceDiscoveryTask struct { DeviceAppManagementTask } -// NewUnmanagedDeviceDiscoveryTask instantiates a new UnmanagedDeviceDiscoveryTask and sets the default values. +// NewUnmanagedDeviceDiscoveryTask instantiates a new unmanagedDeviceDiscoveryTask and sets the default values. func NewUnmanagedDeviceDiscoveryTask()(*UnmanagedDeviceDiscoveryTask) { m := &UnmanagedDeviceDiscoveryTask{ DeviceAppManagementTask: *NewDeviceAppManagementTask(), diff --git a/models/unmute_participant_operation.go b/models/unmute_participant_operation.go index d4bd057c284..29b5c58559e 100644 --- a/models/unmute_participant_operation.go +++ b/models/unmute_participant_operation.go @@ -8,7 +8,7 @@ import ( type UnmuteParticipantOperation struct { CommsOperation } -// NewUnmuteParticipantOperation instantiates a new UnmuteParticipantOperation and sets the default values. +// NewUnmuteParticipantOperation instantiates a new unmuteParticipantOperation and sets the default values. func NewUnmuteParticipantOperation()(*UnmuteParticipantOperation) { m := &UnmuteParticipantOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/unsupported_device_configuration.go b/models/unsupported_device_configuration.go index 502389aaa47..3ebd653e988 100644 --- a/models/unsupported_device_configuration.go +++ b/models/unsupported_device_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// UnsupportedDeviceConfiguration +// UnsupportedDeviceConfiguration unsupportedDeviceConfiguration is used when an entity cannot be mapped to another model-compliant subtype of deviceConfiguration. type UnsupportedDeviceConfiguration struct { DeviceConfiguration } -// NewUnsupportedDeviceConfiguration instantiates a new UnsupportedDeviceConfiguration and sets the default values. +// NewUnsupportedDeviceConfiguration instantiates a new unsupportedDeviceConfiguration and sets the default values. func NewUnsupportedDeviceConfiguration()(*UnsupportedDeviceConfiguration) { m := &UnsupportedDeviceConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/unsupported_group_policy_extension.go b/models/unsupported_group_policy_extension.go index 185e50cdb07..d9886f558b4 100644 --- a/models/unsupported_group_policy_extension.go +++ b/models/unsupported_group_policy_extension.go @@ -7,6 +7,8 @@ import ( // UnsupportedGroupPolicyExtension unsupported Group Policy Extension. type UnsupportedGroupPolicyExtension struct { Entity + // The OdataType property + OdataType *string } // NewUnsupportedGroupPolicyExtension instantiates a new unsupportedGroupPolicyExtension and sets the default values. func NewUnsupportedGroupPolicyExtension()(*UnsupportedGroupPolicyExtension) { diff --git a/models/unsupported_group_policy_extension_collection_response.go b/models/unsupported_group_policy_extension_collection_response.go index d9c68181a02..68862161dbf 100644 --- a/models/unsupported_group_policy_extension_collection_response.go +++ b/models/unsupported_group_policy_extension_collection_response.go @@ -8,7 +8,7 @@ import ( type UnsupportedGroupPolicyExtensionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUnsupportedGroupPolicyExtensionCollectionResponse instantiates a new UnsupportedGroupPolicyExtensionCollectionResponse and sets the default values. +// NewUnsupportedGroupPolicyExtensionCollectionResponse instantiates a new unsupportedGroupPolicyExtensionCollectionResponse and sets the default values. func NewUnsupportedGroupPolicyExtensionCollectionResponse()(*UnsupportedGroupPolicyExtensionCollectionResponse) { m := &UnsupportedGroupPolicyExtensionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/update_recording_status_operation.go b/models/update_recording_status_operation.go index d34bdbed51d..7a617bc968c 100644 --- a/models/update_recording_status_operation.go +++ b/models/update_recording_status_operation.go @@ -8,7 +8,7 @@ import ( type UpdateRecordingStatusOperation struct { CommsOperation } -// NewUpdateRecordingStatusOperation instantiates a new UpdateRecordingStatusOperation and sets the default values. +// NewUpdateRecordingStatusOperation instantiates a new updateRecordingStatusOperation and sets the default values. func NewUpdateRecordingStatusOperation()(*UpdateRecordingStatusOperation) { m := &UpdateRecordingStatusOperation{ CommsOperation: *NewCommsOperation(), diff --git a/models/url_assessment_request.go b/models/url_assessment_request.go index 9b8b6681ff5..6249daa8fd1 100644 --- a/models/url_assessment_request.go +++ b/models/url_assessment_request.go @@ -8,7 +8,7 @@ import ( type UrlAssessmentRequest struct { ThreatAssessmentRequest } -// NewUrlAssessmentRequest instantiates a new UrlAssessmentRequest and sets the default values. +// NewUrlAssessmentRequest instantiates a new urlAssessmentRequest and sets the default values. func NewUrlAssessmentRequest()(*UrlAssessmentRequest) { m := &UrlAssessmentRequest{ ThreatAssessmentRequest: *NewThreatAssessmentRequest(), diff --git a/models/usage_right.go b/models/usage_right.go index 82b0224cfb9..1c5bc1641a9 100644 --- a/models/usage_right.go +++ b/models/usage_right.go @@ -7,6 +7,8 @@ import ( // UsageRight type UsageRight struct { Entity + // The OdataType property + OdataType *string } // NewUsageRight instantiates a new usageRight and sets the default values. func NewUsageRight()(*UsageRight) { diff --git a/models/usage_right_collection_response.go b/models/usage_right_collection_response.go index d40860a4911..8cfd7b7e41a 100644 --- a/models/usage_right_collection_response.go +++ b/models/usage_right_collection_response.go @@ -8,7 +8,7 @@ import ( type UsageRightCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUsageRightCollectionResponse instantiates a new UsageRightCollectionResponse and sets the default values. +// NewUsageRightCollectionResponse instantiates a new usageRightCollectionResponse and sets the default values. func NewUsageRightCollectionResponse()(*UsageRightCollectionResponse) { m := &UsageRightCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/used_insight.go b/models/used_insight.go index 58d5b75dd53..13393f2f4c5 100644 --- a/models/used_insight.go +++ b/models/used_insight.go @@ -7,6 +7,8 @@ import ( // UsedInsight type UsedInsight struct { Entity + // The OdataType property + OdataType *string } // NewUsedInsight instantiates a new usedInsight and sets the default values. func NewUsedInsight()(*UsedInsight) { diff --git a/models/used_insight_collection_response.go b/models/used_insight_collection_response.go index c56adfa84b6..a253140361f 100644 --- a/models/used_insight_collection_response.go +++ b/models/used_insight_collection_response.go @@ -8,7 +8,7 @@ import ( type UsedInsightCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUsedInsightCollectionResponse instantiates a new UsedInsightCollectionResponse and sets the default values. +// NewUsedInsightCollectionResponse instantiates a new usedInsightCollectionResponse and sets the default values. func NewUsedInsightCollectionResponse()(*UsedInsightCollectionResponse) { m := &UsedInsightCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_account_information.go b/models/user_account_information.go index 121056c3984..8db4fc31966 100644 --- a/models/user_account_information.go +++ b/models/user_account_information.go @@ -8,7 +8,7 @@ import ( type UserAccountInformation struct { ItemFacet } -// NewUserAccountInformation instantiates a new UserAccountInformation and sets the default values. +// NewUserAccountInformation instantiates a new userAccountInformation and sets the default values. func NewUserAccountInformation()(*UserAccountInformation) { m := &UserAccountInformation{ ItemFacet: *NewItemFacet(), diff --git a/models/user_account_information_collection_response.go b/models/user_account_information_collection_response.go index 2228b47b565..4919f84bf25 100644 --- a/models/user_account_information_collection_response.go +++ b/models/user_account_information_collection_response.go @@ -8,7 +8,7 @@ import ( type UserAccountInformationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserAccountInformationCollectionResponse instantiates a new UserAccountInformationCollectionResponse and sets the default values. +// NewUserAccountInformationCollectionResponse instantiates a new userAccountInformationCollectionResponse and sets the default values. func NewUserAccountInformationCollectionResponse()(*UserAccountInformationCollectionResponse) { m := &UserAccountInformationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_activity.go b/models/user_activity.go index 3665590af94..c8c0181322d 100644 --- a/models/user_activity.go +++ b/models/user_activity.go @@ -8,6 +8,8 @@ import ( // UserActivity type UserActivity struct { Entity + // The OdataType property + OdataType *string } // NewUserActivity instantiates a new userActivity and sets the default values. func NewUserActivity()(*UserActivity) { diff --git a/models/user_activity_collection_response.go b/models/user_activity_collection_response.go index 18fd5f5ca1c..32f70ee7453 100644 --- a/models/user_activity_collection_response.go +++ b/models/user_activity_collection_response.go @@ -8,7 +8,7 @@ import ( type UserActivityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserActivityCollectionResponse instantiates a new UserActivityCollectionResponse and sets the default values. +// NewUserActivityCollectionResponse instantiates a new userActivityCollectionResponse and sets the default values. func NewUserActivityCollectionResponse()(*UserActivityCollectionResponse) { m := &UserActivityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_analytics.go b/models/user_analytics.go index 895f821e6c6..669517d3d57 100644 --- a/models/user_analytics.go +++ b/models/user_analytics.go @@ -7,6 +7,8 @@ import ( // UserAnalytics type UserAnalytics struct { Entity + // The OdataType property + OdataType *string } // NewUserAnalytics instantiates a new userAnalytics and sets the default values. func NewUserAnalytics()(*UserAnalytics) { diff --git a/models/user_app_install_status.go b/models/user_app_install_status.go index 91b029c7e5a..f67cee7a1f3 100644 --- a/models/user_app_install_status.go +++ b/models/user_app_install_status.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// UserAppInstallStatus +// UserAppInstallStatus contains properties for the installation status for a user. This will be deprecated starting May, 2023 (Intune Release 2305). type UserAppInstallStatus struct { Entity + // The OdataType property + OdataType *string } -// NewUserAppInstallStatus instantiates a new UserAppInstallStatus and sets the default values. +// NewUserAppInstallStatus instantiates a new userAppInstallStatus and sets the default values. func NewUserAppInstallStatus()(*UserAppInstallStatus) { m := &UserAppInstallStatus{ Entity: *NewEntity(), diff --git a/models/user_collection_response.go b/models/user_collection_response.go index 4c56e6c356c..79e89a7a458 100644 --- a/models/user_collection_response.go +++ b/models/user_collection_response.go @@ -8,7 +8,7 @@ import ( type UserCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserCollectionResponse instantiates a new UserCollectionResponse and sets the default values. +// NewUserCollectionResponse instantiates a new userCollectionResponse and sets the default values. func NewUserCollectionResponse()(*UserCollectionResponse) { m := &UserCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_configuration.go b/models/user_configuration.go index dad639064dc..577f8b19159 100644 --- a/models/user_configuration.go +++ b/models/user_configuration.go @@ -7,6 +7,8 @@ import ( // UserConfiguration type UserConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewUserConfiguration instantiates a new userConfiguration and sets the default values. func NewUserConfiguration()(*UserConfiguration) { diff --git a/models/user_configuration_collection_response.go b/models/user_configuration_collection_response.go index 93230665374..61c6fcf243a 100644 --- a/models/user_configuration_collection_response.go +++ b/models/user_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type UserConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserConfigurationCollectionResponse instantiates a new UserConfigurationCollectionResponse and sets the default values. +// NewUserConfigurationCollectionResponse instantiates a new userConfigurationCollectionResponse and sets the default values. func NewUserConfigurationCollectionResponse()(*UserConfigurationCollectionResponse) { m := &UserConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_consent_request.go b/models/user_consent_request.go index db541619950..a191d5fcd6b 100644 --- a/models/user_consent_request.go +++ b/models/user_consent_request.go @@ -8,7 +8,7 @@ import ( type UserConsentRequest struct { Request } -// NewUserConsentRequest instantiates a new UserConsentRequest and sets the default values. +// NewUserConsentRequest instantiates a new userConsentRequest and sets the default values. func NewUserConsentRequest()(*UserConsentRequest) { m := &UserConsentRequest{ Request: *NewRequest(), diff --git a/models/user_consent_request_collection_response.go b/models/user_consent_request_collection_response.go index 1890b7873fa..03dcdbda55b 100644 --- a/models/user_consent_request_collection_response.go +++ b/models/user_consent_request_collection_response.go @@ -8,7 +8,7 @@ import ( type UserConsentRequestCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserConsentRequestCollectionResponse instantiates a new UserConsentRequestCollectionResponse and sets the default values. +// NewUserConsentRequestCollectionResponse instantiates a new userConsentRequestCollectionResponse and sets the default values. func NewUserConsentRequestCollectionResponse()(*UserConsentRequestCollectionResponse) { m := &UserConsentRequestCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_credential_usage_details.go b/models/user_credential_usage_details.go index 3dfd90ddfb7..616415860cd 100644 --- a/models/user_credential_usage_details.go +++ b/models/user_credential_usage_details.go @@ -8,6 +8,8 @@ import ( // UserCredentialUsageDetails type UserCredentialUsageDetails struct { Entity + // The OdataType property + OdataType *string } // NewUserCredentialUsageDetails instantiates a new userCredentialUsageDetails and sets the default values. func NewUserCredentialUsageDetails()(*UserCredentialUsageDetails) { diff --git a/models/user_credential_usage_details_collection_response.go b/models/user_credential_usage_details_collection_response.go index 58ed78eb2a9..5a5ca8f2e81 100644 --- a/models/user_credential_usage_details_collection_response.go +++ b/models/user_credential_usage_details_collection_response.go @@ -8,7 +8,7 @@ import ( type UserCredentialUsageDetailsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserCredentialUsageDetailsCollectionResponse instantiates a new UserCredentialUsageDetailsCollectionResponse and sets the default values. +// NewUserCredentialUsageDetailsCollectionResponse instantiates a new userCredentialUsageDetailsCollectionResponse and sets the default values. func NewUserCredentialUsageDetailsCollectionResponse()(*UserCredentialUsageDetailsCollectionResponse) { m := &UserCredentialUsageDetailsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_anomaly.go b/models/user_experience_analytics_anomaly.go index 4589a200c7b..8166e813df7 100644 --- a/models/user_experience_analytics_anomaly.go +++ b/models/user_experience_analytics_anomaly.go @@ -243,6 +243,16 @@ func (m *UserExperienceAnalyticsAnomaly) GetFieldDeserializers()(map[string]func } 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["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseUserExperienceAnalyticsAnomalySeverity) if err != nil { @@ -276,6 +286,17 @@ func (m *UserExperienceAnalyticsAnomaly) GetIssueId()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsAnomaly) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSeverity gets the severity property value. Indicates the severity of the anomaly. Eg: anomaly severity can be high, medium, low, informational or other. func (m *UserExperienceAnalyticsAnomaly) GetSeverity()(*UserExperienceAnalyticsAnomalySeverity) { val, err := m.GetBackingStore().Get("severity") @@ -371,6 +392,12 @@ func (m *UserExperienceAnalyticsAnomaly) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetSeverity() != nil { cast := (*m.GetSeverity()).String() err = writer.WriteStringValue("severity", &cast) @@ -464,6 +491,13 @@ func (m *UserExperienceAnalyticsAnomaly) SetIssueId(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsAnomaly) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetSeverity sets the severity property value. Indicates the severity of the anomaly. Eg: anomaly severity can be high, medium, low, informational or other. func (m *UserExperienceAnalyticsAnomaly) SetSeverity(value *UserExperienceAnalyticsAnomalySeverity)() { err := m.GetBackingStore().Set("severity", value) @@ -493,6 +527,7 @@ type UserExperienceAnalyticsAnomalyable interface { GetDetectionModelId()(*string) GetDeviceImpactedCount()(*int32) GetIssueId()(*string) + GetOdataType()(*string) GetSeverity()(*UserExperienceAnalyticsAnomalySeverity) GetState()(*UserExperienceAnalyticsAnomalyState) SetAnomalyFirstOccurrenceDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() @@ -506,6 +541,7 @@ type UserExperienceAnalyticsAnomalyable interface { SetDetectionModelId(value *string)() SetDeviceImpactedCount(value *int32)() SetIssueId(value *string)() + SetOdataType(value *string)() SetSeverity(value *UserExperienceAnalyticsAnomalySeverity)() SetState(value *UserExperienceAnalyticsAnomalyState)() } diff --git a/models/user_experience_analytics_anomaly_collection_response.go b/models/user_experience_analytics_anomaly_collection_response.go index 86ec5bbd2ef..321c91cf2f5 100644 --- a/models/user_experience_analytics_anomaly_collection_response.go +++ b/models/user_experience_analytics_anomaly_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAnomalyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAnomalyCollectionResponse instantiates a new UserExperienceAnalyticsAnomalyCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAnomalyCollectionResponse instantiates a new userExperienceAnalyticsAnomalyCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAnomalyCollectionResponse()(*UserExperienceAnalyticsAnomalyCollectionResponse) { m := &UserExperienceAnalyticsAnomalyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_anomaly_correlation_group_overview.go b/models/user_experience_analytics_anomaly_correlation_group_overview.go index 60ca62cbc10..d4cd2098fab 100644 --- a/models/user_experience_analytics_anomaly_correlation_group_overview.go +++ b/models/user_experience_analytics_anomaly_correlation_group_overview.go @@ -217,6 +217,16 @@ func (m *UserExperienceAnalyticsAnomalyCorrelationGroupOverview) GetFieldDeseria } 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["totalDeviceCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -229,6 +239,17 @@ func (m *UserExperienceAnalyticsAnomalyCorrelationGroupOverview) GetFieldDeseria } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsAnomalyCorrelationGroupOverview) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTotalDeviceCount gets the totalDeviceCount property value. Indicates the total number of devices in the tenant. Valid values -2147483648 to 2147483647 func (m *UserExperienceAnalyticsAnomalyCorrelationGroupOverview) GetTotalDeviceCount()(*int32) { val, err := m.GetBackingStore().Get("totalDeviceCount") @@ -307,6 +328,12 @@ func (m *UserExperienceAnalyticsAnomalyCorrelationGroupOverview) Serialize(write return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("totalDeviceCount", m.GetTotalDeviceCount()) if err != nil { @@ -378,6 +405,13 @@ func (m *UserExperienceAnalyticsAnomalyCorrelationGroupOverview) SetCorrelationG panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsAnomalyCorrelationGroupOverview) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetTotalDeviceCount sets the totalDeviceCount property value. Indicates the total number of devices in the tenant. Valid values -2147483648 to 2147483647 func (m *UserExperienceAnalyticsAnomalyCorrelationGroupOverview) SetTotalDeviceCount(value *int32)() { err := m.GetBackingStore().Set("totalDeviceCount", value) @@ -398,6 +432,7 @@ type UserExperienceAnalyticsAnomalyCorrelationGroupOverviewable interface { GetCorrelationGroupId()(*string) GetCorrelationGroupPrevalence()(*UserExperienceAnalyticsAnomalyCorrelationGroupPrevalence) GetCorrelationGroupPrevalencePercentage()(*float64) + GetOdataType()(*string) GetTotalDeviceCount()(*int32) SetAnomalyCorrelationGroupCount(value *int32)() SetAnomalyId(value *string)() @@ -408,5 +443,6 @@ type UserExperienceAnalyticsAnomalyCorrelationGroupOverviewable interface { SetCorrelationGroupId(value *string)() SetCorrelationGroupPrevalence(value *UserExperienceAnalyticsAnomalyCorrelationGroupPrevalence)() SetCorrelationGroupPrevalencePercentage(value *float64)() + SetOdataType(value *string)() SetTotalDeviceCount(value *int32)() } diff --git a/models/user_experience_analytics_anomaly_correlation_group_overview_collection_response.go b/models/user_experience_analytics_anomaly_correlation_group_overview_collection_response.go index ead85b58198..c8057ff5653 100644 --- a/models/user_experience_analytics_anomaly_correlation_group_overview_collection_response.go +++ b/models/user_experience_analytics_anomaly_correlation_group_overview_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAnomalyCorrelationGroupOverviewCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAnomalyCorrelationGroupOverviewCollectionResponse instantiates a new UserExperienceAnalyticsAnomalyCorrelationGroupOverviewCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAnomalyCorrelationGroupOverviewCollectionResponse instantiates a new userExperienceAnalyticsAnomalyCorrelationGroupOverviewCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAnomalyCorrelationGroupOverviewCollectionResponse()(*UserExperienceAnalyticsAnomalyCorrelationGroupOverviewCollectionResponse) { m := &UserExperienceAnalyticsAnomalyCorrelationGroupOverviewCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_anomaly_device.go b/models/user_experience_analytics_anomaly_device.go index ae22e065347..7f8382d13bf 100644 --- a/models/user_experience_analytics_anomaly_device.go +++ b/models/user_experience_analytics_anomaly_device.go @@ -8,6 +8,8 @@ import ( // UserExperienceAnalyticsAnomalyDevice the user experience analytics anomaly entity contains device details. type UserExperienceAnalyticsAnomalyDevice struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsAnomalyDevice instantiates a new userExperienceAnalyticsAnomalyDevice and sets the default values. func NewUserExperienceAnalyticsAnomalyDevice()(*UserExperienceAnalyticsAnomalyDevice) { diff --git a/models/user_experience_analytics_anomaly_device_collection_response.go b/models/user_experience_analytics_anomaly_device_collection_response.go index d9654aa8ac6..85f165cf17f 100644 --- a/models/user_experience_analytics_anomaly_device_collection_response.go +++ b/models/user_experience_analytics_anomaly_device_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAnomalyDeviceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAnomalyDeviceCollectionResponse instantiates a new UserExperienceAnalyticsAnomalyDeviceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAnomalyDeviceCollectionResponse instantiates a new userExperienceAnalyticsAnomalyDeviceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAnomalyDeviceCollectionResponse()(*UserExperienceAnalyticsAnomalyDeviceCollectionResponse) { m := &UserExperienceAnalyticsAnomalyDeviceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_app_health_app_performance_by_app_version.go b/models/user_experience_analytics_app_health_app_performance_by_app_version.go index 8d46767719e..6cc94102a4c 100644 --- a/models/user_experience_analytics_app_health_app_performance_by_app_version.go +++ b/models/user_experience_analytics_app_health_app_performance_by_app_version.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsAppHealthAppPerformanceByAppVersion the user experience analytics application performance entity contains app performance details by app version. type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersion struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersion instantiates a new userExperienceAnalyticsAppHealthAppPerformanceByAppVersion and sets the default values. func NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersion()(*UserExperienceAnalyticsAppHealthAppPerformanceByAppVersion) { diff --git a/models/user_experience_analytics_app_health_app_performance_by_app_version_collection_response.go b/models/user_experience_analytics_app_health_app_performance_by_app_version_collection_response.go index c951a078c86..9031cffb159 100644 --- a/models/user_experience_analytics_app_health_app_performance_by_app_version_collection_response.go +++ b/models/user_experience_analytics_app_health_app_performance_by_app_version_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionCollectionResponse instantiates a new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionCollectionResponse instantiates a new userExperienceAnalyticsAppHealthAppPerformanceByAppVersionCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionCollectionResponse()(*UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionCollectionResponse) { m := &UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_app_health_app_performance_by_app_version_details.go b/models/user_experience_analytics_app_health_app_performance_by_app_version_details.go index 6b3872cbb55..3789a37ddc6 100644 --- a/models/user_experience_analytics_app_health_app_performance_by_app_version_details.go +++ b/models/user_experience_analytics_app_health_app_performance_by_app_version_details.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails the user experience analytics application performance entity contains application performance by application version details. type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails instantiates a new userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails and sets the default values. func NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails()(*UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails) { diff --git a/models/user_experience_analytics_app_health_app_performance_by_app_version_details_collection_response.go b/models/user_experience_analytics_app_health_app_performance_by_app_version_details_collection_response.go index 1bf6df3f983..5e3a1e8c273 100644 --- a/models/user_experience_analytics_app_health_app_performance_by_app_version_details_collection_response.go +++ b/models/user_experience_analytics_app_health_app_performance_by_app_version_details_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse instantiates a new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse instantiates a new userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse()(*UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse) { m := &UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetailsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_app_health_app_performance_by_app_version_device_id.go b/models/user_experience_analytics_app_health_app_performance_by_app_version_device_id.go index f937c96ae76..9c27e137d90 100644 --- a/models/user_experience_analytics_app_health_app_performance_by_app_version_device_id.go +++ b/models/user_experience_analytics_app_health_app_performance_by_app_version_device_id.go @@ -8,6 +8,8 @@ import ( // UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId the user experience analytics application performance entity contains application performance by application version device id. type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId instantiates a new userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId and sets the default values. func NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId()(*UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceId) { diff --git a/models/user_experience_analytics_app_health_app_performance_by_app_version_device_id_collection_response.go b/models/user_experience_analytics_app_health_app_performance_by_app_version_device_id_collection_response.go index d393a898bb8..8daa8e27126 100644 --- a/models/user_experience_analytics_app_health_app_performance_by_app_version_device_id_collection_response.go +++ b/models/user_experience_analytics_app_health_app_performance_by_app_version_device_id_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse instantiates a new UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse instantiates a new userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse()(*UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse) { m := &UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDeviceIdCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_app_health_app_performance_by_o_s_version.go b/models/user_experience_analytics_app_health_app_performance_by_o_s_version.go index c9ccb8d2df2..f476fc10195 100644 --- a/models/user_experience_analytics_app_health_app_performance_by_o_s_version.go +++ b/models/user_experience_analytics_app_health_app_performance_by_o_s_version.go @@ -158,6 +158,16 @@ func (m *UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) GetFieldDese } 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["osBuildNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -191,6 +201,17 @@ func (m *UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) GetMeanTimeT } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOsBuildNumber gets the osBuildNumber property value. The OS build number of the application. Supports: $select, $OrderBy. Read-only. func (m *UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) GetOsBuildNumber()(*string) { val, err := m.GetBackingStore().Get("osBuildNumber") @@ -261,6 +282,12 @@ func (m *UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) Serialize(wr return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("osBuildNumber", m.GetOsBuildNumber()) if err != nil { @@ -324,6 +351,13 @@ func (m *UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) SetMeanTimeT panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOsBuildNumber sets the osBuildNumber property value. The OS build number of the application. Supports: $select, $OrderBy. Read-only. func (m *UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion) SetOsBuildNumber(value *string)() { err := m.GetBackingStore().Set("osBuildNumber", value) @@ -349,6 +383,7 @@ type UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionable interface { GetAppPublisher()(*string) GetAppUsageDuration()(*int32) GetMeanTimeToFailureInMinutes()(*int32) + GetOdataType()(*string) GetOsBuildNumber()(*string) GetOsVersion()(*string) SetActiveDeviceCount(value *int32)() @@ -358,6 +393,7 @@ type UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionable interface { SetAppPublisher(value *string)() SetAppUsageDuration(value *int32)() SetMeanTimeToFailureInMinutes(value *int32)() + SetOdataType(value *string)() SetOsBuildNumber(value *string)() SetOsVersion(value *string)() } diff --git a/models/user_experience_analytics_app_health_app_performance_by_o_s_version_collection_response.go b/models/user_experience_analytics_app_health_app_performance_by_o_s_version_collection_response.go index d47a8b02a6a..a9eb88aa837 100644 --- a/models/user_experience_analytics_app_health_app_performance_by_o_s_version_collection_response.go +++ b/models/user_experience_analytics_app_health_app_performance_by_o_s_version_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse instantiates a new UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse instantiates a new userExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse()(*UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse) { m := &UserExperienceAnalyticsAppHealthAppPerformanceByOSVersionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_app_health_application_performance.go b/models/user_experience_analytics_app_health_application_performance.go index a7f45eff7ef..f0efc623e49 100644 --- a/models/user_experience_analytics_app_health_application_performance.go +++ b/models/user_experience_analytics_app_health_application_performance.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsAppHealthApplicationPerformance the user experience analytics application performance entity contains application performance details. type UserExperienceAnalyticsAppHealthApplicationPerformance struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsAppHealthApplicationPerformance instantiates a new userExperienceAnalyticsAppHealthApplicationPerformance and sets the default values. func NewUserExperienceAnalyticsAppHealthApplicationPerformance()(*UserExperienceAnalyticsAppHealthApplicationPerformance) { diff --git a/models/user_experience_analytics_app_health_application_performance_collection_response.go b/models/user_experience_analytics_app_health_application_performance_collection_response.go index 7e69635c9c4..26f8fdbe837 100644 --- a/models/user_experience_analytics_app_health_application_performance_collection_response.go +++ b/models/user_experience_analytics_app_health_application_performance_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse instantiates a new UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse instantiates a new userExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse()(*UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse) { m := &UserExperienceAnalyticsAppHealthApplicationPerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_app_health_device_model_performance.go b/models/user_experience_analytics_app_health_device_model_performance.go index dea4c3cd86b..08fe1f899ec 100644 --- a/models/user_experience_analytics_app_health_device_model_performance.go +++ b/models/user_experience_analytics_app_health_device_model_performance.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsAppHealthDeviceModelPerformance the user experience analytics device model performance entity contains device model performance details. type UserExperienceAnalyticsAppHealthDeviceModelPerformance struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsAppHealthDeviceModelPerformance instantiates a new userExperienceAnalyticsAppHealthDeviceModelPerformance and sets the default values. func NewUserExperienceAnalyticsAppHealthDeviceModelPerformance()(*UserExperienceAnalyticsAppHealthDeviceModelPerformance) { diff --git a/models/user_experience_analytics_app_health_device_model_performance_collection_response.go b/models/user_experience_analytics_app_health_device_model_performance_collection_response.go index 84adad674e5..ee937ed3288 100644 --- a/models/user_experience_analytics_app_health_device_model_performance_collection_response.go +++ b/models/user_experience_analytics_app_health_device_model_performance_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse instantiates a new UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse instantiates a new userExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse()(*UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse) { m := &UserExperienceAnalyticsAppHealthDeviceModelPerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_app_health_device_performance.go b/models/user_experience_analytics_app_health_device_performance.go index a5b9a62d368..c19c56a9ea0 100644 --- a/models/user_experience_analytics_app_health_device_performance.go +++ b/models/user_experience_analytics_app_health_device_performance.go @@ -8,6 +8,8 @@ import ( // UserExperienceAnalyticsAppHealthDevicePerformance the user experience analytics device performance entity contains device performance details. type UserExperienceAnalyticsAppHealthDevicePerformance struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsAppHealthDevicePerformance instantiates a new userExperienceAnalyticsAppHealthDevicePerformance and sets the default values. func NewUserExperienceAnalyticsAppHealthDevicePerformance()(*UserExperienceAnalyticsAppHealthDevicePerformance) { diff --git a/models/user_experience_analytics_app_health_device_performance_collection_response.go b/models/user_experience_analytics_app_health_device_performance_collection_response.go index 30b566dc0be..02050544dc1 100644 --- a/models/user_experience_analytics_app_health_device_performance_collection_response.go +++ b/models/user_experience_analytics_app_health_device_performance_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse instantiates a new UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse instantiates a new userExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse()(*UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse) { m := &UserExperienceAnalyticsAppHealthDevicePerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_app_health_device_performance_details.go b/models/user_experience_analytics_app_health_device_performance_details.go index dbc8ebe99d0..2fcb574a3d4 100644 --- a/models/user_experience_analytics_app_health_device_performance_details.go +++ b/models/user_experience_analytics_app_health_device_performance_details.go @@ -8,6 +8,8 @@ import ( // UserExperienceAnalyticsAppHealthDevicePerformanceDetails the user experience analytics device performance entity contains device performance details. type UserExperienceAnalyticsAppHealthDevicePerformanceDetails struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsAppHealthDevicePerformanceDetails instantiates a new userExperienceAnalyticsAppHealthDevicePerformanceDetails and sets the default values. func NewUserExperienceAnalyticsAppHealthDevicePerformanceDetails()(*UserExperienceAnalyticsAppHealthDevicePerformanceDetails) { diff --git a/models/user_experience_analytics_app_health_device_performance_details_collection_response.go b/models/user_experience_analytics_app_health_device_performance_details_collection_response.go index 83260f7e2bd..dced94f9664 100644 --- a/models/user_experience_analytics_app_health_device_performance_details_collection_response.go +++ b/models/user_experience_analytics_app_health_device_performance_details_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse instantiates a new UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse instantiates a new userExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse()(*UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse) { m := &UserExperienceAnalyticsAppHealthDevicePerformanceDetailsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_app_health_o_s_version_performance.go b/models/user_experience_analytics_app_health_o_s_version_performance.go index 0217c806518..37f0efc43bd 100644 --- a/models/user_experience_analytics_app_health_o_s_version_performance.go +++ b/models/user_experience_analytics_app_health_o_s_version_performance.go @@ -53,6 +53,16 @@ func (m *UserExperienceAnalyticsAppHealthOSVersionPerformance) GetFieldDeseriali } 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["osBuildNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -96,6 +106,17 @@ func (m *UserExperienceAnalyticsAppHealthOSVersionPerformance) GetMeanTimeToFail } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsAppHealthOSVersionPerformance) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOsBuildNumber gets the osBuildNumber property value. The OS build number installed on the device. Supports: $select, $OrderBy. Read-only. func (m *UserExperienceAnalyticsAppHealthOSVersionPerformance) GetOsBuildNumber()(*string) { val, err := m.GetBackingStore().Get("osBuildNumber") @@ -147,6 +168,12 @@ func (m *UserExperienceAnalyticsAppHealthOSVersionPerformance) Serialize(writer return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("osBuildNumber", m.GetOsBuildNumber()) if err != nil { @@ -181,6 +208,13 @@ func (m *UserExperienceAnalyticsAppHealthOSVersionPerformance) SetMeanTimeToFail panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsAppHealthOSVersionPerformance) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOsBuildNumber sets the osBuildNumber property value. The OS build number installed on the device. Supports: $select, $OrderBy. Read-only. func (m *UserExperienceAnalyticsAppHealthOSVersionPerformance) SetOsBuildNumber(value *string)() { err := m.GetBackingStore().Set("osBuildNumber", value) @@ -208,11 +242,13 @@ type UserExperienceAnalyticsAppHealthOSVersionPerformanceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetActiveDeviceCount()(*int32) GetMeanTimeToFailureInMinutes()(*int32) + GetOdataType()(*string) GetOsBuildNumber()(*string) GetOsVersion()(*string) GetOsVersionAppHealthScore()(*float64) SetActiveDeviceCount(value *int32)() SetMeanTimeToFailureInMinutes(value *int32)() + SetOdataType(value *string)() SetOsBuildNumber(value *string)() SetOsVersion(value *string)() SetOsVersionAppHealthScore(value *float64)() diff --git a/models/user_experience_analytics_app_health_o_s_version_performance_collection_response.go b/models/user_experience_analytics_app_health_o_s_version_performance_collection_response.go index fde67f781e4..556aee8ec14 100644 --- a/models/user_experience_analytics_app_health_o_s_version_performance_collection_response.go +++ b/models/user_experience_analytics_app_health_o_s_version_performance_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse instantiates a new UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse instantiates a new userExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse()(*UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse) { m := &UserExperienceAnalyticsAppHealthOSVersionPerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_baseline.go b/models/user_experience_analytics_baseline.go index 89960b71477..8ea1ca70ccf 100644 --- a/models/user_experience_analytics_baseline.go +++ b/models/user_experience_analytics_baseline.go @@ -8,6 +8,8 @@ import ( // UserExperienceAnalyticsBaseline the user experience analytics baseline entity contains baseline values against which to compare the user experience analytics scores. type UserExperienceAnalyticsBaseline struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsBaseline instantiates a new userExperienceAnalyticsBaseline and sets the default values. func NewUserExperienceAnalyticsBaseline()(*UserExperienceAnalyticsBaseline) { diff --git a/models/user_experience_analytics_baseline_collection_response.go b/models/user_experience_analytics_baseline_collection_response.go index 9a7f8194f67..bb9e069bc3d 100644 --- a/models/user_experience_analytics_baseline_collection_response.go +++ b/models/user_experience_analytics_baseline_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsBaselineCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsBaselineCollectionResponse instantiates a new UserExperienceAnalyticsBaselineCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsBaselineCollectionResponse instantiates a new userExperienceAnalyticsBaselineCollectionResponse and sets the default values. func NewUserExperienceAnalyticsBaselineCollectionResponse()(*UserExperienceAnalyticsBaselineCollectionResponse) { m := &UserExperienceAnalyticsBaselineCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_battery_health_app_impact.go b/models/user_experience_analytics_battery_health_app_impact.go index 9f4b8fe31fc..67ca27cf2ca 100644 --- a/models/user_experience_analytics_battery_health_app_impact.go +++ b/models/user_experience_analytics_battery_health_app_impact.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsBatteryHealthAppImpact the user experience analytics battery health app impact entity contains battery usage related information at an app level for the tenant. type UserExperienceAnalyticsBatteryHealthAppImpact struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsBatteryHealthAppImpact instantiates a new userExperienceAnalyticsBatteryHealthAppImpact and sets the default values. func NewUserExperienceAnalyticsBatteryHealthAppImpact()(*UserExperienceAnalyticsBatteryHealthAppImpact) { diff --git a/models/user_experience_analytics_battery_health_app_impact_collection_response.go b/models/user_experience_analytics_battery_health_app_impact_collection_response.go index 1c1554fb92b..ae9e148456e 100644 --- a/models/user_experience_analytics_battery_health_app_impact_collection_response.go +++ b/models/user_experience_analytics_battery_health_app_impact_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsBatteryHealthAppImpactCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsBatteryHealthAppImpactCollectionResponse instantiates a new UserExperienceAnalyticsBatteryHealthAppImpactCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsBatteryHealthAppImpactCollectionResponse instantiates a new userExperienceAnalyticsBatteryHealthAppImpactCollectionResponse and sets the default values. func NewUserExperienceAnalyticsBatteryHealthAppImpactCollectionResponse()(*UserExperienceAnalyticsBatteryHealthAppImpactCollectionResponse) { m := &UserExperienceAnalyticsBatteryHealthAppImpactCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_battery_health_capacity_details.go b/models/user_experience_analytics_battery_health_capacity_details.go index acac17e0b57..721125c6b11 100644 --- a/models/user_experience_analytics_battery_health_capacity_details.go +++ b/models/user_experience_analytics_battery_health_capacity_details.go @@ -5,7 +5,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// UserExperienceAnalyticsBatteryHealthCapacityDetails +// UserExperienceAnalyticsBatteryHealthCapacityDetails the user experience analytics battery health capacity entity contains count of devices broken down into 3 categories - devices with capacity > 80%, devices with capacity 50-80% and devices with capacity < 50 %.This API provides the count of devices in these 3 categories.. type UserExperienceAnalyticsBatteryHealthCapacityDetails struct { Entity } @@ -117,6 +117,16 @@ func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) GetFieldDeserializ } 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 } // GetLastRefreshedDateTime gets the lastRefreshedDateTime property value. Recorded date time of this capacity details instance. @@ -130,6 +140,17 @@ func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) GetLastRefreshedDa } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) 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 *UserExperienceAnalyticsBatteryHealthCapacityDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -166,6 +187,12 @@ func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) Serialize(writer i return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetActiveDevices sets the activeDevices property value. Number of active devices within the tenant. Valid values -2147483648 to 2147483647 @@ -203,6 +230,13 @@ func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) SetLastRefreshedDa panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsBatteryHealthCapacityDetails) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // UserExperienceAnalyticsBatteryHealthCapacityDetailsable type UserExperienceAnalyticsBatteryHealthCapacityDetailsable interface { Entityable @@ -212,9 +246,11 @@ type UserExperienceAnalyticsBatteryHealthCapacityDetailsable interface { GetBatteryCapacityGood()(*int32) GetBatteryCapacityPoor()(*int32) GetLastRefreshedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) SetActiveDevices(value *int32)() SetBatteryCapacityFair(value *int32)() SetBatteryCapacityGood(value *int32)() SetBatteryCapacityPoor(value *int32)() SetLastRefreshedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() } diff --git a/models/user_experience_analytics_battery_health_device_app_impact.go b/models/user_experience_analytics_battery_health_device_app_impact.go index e4199d5911e..5e1a7a7c5de 100644 --- a/models/user_experience_analytics_battery_health_device_app_impact.go +++ b/models/user_experience_analytics_battery_health_device_app_impact.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsBatteryHealthDeviceAppImpact the user experience analytics battery health device app impact entity contains battery usage related information at an app level for a given device. type UserExperienceAnalyticsBatteryHealthDeviceAppImpact struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsBatteryHealthDeviceAppImpact instantiates a new userExperienceAnalyticsBatteryHealthDeviceAppImpact and sets the default values. func NewUserExperienceAnalyticsBatteryHealthDeviceAppImpact()(*UserExperienceAnalyticsBatteryHealthDeviceAppImpact) { diff --git a/models/user_experience_analytics_battery_health_device_app_impact_collection_response.go b/models/user_experience_analytics_battery_health_device_app_impact_collection_response.go index b131f9f8ed3..6a71ef99ccb 100644 --- a/models/user_experience_analytics_battery_health_device_app_impact_collection_response.go +++ b/models/user_experience_analytics_battery_health_device_app_impact_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsBatteryHealthDeviceAppImpactCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsBatteryHealthDeviceAppImpactCollectionResponse instantiates a new UserExperienceAnalyticsBatteryHealthDeviceAppImpactCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsBatteryHealthDeviceAppImpactCollectionResponse instantiates a new userExperienceAnalyticsBatteryHealthDeviceAppImpactCollectionResponse and sets the default values. func NewUserExperienceAnalyticsBatteryHealthDeviceAppImpactCollectionResponse()(*UserExperienceAnalyticsBatteryHealthDeviceAppImpactCollectionResponse) { m := &UserExperienceAnalyticsBatteryHealthDeviceAppImpactCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_battery_health_device_performance.go b/models/user_experience_analytics_battery_health_device_performance.go index e1a1aaaf10b..ca946911f51 100644 --- a/models/user_experience_analytics_battery_health_device_performance.go +++ b/models/user_experience_analytics_battery_health_device_performance.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsBatteryHealthDevicePerformance the user experience analytics battery health device performance entity contains device level battery information. type UserExperienceAnalyticsBatteryHealthDevicePerformance struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsBatteryHealthDevicePerformance instantiates a new userExperienceAnalyticsBatteryHealthDevicePerformance and sets the default values. func NewUserExperienceAnalyticsBatteryHealthDevicePerformance()(*UserExperienceAnalyticsBatteryHealthDevicePerformance) { diff --git a/models/user_experience_analytics_battery_health_device_performance_collection_response.go b/models/user_experience_analytics_battery_health_device_performance_collection_response.go index f4ace9f3c99..ba27cd8b4f4 100644 --- a/models/user_experience_analytics_battery_health_device_performance_collection_response.go +++ b/models/user_experience_analytics_battery_health_device_performance_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsBatteryHealthDevicePerformanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsBatteryHealthDevicePerformanceCollectionResponse instantiates a new UserExperienceAnalyticsBatteryHealthDevicePerformanceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsBatteryHealthDevicePerformanceCollectionResponse instantiates a new userExperienceAnalyticsBatteryHealthDevicePerformanceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsBatteryHealthDevicePerformanceCollectionResponse()(*UserExperienceAnalyticsBatteryHealthDevicePerformanceCollectionResponse) { m := &UserExperienceAnalyticsBatteryHealthDevicePerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_battery_health_device_runtime_history.go b/models/user_experience_analytics_battery_health_device_runtime_history.go index e6b83999587..c1a815e5653 100644 --- a/models/user_experience_analytics_battery_health_device_runtime_history.go +++ b/models/user_experience_analytics_battery_health_device_runtime_history.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory the user experience analytics battery health runtime history entity contains the trend of runtime of a device over a period of 30 days type UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory instantiates a new userExperienceAnalyticsBatteryHealthDeviceRuntimeHistory and sets the default values. func NewUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory()(*UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory) { diff --git a/models/user_experience_analytics_battery_health_device_runtime_history_collection_response.go b/models/user_experience_analytics_battery_health_device_runtime_history_collection_response.go index 0b270f47963..37b422a0596 100644 --- a/models/user_experience_analytics_battery_health_device_runtime_history_collection_response.go +++ b/models/user_experience_analytics_battery_health_device_runtime_history_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistoryCollectionResponse instantiates a new UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistoryCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistoryCollectionResponse instantiates a new userExperienceAnalyticsBatteryHealthDeviceRuntimeHistoryCollectionResponse and sets the default values. func NewUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistoryCollectionResponse()(*UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistoryCollectionResponse) { m := &UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_battery_health_model_performance.go b/models/user_experience_analytics_battery_health_model_performance.go index c993eff3f10..49e29bd4405 100644 --- a/models/user_experience_analytics_battery_health_model_performance.go +++ b/models/user_experience_analytics_battery_health_model_performance.go @@ -136,6 +136,16 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetFieldDeseriali } 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 } // GetManufacturer gets the manufacturer property value. Name of the device manufacturer. @@ -171,6 +181,17 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetModelBatteryHe } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) 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 *UserExperienceAnalyticsBatteryHealthModelPerformance) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -219,6 +240,12 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) Serialize(writer return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetActiveDevices sets the activeDevices property value. Number of active devices for that model. Valid values -2147483648 to 2147483647 @@ -270,6 +297,13 @@ func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetModelBatteryHe panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // UserExperienceAnalyticsBatteryHealthModelPerformanceable type UserExperienceAnalyticsBatteryHealthModelPerformanceable interface { Entityable @@ -281,6 +315,7 @@ type UserExperienceAnalyticsBatteryHealthModelPerformanceable interface { GetManufacturer()(*string) GetModel()(*string) GetModelBatteryHealthScore()(*int32) + GetOdataType()(*string) SetActiveDevices(value *int32)() SetAverageBatteryAgeInDays(value *int32)() SetAverageEstimatedRuntimeInMinutes(value *int32)() @@ -288,4 +323,5 @@ type UserExperienceAnalyticsBatteryHealthModelPerformanceable interface { SetManufacturer(value *string)() SetModel(value *string)() SetModelBatteryHealthScore(value *int32)() + SetOdataType(value *string)() } diff --git a/models/user_experience_analytics_battery_health_model_performance_collection_response.go b/models/user_experience_analytics_battery_health_model_performance_collection_response.go index 65572284b0b..bb1771c406e 100644 --- a/models/user_experience_analytics_battery_health_model_performance_collection_response.go +++ b/models/user_experience_analytics_battery_health_model_performance_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsBatteryHealthModelPerformanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsBatteryHealthModelPerformanceCollectionResponse instantiates a new UserExperienceAnalyticsBatteryHealthModelPerformanceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsBatteryHealthModelPerformanceCollectionResponse instantiates a new userExperienceAnalyticsBatteryHealthModelPerformanceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsBatteryHealthModelPerformanceCollectionResponse()(*UserExperienceAnalyticsBatteryHealthModelPerformanceCollectionResponse) { m := &UserExperienceAnalyticsBatteryHealthModelPerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_battery_health_os_performance.go b/models/user_experience_analytics_battery_health_os_performance.go index 6da412737d3..5501b422fdc 100644 --- a/models/user_experience_analytics_battery_health_os_performance.go +++ b/models/user_experience_analytics_battery_health_os_performance.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsBatteryHealthOsPerformance the user experience analytics battery health os performance entity contains battery related information for all operating system versions in their organization. type UserExperienceAnalyticsBatteryHealthOsPerformance struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsBatteryHealthOsPerformance instantiates a new userExperienceAnalyticsBatteryHealthOsPerformance and sets the default values. func NewUserExperienceAnalyticsBatteryHealthOsPerformance()(*UserExperienceAnalyticsBatteryHealthOsPerformance) { diff --git a/models/user_experience_analytics_battery_health_os_performance_collection_response.go b/models/user_experience_analytics_battery_health_os_performance_collection_response.go index 329459b3712..6acb6e0399f 100644 --- a/models/user_experience_analytics_battery_health_os_performance_collection_response.go +++ b/models/user_experience_analytics_battery_health_os_performance_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsBatteryHealthOsPerformanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsBatteryHealthOsPerformanceCollectionResponse instantiates a new UserExperienceAnalyticsBatteryHealthOsPerformanceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsBatteryHealthOsPerformanceCollectionResponse instantiates a new userExperienceAnalyticsBatteryHealthOsPerformanceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsBatteryHealthOsPerformanceCollectionResponse()(*UserExperienceAnalyticsBatteryHealthOsPerformanceCollectionResponse) { m := &UserExperienceAnalyticsBatteryHealthOsPerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_battery_health_runtime_details.go b/models/user_experience_analytics_battery_health_runtime_details.go index a478f9f4a8e..84416f69daf 100644 --- a/models/user_experience_analytics_battery_health_runtime_details.go +++ b/models/user_experience_analytics_battery_health_runtime_details.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// UserExperienceAnalyticsBatteryHealthRuntimeDetails +// UserExperienceAnalyticsBatteryHealthRuntimeDetails the user experience analytics battery health runtime entity contains count of devices broken down into 3 categories - devices with runtime > 5 hours, devices with runtime 3-5 hours and devices with runtime < 3 hours.This API provides the count of devices in these 3 categories. type UserExperienceAnalyticsBatteryHealthRuntimeDetails struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsBatteryHealthRuntimeDetails instantiates a new userExperienceAnalyticsBatteryHealthRuntimeDetails and sets the default values. func NewUserExperienceAnalyticsBatteryHealthRuntimeDetails()(*UserExperienceAnalyticsBatteryHealthRuntimeDetails) { diff --git a/models/user_experience_analytics_category.go b/models/user_experience_analytics_category.go index 6e41b410026..85798ba034f 100644 --- a/models/user_experience_analytics_category.go +++ b/models/user_experience_analytics_category.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// UserExperienceAnalyticsCategory +// UserExperienceAnalyticsCategory the user experience analytics category entity contains the scores and insights for the various metrics of a category. type UserExperienceAnalyticsCategory struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsCategory instantiates a new userExperienceAnalyticsCategory and sets the default values. func NewUserExperienceAnalyticsCategory()(*UserExperienceAnalyticsCategory) { diff --git a/models/user_experience_analytics_category_collection_response.go b/models/user_experience_analytics_category_collection_response.go index 2a4d35cfec7..6c3d7a55efd 100644 --- a/models/user_experience_analytics_category_collection_response.go +++ b/models/user_experience_analytics_category_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsCategoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsCategoryCollectionResponse instantiates a new UserExperienceAnalyticsCategoryCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsCategoryCollectionResponse instantiates a new userExperienceAnalyticsCategoryCollectionResponse and sets the default values. func NewUserExperienceAnalyticsCategoryCollectionResponse()(*UserExperienceAnalyticsCategoryCollectionResponse) { m := &UserExperienceAnalyticsCategoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_device_performance.go b/models/user_experience_analytics_device_performance.go index 24c3cabe389..22f648a92af 100644 --- a/models/user_experience_analytics_device_performance.go +++ b/models/user_experience_analytics_device_performance.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsDevicePerformance the user experience analytics device performance entity contains device boot performance details. type UserExperienceAnalyticsDevicePerformance struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsDevicePerformance instantiates a new userExperienceAnalyticsDevicePerformance and sets the default values. func NewUserExperienceAnalyticsDevicePerformance()(*UserExperienceAnalyticsDevicePerformance) { diff --git a/models/user_experience_analytics_device_performance_collection_response.go b/models/user_experience_analytics_device_performance_collection_response.go index 9613ada304c..f18ac173e88 100644 --- a/models/user_experience_analytics_device_performance_collection_response.go +++ b/models/user_experience_analytics_device_performance_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsDevicePerformanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsDevicePerformanceCollectionResponse instantiates a new UserExperienceAnalyticsDevicePerformanceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsDevicePerformanceCollectionResponse instantiates a new userExperienceAnalyticsDevicePerformanceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsDevicePerformanceCollectionResponse()(*UserExperienceAnalyticsDevicePerformanceCollectionResponse) { m := &UserExperienceAnalyticsDevicePerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_device_scope.go b/models/user_experience_analytics_device_scope.go index afe3a0ed809..86b2fb8b9a2 100644 --- a/models/user_experience_analytics_device_scope.go +++ b/models/user_experience_analytics_device_scope.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// UserExperienceAnalyticsDeviceScope +// UserExperienceAnalyticsDeviceScope the user experience analytics device scope entity contains device scope configuration values use to apply filtering on the endpoint analytics reports. type UserExperienceAnalyticsDeviceScope struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsDeviceScope instantiates a new userExperienceAnalyticsDeviceScope and sets the default values. func NewUserExperienceAnalyticsDeviceScope()(*UserExperienceAnalyticsDeviceScope) { diff --git a/models/user_experience_analytics_device_scope_collection_response.go b/models/user_experience_analytics_device_scope_collection_response.go index f1044c2b999..1cc4edc8ce3 100644 --- a/models/user_experience_analytics_device_scope_collection_response.go +++ b/models/user_experience_analytics_device_scope_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsDeviceScopeCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsDeviceScopeCollectionResponse instantiates a new UserExperienceAnalyticsDeviceScopeCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsDeviceScopeCollectionResponse instantiates a new userExperienceAnalyticsDeviceScopeCollectionResponse and sets the default values. func NewUserExperienceAnalyticsDeviceScopeCollectionResponse()(*UserExperienceAnalyticsDeviceScopeCollectionResponse) { m := &UserExperienceAnalyticsDeviceScopeCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_device_scores.go b/models/user_experience_analytics_device_scores.go index d225d593585..2ddd7bc24fc 100644 --- a/models/user_experience_analytics_device_scores.go +++ b/models/user_experience_analytics_device_scores.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsDeviceScores the user experience analytics device scores entity consolidates the various Endpoint Analytics scores. type UserExperienceAnalyticsDeviceScores struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsDeviceScores instantiates a new userExperienceAnalyticsDeviceScores and sets the default values. func NewUserExperienceAnalyticsDeviceScores()(*UserExperienceAnalyticsDeviceScores) { diff --git a/models/user_experience_analytics_device_scores_collection_response.go b/models/user_experience_analytics_device_scores_collection_response.go index 4c97e06d14f..398afd74706 100644 --- a/models/user_experience_analytics_device_scores_collection_response.go +++ b/models/user_experience_analytics_device_scores_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsDeviceScoresCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsDeviceScoresCollectionResponse instantiates a new UserExperienceAnalyticsDeviceScoresCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsDeviceScoresCollectionResponse instantiates a new userExperienceAnalyticsDeviceScoresCollectionResponse and sets the default values. func NewUserExperienceAnalyticsDeviceScoresCollectionResponse()(*UserExperienceAnalyticsDeviceScoresCollectionResponse) { m := &UserExperienceAnalyticsDeviceScoresCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_device_startup_history.go b/models/user_experience_analytics_device_startup_history.go index 86a1a409086..539276104f6 100644 --- a/models/user_experience_analytics_device_startup_history.go +++ b/models/user_experience_analytics_device_startup_history.go @@ -8,6 +8,8 @@ import ( // UserExperienceAnalyticsDeviceStartupHistory the user experience analytics device startup history entity contains device boot performance history details. type UserExperienceAnalyticsDeviceStartupHistory struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsDeviceStartupHistory instantiates a new userExperienceAnalyticsDeviceStartupHistory and sets the default values. func NewUserExperienceAnalyticsDeviceStartupHistory()(*UserExperienceAnalyticsDeviceStartupHistory) { diff --git a/models/user_experience_analytics_device_startup_history_collection_response.go b/models/user_experience_analytics_device_startup_history_collection_response.go index 076e9fdc86e..2019b281d55 100644 --- a/models/user_experience_analytics_device_startup_history_collection_response.go +++ b/models/user_experience_analytics_device_startup_history_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsDeviceStartupHistoryCollectionResponse instantiates a new UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsDeviceStartupHistoryCollectionResponse instantiates a new userExperienceAnalyticsDeviceStartupHistoryCollectionResponse and sets the default values. func NewUserExperienceAnalyticsDeviceStartupHistoryCollectionResponse()(*UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse) { m := &UserExperienceAnalyticsDeviceStartupHistoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_device_startup_process.go b/models/user_experience_analytics_device_startup_process.go index db1085a4676..516bedf0859 100644 --- a/models/user_experience_analytics_device_startup_process.go +++ b/models/user_experience_analytics_device_startup_process.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsDeviceStartupProcess the user experience analytics device startup process details. type UserExperienceAnalyticsDeviceStartupProcess struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsDeviceStartupProcess instantiates a new userExperienceAnalyticsDeviceStartupProcess and sets the default values. func NewUserExperienceAnalyticsDeviceStartupProcess()(*UserExperienceAnalyticsDeviceStartupProcess) { diff --git a/models/user_experience_analytics_device_startup_process_collection_response.go b/models/user_experience_analytics_device_startup_process_collection_response.go index afdd0ada4b4..d8dbb46a42c 100644 --- a/models/user_experience_analytics_device_startup_process_collection_response.go +++ b/models/user_experience_analytics_device_startup_process_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsDeviceStartupProcessCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsDeviceStartupProcessCollectionResponse instantiates a new UserExperienceAnalyticsDeviceStartupProcessCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsDeviceStartupProcessCollectionResponse instantiates a new userExperienceAnalyticsDeviceStartupProcessCollectionResponse and sets the default values. func NewUserExperienceAnalyticsDeviceStartupProcessCollectionResponse()(*UserExperienceAnalyticsDeviceStartupProcessCollectionResponse) { m := &UserExperienceAnalyticsDeviceStartupProcessCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_device_startup_process_performance.go b/models/user_experience_analytics_device_startup_process_performance.go index 46ef98e9948..b8d66aebe3b 100644 --- a/models/user_experience_analytics_device_startup_process_performance.go +++ b/models/user_experience_analytics_device_startup_process_performance.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsDeviceStartupProcessPerformance the user experience analytics device startup process performance. type UserExperienceAnalyticsDeviceStartupProcessPerformance struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsDeviceStartupProcessPerformance instantiates a new userExperienceAnalyticsDeviceStartupProcessPerformance and sets the default values. func NewUserExperienceAnalyticsDeviceStartupProcessPerformance()(*UserExperienceAnalyticsDeviceStartupProcessPerformance) { diff --git a/models/user_experience_analytics_device_startup_process_performance_collection_response.go b/models/user_experience_analytics_device_startup_process_performance_collection_response.go index 56f5a86e607..2ed63e277b5 100644 --- a/models/user_experience_analytics_device_startup_process_performance_collection_response.go +++ b/models/user_experience_analytics_device_startup_process_performance_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse instantiates a new UserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse instantiates a new userExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse()(*UserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse) { m := &UserExperienceAnalyticsDeviceStartupProcessPerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_device_timeline_event.go b/models/user_experience_analytics_device_timeline_event.go index 69cf9e10240..cb1ae0627d0 100644 --- a/models/user_experience_analytics_device_timeline_event.go +++ b/models/user_experience_analytics_device_timeline_event.go @@ -149,8 +149,29 @@ func (m *UserExperienceAnalyticsDeviceTimelineEvent) GetFieldDeserializers()(map } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsDeviceTimelineEvent) 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 *UserExperienceAnalyticsDeviceTimelineEvent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -194,6 +215,12 @@ func (m *UserExperienceAnalyticsDeviceTimelineEvent) Serialize(writer i878a80d23 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDeviceId sets the deviceId property value. The id of the device where the event occurred. @@ -238,6 +265,13 @@ func (m *UserExperienceAnalyticsDeviceTimelineEvent) SetEventSource(value *strin panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *UserExperienceAnalyticsDeviceTimelineEvent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // UserExperienceAnalyticsDeviceTimelineEventable type UserExperienceAnalyticsDeviceTimelineEventable interface { Entityable @@ -248,10 +282,12 @@ type UserExperienceAnalyticsDeviceTimelineEventable interface { GetEventLevel()(*DeviceEventLevel) GetEventName()(*string) GetEventSource()(*string) + GetOdataType()(*string) SetDeviceId(value *string)() SetEventDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetEventDetails(value *string)() SetEventLevel(value *DeviceEventLevel)() SetEventName(value *string)() SetEventSource(value *string)() + SetOdataType(value *string)() } diff --git a/models/user_experience_analytics_device_timeline_event_collection_response.go b/models/user_experience_analytics_device_timeline_event_collection_response.go index d177bb85e9f..32dacd6f121 100644 --- a/models/user_experience_analytics_device_timeline_event_collection_response.go +++ b/models/user_experience_analytics_device_timeline_event_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsDeviceTimelineEventCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsDeviceTimelineEventCollectionResponse instantiates a new UserExperienceAnalyticsDeviceTimelineEventCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsDeviceTimelineEventCollectionResponse instantiates a new userExperienceAnalyticsDeviceTimelineEventCollectionResponse and sets the default values. func NewUserExperienceAnalyticsDeviceTimelineEventCollectionResponse()(*UserExperienceAnalyticsDeviceTimelineEventCollectionResponse) { m := &UserExperienceAnalyticsDeviceTimelineEventCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_device_without_cloud_identity.go b/models/user_experience_analytics_device_without_cloud_identity.go index 9e646d15604..66a3839153b 100644 --- a/models/user_experience_analytics_device_without_cloud_identity.go +++ b/models/user_experience_analytics_device_without_cloud_identity.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsDeviceWithoutCloudIdentity the user experience analytics Device without Cloud Identity. type UserExperienceAnalyticsDeviceWithoutCloudIdentity struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsDeviceWithoutCloudIdentity instantiates a new userExperienceAnalyticsDeviceWithoutCloudIdentity and sets the default values. func NewUserExperienceAnalyticsDeviceWithoutCloudIdentity()(*UserExperienceAnalyticsDeviceWithoutCloudIdentity) { diff --git a/models/user_experience_analytics_device_without_cloud_identity_collection_response.go b/models/user_experience_analytics_device_without_cloud_identity_collection_response.go index e3fb8c5f489..c891990e857 100644 --- a/models/user_experience_analytics_device_without_cloud_identity_collection_response.go +++ b/models/user_experience_analytics_device_without_cloud_identity_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsDeviceWithoutCloudIdentityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsDeviceWithoutCloudIdentityCollectionResponse instantiates a new UserExperienceAnalyticsDeviceWithoutCloudIdentityCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsDeviceWithoutCloudIdentityCollectionResponse instantiates a new userExperienceAnalyticsDeviceWithoutCloudIdentityCollectionResponse and sets the default values. func NewUserExperienceAnalyticsDeviceWithoutCloudIdentityCollectionResponse()(*UserExperienceAnalyticsDeviceWithoutCloudIdentityCollectionResponse) { m := &UserExperienceAnalyticsDeviceWithoutCloudIdentityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_impacting_process.go b/models/user_experience_analytics_impacting_process.go index f6c055ed834..5cb5a5b8ec9 100644 --- a/models/user_experience_analytics_impacting_process.go +++ b/models/user_experience_analytics_impacting_process.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsImpactingProcess the user experience analytics top impacting process entity. type UserExperienceAnalyticsImpactingProcess struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsImpactingProcess instantiates a new userExperienceAnalyticsImpactingProcess and sets the default values. func NewUserExperienceAnalyticsImpactingProcess()(*UserExperienceAnalyticsImpactingProcess) { diff --git a/models/user_experience_analytics_impacting_process_collection_response.go b/models/user_experience_analytics_impacting_process_collection_response.go index e203ba0e2b4..8ae740de7f3 100644 --- a/models/user_experience_analytics_impacting_process_collection_response.go +++ b/models/user_experience_analytics_impacting_process_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsImpactingProcessCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsImpactingProcessCollectionResponse instantiates a new UserExperienceAnalyticsImpactingProcessCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsImpactingProcessCollectionResponse instantiates a new userExperienceAnalyticsImpactingProcessCollectionResponse and sets the default values. func NewUserExperienceAnalyticsImpactingProcessCollectionResponse()(*UserExperienceAnalyticsImpactingProcessCollectionResponse) { m := &UserExperienceAnalyticsImpactingProcessCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_metric.go b/models/user_experience_analytics_metric.go index 7bd06993ac2..8d315109ec1 100644 --- a/models/user_experience_analytics_metric.go +++ b/models/user_experience_analytics_metric.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsMetric the user experience analytics metric contains the score and units of a metric of a user experience anlaytics category. type UserExperienceAnalyticsMetric struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsMetric instantiates a new userExperienceAnalyticsMetric and sets the default values. func NewUserExperienceAnalyticsMetric()(*UserExperienceAnalyticsMetric) { diff --git a/models/user_experience_analytics_metric_collection_response.go b/models/user_experience_analytics_metric_collection_response.go index 59b6ed2bb42..c52ed092362 100644 --- a/models/user_experience_analytics_metric_collection_response.go +++ b/models/user_experience_analytics_metric_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsMetricCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsMetricCollectionResponse instantiates a new UserExperienceAnalyticsMetricCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsMetricCollectionResponse instantiates a new userExperienceAnalyticsMetricCollectionResponse and sets the default values. func NewUserExperienceAnalyticsMetricCollectionResponse()(*UserExperienceAnalyticsMetricCollectionResponse) { m := &UserExperienceAnalyticsMetricCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_metric_history.go b/models/user_experience_analytics_metric_history.go index 93c6359e5b9..ea1286b08f0 100644 --- a/models/user_experience_analytics_metric_history.go +++ b/models/user_experience_analytics_metric_history.go @@ -8,6 +8,8 @@ import ( // UserExperienceAnalyticsMetricHistory the user experience analytics metric history. type UserExperienceAnalyticsMetricHistory struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsMetricHistory instantiates a new userExperienceAnalyticsMetricHistory and sets the default values. func NewUserExperienceAnalyticsMetricHistory()(*UserExperienceAnalyticsMetricHistory) { diff --git a/models/user_experience_analytics_metric_history_collection_response.go b/models/user_experience_analytics_metric_history_collection_response.go index fe12c08c922..0bef37d9535 100644 --- a/models/user_experience_analytics_metric_history_collection_response.go +++ b/models/user_experience_analytics_metric_history_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsMetricHistoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsMetricHistoryCollectionResponse instantiates a new UserExperienceAnalyticsMetricHistoryCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsMetricHistoryCollectionResponse instantiates a new userExperienceAnalyticsMetricHistoryCollectionResponse and sets the default values. func NewUserExperienceAnalyticsMetricHistoryCollectionResponse()(*UserExperienceAnalyticsMetricHistoryCollectionResponse) { m := &UserExperienceAnalyticsMetricHistoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_model_scores.go b/models/user_experience_analytics_model_scores.go index e122143da37..33067ef7160 100644 --- a/models/user_experience_analytics_model_scores.go +++ b/models/user_experience_analytics_model_scores.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsModelScores the user experience analytics model scores entity consolidates the various Endpoint Analytics scores. type UserExperienceAnalyticsModelScores struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsModelScores instantiates a new userExperienceAnalyticsModelScores and sets the default values. func NewUserExperienceAnalyticsModelScores()(*UserExperienceAnalyticsModelScores) { diff --git a/models/user_experience_analytics_model_scores_collection_response.go b/models/user_experience_analytics_model_scores_collection_response.go index 42862ac7e9b..c6799f258b6 100644 --- a/models/user_experience_analytics_model_scores_collection_response.go +++ b/models/user_experience_analytics_model_scores_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsModelScoresCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsModelScoresCollectionResponse instantiates a new UserExperienceAnalyticsModelScoresCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsModelScoresCollectionResponse instantiates a new userExperienceAnalyticsModelScoresCollectionResponse and sets the default values. func NewUserExperienceAnalyticsModelScoresCollectionResponse()(*UserExperienceAnalyticsModelScoresCollectionResponse) { m := &UserExperienceAnalyticsModelScoresCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_not_autopilot_ready_device.go b/models/user_experience_analytics_not_autopilot_ready_device.go index 79788630000..57b7c182abe 100644 --- a/models/user_experience_analytics_not_autopilot_ready_device.go +++ b/models/user_experience_analytics_not_autopilot_ready_device.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsNotAutopilotReadyDevice the user experience analytics Device not windows autopilot ready. type UserExperienceAnalyticsNotAutopilotReadyDevice struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsNotAutopilotReadyDevice instantiates a new userExperienceAnalyticsNotAutopilotReadyDevice and sets the default values. func NewUserExperienceAnalyticsNotAutopilotReadyDevice()(*UserExperienceAnalyticsNotAutopilotReadyDevice) { diff --git a/models/user_experience_analytics_not_autopilot_ready_device_collection_response.go b/models/user_experience_analytics_not_autopilot_ready_device_collection_response.go index 4a869b856b8..341d931e66b 100644 --- a/models/user_experience_analytics_not_autopilot_ready_device_collection_response.go +++ b/models/user_experience_analytics_not_autopilot_ready_device_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsNotAutopilotReadyDeviceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsNotAutopilotReadyDeviceCollectionResponse instantiates a new UserExperienceAnalyticsNotAutopilotReadyDeviceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsNotAutopilotReadyDeviceCollectionResponse instantiates a new userExperienceAnalyticsNotAutopilotReadyDeviceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsNotAutopilotReadyDeviceCollectionResponse()(*UserExperienceAnalyticsNotAutopilotReadyDeviceCollectionResponse) { m := &UserExperienceAnalyticsNotAutopilotReadyDeviceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_overview.go b/models/user_experience_analytics_overview.go index a7bd425db36..59588835d1e 100644 --- a/models/user_experience_analytics_overview.go +++ b/models/user_experience_analytics_overview.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// UserExperienceAnalyticsOverview +// UserExperienceAnalyticsOverview the user experience analytics overview entity contains the overall score and the scores and insights of every metric of all categories. type UserExperienceAnalyticsOverview struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsOverview instantiates a new userExperienceAnalyticsOverview and sets the default values. func NewUserExperienceAnalyticsOverview()(*UserExperienceAnalyticsOverview) { diff --git a/models/user_experience_analytics_remote_connection.go b/models/user_experience_analytics_remote_connection.go index 5a4b926398c..d0db38f9c93 100644 --- a/models/user_experience_analytics_remote_connection.go +++ b/models/user_experience_analytics_remote_connection.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsRemoteConnection the user experience analyte remote connection entity. type UserExperienceAnalyticsRemoteConnection struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsRemoteConnection instantiates a new userExperienceAnalyticsRemoteConnection and sets the default values. func NewUserExperienceAnalyticsRemoteConnection()(*UserExperienceAnalyticsRemoteConnection) { diff --git a/models/user_experience_analytics_remote_connection_collection_response.go b/models/user_experience_analytics_remote_connection_collection_response.go index f77d511ad92..2e87ca4e088 100644 --- a/models/user_experience_analytics_remote_connection_collection_response.go +++ b/models/user_experience_analytics_remote_connection_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsRemoteConnectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsRemoteConnectionCollectionResponse instantiates a new UserExperienceAnalyticsRemoteConnectionCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsRemoteConnectionCollectionResponse instantiates a new userExperienceAnalyticsRemoteConnectionCollectionResponse and sets the default values. func NewUserExperienceAnalyticsRemoteConnectionCollectionResponse()(*UserExperienceAnalyticsRemoteConnectionCollectionResponse) { m := &UserExperienceAnalyticsRemoteConnectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_resource_performance.go b/models/user_experience_analytics_resource_performance.go index caa1566c360..a7ae74cf5d9 100644 --- a/models/user_experience_analytics_resource_performance.go +++ b/models/user_experience_analytics_resource_performance.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsResourcePerformance the user experience analytics resource performance entity. type UserExperienceAnalyticsResourcePerformance struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsResourcePerformance instantiates a new userExperienceAnalyticsResourcePerformance and sets the default values. func NewUserExperienceAnalyticsResourcePerformance()(*UserExperienceAnalyticsResourcePerformance) { diff --git a/models/user_experience_analytics_resource_performance_collection_response.go b/models/user_experience_analytics_resource_performance_collection_response.go index 2153482cda1..79311608ce5 100644 --- a/models/user_experience_analytics_resource_performance_collection_response.go +++ b/models/user_experience_analytics_resource_performance_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsResourcePerformanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsResourcePerformanceCollectionResponse instantiates a new UserExperienceAnalyticsResourcePerformanceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsResourcePerformanceCollectionResponse instantiates a new userExperienceAnalyticsResourcePerformanceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsResourcePerformanceCollectionResponse()(*UserExperienceAnalyticsResourcePerformanceCollectionResponse) { m := &UserExperienceAnalyticsResourcePerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_score_history.go b/models/user_experience_analytics_score_history.go index 638f36875d8..5c57af86952 100644 --- a/models/user_experience_analytics_score_history.go +++ b/models/user_experience_analytics_score_history.go @@ -8,6 +8,8 @@ import ( // UserExperienceAnalyticsScoreHistory the user experience analytics device startup score history. type UserExperienceAnalyticsScoreHistory struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsScoreHistory instantiates a new userExperienceAnalyticsScoreHistory and sets the default values. func NewUserExperienceAnalyticsScoreHistory()(*UserExperienceAnalyticsScoreHistory) { diff --git a/models/user_experience_analytics_score_history_collection_response.go b/models/user_experience_analytics_score_history_collection_response.go index b67e7143ae3..917ac68379c 100644 --- a/models/user_experience_analytics_score_history_collection_response.go +++ b/models/user_experience_analytics_score_history_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsScoreHistoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsScoreHistoryCollectionResponse instantiates a new UserExperienceAnalyticsScoreHistoryCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsScoreHistoryCollectionResponse instantiates a new userExperienceAnalyticsScoreHistoryCollectionResponse and sets the default values. func NewUserExperienceAnalyticsScoreHistoryCollectionResponse()(*UserExperienceAnalyticsScoreHistoryCollectionResponse) { m := &UserExperienceAnalyticsScoreHistoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_work_from_anywhere_device.go b/models/user_experience_analytics_work_from_anywhere_device.go index da711ea68ae..f04ba0576f4 100644 --- a/models/user_experience_analytics_work_from_anywhere_device.go +++ b/models/user_experience_analytics_work_from_anywhere_device.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsWorkFromAnywhereDevice the user experience analytics device for work from anywhere report. type UserExperienceAnalyticsWorkFromAnywhereDevice struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsWorkFromAnywhereDevice instantiates a new userExperienceAnalyticsWorkFromAnywhereDevice and sets the default values. func NewUserExperienceAnalyticsWorkFromAnywhereDevice()(*UserExperienceAnalyticsWorkFromAnywhereDevice) { diff --git a/models/user_experience_analytics_work_from_anywhere_device_collection_response.go b/models/user_experience_analytics_work_from_anywhere_device_collection_response.go index 8e8b76788ba..ba1d6666024 100644 --- a/models/user_experience_analytics_work_from_anywhere_device_collection_response.go +++ b/models/user_experience_analytics_work_from_anywhere_device_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse instantiates a new UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse instantiates a new userExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse()(*UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse) { m := &UserExperienceAnalyticsWorkFromAnywhereDeviceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_work_from_anywhere_hardware_readiness_metric.go b/models/user_experience_analytics_work_from_anywhere_hardware_readiness_metric.go index 31c5aa27e76..839bce07b81 100644 --- a/models/user_experience_analytics_work_from_anywhere_hardware_readiness_metric.go +++ b/models/user_experience_analytics_work_from_anywhere_hardware_readiness_metric.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric +// UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric the user experience analytics hardware readiness entity contains account level information about hardware blockers for windows upgrade. type UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric instantiates a new userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric and sets the default values. func NewUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric()(*UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric) { diff --git a/models/user_experience_analytics_work_from_anywhere_metric.go b/models/user_experience_analytics_work_from_anywhere_metric.go index b6ab372ebff..f6d509ba2ff 100644 --- a/models/user_experience_analytics_work_from_anywhere_metric.go +++ b/models/user_experience_analytics_work_from_anywhere_metric.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsWorkFromAnywhereMetric the user experience analytics metric for work from anywhere report. type UserExperienceAnalyticsWorkFromAnywhereMetric struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsWorkFromAnywhereMetric instantiates a new userExperienceAnalyticsWorkFromAnywhereMetric and sets the default values. func NewUserExperienceAnalyticsWorkFromAnywhereMetric()(*UserExperienceAnalyticsWorkFromAnywhereMetric) { diff --git a/models/user_experience_analytics_work_from_anywhere_metric_collection_response.go b/models/user_experience_analytics_work_from_anywhere_metric_collection_response.go index 81457184182..6f1d4a3174d 100644 --- a/models/user_experience_analytics_work_from_anywhere_metric_collection_response.go +++ b/models/user_experience_analytics_work_from_anywhere_metric_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse instantiates a new UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse instantiates a new userExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse and sets the default values. func NewUserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse()(*UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse) { m := &UserExperienceAnalyticsWorkFromAnywhereMetricCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_experience_analytics_work_from_anywhere_model_performance.go b/models/user_experience_analytics_work_from_anywhere_model_performance.go index 0d1d993872b..e1cd693fe50 100644 --- a/models/user_experience_analytics_work_from_anywhere_model_performance.go +++ b/models/user_experience_analytics_work_from_anywhere_model_performance.go @@ -7,6 +7,8 @@ import ( // UserExperienceAnalyticsWorkFromAnywhereModelPerformance the user experience analytics work from anywhere model performance. type UserExperienceAnalyticsWorkFromAnywhereModelPerformance struct { Entity + // The OdataType property + OdataType *string } // NewUserExperienceAnalyticsWorkFromAnywhereModelPerformance instantiates a new userExperienceAnalyticsWorkFromAnywhereModelPerformance and sets the default values. func NewUserExperienceAnalyticsWorkFromAnywhereModelPerformance()(*UserExperienceAnalyticsWorkFromAnywhereModelPerformance) { diff --git a/models/user_experience_analytics_work_from_anywhere_model_performance_collection_response.go b/models/user_experience_analytics_work_from_anywhere_model_performance_collection_response.go index f612d90fb68..11fe1e1d930 100644 --- a/models/user_experience_analytics_work_from_anywhere_model_performance_collection_response.go +++ b/models/user_experience_analytics_work_from_anywhere_model_performance_collection_response.go @@ -8,7 +8,7 @@ import ( type UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse instantiates a new UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse and sets the default values. +// NewUserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse instantiates a new userExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse and sets the default values. func NewUserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse()(*UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse) { m := &UserExperienceAnalyticsWorkFromAnywhereModelPerformanceCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_flow_language_configuration.go b/models/user_flow_language_configuration.go index 943b0111242..fb92a2ead6e 100644 --- a/models/user_flow_language_configuration.go +++ b/models/user_flow_language_configuration.go @@ -7,6 +7,8 @@ import ( // UserFlowLanguageConfiguration type UserFlowLanguageConfiguration struct { Entity + // The OdataType property + OdataType *string } // NewUserFlowLanguageConfiguration instantiates a new userFlowLanguageConfiguration and sets the default values. func NewUserFlowLanguageConfiguration()(*UserFlowLanguageConfiguration) { diff --git a/models/user_flow_language_configuration_collection_response.go b/models/user_flow_language_configuration_collection_response.go index 46bbbf2ac31..183f8ea6836 100644 --- a/models/user_flow_language_configuration_collection_response.go +++ b/models/user_flow_language_configuration_collection_response.go @@ -8,7 +8,7 @@ import ( type UserFlowLanguageConfigurationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserFlowLanguageConfigurationCollectionResponse instantiates a new UserFlowLanguageConfigurationCollectionResponse and sets the default values. +// NewUserFlowLanguageConfigurationCollectionResponse instantiates a new userFlowLanguageConfigurationCollectionResponse and sets the default values. func NewUserFlowLanguageConfigurationCollectionResponse()(*UserFlowLanguageConfigurationCollectionResponse) { m := &UserFlowLanguageConfigurationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_flow_language_page.go b/models/user_flow_language_page.go index 290dae13675..4533ac91b89 100644 --- a/models/user_flow_language_page.go +++ b/models/user_flow_language_page.go @@ -7,6 +7,8 @@ import ( // UserFlowLanguagePage type UserFlowLanguagePage struct { Entity + // The OdataType property + OdataType *string } // NewUserFlowLanguagePage instantiates a new userFlowLanguagePage and sets the default values. func NewUserFlowLanguagePage()(*UserFlowLanguagePage) { diff --git a/models/user_flow_language_page_collection_response.go b/models/user_flow_language_page_collection_response.go index b68d42c0a71..1492011ca41 100644 --- a/models/user_flow_language_page_collection_response.go +++ b/models/user_flow_language_page_collection_response.go @@ -8,7 +8,7 @@ import ( type UserFlowLanguagePageCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserFlowLanguagePageCollectionResponse instantiates a new UserFlowLanguagePageCollectionResponse and sets the default values. +// NewUserFlowLanguagePageCollectionResponse instantiates a new userFlowLanguagePageCollectionResponse and sets the default values. func NewUserFlowLanguagePageCollectionResponse()(*UserFlowLanguagePageCollectionResponse) { m := &UserFlowLanguagePageCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_governance_criteria.go b/models/user_governance_criteria.go index 2f7186fc4cf..05c8a02d292 100644 --- a/models/user_governance_criteria.go +++ b/models/user_governance_criteria.go @@ -7,8 +7,10 @@ import ( // UserGovernanceCriteria type UserGovernanceCriteria struct { GovernanceCriteria + // The OdataType property + OdataType *string } -// NewUserGovernanceCriteria instantiates a new UserGovernanceCriteria and sets the default values. +// NewUserGovernanceCriteria instantiates a new userGovernanceCriteria and sets the default values. func NewUserGovernanceCriteria()(*UserGovernanceCriteria) { m := &UserGovernanceCriteria{ GovernanceCriteria: *NewGovernanceCriteria(), diff --git a/models/user_identity.go b/models/user_identity.go index 18e68597277..fe53f9e18a2 100644 --- a/models/user_identity.go +++ b/models/user_identity.go @@ -7,8 +7,10 @@ import ( // UserIdentity type UserIdentity struct { Identity + // The OdataType property + OdataType *string } -// NewUserIdentity instantiates a new UserIdentity and sets the default values. +// NewUserIdentity instantiates a new userIdentity and sets the default values. func NewUserIdentity()(*UserIdentity) { m := &UserIdentity{ Identity: *NewIdentity(), diff --git a/models/user_insights_settings.go b/models/user_insights_settings.go index 70801a5e45c..83cbd71f83f 100644 --- a/models/user_insights_settings.go +++ b/models/user_insights_settings.go @@ -7,6 +7,8 @@ import ( // UserInsightsSettings type UserInsightsSettings struct { Entity + // The OdataType property + OdataType *string } // NewUserInsightsSettings instantiates a new userInsightsSettings and sets the default values. func NewUserInsightsSettings()(*UserInsightsSettings) { diff --git a/models/user_install_state_summary.go b/models/user_install_state_summary.go index 3e536807e9e..29c0776b317 100644 --- a/models/user_install_state_summary.go +++ b/models/user_install_state_summary.go @@ -7,6 +7,8 @@ import ( // UserInstallStateSummary contains properties for the installation state summary for a user. type UserInstallStateSummary struct { Entity + // The OdataType property + OdataType *string } // NewUserInstallStateSummary instantiates a new userInstallStateSummary and sets the default values. func NewUserInstallStateSummary()(*UserInstallStateSummary) { diff --git a/models/user_install_state_summary_collection_response.go b/models/user_install_state_summary_collection_response.go index e27bae3fcc1..76e43e07ab9 100644 --- a/models/user_install_state_summary_collection_response.go +++ b/models/user_install_state_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type UserInstallStateSummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserInstallStateSummaryCollectionResponse instantiates a new UserInstallStateSummaryCollectionResponse and sets the default values. +// NewUserInstallStateSummaryCollectionResponse instantiates a new userInstallStateSummaryCollectionResponse and sets the default values. func NewUserInstallStateSummaryCollectionResponse()(*UserInstallStateSummaryCollectionResponse) { m := &UserInstallStateSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_last_sign_in_recommendation_insight_setting.go b/models/user_last_sign_in_recommendation_insight_setting.go index 2cb71c20c9c..2fb178a7dc8 100644 --- a/models/user_last_sign_in_recommendation_insight_setting.go +++ b/models/user_last_sign_in_recommendation_insight_setting.go @@ -7,8 +7,10 @@ import ( // UserLastSignInRecommendationInsightSetting type UserLastSignInRecommendationInsightSetting struct { AccessReviewRecommendationInsightSetting + // The OdataType property + OdataType *string } -// NewUserLastSignInRecommendationInsightSetting instantiates a new UserLastSignInRecommendationInsightSetting and sets the default values. +// NewUserLastSignInRecommendationInsightSetting instantiates a new userLastSignInRecommendationInsightSetting and sets the default values. func NewUserLastSignInRecommendationInsightSetting()(*UserLastSignInRecommendationInsightSetting) { m := &UserLastSignInRecommendationInsightSetting{ AccessReviewRecommendationInsightSetting: *NewAccessReviewRecommendationInsightSetting(), diff --git a/models/user_p_f_x_certificate.go b/models/user_p_f_x_certificate.go index 844c55a76ae..4a4a26a255c 100644 --- a/models/user_p_f_x_certificate.go +++ b/models/user_p_f_x_certificate.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// UserPFXCertificate +// UserPFXCertificate entity that encapsulates all information required for a user's PFX certificates. type UserPFXCertificate struct { Entity + // The OdataType property + OdataType *string } -// NewUserPFXCertificate instantiates a new UserPFXCertificate and sets the default values. +// NewUserPFXCertificate instantiates a new userPFXCertificate and sets the default values. func NewUserPFXCertificate()(*UserPFXCertificate) { m := &UserPFXCertificate{ Entity: *NewEntity(), diff --git a/models/user_p_f_x_certificate_collection_response.go b/models/user_p_f_x_certificate_collection_response.go index 25e82264f28..9b8d96b79ee 100644 --- a/models/user_p_f_x_certificate_collection_response.go +++ b/models/user_p_f_x_certificate_collection_response.go @@ -8,7 +8,7 @@ import ( type UserPFXCertificateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserPFXCertificateCollectionResponse instantiates a new UserPFXCertificateCollectionResponse and sets the default values. +// NewUserPFXCertificateCollectionResponse instantiates a new userPFXCertificateCollectionResponse and sets the default values. func NewUserPFXCertificateCollectionResponse()(*UserPFXCertificateCollectionResponse) { m := &UserPFXCertificateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_registration_count.go b/models/user_registration_count.go index 8d4d3630b02..1027782bea0 100644 --- a/models/user_registration_count.go +++ b/models/user_registration_count.go @@ -10,7 +10,7 @@ type UserRegistrationCount struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewUserRegistrationCount instantiates a new UserRegistrationCount and sets the default values. +// NewUserRegistrationCount instantiates a new userRegistrationCount and sets the default values. func NewUserRegistrationCount()(*UserRegistrationCount) { m := &UserRegistrationCount{ } diff --git a/models/user_registration_details.go b/models/user_registration_details.go index e55b6ec23dc..a2d1007b861 100644 --- a/models/user_registration_details.go +++ b/models/user_registration_details.go @@ -8,6 +8,8 @@ import ( // UserRegistrationDetails type UserRegistrationDetails struct { Entity + // The OdataType property + OdataType *string } // NewUserRegistrationDetails instantiates a new userRegistrationDetails and sets the default values. func NewUserRegistrationDetails()(*UserRegistrationDetails) { @@ -208,7 +210,7 @@ func (m *UserRegistrationDetails) GetFieldDeserializers()(map[string]func(i878a8 } return res } -// GetIsAdmin gets the isAdmin property value. Whether the user has an admin role in the tenant. This value can be used to check the authentication methods that privileged accounts are registered for and capable of. +// GetIsAdmin gets the isAdmin property value. Indicates whether the user has an admin role in the tenant. This value can be used to check the authentication methods that privileged accounts are registered for and capable of. func (m *UserRegistrationDetails) GetIsAdmin()(*bool) { val, err := m.GetBackingStore().Get("isAdmin") if err != nil { @@ -219,7 +221,7 @@ func (m *UserRegistrationDetails) GetIsAdmin()(*bool) { } return nil } -// GetIsMfaCapable gets the isMfaCapable property value. Whether the user has registered a strong authentication method for multi-factor authentication. The method must be allowed by the authentication methods policy. Supports $filter (eq). +// GetIsMfaCapable gets the isMfaCapable property value. Indicates whether the user has registered a strong authentication method for multi-factor authentication. The method must be allowed by the authentication methods policy. Supports $filter (eq). func (m *UserRegistrationDetails) GetIsMfaCapable()(*bool) { val, err := m.GetBackingStore().Get("isMfaCapable") if err != nil { @@ -230,7 +232,7 @@ func (m *UserRegistrationDetails) GetIsMfaCapable()(*bool) { } return nil } -// GetIsMfaRegistered gets the isMfaRegistered property value. Whether the user has registered a strong authentication method for multi-factor authentication. The method may not necessarily be allowed by the authentication methods policy. Supports $filter (eq). +// GetIsMfaRegistered gets the isMfaRegistered property value. Indicates whether the user has registered a strong authentication method for multi-factor authentication. The method may not necessarily be allowed by the authentication methods policy. Supports $filter (eq). func (m *UserRegistrationDetails) GetIsMfaRegistered()(*bool) { val, err := m.GetBackingStore().Get("isMfaRegistered") if err != nil { @@ -241,7 +243,7 @@ func (m *UserRegistrationDetails) GetIsMfaRegistered()(*bool) { } return nil } -// GetIsPasswordlessCapable gets the isPasswordlessCapable property value. Whether the user has registered a passwordless strong authentication method (including FIDO2, Windows Hello for Business, and Microsoft Authenticator (Passwordless)) that is allowed by the authentication methods policy. Supports $filter (eq). +// GetIsPasswordlessCapable gets the isPasswordlessCapable property value. Indicates whether the user has registered a passwordless strong authentication method (including FIDO2, Windows Hello for Business, and Microsoft Authenticator (Passwordless)) that is allowed by the authentication methods policy. Supports $filter (eq). func (m *UserRegistrationDetails) GetIsPasswordlessCapable()(*bool) { val, err := m.GetBackingStore().Get("isPasswordlessCapable") if err != nil { @@ -252,7 +254,7 @@ func (m *UserRegistrationDetails) GetIsPasswordlessCapable()(*bool) { } return nil } -// GetIsSsprCapable gets the isSsprCapable property value. Whether the user has registered the required number of authentication methods for self-service password reset and the user is allowed to perform self-service password reset by policy. Supports $filter (eq). +// GetIsSsprCapable gets the isSsprCapable property value. Indicates whether the user has registered the required number of authentication methods for self-service password reset and the user is allowed to perform self-service password reset by policy. Supports $filter (eq). func (m *UserRegistrationDetails) GetIsSsprCapable()(*bool) { val, err := m.GetBackingStore().Get("isSsprCapable") if err != nil { @@ -263,7 +265,7 @@ func (m *UserRegistrationDetails) GetIsSsprCapable()(*bool) { } return nil } -// GetIsSsprEnabled gets the isSsprEnabled property value. Whether the user is allowed to perform self-service password reset by policy. The user may not necessarily have registered the required number of authentication methods for self-service password reset. Supports $filter (eq). +// GetIsSsprEnabled gets the isSsprEnabled property value. Indicates whether the user is allowed to perform self-service password reset by policy. The user may not necessarily have registered the required number of authentication methods for self-service password reset. Supports $filter (eq). func (m *UserRegistrationDetails) GetIsSsprEnabled()(*bool) { val, err := m.GetBackingStore().Get("isSsprEnabled") if err != nil { @@ -274,7 +276,7 @@ func (m *UserRegistrationDetails) GetIsSsprEnabled()(*bool) { } return nil } -// GetIsSsprRegistered gets the isSsprRegistered property value. Whether the user has registered the required number of authentication methods for self-service password reset. The user may not necessarily be allowed to perform self-service password reset by policy. Supports $filter (eq). +// GetIsSsprRegistered gets the isSsprRegistered property value. Indicates whether the user has registered the required number of authentication methods for self-service password reset. The user may not necessarily be allowed to perform self-service password reset by policy. Supports $filter (eq). func (m *UserRegistrationDetails) GetIsSsprRegistered()(*bool) { val, err := m.GetBackingStore().Get("isSsprRegistered") if err != nil { @@ -487,49 +489,49 @@ func (m *UserRegistrationDetails) SetDefaultMfaMethod(value *DefaultMfaMethodTyp panic(err) } } -// SetIsAdmin sets the isAdmin property value. Whether the user has an admin role in the tenant. This value can be used to check the authentication methods that privileged accounts are registered for and capable of. +// SetIsAdmin sets the isAdmin property value. Indicates whether the user has an admin role in the tenant. This value can be used to check the authentication methods that privileged accounts are registered for and capable of. func (m *UserRegistrationDetails) SetIsAdmin(value *bool)() { err := m.GetBackingStore().Set("isAdmin", value) if err != nil { panic(err) } } -// SetIsMfaCapable sets the isMfaCapable property value. Whether the user has registered a strong authentication method for multi-factor authentication. The method must be allowed by the authentication methods policy. Supports $filter (eq). +// SetIsMfaCapable sets the isMfaCapable property value. Indicates whether the user has registered a strong authentication method for multi-factor authentication. The method must be allowed by the authentication methods policy. Supports $filter (eq). func (m *UserRegistrationDetails) SetIsMfaCapable(value *bool)() { err := m.GetBackingStore().Set("isMfaCapable", value) if err != nil { panic(err) } } -// SetIsMfaRegistered sets the isMfaRegistered property value. Whether the user has registered a strong authentication method for multi-factor authentication. The method may not necessarily be allowed by the authentication methods policy. Supports $filter (eq). +// SetIsMfaRegistered sets the isMfaRegistered property value. Indicates whether the user has registered a strong authentication method for multi-factor authentication. The method may not necessarily be allowed by the authentication methods policy. Supports $filter (eq). func (m *UserRegistrationDetails) SetIsMfaRegistered(value *bool)() { err := m.GetBackingStore().Set("isMfaRegistered", value) if err != nil { panic(err) } } -// SetIsPasswordlessCapable sets the isPasswordlessCapable property value. Whether the user has registered a passwordless strong authentication method (including FIDO2, Windows Hello for Business, and Microsoft Authenticator (Passwordless)) that is allowed by the authentication methods policy. Supports $filter (eq). +// SetIsPasswordlessCapable sets the isPasswordlessCapable property value. Indicates whether the user has registered a passwordless strong authentication method (including FIDO2, Windows Hello for Business, and Microsoft Authenticator (Passwordless)) that is allowed by the authentication methods policy. Supports $filter (eq). func (m *UserRegistrationDetails) SetIsPasswordlessCapable(value *bool)() { err := m.GetBackingStore().Set("isPasswordlessCapable", value) if err != nil { panic(err) } } -// SetIsSsprCapable sets the isSsprCapable property value. Whether the user has registered the required number of authentication methods for self-service password reset and the user is allowed to perform self-service password reset by policy. Supports $filter (eq). +// SetIsSsprCapable sets the isSsprCapable property value. Indicates whether the user has registered the required number of authentication methods for self-service password reset and the user is allowed to perform self-service password reset by policy. Supports $filter (eq). func (m *UserRegistrationDetails) SetIsSsprCapable(value *bool)() { err := m.GetBackingStore().Set("isSsprCapable", value) if err != nil { panic(err) } } -// SetIsSsprEnabled sets the isSsprEnabled property value. Whether the user is allowed to perform self-service password reset by policy. The user may not necessarily have registered the required number of authentication methods for self-service password reset. Supports $filter (eq). +// SetIsSsprEnabled sets the isSsprEnabled property value. Indicates whether the user is allowed to perform self-service password reset by policy. The user may not necessarily have registered the required number of authentication methods for self-service password reset. Supports $filter (eq). func (m *UserRegistrationDetails) SetIsSsprEnabled(value *bool)() { err := m.GetBackingStore().Set("isSsprEnabled", value) if err != nil { panic(err) } } -// SetIsSsprRegistered sets the isSsprRegistered property value. Whether the user has registered the required number of authentication methods for self-service password reset. The user may not necessarily be allowed to perform self-service password reset by policy. Supports $filter (eq). +// SetIsSsprRegistered sets the isSsprRegistered property value. Indicates whether the user has registered the required number of authentication methods for self-service password reset. The user may not necessarily be allowed to perform self-service password reset by policy. Supports $filter (eq). func (m *UserRegistrationDetails) SetIsSsprRegistered(value *bool)() { err := m.GetBackingStore().Set("isSsprRegistered", value) if err != nil { diff --git a/models/user_registration_details_collection_response.go b/models/user_registration_details_collection_response.go index 7e31b9b92b2..4bd0d310f81 100644 --- a/models/user_registration_details_collection_response.go +++ b/models/user_registration_details_collection_response.go @@ -8,7 +8,7 @@ import ( type UserRegistrationDetailsCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserRegistrationDetailsCollectionResponse instantiates a new UserRegistrationDetailsCollectionResponse and sets the default values. +// NewUserRegistrationDetailsCollectionResponse instantiates a new userRegistrationDetailsCollectionResponse and sets the default values. func NewUserRegistrationDetailsCollectionResponse()(*UserRegistrationDetailsCollectionResponse) { m := &UserRegistrationDetailsCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_registration_feature_count.go b/models/user_registration_feature_count.go index 2d4e9db8390..8d17d4450bb 100644 --- a/models/user_registration_feature_count.go +++ b/models/user_registration_feature_count.go @@ -10,7 +10,7 @@ type UserRegistrationFeatureCount struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewUserRegistrationFeatureCount instantiates a new UserRegistrationFeatureCount and sets the default values. +// NewUserRegistrationFeatureCount instantiates a new userRegistrationFeatureCount and sets the default values. func NewUserRegistrationFeatureCount()(*UserRegistrationFeatureCount) { m := &UserRegistrationFeatureCount{ } diff --git a/models/user_registration_feature_summary.go b/models/user_registration_feature_summary.go index bc39bc6d38d..788cb435db8 100644 --- a/models/user_registration_feature_summary.go +++ b/models/user_registration_feature_summary.go @@ -10,7 +10,7 @@ type UserRegistrationFeatureSummary struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewUserRegistrationFeatureSummary instantiates a new UserRegistrationFeatureSummary and sets the default values. +// NewUserRegistrationFeatureSummary instantiates a new userRegistrationFeatureSummary and sets the default values. func NewUserRegistrationFeatureSummary()(*UserRegistrationFeatureSummary) { m := &UserRegistrationFeatureSummary{ } @@ -110,7 +110,7 @@ func (m *UserRegistrationFeatureSummary) GetOdataType()(*string) { } return nil } -// GetTotalUserCount gets the totalUserCount property value. Total number of users accounts, excluding those that are blocked +// GetTotalUserCount gets the totalUserCount property value. Total number of users accounts, excluding those that are blocked. func (m *UserRegistrationFeatureSummary) GetTotalUserCount()(*int64) { val, err := m.GetBackingStore().Get("totalUserCount") if err != nil { @@ -121,7 +121,7 @@ func (m *UserRegistrationFeatureSummary) GetTotalUserCount()(*int64) { } return nil } -// GetUserRegistrationFeatureCounts gets the userRegistrationFeatureCounts property value. Number of users registered or capable for Multi-Factor Authentication, Self-Service Password Reset and Passwordless Authentication. +// GetUserRegistrationFeatureCounts gets the userRegistrationFeatureCounts property value. Number of users registered or capable for multi-factor authentication, self-service password reset, and passwordless authentication. func (m *UserRegistrationFeatureSummary) GetUserRegistrationFeatureCounts()([]UserRegistrationFeatureCountable) { val, err := m.GetBackingStore().Get("userRegistrationFeatureCounts") if err != nil { @@ -132,7 +132,7 @@ func (m *UserRegistrationFeatureSummary) GetUserRegistrationFeatureCounts()([]Us } return nil } -// GetUserRoles gets the userRoles property value. User role type. Possible values are: all, privilegedAdmin, admin, user. +// 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) { val, err := m.GetBackingStore().Get("userRoles") if err != nil { @@ -143,7 +143,7 @@ func (m *UserRegistrationFeatureSummary) GetUserRoles()(*IncludedUserRoles) { } return nil } -// GetUserTypes gets the userTypes property value. User type. Possible values are: all, member, guest. +// GetUserTypes gets the userTypes property value. User type. Possible values are: all, member, guest, unknownFutureValue. func (m *UserRegistrationFeatureSummary) GetUserTypes()(*IncludedUserTypes) { val, err := m.GetBackingStore().Get("userTypes") if err != nil { @@ -220,28 +220,28 @@ func (m *UserRegistrationFeatureSummary) SetOdataType(value *string)() { panic(err) } } -// SetTotalUserCount sets the totalUserCount property value. Total number of users accounts, excluding those that are blocked +// SetTotalUserCount sets the totalUserCount property value. Total number of users accounts, excluding those that are blocked. func (m *UserRegistrationFeatureSummary) SetTotalUserCount(value *int64)() { err := m.GetBackingStore().Set("totalUserCount", value) if err != nil { panic(err) } } -// SetUserRegistrationFeatureCounts sets the userRegistrationFeatureCounts property value. Number of users registered or capable for Multi-Factor Authentication, Self-Service Password Reset and Passwordless Authentication. +// SetUserRegistrationFeatureCounts sets the userRegistrationFeatureCounts property value. Number of users registered or capable for multi-factor authentication, self-service password reset, and passwordless authentication. func (m *UserRegistrationFeatureSummary) SetUserRegistrationFeatureCounts(value []UserRegistrationFeatureCountable)() { err := m.GetBackingStore().Set("userRegistrationFeatureCounts", value) if err != nil { panic(err) } } -// SetUserRoles sets the userRoles property value. User role type. Possible values are: all, privilegedAdmin, admin, user. +// 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)() { 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. +// SetUserTypes sets the userTypes property value. User type. Possible values are: all, member, guest, unknownFutureValue. func (m *UserRegistrationFeatureSummary) SetUserTypes(value *IncludedUserTypes)() { err := m.GetBackingStore().Set("userTypes", value) if err != nil { diff --git a/models/user_registration_method_count.go b/models/user_registration_method_count.go index f647f73cec2..68664ef6ab0 100644 --- a/models/user_registration_method_count.go +++ b/models/user_registration_method_count.go @@ -10,7 +10,7 @@ type UserRegistrationMethodCount struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewUserRegistrationMethodCount instantiates a new UserRegistrationMethodCount and sets the default values. +// NewUserRegistrationMethodCount instantiates a new userRegistrationMethodCount and sets the default values. func NewUserRegistrationMethodCount()(*UserRegistrationMethodCount) { m := &UserRegistrationMethodCount{ } @@ -34,7 +34,7 @@ func (m *UserRegistrationMethodCount) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAuthenticationMethod gets the authenticationMethod property value. Name of authentication method. +// GetAuthenticationMethod gets the authenticationMethod property value. Name of the authentication method. func (m *UserRegistrationMethodCount) GetAuthenticationMethod()(*string) { val, err := m.GetBackingStore().Get("authenticationMethod") if err != nil { @@ -141,7 +141,7 @@ func (m *UserRegistrationMethodCount) SetAdditionalData(value map[string]any)() panic(err) } } -// SetAuthenticationMethod sets the authenticationMethod property value. Name of authentication method. +// SetAuthenticationMethod sets the authenticationMethod property value. Name of the authentication method. func (m *UserRegistrationMethodCount) SetAuthenticationMethod(value *string)() { err := m.GetBackingStore().Set("authenticationMethod", value) if err != nil { diff --git a/models/user_registration_method_summary.go b/models/user_registration_method_summary.go index 8fee45b4fab..c0147afb42c 100644 --- a/models/user_registration_method_summary.go +++ b/models/user_registration_method_summary.go @@ -10,7 +10,7 @@ type UserRegistrationMethodSummary struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewUserRegistrationMethodSummary instantiates a new UserRegistrationMethodSummary and sets the default values. +// NewUserRegistrationMethodSummary instantiates a new userRegistrationMethodSummary and sets the default values. func NewUserRegistrationMethodSummary()(*UserRegistrationMethodSummary) { m := &UserRegistrationMethodSummary{ } @@ -132,7 +132,7 @@ func (m *UserRegistrationMethodSummary) GetUserRegistrationMethodCounts()([]User } return nil } -// GetUserRoles gets the userRoles property value. User role type. Possible values are: all, privilegedAdmin, admin, user. +// 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) { val, err := m.GetBackingStore().Get("userRoles") if err != nil { @@ -143,7 +143,7 @@ func (m *UserRegistrationMethodSummary) GetUserRoles()(*IncludedUserRoles) { } return nil } -// GetUserTypes gets the userTypes property value. User type. Possible values are: all, member, guest. +// GetUserTypes gets the userTypes property value. User type. Possible values are: all, member, guest, unknownFutureValue. func (m *UserRegistrationMethodSummary) GetUserTypes()(*IncludedUserTypes) { val, err := m.GetBackingStore().Get("userTypes") if err != nil { @@ -234,14 +234,14 @@ func (m *UserRegistrationMethodSummary) SetUserRegistrationMethodCounts(value [] panic(err) } } -// SetUserRoles sets the userRoles property value. User role type. Possible values are: all, privilegedAdmin, admin, user. +// 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)() { 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. +// SetUserTypes sets the userTypes property value. User type. Possible values are: all, member, guest, unknownFutureValue. func (m *UserRegistrationMethodSummary) SetUserTypes(value *IncludedUserTypes)() { err := m.GetBackingStore().Set("userTypes", value) if err != nil { diff --git a/models/user_scope_teams_app_installation.go b/models/user_scope_teams_app_installation.go index f54af1f2013..ac076d40c3b 100644 --- a/models/user_scope_teams_app_installation.go +++ b/models/user_scope_teams_app_installation.go @@ -8,7 +8,7 @@ import ( type UserScopeTeamsAppInstallation struct { TeamsAppInstallation } -// NewUserScopeTeamsAppInstallation instantiates a new UserScopeTeamsAppInstallation and sets the default values. +// NewUserScopeTeamsAppInstallation instantiates a new userScopeTeamsAppInstallation and sets the default values. func NewUserScopeTeamsAppInstallation()(*UserScopeTeamsAppInstallation) { m := &UserScopeTeamsAppInstallation{ TeamsAppInstallation: *NewTeamsAppInstallation(), diff --git a/models/user_scope_teams_app_installation_collection_response.go b/models/user_scope_teams_app_installation_collection_response.go index 8a1d96c7075..6aed9782d7a 100644 --- a/models/user_scope_teams_app_installation_collection_response.go +++ b/models/user_scope_teams_app_installation_collection_response.go @@ -8,7 +8,7 @@ import ( type UserScopeTeamsAppInstallationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserScopeTeamsAppInstallationCollectionResponse instantiates a new UserScopeTeamsAppInstallationCollectionResponse and sets the default values. +// NewUserScopeTeamsAppInstallationCollectionResponse instantiates a new userScopeTeamsAppInstallationCollectionResponse and sets the default values. func NewUserScopeTeamsAppInstallationCollectionResponse()(*UserScopeTeamsAppInstallationCollectionResponse) { m := &UserScopeTeamsAppInstallationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_security_profile.go b/models/user_security_profile.go index ef8d392a1fd..f66d26ae216 100644 --- a/models/user_security_profile.go +++ b/models/user_security_profile.go @@ -8,8 +8,10 @@ import ( // UserSecurityProfile type UserSecurityProfile struct { Entity + // The OdataType property + OdataType *string } -// NewUserSecurityProfile instantiates a new UserSecurityProfile and sets the default values. +// NewUserSecurityProfile instantiates a new userSecurityProfile and sets the default values. func NewUserSecurityProfile()(*UserSecurityProfile) { m := &UserSecurityProfile{ Entity: *NewEntity(), diff --git a/models/user_security_profile_collection_response.go b/models/user_security_profile_collection_response.go index bfe2eaa5c6d..bfd2cbfbf8f 100644 --- a/models/user_security_profile_collection_response.go +++ b/models/user_security_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type UserSecurityProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewUserSecurityProfileCollectionResponse instantiates a new UserSecurityProfileCollectionResponse and sets the default values. +// NewUserSecurityProfileCollectionResponse instantiates a new userSecurityProfileCollectionResponse and sets the default values. func NewUserSecurityProfileCollectionResponse()(*UserSecurityProfileCollectionResponse) { m := &UserSecurityProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/user_set.go b/models/user_set.go index 9c18ef9250f..cb51279d0ac 100644 --- a/models/user_set.go +++ b/models/user_set.go @@ -44,6 +44,8 @@ func CreateUserSetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f48 return NewRequestorManager(), nil case "#microsoft.graph.singleUser": return NewSingleUser(), nil + case "#microsoft.graph.targetUserSponsors": + return NewTargetUserSponsors(), nil } } } diff --git a/models/user_settings.go b/models/user_settings.go index 1c574da7816..bc6a376d3a2 100644 --- a/models/user_settings.go +++ b/models/user_settings.go @@ -7,6 +7,8 @@ import ( // UserSettings type UserSettings struct { Entity + // The OdataType property + OdataType *string } // NewUserSettings instantiates a new userSettings and sets the default values. func NewUserSettings()(*UserSettings) { diff --git a/models/user_sign_in_insight.go b/models/user_sign_in_insight.go index b4b0310d5e1..fec0b77a842 100644 --- a/models/user_sign_in_insight.go +++ b/models/user_sign_in_insight.go @@ -9,7 +9,7 @@ import ( type UserSignInInsight struct { GovernanceInsight } -// NewUserSignInInsight instantiates a new UserSignInInsight and sets the default values. +// NewUserSignInInsight instantiates a new userSignInInsight and sets the default values. func NewUserSignInInsight()(*UserSignInInsight) { m := &UserSignInInsight{ GovernanceInsight: *NewGovernanceInsight(), diff --git a/models/user_simulation_event_info.go b/models/user_simulation_event_info.go index 014d612a933..bbd545992d3 100644 --- a/models/user_simulation_event_info.go +++ b/models/user_simulation_event_info.go @@ -11,7 +11,7 @@ type UserSimulationEventInfo struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewUserSimulationEventInfo instantiates a new UserSimulationEventInfo and sets the default values. +// NewUserSimulationEventInfo instantiates a new userSimulationEventInfo and sets the default values. func NewUserSimulationEventInfo()(*UserSimulationEventInfo) { m := &UserSimulationEventInfo{ } diff --git a/models/user_teamwork.go b/models/user_teamwork.go index 30c19683b68..30bb73791ae 100644 --- a/models/user_teamwork.go +++ b/models/user_teamwork.go @@ -7,8 +7,10 @@ import ( // UserTeamwork type UserTeamwork struct { Entity + // The OdataType property + OdataType *string } -// NewUserTeamwork instantiates a new UserTeamwork and sets the default values. +// NewUserTeamwork instantiates a new userTeamwork and sets the default values. func NewUserTeamwork()(*UserTeamwork) { m := &UserTeamwork{ Entity: *NewEntity(), diff --git a/models/user_training_status_info.go b/models/user_training_status_info.go index 106d0cdef11..695f819cab7 100644 --- a/models/user_training_status_info.go +++ b/models/user_training_status_info.go @@ -11,7 +11,7 @@ type UserTrainingStatusInfo struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewUserTrainingStatusInfo instantiates a new UserTrainingStatusInfo and sets the default values. +// NewUserTrainingStatusInfo instantiates a new userTrainingStatusInfo and sets the default values. func NewUserTrainingStatusInfo()(*UserTrainingStatusInfo) { m := &UserTrainingStatusInfo{ } diff --git a/models/validating_domains.go b/models/validating_domains.go index 8defc99a6a4..6b728584320 100644 --- a/models/validating_domains.go +++ b/models/validating_domains.go @@ -10,7 +10,7 @@ type ValidatingDomains struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewValidatingDomains instantiates a new ValidatingDomains and sets the default values. +// NewValidatingDomains instantiates a new validatingDomains and sets the default values. func NewValidatingDomains()(*ValidatingDomains) { m := &ValidatingDomains{ } diff --git a/models/validation_result.go b/models/validation_result.go index 2f3a882cd6f..61fe4864bc1 100644 --- a/models/validation_result.go +++ b/models/validation_result.go @@ -10,7 +10,7 @@ type ValidationResult struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewValidationResult instantiates a new ValidationResult and sets the default values. +// NewValidationResult instantiates a new validationResult and sets the default values. func NewValidationResult()(*ValidationResult) { m := &ValidationResult{ } diff --git a/models/vendor_collection_response.go b/models/vendor_collection_response.go index 4ae3048d02a..a314c20f389 100644 --- a/models/vendor_collection_response.go +++ b/models/vendor_collection_response.go @@ -8,7 +8,7 @@ import ( type VendorCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewVendorCollectionResponse instantiates a new VendorCollectionResponse and sets the default values. +// NewVendorCollectionResponse instantiates a new vendorCollectionResponse and sets the default values. func NewVendorCollectionResponse()(*VendorCollectionResponse) { m := &VendorCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/vendor_escaped.go b/models/vendor_escaped.go index 039587f8c5e..a28805fc91b 100644 --- a/models/vendor_escaped.go +++ b/models/vendor_escaped.go @@ -792,3 +792,53 @@ func (m *VendorEscaped) SetWebsite(value *string)() { panic(err) } } +// VendorEscapedable +type VendorEscapedable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAddress()(PostalAddressTypeable) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBalance()(*float64) + GetBlocked()(*string) + GetCurrency()(Currencyable) + GetCurrencyCode()(*string) + GetCurrencyId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetDisplayName()(*string) + GetEmail()(*string) + GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetNumber()(*string) + GetOdataType()(*string) + GetPaymentMethod()(PaymentMethodable) + GetPaymentMethodId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetPaymentTerm()(PaymentTermable) + GetPaymentTermsId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + GetPhoneNumber()(*string) + GetPicture()([]Pictureable) + GetTaxLiable()(*bool) + GetTaxRegistrationNumber()(*string) + GetWebsite()(*string) + SetAddress(value PostalAddressTypeable)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBalance(value *float64)() + SetBlocked(value *string)() + SetCurrency(value Currencyable)() + SetCurrencyCode(value *string)() + SetCurrencyId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetDisplayName(value *string)() + SetEmail(value *string)() + SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetNumber(value *string)() + SetOdataType(value *string)() + SetPaymentMethod(value PaymentMethodable)() + SetPaymentMethodId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetPaymentTerm(value PaymentTermable)() + SetPaymentTermsId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() + SetPhoneNumber(value *string)() + SetPicture(value []Pictureable)() + SetTaxLiable(value *bool)() + SetTaxRegistrationNumber(value *string)() + SetWebsite(value *string)() +} diff --git a/models/vendor_escapedable.go b/models/vendor_escapedable.go deleted file mode 100644 index 54b10410140..00000000000 --- a/models/vendor_escapedable.go +++ /dev/null @@ -1,59 +0,0 @@ -package models - -import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" - i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -// VendorEscapedable -type VendorEscapedable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAddress()(PostalAddressTypeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBalance()(*float64) - GetBlocked()(*string) - GetCurrency()(Currencyable) - GetCurrencyCode()(*string) - GetCurrencyId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) - GetDisplayName()(*string) - GetEmail()(*string) - GetId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) - GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetNumber()(*string) - GetOdataType()(*string) - GetPaymentMethod()(PaymentMethodable) - GetPaymentMethodId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) - GetPaymentTerm()(PaymentTermable) - GetPaymentTermsId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) - GetPhoneNumber()(*string) - GetPicture()([]Pictureable) - GetTaxLiable()(*bool) - GetTaxRegistrationNumber()(*string) - GetWebsite()(*string) - SetAddress(value PostalAddressTypeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBalance(value *float64)() - SetBlocked(value *string)() - SetCurrency(value Currencyable)() - SetCurrencyCode(value *string)() - SetCurrencyId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() - SetDisplayName(value *string)() - SetEmail(value *string)() - SetId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() - SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetNumber(value *string)() - SetOdataType(value *string)() - SetPaymentMethod(value PaymentMethodable)() - SetPaymentMethodId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() - SetPaymentTerm(value PaymentTermable)() - SetPaymentTermsId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() - SetPhoneNumber(value *string)() - SetPicture(value []Pictureable)() - SetTaxLiable(value *bool)() - SetTaxRegistrationNumber(value *string)() - SetWebsite(value *string)() -} diff --git a/models/verifiable_credential_required.go b/models/verifiable_credential_required.go index d02c79c17c3..40a3ad18610 100644 --- a/models/verifiable_credential_required.go +++ b/models/verifiable_credential_required.go @@ -9,7 +9,7 @@ import ( type VerifiableCredentialRequired struct { VerifiableCredentialRequirementStatus } -// NewVerifiableCredentialRequired instantiates a new VerifiableCredentialRequired and sets the default values. +// NewVerifiableCredentialRequired instantiates a new verifiableCredentialRequired and sets the default values. func NewVerifiableCredentialRequired()(*VerifiableCredentialRequired) { m := &VerifiableCredentialRequired{ VerifiableCredentialRequirementStatus: *NewVerifiableCredentialRequirementStatus(), @@ -46,6 +46,16 @@ func (m *VerifiableCredentialRequired) GetFieldDeserializers()(map[string]func(i } 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["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -58,6 +68,17 @@ func (m *VerifiableCredentialRequired) GetFieldDeserializers()(map[string]func(i } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *VerifiableCredentialRequired) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUrl gets the url property value. A URL that launches the digital wallet and starts the presentation process. You can present this URL to the user if they can't scan the QR code. func (m *VerifiableCredentialRequired) GetUrl()(*string) { val, err := m.GetBackingStore().Get("url") @@ -81,6 +102,12 @@ func (m *VerifiableCredentialRequired) Serialize(writer i878a80d2330e89d26896388 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("url", m.GetUrl()) if err != nil { @@ -96,6 +123,13 @@ func (m *VerifiableCredentialRequired) SetExpiryDateTime(value *i336074805fc8539 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *VerifiableCredentialRequired) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUrl sets the url property value. A URL that launches the digital wallet and starts the presentation process. You can present this URL to the user if they can't scan the QR code. func (m *VerifiableCredentialRequired) SetUrl(value *string)() { err := m.GetBackingStore().Set("url", value) @@ -108,7 +142,9 @@ type VerifiableCredentialRequiredable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable VerifiableCredentialRequirementStatusable GetExpiryDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetUrl()(*string) SetExpiryDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetUrl(value *string)() } diff --git a/models/verifiable_credential_retrieved.go b/models/verifiable_credential_retrieved.go index aa2111c8830..70e36c9c93c 100644 --- a/models/verifiable_credential_retrieved.go +++ b/models/verifiable_credential_retrieved.go @@ -9,7 +9,7 @@ import ( type VerifiableCredentialRetrieved struct { VerifiableCredentialRequirementStatus } -// NewVerifiableCredentialRetrieved instantiates a new VerifiableCredentialRetrieved and sets the default values. +// NewVerifiableCredentialRetrieved instantiates a new verifiableCredentialRetrieved and sets the default values. func NewVerifiableCredentialRetrieved()(*VerifiableCredentialRetrieved) { m := &VerifiableCredentialRetrieved{ VerifiableCredentialRequirementStatus: *NewVerifiableCredentialRequirementStatus(), @@ -46,8 +46,29 @@ func (m *VerifiableCredentialRetrieved) GetFieldDeserializers()(map[string]func( } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *VerifiableCredentialRetrieved) 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 *VerifiableCredentialRetrieved) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.VerifiableCredentialRequirementStatus.Serialize(writer) @@ -60,6 +81,12 @@ func (m *VerifiableCredentialRetrieved) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetExpiryDateTime sets the expiryDateTime property value. The specific date and time that the presentation request will expire and a new one will need to be generated. @@ -69,10 +96,19 @@ func (m *VerifiableCredentialRetrieved) SetExpiryDateTime(value *i336074805fc853 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *VerifiableCredentialRetrieved) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // VerifiableCredentialRetrievedable type VerifiableCredentialRetrievedable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable VerifiableCredentialRequirementStatusable GetExpiryDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) SetExpiryDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() } diff --git a/models/verifiable_credential_verified.go b/models/verifiable_credential_verified.go index 9ee52464ce6..b2d1535dbe0 100644 --- a/models/verifiable_credential_verified.go +++ b/models/verifiable_credential_verified.go @@ -8,7 +8,7 @@ import ( type VerifiableCredentialVerified struct { VerifiableCredentialRequirementStatus } -// NewVerifiableCredentialVerified instantiates a new VerifiableCredentialVerified and sets the default values. +// NewVerifiableCredentialVerified instantiates a new verifiableCredentialVerified and sets the default values. func NewVerifiableCredentialVerified()(*VerifiableCredentialVerified) { m := &VerifiableCredentialVerified{ VerifiableCredentialRequirementStatus: *NewVerifiableCredentialRequirementStatus(), @@ -24,18 +24,54 @@ func CreateVerifiableCredentialVerifiedFromDiscriminatorValue(parseNode i878a80d // GetFieldDeserializers the deserialization information for the current model func (m *VerifiableCredentialVerified) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.VerifiableCredentialRequirementStatus.GetFieldDeserializers() + 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 *VerifiableCredentialVerified) 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 *VerifiableCredentialVerified) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.VerifiableCredentialRequirementStatus.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *VerifiableCredentialVerified) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // VerifiableCredentialVerifiedable type VerifiableCredentialVerifiedable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable VerifiableCredentialRequirementStatusable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/verified_domain.go b/models/verified_domain.go index 139ddc68956..02514b6c930 100644 --- a/models/verified_domain.go +++ b/models/verified_domain.go @@ -10,7 +10,7 @@ type VerifiedDomain struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewVerifiedDomain instantiates a new VerifiedDomain and sets the default values. +// NewVerifiedDomain instantiates a new verifiedDomain and sets the default values. func NewVerifiedDomain()(*VerifiedDomain) { m := &VerifiedDomain{ } diff --git a/models/vertical_section.go b/models/vertical_section.go index a0a3f65f1dd..ca4c1e8ffd7 100644 --- a/models/vertical_section.go +++ b/models/vertical_section.go @@ -7,6 +7,8 @@ import ( // VerticalSection type VerticalSection struct { Entity + // The OdataType property + OdataType *string } // NewVerticalSection instantiates a new verticalSection and sets the default values. func NewVerticalSection()(*VerticalSection) { diff --git a/models/virtual_appointment.go b/models/virtual_appointment.go index 7040ce136e6..9b937e65743 100644 --- a/models/virtual_appointment.go +++ b/models/virtual_appointment.go @@ -7,6 +7,8 @@ import ( // VirtualAppointment type VirtualAppointment struct { Entity + // The OdataType property + OdataType *string } // NewVirtualAppointment instantiates a new virtualAppointment and sets the default values. func NewVirtualAppointment()(*VirtualAppointment) { diff --git a/models/virtual_endpoint.go b/models/virtual_endpoint.go index 56f443f0e88..e99b2a74497 100644 --- a/models/virtual_endpoint.go +++ b/models/virtual_endpoint.go @@ -7,6 +7,8 @@ import ( // VirtualEndpoint type VirtualEndpoint struct { Entity + // The OdataType property + OdataType *string } // NewVirtualEndpoint instantiates a new virtualEndpoint and sets the default values. func NewVirtualEndpoint()(*VirtualEndpoint) { diff --git a/models/virtual_event.go b/models/virtual_event.go index 851843bba70..a854cfe68c3 100644 --- a/models/virtual_event.go +++ b/models/virtual_event.go @@ -7,6 +7,8 @@ import ( // VirtualEvent type VirtualEvent struct { Entity + // The OdataType property + OdataType *string } // NewVirtualEvent instantiates a new virtualEvent and sets the default values. func NewVirtualEvent()(*VirtualEvent) { diff --git a/models/virtual_event_collection_response.go b/models/virtual_event_collection_response.go index 2ec645a9b2c..b8f0b379498 100644 --- a/models/virtual_event_collection_response.go +++ b/models/virtual_event_collection_response.go @@ -8,7 +8,7 @@ import ( type VirtualEventCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewVirtualEventCollectionResponse instantiates a new VirtualEventCollectionResponse and sets the default values. +// NewVirtualEventCollectionResponse instantiates a new virtualEventCollectionResponse and sets the default values. func NewVirtualEventCollectionResponse()(*VirtualEventCollectionResponse) { m := &VirtualEventCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/virtual_event_presenter.go b/models/virtual_event_presenter.go index 3344545ec10..32db21d9bac 100644 --- a/models/virtual_event_presenter.go +++ b/models/virtual_event_presenter.go @@ -7,6 +7,8 @@ import ( // VirtualEventPresenter type VirtualEventPresenter struct { Entity + // The OdataType property + OdataType *string } // NewVirtualEventPresenter instantiates a new virtualEventPresenter and sets the default values. func NewVirtualEventPresenter()(*VirtualEventPresenter) { diff --git a/models/virtual_event_presenter_collection_response.go b/models/virtual_event_presenter_collection_response.go index 3d9117f0097..bacd3b8b0c3 100644 --- a/models/virtual_event_presenter_collection_response.go +++ b/models/virtual_event_presenter_collection_response.go @@ -8,7 +8,7 @@ import ( type VirtualEventPresenterCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewVirtualEventPresenterCollectionResponse instantiates a new VirtualEventPresenterCollectionResponse and sets the default values. +// NewVirtualEventPresenterCollectionResponse instantiates a new virtualEventPresenterCollectionResponse and sets the default values. func NewVirtualEventPresenterCollectionResponse()(*VirtualEventPresenterCollectionResponse) { m := &VirtualEventPresenterCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/virtual_event_presenter_info.go b/models/virtual_event_presenter_info.go index b4adf7e2c59..6316c47209f 100644 --- a/models/virtual_event_presenter_info.go +++ b/models/virtual_event_presenter_info.go @@ -7,8 +7,10 @@ import ( // VirtualEventPresenterInfo type VirtualEventPresenterInfo struct { MeetingParticipantInfo + // The OdataType property + OdataType *string } -// NewVirtualEventPresenterInfo instantiates a new VirtualEventPresenterInfo and sets the default values. +// NewVirtualEventPresenterInfo instantiates a new virtualEventPresenterInfo and sets the default values. func NewVirtualEventPresenterInfo()(*VirtualEventPresenterInfo) { m := &VirtualEventPresenterInfo{ MeetingParticipantInfo: *NewMeetingParticipantInfo(), diff --git a/models/virtual_event_registrant.go b/models/virtual_event_registrant.go index 9ff1749abf7..188ad9d0d4b 100644 --- a/models/virtual_event_registrant.go +++ b/models/virtual_event_registrant.go @@ -8,6 +8,8 @@ import ( // VirtualEventRegistrant type VirtualEventRegistrant struct { Entity + // The OdataType property + OdataType *string } // NewVirtualEventRegistrant instantiates a new virtualEventRegistrant and sets the default values. func NewVirtualEventRegistrant()(*VirtualEventRegistrant) { diff --git a/models/virtual_event_registration.go b/models/virtual_event_registration.go index 78728c1a222..20d190ada27 100644 --- a/models/virtual_event_registration.go +++ b/models/virtual_event_registration.go @@ -7,6 +7,8 @@ import ( // VirtualEventRegistration type VirtualEventRegistration struct { Entity + // The OdataType property + OdataType *string } // NewVirtualEventRegistration instantiates a new virtualEventRegistration and sets the default values. func NewVirtualEventRegistration()(*VirtualEventRegistration) { diff --git a/models/virtual_event_registration_question.go b/models/virtual_event_registration_question.go index 941ac0497c0..2a17ba2b58b 100644 --- a/models/virtual_event_registration_question.go +++ b/models/virtual_event_registration_question.go @@ -7,6 +7,8 @@ import ( // VirtualEventRegistrationQuestion type VirtualEventRegistrationQuestion struct { Entity + // The OdataType property + OdataType *string } // NewVirtualEventRegistrationQuestion instantiates a new virtualEventRegistrationQuestion and sets the default values. func NewVirtualEventRegistrationQuestion()(*VirtualEventRegistrationQuestion) { diff --git a/models/virtual_event_session.go b/models/virtual_event_session.go index 39cd4f1fffa..8c4a17f33a6 100644 --- a/models/virtual_event_session.go +++ b/models/virtual_event_session.go @@ -8,7 +8,7 @@ import ( type VirtualEventSession struct { OnlineMeeting } -// NewVirtualEventSession instantiates a new VirtualEventSession and sets the default values. +// NewVirtualEventSession instantiates a new virtualEventSession and sets the default values. func NewVirtualEventSession()(*VirtualEventSession) { m := &VirtualEventSession{ OnlineMeeting: *NewOnlineMeeting(), diff --git a/models/virtual_event_session_collection_response.go b/models/virtual_event_session_collection_response.go index ba93fd54065..36cdc07682b 100644 --- a/models/virtual_event_session_collection_response.go +++ b/models/virtual_event_session_collection_response.go @@ -8,7 +8,7 @@ import ( type VirtualEventSessionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewVirtualEventSessionCollectionResponse instantiates a new VirtualEventSessionCollectionResponse and sets the default values. +// NewVirtualEventSessionCollectionResponse instantiates a new virtualEventSessionCollectionResponse and sets the default values. func NewVirtualEventSessionCollectionResponse()(*VirtualEventSessionCollectionResponse) { m := &VirtualEventSessionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/virtual_event_webinar.go b/models/virtual_event_webinar.go index 2c9c70482f5..fc76bc1bd34 100644 --- a/models/virtual_event_webinar.go +++ b/models/virtual_event_webinar.go @@ -8,7 +8,7 @@ import ( type VirtualEventWebinar struct { VirtualEvent } -// NewVirtualEventWebinar instantiates a new VirtualEventWebinar and sets the default values. +// NewVirtualEventWebinar instantiates a new virtualEventWebinar and sets the default values. func NewVirtualEventWebinar()(*VirtualEventWebinar) { m := &VirtualEventWebinar{ VirtualEvent: *NewVirtualEvent(), diff --git a/models/virtual_event_webinar_collection_response.go b/models/virtual_event_webinar_collection_response.go index bcc2d77e549..a9c506b00fc 100644 --- a/models/virtual_event_webinar_collection_response.go +++ b/models/virtual_event_webinar_collection_response.go @@ -8,7 +8,7 @@ import ( type VirtualEventWebinarCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewVirtualEventWebinarCollectionResponse instantiates a new VirtualEventWebinarCollectionResponse and sets the default values. +// NewVirtualEventWebinarCollectionResponse instantiates a new virtualEventWebinarCollectionResponse and sets the default values. func NewVirtualEventWebinarCollectionResponse()(*VirtualEventWebinarCollectionResponse) { m := &VirtualEventWebinarCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/virtual_events_root.go b/models/virtual_events_root.go index f0576cf4b0d..bbb122dc5c3 100644 --- a/models/virtual_events_root.go +++ b/models/virtual_events_root.go @@ -7,8 +7,10 @@ import ( // VirtualEventsRoot type VirtualEventsRoot struct { Entity + // The OdataType property + OdataType *string } -// NewVirtualEventsRoot instantiates a new VirtualEventsRoot and sets the default values. +// NewVirtualEventsRoot instantiates a new virtualEventsRoot and sets the default values. func NewVirtualEventsRoot()(*VirtualEventsRoot) { m := &VirtualEventsRoot{ Entity: *NewEntity(), diff --git a/models/visual_info.go b/models/visual_info.go index fbc63fd5721..bec1d96ffb8 100644 --- a/models/visual_info.go +++ b/models/visual_info.go @@ -10,7 +10,7 @@ type VisualInfo struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewVisualInfo instantiates a new VisualInfo and sets the default values. +// NewVisualInfo instantiates a new visualInfo and sets the default values. func NewVisualInfo()(*VisualInfo) { m := &VisualInfo{ } diff --git a/models/voice_authentication_method_configuration.go b/models/voice_authentication_method_configuration.go index 6363ef14d57..ccf5382e3ac 100644 --- a/models/voice_authentication_method_configuration.go +++ b/models/voice_authentication_method_configuration.go @@ -8,7 +8,7 @@ import ( type VoiceAuthenticationMethodConfiguration struct { AuthenticationMethodConfiguration } -// NewVoiceAuthenticationMethodConfiguration instantiates a new VoiceAuthenticationMethodConfiguration and sets the default values. +// NewVoiceAuthenticationMethodConfiguration instantiates a new voiceAuthenticationMethodConfiguration and sets the default values. func NewVoiceAuthenticationMethodConfiguration()(*VoiceAuthenticationMethodConfiguration) { m := &VoiceAuthenticationMethodConfiguration{ AuthenticationMethodConfiguration: *NewAuthenticationMethodConfiguration(), diff --git a/models/voice_authentication_method_target.go b/models/voice_authentication_method_target.go index 03a0f533193..271de354488 100644 --- a/models/voice_authentication_method_target.go +++ b/models/voice_authentication_method_target.go @@ -8,7 +8,7 @@ import ( type VoiceAuthenticationMethodTarget struct { AuthenticationMethodTarget } -// NewVoiceAuthenticationMethodTarget instantiates a new VoiceAuthenticationMethodTarget and sets the default values. +// NewVoiceAuthenticationMethodTarget instantiates a new voiceAuthenticationMethodTarget and sets the default values. func NewVoiceAuthenticationMethodTarget()(*VoiceAuthenticationMethodTarget) { m := &VoiceAuthenticationMethodTarget{ AuthenticationMethodTarget: *NewAuthenticationMethodTarget(), diff --git a/models/vpn_configuration.go b/models/vpn_configuration.go index 2bc07c3e2dd..06b3225f5ba 100644 --- a/models/vpn_configuration.go +++ b/models/vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// VpnConfiguration +// VpnConfiguration base VPN Configuration profile. type VpnConfiguration struct { DeviceConfiguration } -// NewVpnConfiguration instantiates a new VpnConfiguration and sets the default values. +// NewVpnConfiguration instantiates a new vpnConfiguration and sets the default values. func NewVpnConfiguration()(*VpnConfiguration) { m := &VpnConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/vpn_server.go b/models/vpn_server.go index a9faff52f86..99759623718 100644 --- a/models/vpn_server.go +++ b/models/vpn_server.go @@ -10,7 +10,7 @@ type VpnServer struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewVpnServer instantiates a new VpnServer and sets the default values. +// NewVpnServer instantiates a new vpnServer and sets the default values. func NewVpnServer()(*VpnServer) { m := &VpnServer{ } diff --git a/models/vpp_token.go b/models/vpp_token.go index aba50233086..f0dc39ed5a3 100644 --- a/models/vpp_token.go +++ b/models/vpp_token.go @@ -8,6 +8,8 @@ import ( // VppToken you purchase multiple licenses for iOS apps through the Apple Volume Purchase Program for Business or Education. This involves setting up an Apple VPP account from the Apple website and uploading the Apple VPP Business or Education token to Intune. You can then synchronize your volume purchase information with Intune and track your volume-purchased app use. You can upload multiple Apple VPP Business or Education tokens. type VppToken struct { Entity + // The OdataType property + OdataType *string } // NewVppToken instantiates a new vppToken and sets the default values. func NewVppToken()(*VppToken) { diff --git a/models/vpp_token_collection_response.go b/models/vpp_token_collection_response.go index 063101d1c4a..20ed6d5a031 100644 --- a/models/vpp_token_collection_response.go +++ b/models/vpp_token_collection_response.go @@ -8,7 +8,7 @@ import ( type VppTokenCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewVppTokenCollectionResponse instantiates a new VppTokenCollectionResponse and sets the default values. +// NewVppTokenCollectionResponse instantiates a new vppTokenCollectionResponse and sets the default values. func NewVppTokenCollectionResponse()(*VppTokenCollectionResponse) { m := &VppTokenCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/vpp_token_revoke_licenses_action_result.go b/models/vpp_token_revoke_licenses_action_result.go index 658e82f5094..b05493c9707 100644 --- a/models/vpp_token_revoke_licenses_action_result.go +++ b/models/vpp_token_revoke_licenses_action_result.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// VppTokenRevokeLicensesActionResult +// VppTokenRevokeLicensesActionResult the status of the revoke licenses action performed on the Apple Volume Purchase Program token. type VppTokenRevokeLicensesActionResult struct { VppTokenActionResult + // The OdataType property + OdataType *string } -// NewVppTokenRevokeLicensesActionResult instantiates a new VppTokenRevokeLicensesActionResult and sets the default values. +// NewVppTokenRevokeLicensesActionResult instantiates a new vppTokenRevokeLicensesActionResult and sets the default values. func NewVppTokenRevokeLicensesActionResult()(*VppTokenRevokeLicensesActionResult) { m := &VppTokenRevokeLicensesActionResult{ VppTokenActionResult: *NewVppTokenActionResult(), diff --git a/models/vulnerable_managed_device.go b/models/vulnerable_managed_device.go index 1cb43f49244..0388ea389da 100644 --- a/models/vulnerable_managed_device.go +++ b/models/vulnerable_managed_device.go @@ -8,6 +8,8 @@ import ( // VulnerableManagedDevice this entity represents a device associated with a task. type VulnerableManagedDevice struct { Entity + // The OdataType property + OdataType *string } // NewVulnerableManagedDevice instantiates a new vulnerableManagedDevice and sets the default values. func NewVulnerableManagedDevice()(*VulnerableManagedDevice) { diff --git a/models/web_account.go b/models/web_account.go index 4973472fa96..8db42ed0000 100644 --- a/models/web_account.go +++ b/models/web_account.go @@ -8,7 +8,7 @@ import ( type WebAccount struct { ItemFacet } -// NewWebAccount instantiates a new WebAccount and sets the default values. +// NewWebAccount instantiates a new webAccount and sets the default values. func NewWebAccount()(*WebAccount) { m := &WebAccount{ ItemFacet: *NewItemFacet(), diff --git a/models/web_account_collection_response.go b/models/web_account_collection_response.go index a00ed3ad934..40d142bacca 100644 --- a/models/web_account_collection_response.go +++ b/models/web_account_collection_response.go @@ -8,7 +8,7 @@ import ( type WebAccountCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWebAccountCollectionResponse instantiates a new WebAccountCollectionResponse and sets the default values. +// NewWebAccountCollectionResponse instantiates a new webAccountCollectionResponse and sets the default values. func NewWebAccountCollectionResponse()(*WebAccountCollectionResponse) { m := &WebAccountCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/web_app.go b/models/web_app.go index 41222357e9a..94e96b59e51 100644 --- a/models/web_app.go +++ b/models/web_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WebApp +// WebApp contains properties and inherited properties for web apps. type WebApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewWebApp instantiates a new WebApp and sets the default values. +// NewWebApp instantiates a new webApp and sets the default values. func NewWebApp()(*WebApp) { m := &WebApp{ MobileApp: *NewMobileApp(), diff --git a/models/web_application_segment.go b/models/web_application_segment.go index ae2f4430c48..12f37138c33 100644 --- a/models/web_application_segment.go +++ b/models/web_application_segment.go @@ -8,7 +8,7 @@ import ( type WebApplicationSegment struct { ApplicationSegment } -// NewWebApplicationSegment instantiates a new WebApplicationSegment and sets the default values. +// NewWebApplicationSegment instantiates a new webApplicationSegment and sets the default values. func NewWebApplicationSegment()(*WebApplicationSegment) { m := &WebApplicationSegment{ ApplicationSegment: *NewApplicationSegment(), diff --git a/models/web_part.go b/models/web_part.go index 408ecc09643..c86a9dca374 100644 --- a/models/web_part.go +++ b/models/web_part.go @@ -7,6 +7,8 @@ import ( // WebPart type WebPart struct { Entity + // The OdataType property + OdataType *string } // NewWebPart instantiates a new webPart and sets the default values. func NewWebPart()(*WebPart) { diff --git a/models/web_part_collection_response.go b/models/web_part_collection_response.go index fc2e5f433f8..08cf6c384f1 100644 --- a/models/web_part_collection_response.go +++ b/models/web_part_collection_response.go @@ -8,7 +8,7 @@ import ( type WebPartCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWebPartCollectionResponse instantiates a new WebPartCollectionResponse and sets the default values. +// NewWebPartCollectionResponse instantiates a new webPartCollectionResponse and sets the default values. func NewWebPartCollectionResponse()(*WebPartCollectionResponse) { m := &WebPartCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/web_segment_configuration.go b/models/web_segment_configuration.go index a8e64c7bf31..81d20014a1e 100644 --- a/models/web_segment_configuration.go +++ b/models/web_segment_configuration.go @@ -8,7 +8,7 @@ import ( type WebSegmentConfiguration struct { SegmentConfiguration } -// NewWebSegmentConfiguration instantiates a new WebSegmentConfiguration and sets the default values. +// NewWebSegmentConfiguration instantiates a new webSegmentConfiguration and sets the default values. func NewWebSegmentConfiguration()(*WebSegmentConfiguration) { m := &WebSegmentConfiguration{ SegmentConfiguration: *NewSegmentConfiguration(), @@ -51,8 +51,29 @@ func (m *WebSegmentConfiguration) GetFieldDeserializers()(map[string]func(i878a8 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WebSegmentConfiguration) 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 *WebSegmentConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.SegmentConfiguration.Serialize(writer) @@ -71,6 +92,12 @@ func (m *WebSegmentConfiguration) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetApplicationSegments sets the applicationSegments property value. The applicationSegments property @@ -80,10 +107,19 @@ func (m *WebSegmentConfiguration) SetApplicationSegments(value []WebApplicationS panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WebSegmentConfiguration) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // WebSegmentConfigurationable type WebSegmentConfigurationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable SegmentConfigurationable GetApplicationSegments()([]WebApplicationSegmentable) + GetOdataType()(*string) SetApplicationSegments(value []WebApplicationSegmentable)() + SetOdataType(value *string)() } diff --git a/models/win32_lob_app.go b/models/win32_lob_app.go index a8d09faff9e..f3afa437086 100644 --- a/models/win32_lob_app.go +++ b/models/win32_lob_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobApp +// Win32LobApp contains properties and inherited properties for Win32 apps. type Win32LobApp struct { MobileLobApp } -// NewWin32LobApp instantiates a new Win32LobApp and sets the default values. +// NewWin32LobApp instantiates a new win32LobApp and sets the default values. func NewWin32LobApp()(*Win32LobApp) { m := &Win32LobApp{ MobileLobApp: *NewMobileLobApp(), diff --git a/models/win32_lob_app_assignment_settings.go b/models/win32_lob_app_assignment_settings.go index 1ea4829d434..aa917f3106f 100644 --- a/models/win32_lob_app_assignment_settings.go +++ b/models/win32_lob_app_assignment_settings.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppAssignmentSettings +// Win32LobAppAssignmentSettings contains properties used to assign an Win32 LOB mobile app to a group. type Win32LobAppAssignmentSettings struct { MobileAppAssignmentSettings } -// NewWin32LobAppAssignmentSettings instantiates a new Win32LobAppAssignmentSettings and sets the default values. +// NewWin32LobAppAssignmentSettings instantiates a new win32LobAppAssignmentSettings and sets the default values. func NewWin32LobAppAssignmentSettings()(*Win32LobAppAssignmentSettings) { m := &Win32LobAppAssignmentSettings{ MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), @@ -65,6 +65,16 @@ func (m *Win32LobAppAssignmentSettings) GetFieldDeserializers()(map[string]func( } 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["restartSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateWin32LobAppRestartSettingsFromDiscriminatorValue) if err != nil { @@ -99,6 +109,17 @@ func (m *Win32LobAppAssignmentSettings) GetNotifications()(*Win32LobAppNotificat } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Win32LobAppAssignmentSettings) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRestartSettings gets the restartSettings property value. The reboot settings to apply for this app assignment. func (m *Win32LobAppAssignmentSettings) GetRestartSettings()(Win32LobAppRestartSettingsable) { val, err := m.GetBackingStore().Get("restartSettings") @@ -136,6 +157,12 @@ func (m *Win32LobAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("restartSettings", m.GetRestartSettings()) if err != nil { @@ -165,6 +192,13 @@ func (m *Win32LobAppAssignmentSettings) SetNotifications(value *Win32LobAppNotif panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Win32LobAppAssignmentSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRestartSettings sets the restartSettings property value. The reboot settings to apply for this app assignment. func (m *Win32LobAppAssignmentSettings) SetRestartSettings(value Win32LobAppRestartSettingsable)() { err := m.GetBackingStore().Set("restartSettings", value) @@ -179,9 +213,11 @@ type Win32LobAppAssignmentSettingsable interface { GetDeliveryOptimizationPriority()(*Win32LobAppDeliveryOptimizationPriority) GetInstallTimeSettings()(MobileAppInstallTimeSettingsable) GetNotifications()(*Win32LobAppNotification) + GetOdataType()(*string) GetRestartSettings()(Win32LobAppRestartSettingsable) SetDeliveryOptimizationPriority(value *Win32LobAppDeliveryOptimizationPriority)() SetInstallTimeSettings(value MobileAppInstallTimeSettingsable)() SetNotifications(value *Win32LobAppNotification)() + SetOdataType(value *string)() SetRestartSettings(value Win32LobAppRestartSettingsable)() } diff --git a/models/win32_lob_app_file_system_detection.go b/models/win32_lob_app_file_system_detection.go index 5fd71eb5a93..58e9ad73282 100644 --- a/models/win32_lob_app_file_system_detection.go +++ b/models/win32_lob_app_file_system_detection.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppFileSystemDetection +// Win32LobAppFileSystemDetection contains file or folder path to detect a Win32 App type Win32LobAppFileSystemDetection struct { Win32LobAppDetection } -// NewWin32LobAppFileSystemDetection instantiates a new Win32LobAppFileSystemDetection and sets the default values. +// NewWin32LobAppFileSystemDetection instantiates a new win32LobAppFileSystemDetection and sets the default values. func NewWin32LobAppFileSystemDetection()(*Win32LobAppFileSystemDetection) { m := &Win32LobAppFileSystemDetection{ Win32LobAppDetection: *NewWin32LobAppDetection(), @@ -97,6 +97,16 @@ func (m *Win32LobAppFileSystemDetection) GetFieldDeserializers()(map[string]func } 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(ParseWin32LobAppDetectionOperator) if err != nil { @@ -130,6 +140,17 @@ func (m *Win32LobAppFileSystemDetection) GetFileOrFolderName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Win32LobAppFileSystemDetection) 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. Contains properties for detection operator. func (m *Win32LobAppFileSystemDetection) GetOperator()(*Win32LobAppDetectionOperator) { val, err := m.GetBackingStore().Get("operator") @@ -183,6 +204,12 @@ func (m *Win32LobAppFileSystemDetection) Serialize(writer i878a80d2330e89d268963 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) @@ -226,6 +253,13 @@ func (m *Win32LobAppFileSystemDetection) SetFileOrFolderName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Win32LobAppFileSystemDetection) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOperator sets the operator property value. Contains properties for detection operator. func (m *Win32LobAppFileSystemDetection) SetOperator(value *Win32LobAppDetectionOperator)() { err := m.GetBackingStore().Set("operator", value) @@ -248,12 +282,14 @@ type Win32LobAppFileSystemDetectionable interface { GetDetectionType()(*Win32LobAppFileSystemDetectionType) GetDetectionValue()(*string) GetFileOrFolderName()(*string) + GetOdataType()(*string) GetOperator()(*Win32LobAppDetectionOperator) GetPath()(*string) SetCheck32BitOn64System(value *bool)() SetDetectionType(value *Win32LobAppFileSystemDetectionType)() SetDetectionValue(value *string)() SetFileOrFolderName(value *string)() + SetOdataType(value *string)() SetOperator(value *Win32LobAppDetectionOperator)() SetPath(value *string)() } diff --git a/models/win32_lob_app_file_system_requirement.go b/models/win32_lob_app_file_system_requirement.go index 28381765071..f11286e7f94 100644 --- a/models/win32_lob_app_file_system_requirement.go +++ b/models/win32_lob_app_file_system_requirement.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppFileSystemRequirement +// Win32LobAppFileSystemRequirement contains file or folder path to detect a Win32 App type Win32LobAppFileSystemRequirement struct { Win32LobAppRequirement } -// NewWin32LobAppFileSystemRequirement instantiates a new Win32LobAppFileSystemRequirement and sets the default values. +// NewWin32LobAppFileSystemRequirement instantiates a new win32LobAppFileSystemRequirement and sets the default values. func NewWin32LobAppFileSystemRequirement()(*Win32LobAppFileSystemRequirement) { m := &Win32LobAppFileSystemRequirement{ Win32LobAppRequirement: *NewWin32LobAppRequirement(), @@ -76,6 +76,16 @@ func (m *Win32LobAppFileSystemRequirement) GetFieldDeserializers()(map[string]fu } 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["path"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -99,6 +109,17 @@ func (m *Win32LobAppFileSystemRequirement) GetFileOrFolderName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Win32LobAppFileSystemRequirement) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPath gets the path property value. The file or folder path to detect Win32 Line of Business (LoB) app func (m *Win32LobAppFileSystemRequirement) GetPath()(*string) { val, err := m.GetBackingStore().Get("path") @@ -135,6 +156,12 @@ func (m *Win32LobAppFileSystemRequirement) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("path", m.GetPath()) if err != nil { @@ -164,6 +191,13 @@ func (m *Win32LobAppFileSystemRequirement) SetFileOrFolderName(value *string)() panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Win32LobAppFileSystemRequirement) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPath sets the path property value. The file or folder path to detect Win32 Line of Business (LoB) app func (m *Win32LobAppFileSystemRequirement) SetPath(value *string)() { err := m.GetBackingStore().Set("path", value) @@ -178,9 +212,11 @@ type Win32LobAppFileSystemRequirementable interface { GetCheck32BitOn64System()(*bool) GetDetectionType()(*Win32LobAppFileSystemDetectionType) GetFileOrFolderName()(*string) + GetOdataType()(*string) GetPath()(*string) SetCheck32BitOn64System(value *bool)() SetDetectionType(value *Win32LobAppFileSystemDetectionType)() SetFileOrFolderName(value *string)() + SetOdataType(value *string)() SetPath(value *string)() } diff --git a/models/win32_lob_app_file_system_rule.go b/models/win32_lob_app_file_system_rule.go index a5764b01204..6ae6f38d75f 100644 --- a/models/win32_lob_app_file_system_rule.go +++ b/models/win32_lob_app_file_system_rule.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppFileSystemRule +// Win32LobAppFileSystemRule a complex type to store file or folder rule data for a Win32 LOB app. type Win32LobAppFileSystemRule struct { Win32LobAppRule } -// NewWin32LobAppFileSystemRule instantiates a new Win32LobAppFileSystemRule and sets the default values. +// NewWin32LobAppFileSystemRule instantiates a new win32LobAppFileSystemRule and sets the default values. func NewWin32LobAppFileSystemRule()(*Win32LobAppFileSystemRule) { m := &Win32LobAppFileSystemRule{ Win32LobAppRule: *NewWin32LobAppRule(), @@ -76,6 +76,16 @@ func (m *Win32LobAppFileSystemRule) GetFieldDeserializers()(map[string]func(i878 } 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["operationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseWin32LobAppFileSystemOperationType) if err != nil { @@ -119,6 +129,17 @@ func (m *Win32LobAppFileSystemRule) GetFileOrFolderName()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Win32LobAppFileSystemRule) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOperationType gets the operationType property value. Contains all supported file system detection type. func (m *Win32LobAppFileSystemRule) GetOperationType()(*Win32LobAppFileSystemOperationType) { val, err := m.GetBackingStore().Get("operationType") @@ -176,6 +197,12 @@ func (m *Win32LobAppFileSystemRule) Serialize(writer i878a80d2330e89d26896388a3f return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetOperationType() != nil { cast := (*m.GetOperationType()).String() err = writer.WriteStringValue("operationType", &cast) @@ -219,6 +246,13 @@ func (m *Win32LobAppFileSystemRule) SetFileOrFolderName(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Win32LobAppFileSystemRule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOperationType sets the operationType property value. Contains all supported file system detection type. func (m *Win32LobAppFileSystemRule) SetOperationType(value *Win32LobAppFileSystemOperationType)() { err := m.GetBackingStore().Set("operationType", value) @@ -247,12 +281,14 @@ type Win32LobAppFileSystemRuleable interface { GetCheck32BitOn64System()(*bool) GetComparisonValue()(*string) GetFileOrFolderName()(*string) + GetOdataType()(*string) GetOperationType()(*Win32LobAppFileSystemOperationType) GetOperator()(*Win32LobAppRuleOperator) GetPath()(*string) SetCheck32BitOn64System(value *bool)() SetComparisonValue(value *string)() SetFileOrFolderName(value *string)() + SetOdataType(value *string)() SetOperationType(value *Win32LobAppFileSystemOperationType)() SetOperator(value *Win32LobAppRuleOperator)() SetPath(value *string)() diff --git a/models/win32_lob_app_power_shell_script_detection.go b/models/win32_lob_app_power_shell_script_detection.go index 3f3eaaf69eb..e9eaa3b0ddf 100644 --- a/models/win32_lob_app_power_shell_script_detection.go +++ b/models/win32_lob_app_power_shell_script_detection.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppPowerShellScriptDetection +// Win32LobAppPowerShellScriptDetection contains PowerShell script properties to detect a Win32 App type Win32LobAppPowerShellScriptDetection struct { Win32LobAppDetection + // The OdataType property + OdataType *string } -// NewWin32LobAppPowerShellScriptDetection instantiates a new Win32LobAppPowerShellScriptDetection and sets the default values. +// NewWin32LobAppPowerShellScriptDetection instantiates a new win32LobAppPowerShellScriptDetection and sets the default values. func NewWin32LobAppPowerShellScriptDetection()(*Win32LobAppPowerShellScriptDetection) { m := &Win32LobAppPowerShellScriptDetection{ Win32LobAppDetection: *NewWin32LobAppDetection(), diff --git a/models/win32_lob_app_power_shell_script_requirement.go b/models/win32_lob_app_power_shell_script_requirement.go index ff90e85021e..e045bac8175 100644 --- a/models/win32_lob_app_power_shell_script_requirement.go +++ b/models/win32_lob_app_power_shell_script_requirement.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppPowerShellScriptRequirement +// Win32LobAppPowerShellScriptRequirement contains PowerShell script properties to detect a Win32 App type Win32LobAppPowerShellScriptRequirement struct { Win32LobAppRequirement } -// NewWin32LobAppPowerShellScriptRequirement instantiates a new Win32LobAppPowerShellScriptRequirement and sets the default values. +// NewWin32LobAppPowerShellScriptRequirement instantiates a new win32LobAppPowerShellScriptRequirement and sets the default values. func NewWin32LobAppPowerShellScriptRequirement()(*Win32LobAppPowerShellScriptRequirement) { m := &Win32LobAppPowerShellScriptRequirement{ Win32LobAppRequirement: *NewWin32LobAppRequirement(), @@ -87,6 +87,16 @@ func (m *Win32LobAppPowerShellScriptRequirement) GetFieldDeserializers()(map[str } 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["runAs32Bit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -119,6 +129,17 @@ func (m *Win32LobAppPowerShellScriptRequirement) GetFieldDeserializers()(map[str } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Win32LobAppPowerShellScriptRequirement) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRunAs32Bit gets the runAs32Bit property value. A value indicating whether this script should run as 32-bit func (m *Win32LobAppPowerShellScriptRequirement) GetRunAs32Bit()(*bool) { val, err := m.GetBackingStore().Get("runAs32Bit") @@ -177,6 +198,12 @@ func (m *Win32LobAppPowerShellScriptRequirement) Serialize(writer i878a80d2330e8 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("runAs32Bit", m.GetRunAs32Bit()) if err != nil { @@ -219,6 +246,13 @@ func (m *Win32LobAppPowerShellScriptRequirement) SetEnforceSignatureCheck(value panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Win32LobAppPowerShellScriptRequirement) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRunAs32Bit sets the runAs32Bit property value. A value indicating whether this script should run as 32-bit func (m *Win32LobAppPowerShellScriptRequirement) SetRunAs32Bit(value *bool)() { err := m.GetBackingStore().Set("runAs32Bit", value) @@ -247,12 +281,14 @@ type Win32LobAppPowerShellScriptRequirementable interface { GetDetectionType()(*Win32LobAppPowerShellScriptDetectionType) GetDisplayName()(*string) GetEnforceSignatureCheck()(*bool) + GetOdataType()(*string) GetRunAs32Bit()(*bool) GetRunAsAccount()(*RunAsAccountType) GetScriptContent()(*string) SetDetectionType(value *Win32LobAppPowerShellScriptDetectionType)() SetDisplayName(value *string)() SetEnforceSignatureCheck(value *bool)() + SetOdataType(value *string)() SetRunAs32Bit(value *bool)() SetRunAsAccount(value *RunAsAccountType)() SetScriptContent(value *string)() diff --git a/models/win32_lob_app_power_shell_script_rule.go b/models/win32_lob_app_power_shell_script_rule.go index eb6452e4ca4..3748ba47371 100644 --- a/models/win32_lob_app_power_shell_script_rule.go +++ b/models/win32_lob_app_power_shell_script_rule.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppPowerShellScriptRule +// Win32LobAppPowerShellScriptRule a complex type to store the PowerShell script rule data for a Win32 LOB app. type Win32LobAppPowerShellScriptRule struct { Win32LobAppRule } -// NewWin32LobAppPowerShellScriptRule instantiates a new Win32LobAppPowerShellScriptRule and sets the default values. +// NewWin32LobAppPowerShellScriptRule instantiates a new win32LobAppPowerShellScriptRule and sets the default values. func NewWin32LobAppPowerShellScriptRule()(*Win32LobAppPowerShellScriptRule) { m := &Win32LobAppPowerShellScriptRule{ Win32LobAppRule: *NewWin32LobAppRule(), @@ -87,6 +87,16 @@ func (m *Win32LobAppPowerShellScriptRule) GetFieldDeserializers()(map[string]fun } 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["operationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseWin32LobAppPowerShellScriptRuleOperationType) if err != nil { @@ -139,6 +149,17 @@ func (m *Win32LobAppPowerShellScriptRule) GetFieldDeserializers()(map[string]fun } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Win32LobAppPowerShellScriptRule) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOperationType gets the operationType property value. Contains all supported Powershell Script output detection type. func (m *Win32LobAppPowerShellScriptRule) GetOperationType()(*Win32LobAppPowerShellScriptRuleOperationType) { val, err := m.GetBackingStore().Get("operationType") @@ -218,6 +239,12 @@ func (m *Win32LobAppPowerShellScriptRule) Serialize(writer i878a80d2330e89d26896 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetOperationType() != nil { cast := (*m.GetOperationType()).String() err = writer.WriteStringValue("operationType", &cast) @@ -274,6 +301,13 @@ func (m *Win32LobAppPowerShellScriptRule) SetEnforceSignatureCheck(value *bool)( panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Win32LobAppPowerShellScriptRule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOperationType sets the operationType property value. Contains all supported Powershell Script output detection type. func (m *Win32LobAppPowerShellScriptRule) SetOperationType(value *Win32LobAppPowerShellScriptRuleOperationType)() { err := m.GetBackingStore().Set("operationType", value) @@ -316,6 +350,7 @@ type Win32LobAppPowerShellScriptRuleable interface { GetComparisonValue()(*string) GetDisplayName()(*string) GetEnforceSignatureCheck()(*bool) + GetOdataType()(*string) GetOperationType()(*Win32LobAppPowerShellScriptRuleOperationType) GetOperator()(*Win32LobAppRuleOperator) GetRunAs32Bit()(*bool) @@ -324,6 +359,7 @@ type Win32LobAppPowerShellScriptRuleable interface { SetComparisonValue(value *string)() SetDisplayName(value *string)() SetEnforceSignatureCheck(value *bool)() + SetOdataType(value *string)() SetOperationType(value *Win32LobAppPowerShellScriptRuleOperationType)() SetOperator(value *Win32LobAppRuleOperator)() SetRunAs32Bit(value *bool)() diff --git a/models/win32_lob_app_product_code_detection.go b/models/win32_lob_app_product_code_detection.go index e404d075c04..4b70a68a39d 100644 --- a/models/win32_lob_app_product_code_detection.go +++ b/models/win32_lob_app_product_code_detection.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppProductCodeDetection +// Win32LobAppProductCodeDetection contains product code and version properties to detect a Win32 App type Win32LobAppProductCodeDetection struct { Win32LobAppDetection + // The OdataType property + OdataType *string } -// NewWin32LobAppProductCodeDetection instantiates a new Win32LobAppProductCodeDetection and sets the default values. +// NewWin32LobAppProductCodeDetection instantiates a new win32LobAppProductCodeDetection and sets the default values. func NewWin32LobAppProductCodeDetection()(*Win32LobAppProductCodeDetection) { m := &Win32LobAppProductCodeDetection{ Win32LobAppDetection: *NewWin32LobAppDetection(), diff --git a/models/win32_lob_app_product_code_rule.go b/models/win32_lob_app_product_code_rule.go index 11fb0f136c8..a2db0a77153 100644 --- a/models/win32_lob_app_product_code_rule.go +++ b/models/win32_lob_app_product_code_rule.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppProductCodeRule +// Win32LobAppProductCodeRule a complex type to store the product code and version rule data for a Win32 LOB app. This rule is not supported as a requirement rule. type Win32LobAppProductCodeRule struct { Win32LobAppRule } -// NewWin32LobAppProductCodeRule instantiates a new Win32LobAppProductCodeRule and sets the default values. +// NewWin32LobAppProductCodeRule instantiates a new win32LobAppProductCodeRule and sets the default values. func NewWin32LobAppProductCodeRule()(*Win32LobAppProductCodeRule) { m := &Win32LobAppProductCodeRule{ Win32LobAppRule: *NewWin32LobAppRule(), @@ -24,6 +24,16 @@ func CreateWin32LobAppProductCodeRuleFromDiscriminatorValue(parseNode i878a80d23 // GetFieldDeserializers the deserialization information for the current model func (m *Win32LobAppProductCodeRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Win32LobAppRule.GetFieldDeserializers() + 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["productCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -56,6 +66,17 @@ func (m *Win32LobAppProductCodeRule) GetFieldDeserializers()(map[string]func(i87 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Win32LobAppProductCodeRule) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetProductCode gets the productCode property value. The product code of the app. func (m *Win32LobAppProductCodeRule) GetProductCode()(*string) { val, err := m.GetBackingStore().Get("productCode") @@ -95,6 +116,12 @@ func (m *Win32LobAppProductCodeRule) Serialize(writer i878a80d2330e89d26896388a3 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("productCode", m.GetProductCode()) if err != nil { @@ -116,6 +143,13 @@ func (m *Win32LobAppProductCodeRule) Serialize(writer i878a80d2330e89d26896388a3 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Win32LobAppProductCodeRule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetProductCode sets the productCode property value. The product code of the app. func (m *Win32LobAppProductCodeRule) SetProductCode(value *string)() { err := m.GetBackingStore().Set("productCode", value) @@ -141,9 +175,11 @@ func (m *Win32LobAppProductCodeRule) SetProductVersionOperator(value *Win32LobAp type Win32LobAppProductCodeRuleable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable Win32LobAppRuleable + GetOdataType()(*string) GetProductCode()(*string) GetProductVersion()(*string) GetProductVersionOperator()(*Win32LobAppRuleOperator) + SetOdataType(value *string)() SetProductCode(value *string)() SetProductVersion(value *string)() SetProductVersionOperator(value *Win32LobAppRuleOperator)() diff --git a/models/win32_lob_app_registry_detection.go b/models/win32_lob_app_registry_detection.go index 23f846a8c1c..e6df30b9179 100644 --- a/models/win32_lob_app_registry_detection.go +++ b/models/win32_lob_app_registry_detection.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppRegistryDetection +// Win32LobAppRegistryDetection contains registry properties to detect a Win32 App type Win32LobAppRegistryDetection struct { Win32LobAppDetection + // The OdataType property + OdataType *string } -// NewWin32LobAppRegistryDetection instantiates a new Win32LobAppRegistryDetection and sets the default values. +// NewWin32LobAppRegistryDetection instantiates a new win32LobAppRegistryDetection and sets the default values. func NewWin32LobAppRegistryDetection()(*Win32LobAppRegistryDetection) { m := &Win32LobAppRegistryDetection{ Win32LobAppDetection: *NewWin32LobAppDetection(), diff --git a/models/win32_lob_app_registry_requirement.go b/models/win32_lob_app_registry_requirement.go index e9747180508..2f5cb1440ae 100644 --- a/models/win32_lob_app_registry_requirement.go +++ b/models/win32_lob_app_registry_requirement.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppRegistryRequirement +// Win32LobAppRegistryRequirement contains registry properties to detect a Win32 App type Win32LobAppRegistryRequirement struct { Win32LobAppRequirement + // The OdataType property + OdataType *string } -// NewWin32LobAppRegistryRequirement instantiates a new Win32LobAppRegistryRequirement and sets the default values. +// NewWin32LobAppRegistryRequirement instantiates a new win32LobAppRegistryRequirement and sets the default values. func NewWin32LobAppRegistryRequirement()(*Win32LobAppRegistryRequirement) { m := &Win32LobAppRegistryRequirement{ Win32LobAppRequirement: *NewWin32LobAppRequirement(), diff --git a/models/win32_lob_app_registry_rule.go b/models/win32_lob_app_registry_rule.go index 7714aff041d..a86b17fcddf 100644 --- a/models/win32_lob_app_registry_rule.go +++ b/models/win32_lob_app_registry_rule.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Win32LobAppRegistryRule +// Win32LobAppRegistryRule a complex type to store registry rule data for a Win32 LOB app. type Win32LobAppRegistryRule struct { Win32LobAppRule } -// NewWin32LobAppRegistryRule instantiates a new Win32LobAppRegistryRule and sets the default values. +// NewWin32LobAppRegistryRule instantiates a new win32LobAppRegistryRule and sets the default values. func NewWin32LobAppRegistryRule()(*Win32LobAppRegistryRule) { m := &Win32LobAppRegistryRule{ Win32LobAppRule: *NewWin32LobAppRule(), @@ -76,6 +76,16 @@ func (m *Win32LobAppRegistryRule) GetFieldDeserializers()(map[string]func(i878a8 } 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["operationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseWin32LobAppRegistryRuleOperationType) if err != nil { @@ -119,6 +129,17 @@ func (m *Win32LobAppRegistryRule) GetKeyPath()(*string) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Win32LobAppRegistryRule) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOperationType gets the operationType property value. Contains all supported registry data detection type. func (m *Win32LobAppRegistryRule) GetOperationType()(*Win32LobAppRegistryRuleOperationType) { val, err := m.GetBackingStore().Get("operationType") @@ -176,6 +197,12 @@ func (m *Win32LobAppRegistryRule) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetOperationType() != nil { cast := (*m.GetOperationType()).String() err = writer.WriteStringValue("operationType", &cast) @@ -219,6 +246,13 @@ func (m *Win32LobAppRegistryRule) SetKeyPath(value *string)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Win32LobAppRegistryRule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetOperationType sets the operationType property value. Contains all supported registry data detection type. func (m *Win32LobAppRegistryRule) SetOperationType(value *Win32LobAppRegistryRuleOperationType)() { err := m.GetBackingStore().Set("operationType", value) @@ -247,12 +281,14 @@ type Win32LobAppRegistryRuleable interface { GetCheck32BitOn64System()(*bool) GetComparisonValue()(*string) GetKeyPath()(*string) + GetOdataType()(*string) GetOperationType()(*Win32LobAppRegistryRuleOperationType) GetOperator()(*Win32LobAppRuleOperator) GetValueName()(*string) SetCheck32BitOn64System(value *bool)() SetComparisonValue(value *string)() SetKeyPath(value *string)() + SetOdataType(value *string)() SetOperationType(value *Win32LobAppRegistryRuleOperationType)() SetOperator(value *Win32LobAppRuleOperator)() SetValueName(value *string)() diff --git a/models/win_get_app.go b/models/win_get_app.go index 2e1a7fad09a..05321096a79 100644 --- a/models/win_get_app.go +++ b/models/win_get_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WinGetApp +// WinGetApp a MobileApp that is based on a referenced application in a WinGet repository. type WinGetApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewWinGetApp instantiates a new WinGetApp and sets the default values. +// NewWinGetApp instantiates a new winGetApp and sets the default values. func NewWinGetApp()(*WinGetApp) { m := &WinGetApp{ MobileApp: *NewMobileApp(), diff --git a/models/win_get_app_assignment_settings.go b/models/win_get_app_assignment_settings.go index 21596105565..e6e6c90b2c1 100644 --- a/models/win_get_app_assignment_settings.go +++ b/models/win_get_app_assignment_settings.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WinGetAppAssignmentSettings +// WinGetAppAssignmentSettings contains properties used to assign a WinGet app to a group. type WinGetAppAssignmentSettings struct { MobileAppAssignmentSettings } -// NewWinGetAppAssignmentSettings instantiates a new WinGetAppAssignmentSettings and sets the default values. +// NewWinGetAppAssignmentSettings instantiates a new winGetAppAssignmentSettings and sets the default values. func NewWinGetAppAssignmentSettings()(*WinGetAppAssignmentSettings) { m := &WinGetAppAssignmentSettings{ MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), @@ -44,6 +44,16 @@ func (m *WinGetAppAssignmentSettings) GetFieldDeserializers()(map[string]func(i8 } 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["restartSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateWinGetAppRestartSettingsFromDiscriminatorValue) if err != nil { @@ -78,6 +88,17 @@ func (m *WinGetAppAssignmentSettings) GetNotifications()(*WinGetAppNotification) } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WinGetAppAssignmentSettings) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRestartSettings gets the restartSettings property value. The reboot settings to apply for this app assignment. func (m *WinGetAppAssignmentSettings) GetRestartSettings()(WinGetAppRestartSettingsable) { val, err := m.GetBackingStore().Get("restartSettings") @@ -108,6 +129,12 @@ func (m *WinGetAppAssignmentSettings) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("restartSettings", m.GetRestartSettings()) if err != nil { @@ -130,6 +157,13 @@ func (m *WinGetAppAssignmentSettings) SetNotifications(value *WinGetAppNotificat panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WinGetAppAssignmentSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRestartSettings sets the restartSettings property value. The reboot settings to apply for this app assignment. func (m *WinGetAppAssignmentSettings) SetRestartSettings(value WinGetAppRestartSettingsable)() { err := m.GetBackingStore().Set("restartSettings", value) @@ -143,8 +177,10 @@ type WinGetAppAssignmentSettingsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetInstallTimeSettings()(WinGetAppInstallTimeSettingsable) GetNotifications()(*WinGetAppNotification) + GetOdataType()(*string) GetRestartSettings()(WinGetAppRestartSettingsable) SetInstallTimeSettings(value WinGetAppInstallTimeSettingsable)() SetNotifications(value *WinGetAppNotification)() + SetOdataType(value *string)() SetRestartSettings(value WinGetAppRestartSettingsable)() } diff --git a/models/windows10_certificate_profile_base.go b/models/windows10_certificate_profile_base.go index e71c9fb002d..8f97308c881 100644 --- a/models/windows10_certificate_profile_base.go +++ b/models/windows10_certificate_profile_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10CertificateProfileBase +// Windows10CertificateProfileBase base class for Windows 10 certificate profile. type Windows10CertificateProfileBase struct { WindowsCertificateProfileBase } -// NewWindows10CertificateProfileBase instantiates a new Windows10CertificateProfileBase and sets the default values. +// NewWindows10CertificateProfileBase instantiates a new windows10CertificateProfileBase and sets the default values. func NewWindows10CertificateProfileBase()(*Windows10CertificateProfileBase) { m := &Windows10CertificateProfileBase{ WindowsCertificateProfileBase: *NewWindowsCertificateProfileBase(), diff --git a/models/windows10_compliance_policy.go b/models/windows10_compliance_policy.go index 4b6c53f95e4..9bf38506432 100644 --- a/models/windows10_compliance_policy.go +++ b/models/windows10_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10CompliancePolicy +// Windows10CompliancePolicy this class contains compliance settings for Windows 10. type Windows10CompliancePolicy struct { DeviceCompliancePolicy } -// NewWindows10CompliancePolicy instantiates a new Windows10CompliancePolicy and sets the default values. +// NewWindows10CompliancePolicy instantiates a new windows10CompliancePolicy and sets the default values. func NewWindows10CompliancePolicy()(*Windows10CompliancePolicy) { m := &Windows10CompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/windows10_custom_configuration.go b/models/windows10_custom_configuration.go index 88e78b0c271..4fff5c1e6c7 100644 --- a/models/windows10_custom_configuration.go +++ b/models/windows10_custom_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10CustomConfiguration +// Windows10CustomConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the windows10CustomConfiguration resource. type Windows10CustomConfiguration struct { DeviceConfiguration } -// NewWindows10CustomConfiguration instantiates a new Windows10CustomConfiguration and sets the default values. +// NewWindows10CustomConfiguration instantiates a new windows10CustomConfiguration and sets the default values. func NewWindows10CustomConfiguration()(*Windows10CustomConfiguration) { m := &Windows10CustomConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows10_device_firmware_configuration_interface.go b/models/windows10_device_firmware_configuration_interface.go index fe22072fe85..51024bbb0da 100644 --- a/models/windows10_device_firmware_configuration_interface.go +++ b/models/windows10_device_firmware_configuration_interface.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10DeviceFirmwareConfigurationInterface +// Windows10DeviceFirmwareConfigurationInterface graph properties for Device Firmware Configuration Interface type Windows10DeviceFirmwareConfigurationInterface struct { DeviceConfiguration } -// NewWindows10DeviceFirmwareConfigurationInterface instantiates a new Windows10DeviceFirmwareConfigurationInterface and sets the default values. +// NewWindows10DeviceFirmwareConfigurationInterface instantiates a new windows10DeviceFirmwareConfigurationInterface and sets the default values. func NewWindows10DeviceFirmwareConfigurationInterface()(*Windows10DeviceFirmwareConfigurationInterface) { m := &Windows10DeviceFirmwareConfigurationInterface{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows10_eas_email_profile_configuration.go b/models/windows10_eas_email_profile_configuration.go index cbd46af6823..9dc5d80d405 100644 --- a/models/windows10_eas_email_profile_configuration.go +++ b/models/windows10_eas_email_profile_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10EasEmailProfileConfiguration +// Windows10EasEmailProfileConfiguration by providing configurations in this profile you can instruct the native email client (Outlook) on Windows 10 devices to communicate with an Exchange server and get email, contacts, calendar, and tasks. Furthermore, you can also specify how much email to sync and how often the device should sync. type Windows10EasEmailProfileConfiguration struct { EasEmailProfileConfigurationBase } -// NewWindows10EasEmailProfileConfiguration instantiates a new Windows10EasEmailProfileConfiguration and sets the default values. +// NewWindows10EasEmailProfileConfiguration instantiates a new windows10EasEmailProfileConfiguration and sets the default values. func NewWindows10EasEmailProfileConfiguration()(*Windows10EasEmailProfileConfiguration) { m := &Windows10EasEmailProfileConfiguration{ EasEmailProfileConfigurationBase: *NewEasEmailProfileConfigurationBase(), diff --git a/models/windows10_endpoint_protection_configuration.go b/models/windows10_endpoint_protection_configuration.go index 875e345412a..bdfc36d836a 100644 --- a/models/windows10_endpoint_protection_configuration.go +++ b/models/windows10_endpoint_protection_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10EndpointProtectionConfiguration +// Windows10EndpointProtectionConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the Windows10EndpointProtectionConfiguration resource. type Windows10EndpointProtectionConfiguration struct { DeviceConfiguration } -// NewWindows10EndpointProtectionConfiguration instantiates a new Windows10EndpointProtectionConfiguration and sets the default values. +// NewWindows10EndpointProtectionConfiguration instantiates a new windows10EndpointProtectionConfiguration and sets the default values. func NewWindows10EndpointProtectionConfiguration()(*Windows10EndpointProtectionConfiguration) { m := &Windows10EndpointProtectionConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows10_enrollment_completion_page_configuration.go b/models/windows10_enrollment_completion_page_configuration.go index 6e1faa488f1..bd65d152a6d 100644 --- a/models/windows10_enrollment_completion_page_configuration.go +++ b/models/windows10_enrollment_completion_page_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10EnrollmentCompletionPageConfiguration +// Windows10EnrollmentCompletionPageConfiguration windows 10 Enrollment Status Page Configuration type Windows10EnrollmentCompletionPageConfiguration struct { DeviceEnrollmentConfiguration } -// NewWindows10EnrollmentCompletionPageConfiguration instantiates a new Windows10EnrollmentCompletionPageConfiguration and sets the default values. +// NewWindows10EnrollmentCompletionPageConfiguration instantiates a new windows10EnrollmentCompletionPageConfiguration and sets the default values. func NewWindows10EnrollmentCompletionPageConfiguration()(*Windows10EnrollmentCompletionPageConfiguration) { m := &Windows10EnrollmentCompletionPageConfiguration{ DeviceEnrollmentConfiguration: *NewDeviceEnrollmentConfiguration(), diff --git a/models/windows10_enrollment_completion_page_configuration_policy_set_item.go b/models/windows10_enrollment_completion_page_configuration_policy_set_item.go index 28e61313d70..9efc246456d 100644 --- a/models/windows10_enrollment_completion_page_configuration_policy_set_item.go +++ b/models/windows10_enrollment_completion_page_configuration_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10EnrollmentCompletionPageConfigurationPolicySetItem +// Windows10EnrollmentCompletionPageConfigurationPolicySetItem a class containing the properties used for Windows10EnrollmentCompletionPageConfiguration PolicySetItem. type Windows10EnrollmentCompletionPageConfigurationPolicySetItem struct { PolicySetItem } -// NewWindows10EnrollmentCompletionPageConfigurationPolicySetItem instantiates a new Windows10EnrollmentCompletionPageConfigurationPolicySetItem and sets the default values. +// NewWindows10EnrollmentCompletionPageConfigurationPolicySetItem instantiates a new windows10EnrollmentCompletionPageConfigurationPolicySetItem and sets the default values. func NewWindows10EnrollmentCompletionPageConfigurationPolicySetItem()(*Windows10EnrollmentCompletionPageConfigurationPolicySetItem) { m := &Windows10EnrollmentCompletionPageConfigurationPolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/windows10_enterprise_modern_app_management_configuration.go b/models/windows10_enterprise_modern_app_management_configuration.go index d1af3ed507a..fb76df39b94 100644 --- a/models/windows10_enterprise_modern_app_management_configuration.go +++ b/models/windows10_enterprise_modern_app_management_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10EnterpriseModernAppManagementConfiguration +// Windows10EnterpriseModernAppManagementConfiguration windows10 Enterprise Modern App Management Configuration. type Windows10EnterpriseModernAppManagementConfiguration struct { DeviceConfiguration } -// NewWindows10EnterpriseModernAppManagementConfiguration instantiates a new Windows10EnterpriseModernAppManagementConfiguration and sets the default values. +// NewWindows10EnterpriseModernAppManagementConfiguration instantiates a new windows10EnterpriseModernAppManagementConfiguration and sets the default values. func NewWindows10EnterpriseModernAppManagementConfiguration()(*Windows10EnterpriseModernAppManagementConfiguration) { m := &Windows10EnterpriseModernAppManagementConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows10_general_configuration.go b/models/windows10_general_configuration.go index fd8cfda34d2..5cfe843da64 100644 --- a/models/windows10_general_configuration.go +++ b/models/windows10_general_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10GeneralConfiguration +// Windows10GeneralConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the windows10GeneralConfiguration resource. type Windows10GeneralConfiguration struct { DeviceConfiguration } -// NewWindows10GeneralConfiguration instantiates a new Windows10GeneralConfiguration and sets the default values. +// NewWindows10GeneralConfiguration instantiates a new windows10GeneralConfiguration and sets the default values. func NewWindows10GeneralConfiguration()(*Windows10GeneralConfiguration) { m := &Windows10GeneralConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows10_imported_p_f_x_certificate_profile.go b/models/windows10_imported_p_f_x_certificate_profile.go index 41e9cadd7a6..82d4032c510 100644 --- a/models/windows10_imported_p_f_x_certificate_profile.go +++ b/models/windows10_imported_p_f_x_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10ImportedPFXCertificateProfile +// Windows10ImportedPFXCertificateProfile windows 10 Desktop and Mobile PFX Import certificate profile type Windows10ImportedPFXCertificateProfile struct { WindowsCertificateProfileBase } -// NewWindows10ImportedPFXCertificateProfile instantiates a new Windows10ImportedPFXCertificateProfile and sets the default values. +// NewWindows10ImportedPFXCertificateProfile instantiates a new windows10ImportedPFXCertificateProfile and sets the default values. func NewWindows10ImportedPFXCertificateProfile()(*Windows10ImportedPFXCertificateProfile) { m := &Windows10ImportedPFXCertificateProfile{ WindowsCertificateProfileBase: *NewWindowsCertificateProfileBase(), diff --git a/models/windows10_mobile_compliance_policy.go b/models/windows10_mobile_compliance_policy.go index ffb883e745b..f823b732a37 100644 --- a/models/windows10_mobile_compliance_policy.go +++ b/models/windows10_mobile_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10MobileCompliancePolicy +// Windows10MobileCompliancePolicy this class contains compliance settings for Windows 10 Mobile. type Windows10MobileCompliancePolicy struct { DeviceCompliancePolicy } -// NewWindows10MobileCompliancePolicy instantiates a new Windows10MobileCompliancePolicy and sets the default values. +// NewWindows10MobileCompliancePolicy instantiates a new windows10MobileCompliancePolicy and sets the default values. func NewWindows10MobileCompliancePolicy()(*Windows10MobileCompliancePolicy) { m := &Windows10MobileCompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/windows10_network_boundary_configuration.go b/models/windows10_network_boundary_configuration.go index 105b38c8bee..3f72096e776 100644 --- a/models/windows10_network_boundary_configuration.go +++ b/models/windows10_network_boundary_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10NetworkBoundaryConfiguration +// Windows10NetworkBoundaryConfiguration windows10 Network Boundary Configuration type Windows10NetworkBoundaryConfiguration struct { DeviceConfiguration } -// NewWindows10NetworkBoundaryConfiguration instantiates a new Windows10NetworkBoundaryConfiguration and sets the default values. +// NewWindows10NetworkBoundaryConfiguration instantiates a new windows10NetworkBoundaryConfiguration and sets the default values. func NewWindows10NetworkBoundaryConfiguration()(*Windows10NetworkBoundaryConfiguration) { m := &Windows10NetworkBoundaryConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows10_p_f_x_import_certificate_profile.go b/models/windows10_p_f_x_import_certificate_profile.go index ff9968703b4..bf5c7180411 100644 --- a/models/windows10_p_f_x_import_certificate_profile.go +++ b/models/windows10_p_f_x_import_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10PFXImportCertificateProfile +// Windows10PFXImportCertificateProfile deprecated type Windows10PFXImportCertificateProfile struct { DeviceConfiguration } -// NewWindows10PFXImportCertificateProfile instantiates a new Windows10PFXImportCertificateProfile and sets the default values. +// NewWindows10PFXImportCertificateProfile instantiates a new windows10PFXImportCertificateProfile and sets the default values. func NewWindows10PFXImportCertificateProfile()(*Windows10PFXImportCertificateProfile) { m := &Windows10PFXImportCertificateProfile{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows10_pkcs_certificate_profile.go b/models/windows10_pkcs_certificate_profile.go index 55616a9de31..bc429cbbe1f 100644 --- a/models/windows10_pkcs_certificate_profile.go +++ b/models/windows10_pkcs_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10PkcsCertificateProfile +// Windows10PkcsCertificateProfile windows 10 Desktop and Mobile PKCS certificate profile type Windows10PkcsCertificateProfile struct { Windows10CertificateProfileBase } -// NewWindows10PkcsCertificateProfile instantiates a new Windows10PkcsCertificateProfile and sets the default values. +// NewWindows10PkcsCertificateProfile instantiates a new windows10PkcsCertificateProfile and sets the default values. func NewWindows10PkcsCertificateProfile()(*Windows10PkcsCertificateProfile) { m := &Windows10PkcsCertificateProfile{ Windows10CertificateProfileBase: *NewWindows10CertificateProfileBase(), diff --git a/models/windows10_secure_assessment_configuration.go b/models/windows10_secure_assessment_configuration.go index da1dc05ecff..ee0de5b88aa 100644 --- a/models/windows10_secure_assessment_configuration.go +++ b/models/windows10_secure_assessment_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10SecureAssessmentConfiguration +// Windows10SecureAssessmentConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the secureAssessment resource. type Windows10SecureAssessmentConfiguration struct { DeviceConfiguration } -// NewWindows10SecureAssessmentConfiguration instantiates a new Windows10SecureAssessmentConfiguration and sets the default values. +// NewWindows10SecureAssessmentConfiguration instantiates a new windows10SecureAssessmentConfiguration and sets the default values. func NewWindows10SecureAssessmentConfiguration()(*Windows10SecureAssessmentConfiguration) { m := &Windows10SecureAssessmentConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows10_team_general_configuration.go b/models/windows10_team_general_configuration.go index dd53a222774..9fdffabbf95 100644 --- a/models/windows10_team_general_configuration.go +++ b/models/windows10_team_general_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10TeamGeneralConfiguration +// Windows10TeamGeneralConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the windows10TeamGeneralConfiguration resource. type Windows10TeamGeneralConfiguration struct { DeviceConfiguration } -// NewWindows10TeamGeneralConfiguration instantiates a new Windows10TeamGeneralConfiguration and sets the default values. +// NewWindows10TeamGeneralConfiguration instantiates a new windows10TeamGeneralConfiguration and sets the default values. func NewWindows10TeamGeneralConfiguration()(*Windows10TeamGeneralConfiguration) { m := &Windows10TeamGeneralConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows10_vpn_configuration.go b/models/windows10_vpn_configuration.go index 9499b03af00..ed35b3ab9c3 100644 --- a/models/windows10_vpn_configuration.go +++ b/models/windows10_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10VpnConfiguration +// Windows10VpnConfiguration by providing the configurations in this profile you can instruct the Windows 10 device (desktop or mobile) to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. type Windows10VpnConfiguration struct { WindowsVpnConfiguration } -// NewWindows10VpnConfiguration instantiates a new Windows10VpnConfiguration and sets the default values. +// NewWindows10VpnConfiguration instantiates a new windows10VpnConfiguration and sets the default values. func NewWindows10VpnConfiguration()(*Windows10VpnConfiguration) { m := &Windows10VpnConfiguration{ WindowsVpnConfiguration: *NewWindowsVpnConfiguration(), diff --git a/models/windows10_vpn_proxy_server.go b/models/windows10_vpn_proxy_server.go index 842d100f66b..6b57e913b5e 100644 --- a/models/windows10_vpn_proxy_server.go +++ b/models/windows10_vpn_proxy_server.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10VpnProxyServer +// Windows10VpnProxyServer vPN Proxy Server. type Windows10VpnProxyServer struct { VpnProxyServer } -// NewWindows10VpnProxyServer instantiates a new Windows10VpnProxyServer and sets the default values. +// NewWindows10VpnProxyServer instantiates a new windows10VpnProxyServer and sets the default values. func NewWindows10VpnProxyServer()(*Windows10VpnProxyServer) { m := &Windows10VpnProxyServer{ VpnProxyServer: *NewVpnProxyServer(), @@ -45,8 +45,29 @@ func (m *Windows10VpnProxyServer) GetFieldDeserializers()(map[string]func(i878a8 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Windows10VpnProxyServer) 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 *Windows10VpnProxyServer) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.VpnProxyServer.Serialize(writer) @@ -59,6 +80,12 @@ func (m *Windows10VpnProxyServer) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetBypassProxyServerForLocalAddress sets the bypassProxyServerForLocalAddress property value. Bypass proxy server for local address. @@ -68,10 +95,19 @@ func (m *Windows10VpnProxyServer) SetBypassProxyServerForLocalAddress(value *boo panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Windows10VpnProxyServer) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // Windows10VpnProxyServerable type Windows10VpnProxyServerable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable VpnProxyServerable GetBypassProxyServerForLocalAddress()(*bool) + GetOdataType()(*string) SetBypassProxyServerForLocalAddress(value *bool)() + SetOdataType(value *string)() } diff --git a/models/windows10_x_certificate_profile.go b/models/windows10_x_certificate_profile.go index 79fe02b00fd..b1603467aed 100644 --- a/models/windows10_x_certificate_profile.go +++ b/models/windows10_x_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10XCertificateProfile +// Windows10XCertificateProfile base Profile Type for Authentication Certificates (SCEP or PFX Create) type Windows10XCertificateProfile struct { DeviceManagementResourceAccessProfileBase } -// NewWindows10XCertificateProfile instantiates a new Windows10XCertificateProfile and sets the default values. +// NewWindows10XCertificateProfile instantiates a new windows10XCertificateProfile and sets the default values. func NewWindows10XCertificateProfile()(*Windows10XCertificateProfile) { m := &Windows10XCertificateProfile{ DeviceManagementResourceAccessProfileBase: *NewDeviceManagementResourceAccessProfileBase(), diff --git a/models/windows10_x_s_c_e_p_certificate_profile.go b/models/windows10_x_s_c_e_p_certificate_profile.go index 48510ca39ba..4694810143b 100644 --- a/models/windows10_x_s_c_e_p_certificate_profile.go +++ b/models/windows10_x_s_c_e_p_certificate_profile.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10XSCEPCertificateProfile +// Windows10XSCEPCertificateProfile windows X SCEP Certificate configuration profile type Windows10XSCEPCertificateProfile struct { Windows10XCertificateProfile } -// NewWindows10XSCEPCertificateProfile instantiates a new Windows10XSCEPCertificateProfile and sets the default values. +// NewWindows10XSCEPCertificateProfile instantiates a new windows10XSCEPCertificateProfile and sets the default values. func NewWindows10XSCEPCertificateProfile()(*Windows10XSCEPCertificateProfile) { m := &Windows10XSCEPCertificateProfile{ Windows10XCertificateProfile: *NewWindows10XCertificateProfile(), diff --git a/models/windows10_x_trusted_root_certificate.go b/models/windows10_x_trusted_root_certificate.go index af2608c862e..cca0a2e2510 100644 --- a/models/windows10_x_trusted_root_certificate.go +++ b/models/windows10_x_trusted_root_certificate.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10XTrustedRootCertificate +// Windows10XTrustedRootCertificate windows X Trusted Root Certificate configuration profile type Windows10XTrustedRootCertificate struct { DeviceManagementResourceAccessProfileBase } -// NewWindows10XTrustedRootCertificate instantiates a new Windows10XTrustedRootCertificate and sets the default values. +// NewWindows10XTrustedRootCertificate instantiates a new windows10XTrustedRootCertificate and sets the default values. func NewWindows10XTrustedRootCertificate()(*Windows10XTrustedRootCertificate) { m := &Windows10XTrustedRootCertificate{ DeviceManagementResourceAccessProfileBase: *NewDeviceManagementResourceAccessProfileBase(), diff --git a/models/windows10_x_vpn_configuration.go b/models/windows10_x_vpn_configuration.go index f7d52f0fe71..bd496c280e8 100644 --- a/models/windows10_x_vpn_configuration.go +++ b/models/windows10_x_vpn_configuration.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10XVpnConfiguration +// Windows10XVpnConfiguration windows X VPN configuration profile type Windows10XVpnConfiguration struct { DeviceManagementResourceAccessProfileBase } -// NewWindows10XVpnConfiguration instantiates a new Windows10XVpnConfiguration and sets the default values. +// NewWindows10XVpnConfiguration instantiates a new windows10XVpnConfiguration and sets the default values. func NewWindows10XVpnConfiguration()(*Windows10XVpnConfiguration) { m := &Windows10XVpnConfiguration{ DeviceManagementResourceAccessProfileBase: *NewDeviceManagementResourceAccessProfileBase(), diff --git a/models/windows10_x_wifi_configuration.go b/models/windows10_x_wifi_configuration.go index a8007510874..4ac925613b0 100644 --- a/models/windows10_x_wifi_configuration.go +++ b/models/windows10_x_wifi_configuration.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows10XWifiConfiguration +// Windows10XWifiConfiguration windows X WifiXml configuration profile type Windows10XWifiConfiguration struct { DeviceManagementResourceAccessProfileBase } -// NewWindows10XWifiConfiguration instantiates a new Windows10XWifiConfiguration and sets the default values. +// NewWindows10XWifiConfiguration instantiates a new windows10XWifiConfiguration and sets the default values. func NewWindows10XWifiConfiguration()(*Windows10XWifiConfiguration) { m := &Windows10XWifiConfiguration{ DeviceManagementResourceAccessProfileBase: *NewDeviceManagementResourceAccessProfileBase(), diff --git a/models/windows81_certificate_profile_base.go b/models/windows81_certificate_profile_base.go index 1866dc08176..a1825486f1f 100644 --- a/models/windows81_certificate_profile_base.go +++ b/models/windows81_certificate_profile_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows81CertificateProfileBase +// Windows81CertificateProfileBase device Configuration. type Windows81CertificateProfileBase struct { WindowsCertificateProfileBase } -// NewWindows81CertificateProfileBase instantiates a new Windows81CertificateProfileBase and sets the default values. +// NewWindows81CertificateProfileBase instantiates a new windows81CertificateProfileBase and sets the default values. func NewWindows81CertificateProfileBase()(*Windows81CertificateProfileBase) { m := &Windows81CertificateProfileBase{ WindowsCertificateProfileBase: *NewWindowsCertificateProfileBase(), diff --git a/models/windows81_compliance_policy.go b/models/windows81_compliance_policy.go index 105d8aa187d..5df6fb80c90 100644 --- a/models/windows81_compliance_policy.go +++ b/models/windows81_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows81CompliancePolicy +// Windows81CompliancePolicy this class contains compliance settings for Windows 8.1. type Windows81CompliancePolicy struct { DeviceCompliancePolicy } -// NewWindows81CompliancePolicy instantiates a new Windows81CompliancePolicy and sets the default values. +// NewWindows81CompliancePolicy instantiates a new windows81CompliancePolicy and sets the default values. func NewWindows81CompliancePolicy()(*Windows81CompliancePolicy) { m := &Windows81CompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/windows81_general_configuration.go b/models/windows81_general_configuration.go index 06d9290e983..143d297e4e7 100644 --- a/models/windows81_general_configuration.go +++ b/models/windows81_general_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows81GeneralConfiguration +// Windows81GeneralConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the windows81GeneralConfiguration resource. type Windows81GeneralConfiguration struct { DeviceConfiguration } -// NewWindows81GeneralConfiguration instantiates a new Windows81GeneralConfiguration and sets the default values. +// NewWindows81GeneralConfiguration instantiates a new windows81GeneralConfiguration and sets the default values. func NewWindows81GeneralConfiguration()(*Windows81GeneralConfiguration) { m := &Windows81GeneralConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows81_s_c_e_p_certificate_profile.go b/models/windows81_s_c_e_p_certificate_profile.go index 7866037206d..35ffb390031 100644 --- a/models/windows81_s_c_e_p_certificate_profile.go +++ b/models/windows81_s_c_e_p_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows81SCEPCertificateProfile +// Windows81SCEPCertificateProfile windows 8.1+ SCEP certificate profile type Windows81SCEPCertificateProfile struct { Windows81CertificateProfileBase } -// NewWindows81SCEPCertificateProfile instantiates a new Windows81SCEPCertificateProfile and sets the default values. +// NewWindows81SCEPCertificateProfile instantiates a new windows81SCEPCertificateProfile and sets the default values. func NewWindows81SCEPCertificateProfile()(*Windows81SCEPCertificateProfile) { m := &Windows81SCEPCertificateProfile{ Windows81CertificateProfileBase: *NewWindows81CertificateProfileBase(), diff --git a/models/windows81_trusted_root_certificate.go b/models/windows81_trusted_root_certificate.go index 1ccb9469143..5cd5f031980 100644 --- a/models/windows81_trusted_root_certificate.go +++ b/models/windows81_trusted_root_certificate.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows81TrustedRootCertificate +// Windows81TrustedRootCertificate windows 8.1 Trusted Certificate configuration profile type Windows81TrustedRootCertificate struct { DeviceConfiguration } diff --git a/models/windows81_vpn_configuration.go b/models/windows81_vpn_configuration.go index 6b248381f95..02818b516a1 100644 --- a/models/windows81_vpn_configuration.go +++ b/models/windows81_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows81VpnConfiguration +// Windows81VpnConfiguration by providing the configurations in this profile you can instruct the Windows 8.1 (and later) devices to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. type Windows81VpnConfiguration struct { WindowsVpnConfiguration } -// NewWindows81VpnConfiguration instantiates a new Windows81VpnConfiguration and sets the default values. +// NewWindows81VpnConfiguration instantiates a new windows81VpnConfiguration and sets the default values. func NewWindows81VpnConfiguration()(*Windows81VpnConfiguration) { m := &Windows81VpnConfiguration{ WindowsVpnConfiguration: *NewWindowsVpnConfiguration(), diff --git a/models/windows81_vpn_proxy_server.go b/models/windows81_vpn_proxy_server.go index 2710fbfab04..5f50359da75 100644 --- a/models/windows81_vpn_proxy_server.go +++ b/models/windows81_vpn_proxy_server.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows81VpnProxyServer +// Windows81VpnProxyServer vPN Proxy Server. type Windows81VpnProxyServer struct { VpnProxyServer + // The OdataType property + OdataType *string } -// NewWindows81VpnProxyServer instantiates a new Windows81VpnProxyServer and sets the default values. +// NewWindows81VpnProxyServer instantiates a new windows81VpnProxyServer and sets the default values. func NewWindows81VpnProxyServer()(*Windows81VpnProxyServer) { m := &Windows81VpnProxyServer{ VpnProxyServer: *NewVpnProxyServer(), diff --git a/models/windows81_wifi_import_configuration.go b/models/windows81_wifi_import_configuration.go index 49db1d65480..a75765de9f5 100644 --- a/models/windows81_wifi_import_configuration.go +++ b/models/windows81_wifi_import_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// Windows81WifiImportConfiguration +// Windows81WifiImportConfiguration windows 8.1+ Wi-Fi import configuration. By configuring this profile you can instruct Windows 8.1 (and later) devices to connect to desired Wi-Fi endpoint. Connect a Windows 8.1 device to the desired Wi-Fi network and extract the XML from that device to later embed into this Wi-Fi profile. type Windows81WifiImportConfiguration struct { DeviceConfiguration } -// NewWindows81WifiImportConfiguration instantiates a new Windows81WifiImportConfiguration and sets the default values. +// NewWindows81WifiImportConfiguration instantiates a new windows81WifiImportConfiguration and sets the default values. func NewWindows81WifiImportConfiguration()(*Windows81WifiImportConfiguration) { m := &Windows81WifiImportConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_app_identifier.go b/models/windows_app_identifier.go index a2f1596394c..9959893a27f 100644 --- a/models/windows_app_identifier.go +++ b/models/windows_app_identifier.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsAppIdentifier +// WindowsAppIdentifier the identifier for a Windows app. type WindowsAppIdentifier struct { MobileAppIdentifier } -// NewWindowsAppIdentifier instantiates a new WindowsAppIdentifier and sets the default values. +// NewWindowsAppIdentifier instantiates a new windowsAppIdentifier and sets the default values. func NewWindowsAppIdentifier()(*WindowsAppIdentifier) { m := &WindowsAppIdentifier{ MobileAppIdentifier: *NewMobileAppIdentifier(), @@ -24,6 +24,16 @@ func CreateWindowsAppIdentifierFromDiscriminatorValue(parseNode i878a80d2330e89d // GetFieldDeserializers the deserialization information for the current model func (m *WindowsAppIdentifier) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MobileAppIdentifier.GetFieldDeserializers() + 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["windowsAppId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -36,6 +46,17 @@ func (m *WindowsAppIdentifier) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WindowsAppIdentifier) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetWindowsAppId gets the windowsAppId property value. The identifier for an app, as specified in the app store. func (m *WindowsAppIdentifier) GetWindowsAppId()(*string) { val, err := m.GetBackingStore().Get("windowsAppId") @@ -53,6 +74,12 @@ func (m *WindowsAppIdentifier) Serialize(writer i878a80d2330e89d26896388a3f487ee if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("windowsAppId", m.GetWindowsAppId()) if err != nil { @@ -61,6 +88,13 @@ func (m *WindowsAppIdentifier) Serialize(writer i878a80d2330e89d26896388a3f487ee } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WindowsAppIdentifier) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetWindowsAppId sets the windowsAppId property value. The identifier for an app, as specified in the app store. func (m *WindowsAppIdentifier) SetWindowsAppId(value *string)() { err := m.GetBackingStore().Set("windowsAppId", value) @@ -72,6 +106,8 @@ func (m *WindowsAppIdentifier) SetWindowsAppId(value *string)() { type WindowsAppIdentifierable interface { MobileAppIdentifierable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetWindowsAppId()(*string) + SetOdataType(value *string)() SetWindowsAppId(value *string)() } diff --git a/models/windows_app_x.go b/models/windows_app_x.go index 815f3778f68..c3109db1bb8 100644 --- a/models/windows_app_x.go +++ b/models/windows_app_x.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsAppX +// WindowsAppX contains properties and inherited properties for Windows AppX Line Of Business apps. type WindowsAppX struct { MobileLobApp } -// NewWindowsAppX instantiates a new WindowsAppX and sets the default values. +// NewWindowsAppX instantiates a new windowsAppX and sets the default values. func NewWindowsAppX()(*WindowsAppX) { m := &WindowsAppX{ MobileLobApp: *NewMobileLobApp(), diff --git a/models/windows_app_x_app_assignment_settings.go b/models/windows_app_x_app_assignment_settings.go index 45ae16041c7..ccd9b16f9fb 100644 --- a/models/windows_app_x_app_assignment_settings.go +++ b/models/windows_app_x_app_assignment_settings.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsAppXAppAssignmentSettings +// WindowsAppXAppAssignmentSettings contains properties used when assigning a Windows AppX mobile app to a group. type WindowsAppXAppAssignmentSettings struct { MobileAppAssignmentSettings } -// NewWindowsAppXAppAssignmentSettings instantiates a new WindowsAppXAppAssignmentSettings and sets the default values. +// NewWindowsAppXAppAssignmentSettings instantiates a new windowsAppXAppAssignmentSettings and sets the default values. func NewWindowsAppXAppAssignmentSettings()(*WindowsAppXAppAssignmentSettings) { m := &WindowsAppXAppAssignmentSettings{ MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), @@ -24,6 +24,16 @@ func CreateWindowsAppXAppAssignmentSettingsFromDiscriminatorValue(parseNode i878 // GetFieldDeserializers the deserialization information for the current model func (m *WindowsAppXAppAssignmentSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MobileAppAssignmentSettings.GetFieldDeserializers() + 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["useDeviceContext"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -36,6 +46,17 @@ func (m *WindowsAppXAppAssignmentSettings) GetFieldDeserializers()(map[string]fu } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WindowsAppXAppAssignmentSettings) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUseDeviceContext gets the useDeviceContext property value. When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. func (m *WindowsAppXAppAssignmentSettings) GetUseDeviceContext()(*bool) { val, err := m.GetBackingStore().Get("useDeviceContext") @@ -53,6 +74,12 @@ func (m *WindowsAppXAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("useDeviceContext", m.GetUseDeviceContext()) if err != nil { @@ -61,6 +88,13 @@ func (m *WindowsAppXAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WindowsAppXAppAssignmentSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetUseDeviceContext sets the useDeviceContext property value. When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. func (m *WindowsAppXAppAssignmentSettings) SetUseDeviceContext(value *bool)() { err := m.GetBackingStore().Set("useDeviceContext", value) @@ -72,6 +106,8 @@ func (m *WindowsAppXAppAssignmentSettings) SetUseDeviceContext(value *bool)() { type WindowsAppXAppAssignmentSettingsable interface { MobileAppAssignmentSettingsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUseDeviceContext()(*bool) + SetOdataType(value *string)() SetUseDeviceContext(value *bool)() } diff --git a/models/windows_assigned_access_profile.go b/models/windows_assigned_access_profile.go index 4298c7557c3..0e13d9d615b 100644 --- a/models/windows_assigned_access_profile.go +++ b/models/windows_assigned_access_profile.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsAssignedAccessProfile +// WindowsAssignedAccessProfile assigned Access profile for Windows. type WindowsAssignedAccessProfile struct { Entity + // The OdataType property + OdataType *string } -// NewWindowsAssignedAccessProfile instantiates a new WindowsAssignedAccessProfile and sets the default values. +// NewWindowsAssignedAccessProfile instantiates a new windowsAssignedAccessProfile and sets the default values. func NewWindowsAssignedAccessProfile()(*WindowsAssignedAccessProfile) { m := &WindowsAssignedAccessProfile{ Entity: *NewEntity(), diff --git a/models/windows_autopilot_deployment_profile.go b/models/windows_autopilot_deployment_profile.go index 893215c243c..3c8b4fbd2a7 100644 --- a/models/windows_autopilot_deployment_profile.go +++ b/models/windows_autopilot_deployment_profile.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsAutopilotDeploymentProfile +// WindowsAutopilotDeploymentProfile windows Autopilot Deployment Profile type WindowsAutopilotDeploymentProfile struct { Entity + // The OdataType property + OdataType *string } -// NewWindowsAutopilotDeploymentProfile instantiates a new WindowsAutopilotDeploymentProfile and sets the default values. +// NewWindowsAutopilotDeploymentProfile instantiates a new windowsAutopilotDeploymentProfile and sets the default values. func NewWindowsAutopilotDeploymentProfile()(*WindowsAutopilotDeploymentProfile) { m := &WindowsAutopilotDeploymentProfile{ Entity: *NewEntity(), diff --git a/models/windows_autopilot_deployment_profile_assignment.go b/models/windows_autopilot_deployment_profile_assignment.go index 247217eb5f4..f84aa4ac685 100644 --- a/models/windows_autopilot_deployment_profile_assignment.go +++ b/models/windows_autopilot_deployment_profile_assignment.go @@ -7,6 +7,8 @@ import ( // WindowsAutopilotDeploymentProfileAssignment an assignment of a Windows Autopilot deployment profile to an AAD group. type WindowsAutopilotDeploymentProfileAssignment struct { Entity + // The OdataType property + OdataType *string } // NewWindowsAutopilotDeploymentProfileAssignment instantiates a new windowsAutopilotDeploymentProfileAssignment and sets the default values. func NewWindowsAutopilotDeploymentProfileAssignment()(*WindowsAutopilotDeploymentProfileAssignment) { diff --git a/models/windows_autopilot_deployment_profile_assignment_collection_response.go b/models/windows_autopilot_deployment_profile_assignment_collection_response.go index 4c732e5762a..4fa7829047f 100644 --- a/models/windows_autopilot_deployment_profile_assignment_collection_response.go +++ b/models/windows_autopilot_deployment_profile_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsAutopilotDeploymentProfileAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsAutopilotDeploymentProfileAssignmentCollectionResponse instantiates a new WindowsAutopilotDeploymentProfileAssignmentCollectionResponse and sets the default values. +// NewWindowsAutopilotDeploymentProfileAssignmentCollectionResponse instantiates a new windowsAutopilotDeploymentProfileAssignmentCollectionResponse and sets the default values. func NewWindowsAutopilotDeploymentProfileAssignmentCollectionResponse()(*WindowsAutopilotDeploymentProfileAssignmentCollectionResponse) { m := &WindowsAutopilotDeploymentProfileAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_autopilot_deployment_profile_collection_response.go b/models/windows_autopilot_deployment_profile_collection_response.go index 4ada3f3fae2..573a3d138ee 100644 --- a/models/windows_autopilot_deployment_profile_collection_response.go +++ b/models/windows_autopilot_deployment_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsAutopilotDeploymentProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsAutopilotDeploymentProfileCollectionResponse instantiates a new WindowsAutopilotDeploymentProfileCollectionResponse and sets the default values. +// NewWindowsAutopilotDeploymentProfileCollectionResponse instantiates a new windowsAutopilotDeploymentProfileCollectionResponse and sets the default values. func NewWindowsAutopilotDeploymentProfileCollectionResponse()(*WindowsAutopilotDeploymentProfileCollectionResponse) { m := &WindowsAutopilotDeploymentProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_autopilot_deployment_profile_policy_set_item.go b/models/windows_autopilot_deployment_profile_policy_set_item.go index 312dc9021e2..da1c5f11db3 100644 --- a/models/windows_autopilot_deployment_profile_policy_set_item.go +++ b/models/windows_autopilot_deployment_profile_policy_set_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsAutopilotDeploymentProfilePolicySetItem +// WindowsAutopilotDeploymentProfilePolicySetItem a class containing the properties used for windows autopilot deployment profile PolicySetItem. type WindowsAutopilotDeploymentProfilePolicySetItem struct { PolicySetItem } -// NewWindowsAutopilotDeploymentProfilePolicySetItem instantiates a new WindowsAutopilotDeploymentProfilePolicySetItem and sets the default values. +// NewWindowsAutopilotDeploymentProfilePolicySetItem instantiates a new windowsAutopilotDeploymentProfilePolicySetItem and sets the default values. func NewWindowsAutopilotDeploymentProfilePolicySetItem()(*WindowsAutopilotDeploymentProfilePolicySetItem) { m := &WindowsAutopilotDeploymentProfilePolicySetItem{ PolicySetItem: *NewPolicySetItem(), diff --git a/models/windows_autopilot_device_identity.go b/models/windows_autopilot_device_identity.go index 596eb2fe016..d3601569aa2 100644 --- a/models/windows_autopilot_device_identity.go +++ b/models/windows_autopilot_device_identity.go @@ -8,6 +8,8 @@ import ( // WindowsAutopilotDeviceIdentity the windowsAutopilotDeviceIdentity resource represents a Windows Autopilot Device. type WindowsAutopilotDeviceIdentity struct { Entity + // The OdataType property + OdataType *string } // NewWindowsAutopilotDeviceIdentity instantiates a new windowsAutopilotDeviceIdentity and sets the default values. func NewWindowsAutopilotDeviceIdentity()(*WindowsAutopilotDeviceIdentity) { diff --git a/models/windows_autopilot_device_identity_collection_response.go b/models/windows_autopilot_device_identity_collection_response.go index 4f688940fd7..58cb43e142c 100644 --- a/models/windows_autopilot_device_identity_collection_response.go +++ b/models/windows_autopilot_device_identity_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsAutopilotDeviceIdentityCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsAutopilotDeviceIdentityCollectionResponse instantiates a new WindowsAutopilotDeviceIdentityCollectionResponse and sets the default values. +// NewWindowsAutopilotDeviceIdentityCollectionResponse instantiates a new windowsAutopilotDeviceIdentityCollectionResponse and sets the default values. func NewWindowsAutopilotDeviceIdentityCollectionResponse()(*WindowsAutopilotDeviceIdentityCollectionResponse) { m := &WindowsAutopilotDeviceIdentityCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_autopilot_settings.go b/models/windows_autopilot_settings.go index 26906aa6f17..b89481d756e 100644 --- a/models/windows_autopilot_settings.go +++ b/models/windows_autopilot_settings.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsAutopilotSettings +// WindowsAutopilotSettings the windowsAutopilotSettings resource represents a Windows Autopilot Account to sync data with Windows device data sync service. type WindowsAutopilotSettings struct { Entity + // The OdataType property + OdataType *string } -// NewWindowsAutopilotSettings instantiates a new WindowsAutopilotSettings and sets the default values. +// NewWindowsAutopilotSettings instantiates a new windowsAutopilotSettings and sets the default values. func NewWindowsAutopilotSettings()(*WindowsAutopilotSettings) { m := &WindowsAutopilotSettings{ Entity: *NewEntity(), diff --git a/models/windows_certificate_profile_base.go b/models/windows_certificate_profile_base.go index 9214a17ddf7..4382f51ad78 100644 --- a/models/windows_certificate_profile_base.go +++ b/models/windows_certificate_profile_base.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsCertificateProfileBase +// WindowsCertificateProfileBase device Configuration. type WindowsCertificateProfileBase struct { DeviceConfiguration } -// NewWindowsCertificateProfileBase instantiates a new WindowsCertificateProfileBase and sets the default values. +// NewWindowsCertificateProfileBase instantiates a new windowsCertificateProfileBase and sets the default values. func NewWindowsCertificateProfileBase()(*WindowsCertificateProfileBase) { m := &WindowsCertificateProfileBase{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_defender_advanced_threat_protection_configuration.go b/models/windows_defender_advanced_threat_protection_configuration.go index f8c02837742..7756c2ebe09 100644 --- a/models/windows_defender_advanced_threat_protection_configuration.go +++ b/models/windows_defender_advanced_threat_protection_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsDefenderAdvancedThreatProtectionConfiguration +// WindowsDefenderAdvancedThreatProtectionConfiguration windows Defender AdvancedThreatProtection Configuration. type WindowsDefenderAdvancedThreatProtectionConfiguration struct { DeviceConfiguration } -// NewWindowsDefenderAdvancedThreatProtectionConfiguration instantiates a new WindowsDefenderAdvancedThreatProtectionConfiguration and sets the default values. +// NewWindowsDefenderAdvancedThreatProtectionConfiguration instantiates a new windowsDefenderAdvancedThreatProtectionConfiguration and sets the default values. func NewWindowsDefenderAdvancedThreatProtectionConfiguration()(*WindowsDefenderAdvancedThreatProtectionConfiguration) { m := &WindowsDefenderAdvancedThreatProtectionConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_defender_application_control_supplemental_policy.go b/models/windows_defender_application_control_supplemental_policy.go index dece6bd6cc1..88df7833c20 100644 --- a/models/windows_defender_application_control_supplemental_policy.go +++ b/models/windows_defender_application_control_supplemental_policy.go @@ -8,8 +8,10 @@ import ( // WindowsDefenderApplicationControlSupplementalPolicy type WindowsDefenderApplicationControlSupplementalPolicy struct { Entity + // The OdataType property + OdataType *string } -// NewWindowsDefenderApplicationControlSupplementalPolicy instantiates a new WindowsDefenderApplicationControlSupplementalPolicy and sets the default values. +// NewWindowsDefenderApplicationControlSupplementalPolicy instantiates a new windowsDefenderApplicationControlSupplementalPolicy and sets the default values. func NewWindowsDefenderApplicationControlSupplementalPolicy()(*WindowsDefenderApplicationControlSupplementalPolicy) { m := &WindowsDefenderApplicationControlSupplementalPolicy{ Entity: *NewEntity(), @@ -20,7 +22,7 @@ func NewWindowsDefenderApplicationControlSupplementalPolicy()(*WindowsDefenderAp func CreateWindowsDefenderApplicationControlSupplementalPolicyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWindowsDefenderApplicationControlSupplementalPolicy(), nil } -// GetAssignments gets the assignments property value. The associated group assignments for this WindowsDefenderApplicationControl supplemental policy. +// GetAssignments gets the assignments property value. The associated group assignments for the Windows Defender Application Control Supplemental Policy. func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetAssignments()([]WindowsDefenderApplicationControlSupplementalPolicyAssignmentable) { val, err := m.GetBackingStore().Get("assignments") if err != nil { @@ -31,7 +33,7 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetAssignments()([ } return nil } -// GetContent gets the content property value. The WindowsDefenderApplicationControl supplemental policy content in byte array format. +// GetContent gets the content property value. Indicates the content of the Windows Defender Application Control Supplemental Policy in byte array format. func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetContent()([]byte) { val, err := m.GetBackingStore().Get("content") if err != nil { @@ -42,7 +44,7 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetContent()([]byt } return nil } -// GetContentFileName gets the contentFileName property value. The WindowsDefenderApplicationControl supplemental policy content's file name. +// GetContentFileName gets the contentFileName property value. Indicates the file name associated with the content of the Windows Defender Application Control Supplemental Policy. func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetContentFileName()(*string) { val, err := m.GetBackingStore().Get("contentFileName") if err != nil { @@ -53,7 +55,7 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetContentFileName } return nil } -// GetCreationDateTime gets the creationDateTime property value. The date and time when the WindowsDefenderApplicationControl supplemental policy was uploaded. +// GetCreationDateTime gets the creationDateTime property value. Indicates the created date and time when the Windows Defender Application Control Supplemental Policy was uploaded. func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetCreationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("creationDateTime") if err != nil { @@ -75,7 +77,7 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetDeploySummary() } return nil } -// GetDescription gets the description property value. The description of WindowsDefenderApplicationControl supplemental policy. +// GetDescription gets the description property value. The description of the Windows Defender Application Control Supplemental Policy. func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") if err != nil { @@ -97,7 +99,7 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetDeviceStatuses( } return nil } -// GetDisplayName gets the displayName property value. The display name of WindowsDefenderApplicationControl supplemental policy. +// GetDisplayName gets the displayName property value. The display name of the Windows Defender Application Control Supplemental Policy. func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { @@ -241,7 +243,7 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetFieldDeserializ } return res } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The date and time when the WindowsDefenderApplicationControl supplemental policy was last modified. +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Indicates the last modified date and time of the Windows Defender Application Control Supplemental Policy. func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") if err != nil { @@ -252,7 +254,7 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetLastModifiedDat } return nil } -// GetRoleScopeTagIds gets the roleScopeTagIds property value. List of Scope Tags for this WindowsDefenderApplicationControl supplemental policy entity. +// GetRoleScopeTagIds gets the roleScopeTagIds property value. List of Scope Tags for the Windows Defender Application Control Supplemental Policy entity. func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetRoleScopeTagIds()([]string) { val, err := m.GetBackingStore().Get("roleScopeTagIds") if err != nil { @@ -263,7 +265,7 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetRoleScopeTagIds } return nil } -// GetVersion gets the version property value. The WindowsDefenderApplicationControl supplemental policy's version. +// GetVersion gets the version property value. Indicates the Windows Defender Application Control Supplemental Policy's version. func (m *WindowsDefenderApplicationControlSupplementalPolicy) GetVersion()(*string) { val, err := m.GetBackingStore().Get("version") if err != nil { @@ -360,28 +362,28 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicy) Serialize(writer i } return nil } -// SetAssignments sets the assignments property value. The associated group assignments for this WindowsDefenderApplicationControl supplemental policy. +// SetAssignments sets the assignments property value. The associated group assignments for the Windows Defender Application Control Supplemental Policy. func (m *WindowsDefenderApplicationControlSupplementalPolicy) SetAssignments(value []WindowsDefenderApplicationControlSupplementalPolicyAssignmentable)() { err := m.GetBackingStore().Set("assignments", value) if err != nil { panic(err) } } -// SetContent sets the content property value. The WindowsDefenderApplicationControl supplemental policy content in byte array format. +// SetContent sets the content property value. Indicates the content of the Windows Defender Application Control Supplemental Policy in byte array format. func (m *WindowsDefenderApplicationControlSupplementalPolicy) SetContent(value []byte)() { err := m.GetBackingStore().Set("content", value) if err != nil { panic(err) } } -// SetContentFileName sets the contentFileName property value. The WindowsDefenderApplicationControl supplemental policy content's file name. +// SetContentFileName sets the contentFileName property value. Indicates the file name associated with the content of the Windows Defender Application Control Supplemental Policy. func (m *WindowsDefenderApplicationControlSupplementalPolicy) SetContentFileName(value *string)() { err := m.GetBackingStore().Set("contentFileName", value) if err != nil { panic(err) } } -// SetCreationDateTime sets the creationDateTime property value. The date and time when the WindowsDefenderApplicationControl supplemental policy was uploaded. +// SetCreationDateTime sets the creationDateTime property value. Indicates the created date and time when the Windows Defender Application Control Supplemental Policy was uploaded. func (m *WindowsDefenderApplicationControlSupplementalPolicy) SetCreationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("creationDateTime", value) if err != nil { @@ -395,7 +397,7 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicy) SetDeploySummary(v panic(err) } } -// SetDescription sets the description property value. The description of WindowsDefenderApplicationControl supplemental policy. +// SetDescription sets the description property value. The description of the Windows Defender Application Control Supplemental Policy. func (m *WindowsDefenderApplicationControlSupplementalPolicy) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { @@ -409,28 +411,28 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicy) SetDeviceStatuses( panic(err) } } -// SetDisplayName sets the displayName property value. The display name of WindowsDefenderApplicationControl supplemental policy. +// SetDisplayName sets the displayName property value. The display name of the Windows Defender Application Control Supplemental Policy. func (m *WindowsDefenderApplicationControlSupplementalPolicy) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The date and time when the WindowsDefenderApplicationControl supplemental policy was last modified. +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Indicates the last modified date and time of the Windows Defender Application Control Supplemental Policy. func (m *WindowsDefenderApplicationControlSupplementalPolicy) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { panic(err) } } -// SetRoleScopeTagIds sets the roleScopeTagIds property value. List of Scope Tags for this WindowsDefenderApplicationControl supplemental policy entity. +// SetRoleScopeTagIds sets the roleScopeTagIds property value. List of Scope Tags for the Windows Defender Application Control Supplemental Policy entity. func (m *WindowsDefenderApplicationControlSupplementalPolicy) SetRoleScopeTagIds(value []string)() { err := m.GetBackingStore().Set("roleScopeTagIds", value) if err != nil { panic(err) } } -// SetVersion sets the version property value. The WindowsDefenderApplicationControl supplemental policy's version. +// SetVersion sets the version property value. Indicates the Windows Defender Application Control Supplemental Policy's version. func (m *WindowsDefenderApplicationControlSupplementalPolicy) SetVersion(value *string)() { err := m.GetBackingStore().Set("version", value) if err != nil { diff --git a/models/windows_defender_application_control_supplemental_policy_assignment.go b/models/windows_defender_application_control_supplemental_policy_assignment.go index 2815144b013..0482db41b8c 100644 --- a/models/windows_defender_application_control_supplemental_policy_assignment.go +++ b/models/windows_defender_application_control_supplemental_policy_assignment.go @@ -7,6 +7,8 @@ import ( // WindowsDefenderApplicationControlSupplementalPolicyAssignment a class containing the properties used for assignment of a WindowsDefenderApplicationControl supplemental policy to a group. type WindowsDefenderApplicationControlSupplementalPolicyAssignment struct { Entity + // The OdataType property + OdataType *string } // NewWindowsDefenderApplicationControlSupplementalPolicyAssignment instantiates a new windowsDefenderApplicationControlSupplementalPolicyAssignment and sets the default values. func NewWindowsDefenderApplicationControlSupplementalPolicyAssignment()(*WindowsDefenderApplicationControlSupplementalPolicyAssignment) { diff --git a/models/windows_defender_application_control_supplemental_policy_assignment_collection_response.go b/models/windows_defender_application_control_supplemental_policy_assignment_collection_response.go index e0781a2a98f..f0d0f128e63 100644 --- a/models/windows_defender_application_control_supplemental_policy_assignment_collection_response.go +++ b/models/windows_defender_application_control_supplemental_policy_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsDefenderApplicationControlSupplementalPolicyAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsDefenderApplicationControlSupplementalPolicyAssignmentCollectionResponse instantiates a new WindowsDefenderApplicationControlSupplementalPolicyAssignmentCollectionResponse and sets the default values. +// NewWindowsDefenderApplicationControlSupplementalPolicyAssignmentCollectionResponse instantiates a new windowsDefenderApplicationControlSupplementalPolicyAssignmentCollectionResponse and sets the default values. func NewWindowsDefenderApplicationControlSupplementalPolicyAssignmentCollectionResponse()(*WindowsDefenderApplicationControlSupplementalPolicyAssignmentCollectionResponse) { m := &WindowsDefenderApplicationControlSupplementalPolicyAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_defender_application_control_supplemental_policy_collection_response.go b/models/windows_defender_application_control_supplemental_policy_collection_response.go index dcf6f373fc8..069535ea961 100644 --- a/models/windows_defender_application_control_supplemental_policy_collection_response.go +++ b/models/windows_defender_application_control_supplemental_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsDefenderApplicationControlSupplementalPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsDefenderApplicationControlSupplementalPolicyCollectionResponse instantiates a new WindowsDefenderApplicationControlSupplementalPolicyCollectionResponse and sets the default values. +// NewWindowsDefenderApplicationControlSupplementalPolicyCollectionResponse instantiates a new windowsDefenderApplicationControlSupplementalPolicyCollectionResponse and sets the default values. func NewWindowsDefenderApplicationControlSupplementalPolicyCollectionResponse()(*WindowsDefenderApplicationControlSupplementalPolicyCollectionResponse) { m := &WindowsDefenderApplicationControlSupplementalPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_defender_application_control_supplemental_policy_deployment_status.go b/models/windows_defender_application_control_supplemental_policy_deployment_status.go index 2a788b11bc8..915799238d7 100644 --- a/models/windows_defender_application_control_supplemental_policy_deployment_status.go +++ b/models/windows_defender_application_control_supplemental_policy_deployment_status.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus +// WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus contains properties for the deployment state of a WindowsDefenderApplicationControl supplemental policy for a device. type WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus struct { Entity + // The OdataType property + OdataType *string } -// NewWindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus instantiates a new WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus and sets the default values. +// NewWindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus instantiates a new windowsDefenderApplicationControlSupplementalPolicyDeploymentStatus and sets the default values. func NewWindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus()(*WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus) { m := &WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus{ Entity: *NewEntity(), diff --git a/models/windows_defender_application_control_supplemental_policy_deployment_status_collection_response.go b/models/windows_defender_application_control_supplemental_policy_deployment_status_collection_response.go index fbcfb1248de..41396d9797e 100644 --- a/models/windows_defender_application_control_supplemental_policy_deployment_status_collection_response.go +++ b/models/windows_defender_application_control_supplemental_policy_deployment_status_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusCollectionResponse instantiates a new WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusCollectionResponse and sets the default values. +// NewWindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusCollectionResponse instantiates a new windowsDefenderApplicationControlSupplementalPolicyDeploymentStatusCollectionResponse and sets the default values. func NewWindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusCollectionResponse()(*WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusCollectionResponse) { m := &WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_defender_application_control_supplemental_policy_deployment_summary.go b/models/windows_defender_application_control_supplemental_policy_deployment_summary.go index d928ee1277a..deff7fb0e13 100644 --- a/models/windows_defender_application_control_supplemental_policy_deployment_summary.go +++ b/models/windows_defender_application_control_supplemental_policy_deployment_summary.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary +// WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary contains properties for the deployment summary of a WindowsDefenderApplicationControl supplemental policy. type WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary struct { Entity } @@ -64,8 +64,29 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary) G } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary) 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 *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -84,6 +105,12 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary) S return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDeployedDeviceCount sets the deployedDeviceCount property value. Number of Devices that have successfully deployed this WindowsDefenderApplicationControl supplemental policy. @@ -100,12 +127,21 @@ func (m *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary) S panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryable type WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDeployedDeviceCount()(*int32) GetFailedDeviceCount()(*int32) + GetOdataType()(*string) SetDeployedDeviceCount(value *int32)() SetFailedDeviceCount(value *int32)() + SetOdataType(value *string)() } diff --git a/models/windows_defender_scan_action_result.go b/models/windows_defender_scan_action_result.go index 000e687e401..1877d0f70ff 100644 --- a/models/windows_defender_scan_action_result.go +++ b/models/windows_defender_scan_action_result.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsDefenderScanActionResult +// WindowsDefenderScanActionResult windows Defender last scan result type WindowsDefenderScanActionResult struct { DeviceActionResult + // The OdataType property + OdataType *string } -// NewWindowsDefenderScanActionResult instantiates a new WindowsDefenderScanActionResult and sets the default values. +// NewWindowsDefenderScanActionResult instantiates a new windowsDefenderScanActionResult and sets the default values. func NewWindowsDefenderScanActionResult()(*WindowsDefenderScanActionResult) { m := &WindowsDefenderScanActionResult{ DeviceActionResult: *NewDeviceActionResult(), diff --git a/models/windows_delivery_optimization_configuration.go b/models/windows_delivery_optimization_configuration.go index c12435d7ef9..ee482e8f987 100644 --- a/models/windows_delivery_optimization_configuration.go +++ b/models/windows_delivery_optimization_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsDeliveryOptimizationConfiguration +// WindowsDeliveryOptimizationConfiguration windows Delivery Optimization configuration type WindowsDeliveryOptimizationConfiguration struct { DeviceConfiguration } -// NewWindowsDeliveryOptimizationConfiguration instantiates a new WindowsDeliveryOptimizationConfiguration and sets the default values. +// NewWindowsDeliveryOptimizationConfiguration instantiates a new windowsDeliveryOptimizationConfiguration and sets the default values. func NewWindowsDeliveryOptimizationConfiguration()(*WindowsDeliveryOptimizationConfiguration) { m := &WindowsDeliveryOptimizationConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_device_a_d_account.go b/models/windows_device_a_d_account.go index c1c815824ef..6f732e4c87a 100644 --- a/models/windows_device_a_d_account.go +++ b/models/windows_device_a_d_account.go @@ -7,8 +7,10 @@ import ( // WindowsDeviceADAccount type WindowsDeviceADAccount struct { WindowsDeviceAccount + // The OdataType property + OdataType *string } -// NewWindowsDeviceADAccount instantiates a new WindowsDeviceADAccount and sets the default values. +// NewWindowsDeviceADAccount instantiates a new windowsDeviceADAccount and sets the default values. func NewWindowsDeviceADAccount()(*WindowsDeviceADAccount) { m := &WindowsDeviceADAccount{ WindowsDeviceAccount: *NewWindowsDeviceAccount(), diff --git a/models/windows_device_azure_a_d_account.go b/models/windows_device_azure_a_d_account.go index 181c0c6e07d..cc8211e7b25 100644 --- a/models/windows_device_azure_a_d_account.go +++ b/models/windows_device_azure_a_d_account.go @@ -7,8 +7,10 @@ import ( // WindowsDeviceAzureADAccount type WindowsDeviceAzureADAccount struct { WindowsDeviceAccount + // The OdataType property + OdataType *string } -// NewWindowsDeviceAzureADAccount instantiates a new WindowsDeviceAzureADAccount and sets the default values. +// NewWindowsDeviceAzureADAccount instantiates a new windowsDeviceAzureADAccount and sets the default values. func NewWindowsDeviceAzureADAccount()(*WindowsDeviceAzureADAccount) { m := &WindowsDeviceAzureADAccount{ WindowsDeviceAccount: *NewWindowsDeviceAccount(), diff --git a/models/windows_device_malware_state.go b/models/windows_device_malware_state.go index 7b62a4a407d..ce116f2b3de 100644 --- a/models/windows_device_malware_state.go +++ b/models/windows_device_malware_state.go @@ -8,6 +8,8 @@ import ( // WindowsDeviceMalwareState malware detection entity. type WindowsDeviceMalwareState struct { Entity + // The OdataType property + OdataType *string } // NewWindowsDeviceMalwareState instantiates a new windowsDeviceMalwareState and sets the default values. func NewWindowsDeviceMalwareState()(*WindowsDeviceMalwareState) { diff --git a/models/windows_device_malware_state_collection_response.go b/models/windows_device_malware_state_collection_response.go index afd68aa5b4d..37d55345987 100644 --- a/models/windows_device_malware_state_collection_response.go +++ b/models/windows_device_malware_state_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsDeviceMalwareStateCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsDeviceMalwareStateCollectionResponse instantiates a new WindowsDeviceMalwareStateCollectionResponse and sets the default values. +// NewWindowsDeviceMalwareStateCollectionResponse instantiates a new windowsDeviceMalwareStateCollectionResponse and sets the default values. func NewWindowsDeviceMalwareStateCollectionResponse()(*WindowsDeviceMalwareStateCollectionResponse) { m := &WindowsDeviceMalwareStateCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_domain_join_configuration.go b/models/windows_domain_join_configuration.go index 1f3821a8e4b..a314ad9b6a1 100644 --- a/models/windows_domain_join_configuration.go +++ b/models/windows_domain_join_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsDomainJoinConfiguration +// WindowsDomainJoinConfiguration windows Domain Join device configuration. type WindowsDomainJoinConfiguration struct { DeviceConfiguration } -// NewWindowsDomainJoinConfiguration instantiates a new WindowsDomainJoinConfiguration and sets the default values. +// NewWindowsDomainJoinConfiguration instantiates a new windowsDomainJoinConfiguration and sets the default values. func NewWindowsDomainJoinConfiguration()(*WindowsDomainJoinConfiguration) { m := &WindowsDomainJoinConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_driver_update_inventory.go b/models/windows_driver_update_inventory.go index 5d99e81301e..f13d9149798 100644 --- a/models/windows_driver_update_inventory.go +++ b/models/windows_driver_update_inventory.go @@ -8,6 +8,8 @@ import ( // WindowsDriverUpdateInventory a new entity to represent driver inventories. type WindowsDriverUpdateInventory struct { Entity + // The OdataType property + OdataType *string } // NewWindowsDriverUpdateInventory instantiates a new windowsDriverUpdateInventory and sets the default values. func NewWindowsDriverUpdateInventory()(*WindowsDriverUpdateInventory) { diff --git a/models/windows_driver_update_inventory_collection_response.go b/models/windows_driver_update_inventory_collection_response.go index c5fd308fdc8..793f9bd54ff 100644 --- a/models/windows_driver_update_inventory_collection_response.go +++ b/models/windows_driver_update_inventory_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsDriverUpdateInventoryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsDriverUpdateInventoryCollectionResponse instantiates a new WindowsDriverUpdateInventoryCollectionResponse and sets the default values. +// NewWindowsDriverUpdateInventoryCollectionResponse instantiates a new windowsDriverUpdateInventoryCollectionResponse and sets the default values. func NewWindowsDriverUpdateInventoryCollectionResponse()(*WindowsDriverUpdateInventoryCollectionResponse) { m := &WindowsDriverUpdateInventoryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_driver_update_profile.go b/models/windows_driver_update_profile.go index 0753f137bb1..c3f1cf6c57d 100644 --- a/models/windows_driver_update_profile.go +++ b/models/windows_driver_update_profile.go @@ -233,6 +233,16 @@ func (m *WindowsDriverUpdateProfile) GetFieldDeserializers()(map[string]func(i87 } 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["roleScopeTagIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -284,6 +294,17 @@ func (m *WindowsDriverUpdateProfile) GetNewUpdates()(*int32) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WindowsDriverUpdateProfile) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRoleScopeTagIds gets the roleScopeTagIds property value. List of Scope Tags for this Driver Update entity. func (m *WindowsDriverUpdateProfile) GetRoleScopeTagIds()([]string) { val, err := m.GetBackingStore().Get("roleScopeTagIds") @@ -380,6 +401,12 @@ func (m *WindowsDriverUpdateProfile) Serialize(writer i878a80d2330e89d26896388a3 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetRoleScopeTagIds() != nil { err = writer.WriteCollectionOfStringValues("roleScopeTagIds", m.GetRoleScopeTagIds()) if err != nil { @@ -465,6 +492,13 @@ func (m *WindowsDriverUpdateProfile) SetNewUpdates(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WindowsDriverUpdateProfile) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetRoleScopeTagIds sets the roleScopeTagIds property value. List of Scope Tags for this Driver Update entity. func (m *WindowsDriverUpdateProfile) SetRoleScopeTagIds(value []string)() { err := m.GetBackingStore().Set("roleScopeTagIds", value) @@ -487,6 +521,7 @@ type WindowsDriverUpdateProfileable interface { GetInventorySyncStatus()(WindowsDriverUpdateProfileInventorySyncStatusable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetNewUpdates()(*int32) + GetOdataType()(*string) GetRoleScopeTagIds()([]string) SetApprovalType(value *DriverUpdateProfileApprovalType)() SetAssignments(value []WindowsDriverUpdateProfileAssignmentable)() @@ -499,5 +534,6 @@ type WindowsDriverUpdateProfileable interface { SetInventorySyncStatus(value WindowsDriverUpdateProfileInventorySyncStatusable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetNewUpdates(value *int32)() + SetOdataType(value *string)() SetRoleScopeTagIds(value []string)() } diff --git a/models/windows_driver_update_profile_assignment.go b/models/windows_driver_update_profile_assignment.go index 7d5c6eca720..bc1843c6340 100644 --- a/models/windows_driver_update_profile_assignment.go +++ b/models/windows_driver_update_profile_assignment.go @@ -7,6 +7,8 @@ import ( // WindowsDriverUpdateProfileAssignment this entity contains the properties used to assign a windows driver update profile to a group. type WindowsDriverUpdateProfileAssignment struct { Entity + // The OdataType property + OdataType *string } // NewWindowsDriverUpdateProfileAssignment instantiates a new windowsDriverUpdateProfileAssignment and sets the default values. func NewWindowsDriverUpdateProfileAssignment()(*WindowsDriverUpdateProfileAssignment) { diff --git a/models/windows_driver_update_profile_assignment_collection_response.go b/models/windows_driver_update_profile_assignment_collection_response.go index af3d56c1422..ff7f3e56030 100644 --- a/models/windows_driver_update_profile_assignment_collection_response.go +++ b/models/windows_driver_update_profile_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsDriverUpdateProfileAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsDriverUpdateProfileAssignmentCollectionResponse instantiates a new WindowsDriverUpdateProfileAssignmentCollectionResponse and sets the default values. +// NewWindowsDriverUpdateProfileAssignmentCollectionResponse instantiates a new windowsDriverUpdateProfileAssignmentCollectionResponse and sets the default values. func NewWindowsDriverUpdateProfileAssignmentCollectionResponse()(*WindowsDriverUpdateProfileAssignmentCollectionResponse) { m := &WindowsDriverUpdateProfileAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_driver_update_profile_collection_response.go b/models/windows_driver_update_profile_collection_response.go index faaefd3c3df..aaf91796571 100644 --- a/models/windows_driver_update_profile_collection_response.go +++ b/models/windows_driver_update_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsDriverUpdateProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsDriverUpdateProfileCollectionResponse instantiates a new WindowsDriverUpdateProfileCollectionResponse and sets the default values. +// NewWindowsDriverUpdateProfileCollectionResponse instantiates a new windowsDriverUpdateProfileCollectionResponse and sets the default values. func NewWindowsDriverUpdateProfileCollectionResponse()(*WindowsDriverUpdateProfileCollectionResponse) { m := &WindowsDriverUpdateProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_feature_update_catalog_item.go b/models/windows_feature_update_catalog_item.go index 0c87255472a..3284e0f26e4 100644 --- a/models/windows_feature_update_catalog_item.go +++ b/models/windows_feature_update_catalog_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsFeatureUpdateCatalogItem +// WindowsFeatureUpdateCatalogItem windows update catalog item entity type WindowsFeatureUpdateCatalogItem struct { WindowsUpdateCatalogItem } -// NewWindowsFeatureUpdateCatalogItem instantiates a new WindowsFeatureUpdateCatalogItem and sets the default values. +// NewWindowsFeatureUpdateCatalogItem instantiates a new windowsFeatureUpdateCatalogItem and sets the default values. func NewWindowsFeatureUpdateCatalogItem()(*WindowsFeatureUpdateCatalogItem) { m := &WindowsFeatureUpdateCatalogItem{ WindowsUpdateCatalogItem: *NewWindowsUpdateCatalogItem(), diff --git a/models/windows_feature_update_profile.go b/models/windows_feature_update_profile.go index a95297e8244..61687f6b8d8 100644 --- a/models/windows_feature_update_profile.go +++ b/models/windows_feature_update_profile.go @@ -8,6 +8,8 @@ import ( // WindowsFeatureUpdateProfile windows Feature Update Profile type WindowsFeatureUpdateProfile struct { Entity + // The OdataType property + OdataType *string } // NewWindowsFeatureUpdateProfile instantiates a new windowsFeatureUpdateProfile and sets the default values. func NewWindowsFeatureUpdateProfile()(*WindowsFeatureUpdateProfile) { diff --git a/models/windows_feature_update_profile_assignment.go b/models/windows_feature_update_profile_assignment.go index 3a4902cb83d..6739ad66a24 100644 --- a/models/windows_feature_update_profile_assignment.go +++ b/models/windows_feature_update_profile_assignment.go @@ -7,6 +7,8 @@ import ( // WindowsFeatureUpdateProfileAssignment this entity contains the properties used to assign a windows feature update profile to a group. type WindowsFeatureUpdateProfileAssignment struct { Entity + // The OdataType property + OdataType *string } // NewWindowsFeatureUpdateProfileAssignment instantiates a new windowsFeatureUpdateProfileAssignment and sets the default values. func NewWindowsFeatureUpdateProfileAssignment()(*WindowsFeatureUpdateProfileAssignment) { diff --git a/models/windows_feature_update_profile_assignment_collection_response.go b/models/windows_feature_update_profile_assignment_collection_response.go index 6bf3e013cce..213a4164048 100644 --- a/models/windows_feature_update_profile_assignment_collection_response.go +++ b/models/windows_feature_update_profile_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsFeatureUpdateProfileAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsFeatureUpdateProfileAssignmentCollectionResponse instantiates a new WindowsFeatureUpdateProfileAssignmentCollectionResponse and sets the default values. +// NewWindowsFeatureUpdateProfileAssignmentCollectionResponse instantiates a new windowsFeatureUpdateProfileAssignmentCollectionResponse and sets the default values. func NewWindowsFeatureUpdateProfileAssignmentCollectionResponse()(*WindowsFeatureUpdateProfileAssignmentCollectionResponse) { m := &WindowsFeatureUpdateProfileAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_feature_update_profile_collection_response.go b/models/windows_feature_update_profile_collection_response.go index 14061bafd9d..7d4b289acbb 100644 --- a/models/windows_feature_update_profile_collection_response.go +++ b/models/windows_feature_update_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsFeatureUpdateProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsFeatureUpdateProfileCollectionResponse instantiates a new WindowsFeatureUpdateProfileCollectionResponse and sets the default values. +// NewWindowsFeatureUpdateProfileCollectionResponse instantiates a new windowsFeatureUpdateProfileCollectionResponse and sets the default values. func NewWindowsFeatureUpdateProfileCollectionResponse()(*WindowsFeatureUpdateProfileCollectionResponse) { m := &WindowsFeatureUpdateProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_health_monitoring_configuration.go b/models/windows_health_monitoring_configuration.go index 100f63e33eb..f05eabcf2c0 100644 --- a/models/windows_health_monitoring_configuration.go +++ b/models/windows_health_monitoring_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsHealthMonitoringConfiguration +// WindowsHealthMonitoringConfiguration windows device health monitoring configuration type WindowsHealthMonitoringConfiguration struct { DeviceConfiguration } -// NewWindowsHealthMonitoringConfiguration instantiates a new WindowsHealthMonitoringConfiguration and sets the default values. +// NewWindowsHealthMonitoringConfiguration instantiates a new windowsHealthMonitoringConfiguration and sets the default values. func NewWindowsHealthMonitoringConfiguration()(*WindowsHealthMonitoringConfiguration) { m := &WindowsHealthMonitoringConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_hello_for_business_authentication_method.go b/models/windows_hello_for_business_authentication_method.go index b119cf5f8b0..63b3e81931a 100644 --- a/models/windows_hello_for_business_authentication_method.go +++ b/models/windows_hello_for_business_authentication_method.go @@ -9,7 +9,7 @@ import ( type WindowsHelloForBusinessAuthenticationMethod struct { AuthenticationMethod } -// NewWindowsHelloForBusinessAuthenticationMethod instantiates a new WindowsHelloForBusinessAuthenticationMethod and sets the default values. +// NewWindowsHelloForBusinessAuthenticationMethod instantiates a new windowsHelloForBusinessAuthenticationMethod and sets the default values. func NewWindowsHelloForBusinessAuthenticationMethod()(*WindowsHelloForBusinessAuthenticationMethod) { m := &WindowsHelloForBusinessAuthenticationMethod{ AuthenticationMethod: *NewAuthenticationMethod(), diff --git a/models/windows_hello_for_business_authentication_method_collection_response.go b/models/windows_hello_for_business_authentication_method_collection_response.go index 3e411d5abbf..fd89623bb4c 100644 --- a/models/windows_hello_for_business_authentication_method_collection_response.go +++ b/models/windows_hello_for_business_authentication_method_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsHelloForBusinessAuthenticationMethodCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsHelloForBusinessAuthenticationMethodCollectionResponse instantiates a new WindowsHelloForBusinessAuthenticationMethodCollectionResponse and sets the default values. +// NewWindowsHelloForBusinessAuthenticationMethodCollectionResponse instantiates a new windowsHelloForBusinessAuthenticationMethodCollectionResponse and sets the default values. func NewWindowsHelloForBusinessAuthenticationMethodCollectionResponse()(*WindowsHelloForBusinessAuthenticationMethodCollectionResponse) { m := &WindowsHelloForBusinessAuthenticationMethodCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_identity_protection_configuration.go b/models/windows_identity_protection_configuration.go index 4efab96e72f..cdd5a1337ac 100644 --- a/models/windows_identity_protection_configuration.go +++ b/models/windows_identity_protection_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsIdentityProtectionConfiguration +// WindowsIdentityProtectionConfiguration this entity provides descriptions of the declared methods, properties and relationships exposed by Windows Hello for Business. type WindowsIdentityProtectionConfiguration struct { DeviceConfiguration } -// NewWindowsIdentityProtectionConfiguration instantiates a new WindowsIdentityProtectionConfiguration and sets the default values. +// NewWindowsIdentityProtectionConfiguration instantiates a new windowsIdentityProtectionConfiguration and sets the default values. func NewWindowsIdentityProtectionConfiguration()(*WindowsIdentityProtectionConfiguration) { m := &WindowsIdentityProtectionConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_information_protection.go b/models/windows_information_protection.go index 8d2697f92e5..af0ee9fe066 100644 --- a/models/windows_information_protection.go +++ b/models/windows_information_protection.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsInformationProtection +// WindowsInformationProtection policy for Windows information protection to configure detailed management settings type WindowsInformationProtection struct { ManagedAppPolicy } -// NewWindowsInformationProtection instantiates a new WindowsInformationProtection and sets the default values. +// NewWindowsInformationProtection instantiates a new windowsInformationProtection and sets the default values. func NewWindowsInformationProtection()(*WindowsInformationProtection) { m := &WindowsInformationProtection{ ManagedAppPolicy: *NewManagedAppPolicy(), diff --git a/models/windows_information_protection_app_learning_summary.go b/models/windows_information_protection_app_learning_summary.go index 2463b2d92f5..3799064626c 100644 --- a/models/windows_information_protection_app_learning_summary.go +++ b/models/windows_information_protection_app_learning_summary.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsInformationProtectionAppLearningSummary +// WindowsInformationProtectionAppLearningSummary windows Information Protection AppLearning Summary entity. type WindowsInformationProtectionAppLearningSummary struct { Entity + // The OdataType property + OdataType *string } -// NewWindowsInformationProtectionAppLearningSummary instantiates a new WindowsInformationProtectionAppLearningSummary and sets the default values. +// NewWindowsInformationProtectionAppLearningSummary instantiates a new windowsInformationProtectionAppLearningSummary and sets the default values. func NewWindowsInformationProtectionAppLearningSummary()(*WindowsInformationProtectionAppLearningSummary) { m := &WindowsInformationProtectionAppLearningSummary{ Entity: *NewEntity(), diff --git a/models/windows_information_protection_app_learning_summary_collection_response.go b/models/windows_information_protection_app_learning_summary_collection_response.go index 56dbdd14b4e..d8ad5c37b9d 100644 --- a/models/windows_information_protection_app_learning_summary_collection_response.go +++ b/models/windows_information_protection_app_learning_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsInformationProtectionAppLearningSummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsInformationProtectionAppLearningSummaryCollectionResponse instantiates a new WindowsInformationProtectionAppLearningSummaryCollectionResponse and sets the default values. +// NewWindowsInformationProtectionAppLearningSummaryCollectionResponse instantiates a new windowsInformationProtectionAppLearningSummaryCollectionResponse and sets the default values. func NewWindowsInformationProtectionAppLearningSummaryCollectionResponse()(*WindowsInformationProtectionAppLearningSummaryCollectionResponse) { m := &WindowsInformationProtectionAppLearningSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_information_protection_app_locker_file.go b/models/windows_information_protection_app_locker_file.go index 656129205db..86f5897a7e4 100644 --- a/models/windows_information_protection_app_locker_file.go +++ b/models/windows_information_protection_app_locker_file.go @@ -7,6 +7,8 @@ import ( // WindowsInformationProtectionAppLockerFile windows Information Protection AppLocker File type WindowsInformationProtectionAppLockerFile struct { Entity + // The OdataType property + OdataType *string } // NewWindowsInformationProtectionAppLockerFile instantiates a new windowsInformationProtectionAppLockerFile and sets the default values. func NewWindowsInformationProtectionAppLockerFile()(*WindowsInformationProtectionAppLockerFile) { diff --git a/models/windows_information_protection_app_locker_file_collection_response.go b/models/windows_information_protection_app_locker_file_collection_response.go index 75766dfad1f..7aa1241e262 100644 --- a/models/windows_information_protection_app_locker_file_collection_response.go +++ b/models/windows_information_protection_app_locker_file_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsInformationProtectionAppLockerFileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsInformationProtectionAppLockerFileCollectionResponse instantiates a new WindowsInformationProtectionAppLockerFileCollectionResponse and sets the default values. +// NewWindowsInformationProtectionAppLockerFileCollectionResponse instantiates a new windowsInformationProtectionAppLockerFileCollectionResponse and sets the default values. func NewWindowsInformationProtectionAppLockerFileCollectionResponse()(*WindowsInformationProtectionAppLockerFileCollectionResponse) { m := &WindowsInformationProtectionAppLockerFileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_information_protection_desktop_app.go b/models/windows_information_protection_desktop_app.go index f4249018d69..96c6b1171cd 100644 --- a/models/windows_information_protection_desktop_app.go +++ b/models/windows_information_protection_desktop_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsInformationProtectionDesktopApp +// WindowsInformationProtectionDesktopApp desktop App for Windows information protection type WindowsInformationProtectionDesktopApp struct { WindowsInformationProtectionApp + // The OdataType property + OdataType *string } -// NewWindowsInformationProtectionDesktopApp instantiates a new WindowsInformationProtectionDesktopApp and sets the default values. +// NewWindowsInformationProtectionDesktopApp instantiates a new windowsInformationProtectionDesktopApp and sets the default values. func NewWindowsInformationProtectionDesktopApp()(*WindowsInformationProtectionDesktopApp) { m := &WindowsInformationProtectionDesktopApp{ WindowsInformationProtectionApp: *NewWindowsInformationProtectionApp(), diff --git a/models/windows_information_protection_device_registration.go b/models/windows_information_protection_device_registration.go index ae86d657d9f..8b4e5dbf2d5 100644 --- a/models/windows_information_protection_device_registration.go +++ b/models/windows_information_protection_device_registration.go @@ -8,6 +8,8 @@ import ( // WindowsInformationProtectionDeviceRegistration represents device registration records for Bring-Your-Own-Device(BYOD) Windows devices. type WindowsInformationProtectionDeviceRegistration struct { Entity + // The OdataType property + OdataType *string } // NewWindowsInformationProtectionDeviceRegistration instantiates a new windowsInformationProtectionDeviceRegistration and sets the default values. func NewWindowsInformationProtectionDeviceRegistration()(*WindowsInformationProtectionDeviceRegistration) { diff --git a/models/windows_information_protection_device_registration_collection_response.go b/models/windows_information_protection_device_registration_collection_response.go index 7c0f7521a9a..6ca9a9ec79f 100644 --- a/models/windows_information_protection_device_registration_collection_response.go +++ b/models/windows_information_protection_device_registration_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsInformationProtectionDeviceRegistrationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsInformationProtectionDeviceRegistrationCollectionResponse instantiates a new WindowsInformationProtectionDeviceRegistrationCollectionResponse and sets the default values. +// NewWindowsInformationProtectionDeviceRegistrationCollectionResponse instantiates a new windowsInformationProtectionDeviceRegistrationCollectionResponse and sets the default values. func NewWindowsInformationProtectionDeviceRegistrationCollectionResponse()(*WindowsInformationProtectionDeviceRegistrationCollectionResponse) { m := &WindowsInformationProtectionDeviceRegistrationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_information_protection_network_learning_summary.go b/models/windows_information_protection_network_learning_summary.go index 5bc78cc4347..3cc02fe670a 100644 --- a/models/windows_information_protection_network_learning_summary.go +++ b/models/windows_information_protection_network_learning_summary.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsInformationProtectionNetworkLearningSummary +// WindowsInformationProtectionNetworkLearningSummary windows Information Protection Network learning Summary entity. type WindowsInformationProtectionNetworkLearningSummary struct { Entity + // The OdataType property + OdataType *string } -// NewWindowsInformationProtectionNetworkLearningSummary instantiates a new WindowsInformationProtectionNetworkLearningSummary and sets the default values. +// NewWindowsInformationProtectionNetworkLearningSummary instantiates a new windowsInformationProtectionNetworkLearningSummary and sets the default values. func NewWindowsInformationProtectionNetworkLearningSummary()(*WindowsInformationProtectionNetworkLearningSummary) { m := &WindowsInformationProtectionNetworkLearningSummary{ Entity: *NewEntity(), diff --git a/models/windows_information_protection_network_learning_summary_collection_response.go b/models/windows_information_protection_network_learning_summary_collection_response.go index 66406ea11b7..0be33932389 100644 --- a/models/windows_information_protection_network_learning_summary_collection_response.go +++ b/models/windows_information_protection_network_learning_summary_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsInformationProtectionNetworkLearningSummaryCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsInformationProtectionNetworkLearningSummaryCollectionResponse instantiates a new WindowsInformationProtectionNetworkLearningSummaryCollectionResponse and sets the default values. +// NewWindowsInformationProtectionNetworkLearningSummaryCollectionResponse instantiates a new windowsInformationProtectionNetworkLearningSummaryCollectionResponse and sets the default values. func NewWindowsInformationProtectionNetworkLearningSummaryCollectionResponse()(*WindowsInformationProtectionNetworkLearningSummaryCollectionResponse) { m := &WindowsInformationProtectionNetworkLearningSummaryCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_information_protection_policy.go b/models/windows_information_protection_policy.go index ed3ad5d533d..5f03844410d 100644 --- a/models/windows_information_protection_policy.go +++ b/models/windows_information_protection_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsInformationProtectionPolicy +// WindowsInformationProtectionPolicy policy for Windows information protection without MDM type WindowsInformationProtectionPolicy struct { WindowsInformationProtection } -// NewWindowsInformationProtectionPolicy instantiates a new WindowsInformationProtectionPolicy and sets the default values. +// NewWindowsInformationProtectionPolicy instantiates a new windowsInformationProtectionPolicy and sets the default values. func NewWindowsInformationProtectionPolicy()(*WindowsInformationProtectionPolicy) { m := &WindowsInformationProtectionPolicy{ WindowsInformationProtection: *NewWindowsInformationProtection(), diff --git a/models/windows_information_protection_policy_collection_response.go b/models/windows_information_protection_policy_collection_response.go index 69e02910da3..856fc5f3be3 100644 --- a/models/windows_information_protection_policy_collection_response.go +++ b/models/windows_information_protection_policy_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsInformationProtectionPolicyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsInformationProtectionPolicyCollectionResponse instantiates a new WindowsInformationProtectionPolicyCollectionResponse and sets the default values. +// NewWindowsInformationProtectionPolicyCollectionResponse instantiates a new windowsInformationProtectionPolicyCollectionResponse and sets the default values. func NewWindowsInformationProtectionPolicyCollectionResponse()(*WindowsInformationProtectionPolicyCollectionResponse) { m := &WindowsInformationProtectionPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_information_protection_store_app.go b/models/windows_information_protection_store_app.go index 07c31cc655d..23ee445c19f 100644 --- a/models/windows_information_protection_store_app.go +++ b/models/windows_information_protection_store_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsInformationProtectionStoreApp +// WindowsInformationProtectionStoreApp store App for Windows information protection type WindowsInformationProtectionStoreApp struct { WindowsInformationProtectionApp } -// NewWindowsInformationProtectionStoreApp instantiates a new WindowsInformationProtectionStoreApp and sets the default values. +// NewWindowsInformationProtectionStoreApp instantiates a new windowsInformationProtectionStoreApp and sets the default values. func NewWindowsInformationProtectionStoreApp()(*WindowsInformationProtectionStoreApp) { m := &WindowsInformationProtectionStoreApp{ WindowsInformationProtectionApp: *NewWindowsInformationProtectionApp(), @@ -24,18 +24,54 @@ func CreateWindowsInformationProtectionStoreAppFromDiscriminatorValue(parseNode // GetFieldDeserializers the deserialization information for the current model func (m *WindowsInformationProtectionStoreApp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.WindowsInformationProtectionApp.GetFieldDeserializers() + 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 *WindowsInformationProtectionStoreApp) 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 *WindowsInformationProtectionStoreApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.WindowsInformationProtectionApp.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WindowsInformationProtectionStoreApp) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // WindowsInformationProtectionStoreAppable type WindowsInformationProtectionStoreAppable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable WindowsInformationProtectionAppable + GetOdataType()(*string) + SetOdataType(value *string)() } diff --git a/models/windows_information_protection_wipe_action.go b/models/windows_information_protection_wipe_action.go index acb7ad0ef41..2ab81de66fa 100644 --- a/models/windows_information_protection_wipe_action.go +++ b/models/windows_information_protection_wipe_action.go @@ -33,6 +33,16 @@ func (m *WindowsInformationProtectionWipeAction) GetFieldDeserializers()(map[str } 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["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseActionState) if err != nil { @@ -96,6 +106,17 @@ func (m *WindowsInformationProtectionWipeAction) GetLastCheckInDateTime()(*i3360 } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WindowsInformationProtectionWipeAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetStatus gets the status property value. The status property func (m *WindowsInformationProtectionWipeAction) GetStatus()(*ActionState) { val, err := m.GetBackingStore().Get("status") @@ -163,6 +184,12 @@ func (m *WindowsInformationProtectionWipeAction) Serialize(writer i878a80d2330e8 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetStatus() != nil { cast := (*m.GetStatus()).String() err = writer.WriteStringValue("status", &cast) @@ -203,6 +230,13 @@ func (m *WindowsInformationProtectionWipeAction) SetLastCheckInDateTime(value *i panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WindowsInformationProtectionWipeAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetStatus sets the status property value. The status property func (m *WindowsInformationProtectionWipeAction) SetStatus(value *ActionState)() { err := m.GetBackingStore().Set("status", value) @@ -243,12 +277,14 @@ type WindowsInformationProtectionWipeActionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetLastCheckInDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) GetStatus()(*ActionState) GetTargetedDeviceMacAddress()(*string) GetTargetedDeviceName()(*string) GetTargetedDeviceRegistrationId()(*string) GetTargetedUserId()(*string) SetLastCheckInDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() SetStatus(value *ActionState)() SetTargetedDeviceMacAddress(value *string)() SetTargetedDeviceName(value *string)() diff --git a/models/windows_information_protection_wipe_action_collection_response.go b/models/windows_information_protection_wipe_action_collection_response.go index 518267be681..81d699b3487 100644 --- a/models/windows_information_protection_wipe_action_collection_response.go +++ b/models/windows_information_protection_wipe_action_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsInformationProtectionWipeActionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsInformationProtectionWipeActionCollectionResponse instantiates a new WindowsInformationProtectionWipeActionCollectionResponse and sets the default values. +// NewWindowsInformationProtectionWipeActionCollectionResponse instantiates a new windowsInformationProtectionWipeActionCollectionResponse and sets the default values. func NewWindowsInformationProtectionWipeActionCollectionResponse()(*WindowsInformationProtectionWipeActionCollectionResponse) { m := &WindowsInformationProtectionWipeActionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_kiosk_active_directory_group.go b/models/windows_kiosk_active_directory_group.go index 0ef26d50100..07e57716d0b 100644 --- a/models/windows_kiosk_active_directory_group.go +++ b/models/windows_kiosk_active_directory_group.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskActiveDirectoryGroup +// WindowsKioskActiveDirectoryGroup the class used to identify an Azure Directory group for the kiosk configuration type WindowsKioskActiveDirectoryGroup struct { WindowsKioskUser + // The OdataType property + OdataType *string } -// NewWindowsKioskActiveDirectoryGroup instantiates a new WindowsKioskActiveDirectoryGroup and sets the default values. +// NewWindowsKioskActiveDirectoryGroup instantiates a new windowsKioskActiveDirectoryGroup and sets the default values. func NewWindowsKioskActiveDirectoryGroup()(*WindowsKioskActiveDirectoryGroup) { m := &WindowsKioskActiveDirectoryGroup{ WindowsKioskUser: *NewWindowsKioskUser(), diff --git a/models/windows_kiosk_app_base.go b/models/windows_kiosk_app_base.go index bf21b6ea9c1..b414cb77860 100644 --- a/models/windows_kiosk_app_base.go +++ b/models/windows_kiosk_app_base.go @@ -10,7 +10,7 @@ type WindowsKioskAppBase struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewWindowsKioskAppBase instantiates a new WindowsKioskAppBase and sets the default values. +// NewWindowsKioskAppBase instantiates a new windowsKioskAppBase and sets the default values. func NewWindowsKioskAppBase()(*WindowsKioskAppBase) { m := &WindowsKioskAppBase{ } diff --git a/models/windows_kiosk_app_configuration.go b/models/windows_kiosk_app_configuration.go index 468d7d338e8..2a39b667e1c 100644 --- a/models/windows_kiosk_app_configuration.go +++ b/models/windows_kiosk_app_configuration.go @@ -10,7 +10,7 @@ type WindowsKioskAppConfiguration struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewWindowsKioskAppConfiguration instantiates a new WindowsKioskAppConfiguration and sets the default values. +// NewWindowsKioskAppConfiguration instantiates a new windowsKioskAppConfiguration and sets the default values. func NewWindowsKioskAppConfiguration()(*WindowsKioskAppConfiguration) { m := &WindowsKioskAppConfiguration{ } diff --git a/models/windows_kiosk_autologon.go b/models/windows_kiosk_autologon.go index 330844533e4..9b01623108a 100644 --- a/models/windows_kiosk_autologon.go +++ b/models/windows_kiosk_autologon.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskAutologon +// WindowsKioskAutologon the class used to identify an autologon kiosk configuration type WindowsKioskAutologon struct { WindowsKioskUser + // The OdataType property + OdataType *string } -// NewWindowsKioskAutologon instantiates a new WindowsKioskAutologon and sets the default values. +// NewWindowsKioskAutologon instantiates a new windowsKioskAutologon and sets the default values. func NewWindowsKioskAutologon()(*WindowsKioskAutologon) { m := &WindowsKioskAutologon{ WindowsKioskUser: *NewWindowsKioskUser(), diff --git a/models/windows_kiosk_azure_a_d_group.go b/models/windows_kiosk_azure_a_d_group.go index a2a1ece229e..b4746de6781 100644 --- a/models/windows_kiosk_azure_a_d_group.go +++ b/models/windows_kiosk_azure_a_d_group.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskAzureADGroup +// WindowsKioskAzureADGroup the class used to identify an AzureAD group for the kiosk configuration type WindowsKioskAzureADGroup struct { WindowsKioskUser + // The OdataType property + OdataType *string } -// NewWindowsKioskAzureADGroup instantiates a new WindowsKioskAzureADGroup and sets the default values. +// NewWindowsKioskAzureADGroup instantiates a new windowsKioskAzureADGroup and sets the default values. func NewWindowsKioskAzureADGroup()(*WindowsKioskAzureADGroup) { m := &WindowsKioskAzureADGroup{ WindowsKioskUser: *NewWindowsKioskUser(), diff --git a/models/windows_kiosk_azure_a_d_user.go b/models/windows_kiosk_azure_a_d_user.go index 9bbb9b010aa..a8fd8341b56 100644 --- a/models/windows_kiosk_azure_a_d_user.go +++ b/models/windows_kiosk_azure_a_d_user.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskAzureADUser +// WindowsKioskAzureADUser the class used to identify an AzureAD user account for the kiosk configuration type WindowsKioskAzureADUser struct { WindowsKioskUser + // The OdataType property + OdataType *string } -// NewWindowsKioskAzureADUser instantiates a new WindowsKioskAzureADUser and sets the default values. +// NewWindowsKioskAzureADUser instantiates a new windowsKioskAzureADUser and sets the default values. func NewWindowsKioskAzureADUser()(*WindowsKioskAzureADUser) { m := &WindowsKioskAzureADUser{ WindowsKioskUser: *NewWindowsKioskUser(), diff --git a/models/windows_kiosk_configuration.go b/models/windows_kiosk_configuration.go index 11a74da9b29..7586fb21aef 100644 --- a/models/windows_kiosk_configuration.go +++ b/models/windows_kiosk_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskConfiguration +// WindowsKioskConfiguration this entity provides descriptions of the declared methods, properties and relationships exposed by the kiosk resource. type WindowsKioskConfiguration struct { DeviceConfiguration } -// NewWindowsKioskConfiguration instantiates a new WindowsKioskConfiguration and sets the default values. +// NewWindowsKioskConfiguration instantiates a new windowsKioskConfiguration and sets the default values. func NewWindowsKioskConfiguration()(*WindowsKioskConfiguration) { m := &WindowsKioskConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_kiosk_desktop_app.go b/models/windows_kiosk_desktop_app.go index 692ee27e6bc..62c808b91e5 100644 --- a/models/windows_kiosk_desktop_app.go +++ b/models/windows_kiosk_desktop_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskDesktopApp +// WindowsKioskDesktopApp the base class for a type of apps type WindowsKioskDesktopApp struct { WindowsKioskAppBase + // The OdataType property + OdataType *string } -// NewWindowsKioskDesktopApp instantiates a new WindowsKioskDesktopApp and sets the default values. +// NewWindowsKioskDesktopApp instantiates a new windowsKioskDesktopApp and sets the default values. func NewWindowsKioskDesktopApp()(*WindowsKioskDesktopApp) { m := &WindowsKioskDesktopApp{ WindowsKioskAppBase: *NewWindowsKioskAppBase(), diff --git a/models/windows_kiosk_local_group.go b/models/windows_kiosk_local_group.go index 2c73c6012a0..6f3c29e5482 100644 --- a/models/windows_kiosk_local_group.go +++ b/models/windows_kiosk_local_group.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskLocalGroup +// WindowsKioskLocalGroup the class used to identify a local group for the kiosk configuration type WindowsKioskLocalGroup struct { WindowsKioskUser + // The OdataType property + OdataType *string } -// NewWindowsKioskLocalGroup instantiates a new WindowsKioskLocalGroup and sets the default values. +// NewWindowsKioskLocalGroup instantiates a new windowsKioskLocalGroup and sets the default values. func NewWindowsKioskLocalGroup()(*WindowsKioskLocalGroup) { m := &WindowsKioskLocalGroup{ WindowsKioskUser: *NewWindowsKioskUser(), diff --git a/models/windows_kiosk_local_user.go b/models/windows_kiosk_local_user.go index 7fd5d12b0fa..fdac4239ffb 100644 --- a/models/windows_kiosk_local_user.go +++ b/models/windows_kiosk_local_user.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskLocalUser +// WindowsKioskLocalUser the class used to identify a local account for the kiosk configuration type WindowsKioskLocalUser struct { WindowsKioskUser + // The OdataType property + OdataType *string } -// NewWindowsKioskLocalUser instantiates a new WindowsKioskLocalUser and sets the default values. +// NewWindowsKioskLocalUser instantiates a new windowsKioskLocalUser and sets the default values. func NewWindowsKioskLocalUser()(*WindowsKioskLocalUser) { m := &WindowsKioskLocalUser{ WindowsKioskUser: *NewWindowsKioskUser(), diff --git a/models/windows_kiosk_multiple_apps.go b/models/windows_kiosk_multiple_apps.go index 20dfdf86c8c..9ed2ef3c4a1 100644 --- a/models/windows_kiosk_multiple_apps.go +++ b/models/windows_kiosk_multiple_apps.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskMultipleApps +// WindowsKioskMultipleApps the class used to identify the MultiMode app configuration for the kiosk configuration type WindowsKioskMultipleApps struct { WindowsKioskAppConfiguration + // The OdataType property + OdataType *string } -// NewWindowsKioskMultipleApps instantiates a new WindowsKioskMultipleApps and sets the default values. +// NewWindowsKioskMultipleApps instantiates a new windowsKioskMultipleApps and sets the default values. func NewWindowsKioskMultipleApps()(*WindowsKioskMultipleApps) { m := &WindowsKioskMultipleApps{ WindowsKioskAppConfiguration: *NewWindowsKioskAppConfiguration(), diff --git a/models/windows_kiosk_single_u_w_p_app.go b/models/windows_kiosk_single_u_w_p_app.go index bad7a0b1c30..dcc21ca7c14 100644 --- a/models/windows_kiosk_single_u_w_p_app.go +++ b/models/windows_kiosk_single_u_w_p_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskSingleUWPApp +// WindowsKioskSingleUWPApp the class used to identify the UWP app info for the kiosk configuration type WindowsKioskSingleUWPApp struct { WindowsKioskAppConfiguration + // The OdataType property + OdataType *string } -// NewWindowsKioskSingleUWPApp instantiates a new WindowsKioskSingleUWPApp and sets the default values. +// NewWindowsKioskSingleUWPApp instantiates a new windowsKioskSingleUWPApp and sets the default values. func NewWindowsKioskSingleUWPApp()(*WindowsKioskSingleUWPApp) { m := &WindowsKioskSingleUWPApp{ WindowsKioskAppConfiguration: *NewWindowsKioskAppConfiguration(), diff --git a/models/windows_kiosk_single_win32_app.go b/models/windows_kiosk_single_win32_app.go index bed778ccf79..869b01398bb 100644 --- a/models/windows_kiosk_single_win32_app.go +++ b/models/windows_kiosk_single_win32_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskSingleWin32App +// WindowsKioskSingleWin32App the class used to identify the single app configuration for the kiosk win32 configuration type WindowsKioskSingleWin32App struct { WindowsKioskAppConfiguration + // The OdataType property + OdataType *string } -// NewWindowsKioskSingleWin32App instantiates a new WindowsKioskSingleWin32App and sets the default values. +// NewWindowsKioskSingleWin32App instantiates a new windowsKioskSingleWin32App and sets the default values. func NewWindowsKioskSingleWin32App()(*WindowsKioskSingleWin32App) { m := &WindowsKioskSingleWin32App{ WindowsKioskAppConfiguration: *NewWindowsKioskAppConfiguration(), diff --git a/models/windows_kiosk_u_w_p_app.go b/models/windows_kiosk_u_w_p_app.go index bd2c7733857..729be19a05f 100644 --- a/models/windows_kiosk_u_w_p_app.go +++ b/models/windows_kiosk_u_w_p_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskUWPApp +// WindowsKioskUWPApp the base class for a type of apps type WindowsKioskUWPApp struct { WindowsKioskAppBase + // The OdataType property + OdataType *string } -// NewWindowsKioskUWPApp instantiates a new WindowsKioskUWPApp and sets the default values. +// NewWindowsKioskUWPApp instantiates a new windowsKioskUWPApp and sets the default values. func NewWindowsKioskUWPApp()(*WindowsKioskUWPApp) { m := &WindowsKioskUWPApp{ WindowsKioskAppBase: *NewWindowsKioskAppBase(), diff --git a/models/windows_kiosk_user.go b/models/windows_kiosk_user.go index 041cf82a4ad..971a47f380e 100644 --- a/models/windows_kiosk_user.go +++ b/models/windows_kiosk_user.go @@ -10,7 +10,7 @@ type WindowsKioskUser struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewWindowsKioskUser instantiates a new WindowsKioskUser and sets the default values. +// NewWindowsKioskUser instantiates a new windowsKioskUser and sets the default values. func NewWindowsKioskUser()(*WindowsKioskUser) { m := &WindowsKioskUser{ } diff --git a/models/windows_kiosk_visitor.go b/models/windows_kiosk_visitor.go index f8ac379c79c..ed3c7829f49 100644 --- a/models/windows_kiosk_visitor.go +++ b/models/windows_kiosk_visitor.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskVisitor +// WindowsKioskVisitor the class used to identify a visitor kiosk account type WindowsKioskVisitor struct { WindowsKioskUser + // The OdataType property + OdataType *string } -// NewWindowsKioskVisitor instantiates a new WindowsKioskVisitor and sets the default values. +// NewWindowsKioskVisitor instantiates a new windowsKioskVisitor and sets the default values. func NewWindowsKioskVisitor()(*WindowsKioskVisitor) { m := &WindowsKioskVisitor{ WindowsKioskUser: *NewWindowsKioskUser(), diff --git a/models/windows_kiosk_win32_app.go b/models/windows_kiosk_win32_app.go index 4fbdab26430..de6eeec80b3 100644 --- a/models/windows_kiosk_win32_app.go +++ b/models/windows_kiosk_win32_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsKioskWin32App +// WindowsKioskWin32App kioskModeApp v4 for Win32 app support type WindowsKioskWin32App struct { WindowsKioskAppBase + // The OdataType property + OdataType *string } -// NewWindowsKioskWin32App instantiates a new WindowsKioskWin32App and sets the default values. +// NewWindowsKioskWin32App instantiates a new windowsKioskWin32App and sets the default values. func NewWindowsKioskWin32App()(*WindowsKioskWin32App) { m := &WindowsKioskWin32App{ WindowsKioskAppBase: *NewWindowsKioskAppBase(), diff --git a/models/windows_malware_information.go b/models/windows_malware_information.go index 92a4042a3eb..4d0358e0922 100644 --- a/models/windows_malware_information.go +++ b/models/windows_malware_information.go @@ -8,6 +8,8 @@ import ( // WindowsMalwareInformation malware information entity. type WindowsMalwareInformation struct { Entity + // The OdataType property + OdataType *string } // NewWindowsMalwareInformation instantiates a new windowsMalwareInformation and sets the default values. func NewWindowsMalwareInformation()(*WindowsMalwareInformation) { diff --git a/models/windows_malware_information_collection_response.go b/models/windows_malware_information_collection_response.go index 51083fb13e2..901c91a7ce7 100644 --- a/models/windows_malware_information_collection_response.go +++ b/models/windows_malware_information_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsMalwareInformationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsMalwareInformationCollectionResponse instantiates a new WindowsMalwareInformationCollectionResponse and sets the default values. +// NewWindowsMalwareInformationCollectionResponse instantiates a new windowsMalwareInformationCollectionResponse and sets the default values. func NewWindowsMalwareInformationCollectionResponse()(*WindowsMalwareInformationCollectionResponse) { m := &WindowsMalwareInformationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_managed_app_protection.go b/models/windows_managed_app_protection.go index c60c7f3b318..bb689941cea 100644 --- a/models/windows_managed_app_protection.go +++ b/models/windows_managed_app_protection.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsManagedAppProtection +// WindowsManagedAppProtection policy used to configure detailed management settings targeted to specific security groups and for a specified set of apps on a Windows device type WindowsManagedAppProtection struct { ManagedAppPolicy } -// NewWindowsManagedAppProtection instantiates a new WindowsManagedAppProtection and sets the default values. +// NewWindowsManagedAppProtection instantiates a new windowsManagedAppProtection and sets the default values. func NewWindowsManagedAppProtection()(*WindowsManagedAppProtection) { m := &WindowsManagedAppProtection{ ManagedAppPolicy: *NewManagedAppPolicy(), diff --git a/models/windows_managed_app_protection_collection_response.go b/models/windows_managed_app_protection_collection_response.go index 729108ff7c3..d6446300bc1 100644 --- a/models/windows_managed_app_protection_collection_response.go +++ b/models/windows_managed_app_protection_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsManagedAppProtectionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsManagedAppProtectionCollectionResponse instantiates a new WindowsManagedAppProtectionCollectionResponse and sets the default values. +// NewWindowsManagedAppProtectionCollectionResponse instantiates a new windowsManagedAppProtectionCollectionResponse and sets the default values. func NewWindowsManagedAppProtectionCollectionResponse()(*WindowsManagedAppProtectionCollectionResponse) { m := &WindowsManagedAppProtectionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_managed_device.go b/models/windows_managed_device.go index 20fc48b709b..780d9e39f4f 100644 --- a/models/windows_managed_device.go +++ b/models/windows_managed_device.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsManagedDevice +// WindowsManagedDevice windows devices that are managed or pre-enrolled through Intune type WindowsManagedDevice struct { ManagedDevice } -// NewWindowsManagedDevice instantiates a new WindowsManagedDevice and sets the default values. +// NewWindowsManagedDevice instantiates a new windowsManagedDevice and sets the default values. func NewWindowsManagedDevice()(*WindowsManagedDevice) { m := &WindowsManagedDevice{ ManagedDevice: *NewManagedDevice(), diff --git a/models/windows_management_app.go b/models/windows_management_app.go index 56fb7acca7d..d048cb78989 100644 --- a/models/windows_management_app.go +++ b/models/windows_management_app.go @@ -4,9 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsManagementApp +// WindowsManagementApp windows management app entity. type WindowsManagementApp struct { Entity + // The OdataType property + OdataType *string } // NewWindowsManagementApp instantiates a new windowsManagementApp and sets the default values. func NewWindowsManagementApp()(*WindowsManagementApp) { diff --git a/models/windows_management_app_health_state.go b/models/windows_management_app_health_state.go index 601028b6b73..345e4475f24 100644 --- a/models/windows_management_app_health_state.go +++ b/models/windows_management_app_health_state.go @@ -8,6 +8,8 @@ import ( // WindowsManagementAppHealthState windows management app health state entity. type WindowsManagementAppHealthState struct { Entity + // The OdataType property + OdataType *string } // NewWindowsManagementAppHealthState instantiates a new windowsManagementAppHealthState and sets the default values. func NewWindowsManagementAppHealthState()(*WindowsManagementAppHealthState) { diff --git a/models/windows_management_app_health_summary.go b/models/windows_management_app_health_summary.go index ea39ee86508..d29c9e886ae 100644 --- a/models/windows_management_app_health_summary.go +++ b/models/windows_management_app_health_summary.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsManagementAppHealthSummary +// WindowsManagementAppHealthSummary contains properties for the health summary of the Windows management app. type WindowsManagementAppHealthSummary struct { Entity + // The OdataType property + OdataType *string } -// NewWindowsManagementAppHealthSummary instantiates a new WindowsManagementAppHealthSummary and sets the default values. +// NewWindowsManagementAppHealthSummary instantiates a new windowsManagementAppHealthSummary and sets the default values. func NewWindowsManagementAppHealthSummary()(*WindowsManagementAppHealthSummary) { m := &WindowsManagementAppHealthSummary{ Entity: *NewEntity(), diff --git a/models/windows_microsoft_edge_app.go b/models/windows_microsoft_edge_app.go index 8d40a5000c0..3c3edd72c95 100644 --- a/models/windows_microsoft_edge_app.go +++ b/models/windows_microsoft_edge_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsMicrosoftEdgeApp +// WindowsMicrosoftEdgeApp contains properties and inherited properties for the Microsoft Edge app on Windows. type WindowsMicrosoftEdgeApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewWindowsMicrosoftEdgeApp instantiates a new WindowsMicrosoftEdgeApp and sets the default values. +// NewWindowsMicrosoftEdgeApp instantiates a new windowsMicrosoftEdgeApp and sets the default values. func NewWindowsMicrosoftEdgeApp()(*WindowsMicrosoftEdgeApp) { m := &WindowsMicrosoftEdgeApp{ MobileApp: *NewMobileApp(), diff --git a/models/windows_mobile_m_s_i.go b/models/windows_mobile_m_s_i.go index 13820d1529e..019a9742b24 100644 --- a/models/windows_mobile_m_s_i.go +++ b/models/windows_mobile_m_s_i.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsMobileMSI +// WindowsMobileMSI contains properties and inherited properties for Windows Mobile MSI Line Of Business apps. type WindowsMobileMSI struct { MobileLobApp } -// NewWindowsMobileMSI instantiates a new WindowsMobileMSI and sets the default values. +// NewWindowsMobileMSI instantiates a new windowsMobileMSI and sets the default values. func NewWindowsMobileMSI()(*WindowsMobileMSI) { m := &WindowsMobileMSI{ MobileLobApp: *NewMobileLobApp(), diff --git a/models/windows_phone81_app_x.go b/models/windows_phone81_app_x.go index d2b4e73b0a9..0cc951247a7 100644 --- a/models/windows_phone81_app_x.go +++ b/models/windows_phone81_app_x.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhone81AppX +// WindowsPhone81AppX contains properties and inherited properties for Windows Phone 8.1 AppX Line Of Business apps. Inherits from graph.mobileLobApp. Will be deprecated in February 2023. type WindowsPhone81AppX struct { MobileLobApp } -// NewWindowsPhone81AppX instantiates a new WindowsPhone81AppX and sets the default values. +// NewWindowsPhone81AppX instantiates a new windowsPhone81AppX and sets the default values. func NewWindowsPhone81AppX()(*WindowsPhone81AppX) { m := &WindowsPhone81AppX{ MobileLobApp: *NewMobileLobApp(), diff --git a/models/windows_phone81_app_x_bundle.go b/models/windows_phone81_app_x_bundle.go index 622287918c7..c7a5e765eee 100644 --- a/models/windows_phone81_app_x_bundle.go +++ b/models/windows_phone81_app_x_bundle.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhone81AppXBundle +// WindowsPhone81AppXBundle contains properties and inherited properties for Windows Phone 8.1 AppX Bundle Line Of Business apps. Inherits from graph.windowsPhone81AppX (which is also to be deprecated at the same time). Will be deprecated in February 2023. type WindowsPhone81AppXBundle struct { WindowsPhone81AppX } -// NewWindowsPhone81AppXBundle instantiates a new WindowsPhone81AppXBundle and sets the default values. +// NewWindowsPhone81AppXBundle instantiates a new windowsPhone81AppXBundle and sets the default values. func NewWindowsPhone81AppXBundle()(*WindowsPhone81AppXBundle) { m := &WindowsPhone81AppXBundle{ WindowsPhone81AppX: *NewWindowsPhone81AppX(), diff --git a/models/windows_phone81_certificate_profile_base.go b/models/windows_phone81_certificate_profile_base.go index 707c892557a..a257c95f1fe 100644 --- a/models/windows_phone81_certificate_profile_base.go +++ b/models/windows_phone81_certificate_profile_base.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhone81CertificateProfileBase +// WindowsPhone81CertificateProfileBase base Windows Phone 8.1+ certificate profile. type WindowsPhone81CertificateProfileBase struct { DeviceConfiguration } diff --git a/models/windows_phone81_compliance_policy.go b/models/windows_phone81_compliance_policy.go index f1c35b74b64..f4474016d71 100644 --- a/models/windows_phone81_compliance_policy.go +++ b/models/windows_phone81_compliance_policy.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhone81CompliancePolicy +// WindowsPhone81CompliancePolicy this class contains compliance settings for Windows 8.1 Mobile. type WindowsPhone81CompliancePolicy struct { DeviceCompliancePolicy } -// NewWindowsPhone81CompliancePolicy instantiates a new WindowsPhone81CompliancePolicy and sets the default values. +// NewWindowsPhone81CompliancePolicy instantiates a new windowsPhone81CompliancePolicy and sets the default values. func NewWindowsPhone81CompliancePolicy()(*WindowsPhone81CompliancePolicy) { m := &WindowsPhone81CompliancePolicy{ DeviceCompliancePolicy: *NewDeviceCompliancePolicy(), diff --git a/models/windows_phone81_custom_configuration.go b/models/windows_phone81_custom_configuration.go index f77e0632f71..ee3451451cc 100644 --- a/models/windows_phone81_custom_configuration.go +++ b/models/windows_phone81_custom_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhone81CustomConfiguration +// WindowsPhone81CustomConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the windowsPhone81CustomConfiguration resource. type WindowsPhone81CustomConfiguration struct { DeviceConfiguration } -// NewWindowsPhone81CustomConfiguration instantiates a new WindowsPhone81CustomConfiguration and sets the default values. +// NewWindowsPhone81CustomConfiguration instantiates a new windowsPhone81CustomConfiguration and sets the default values. func NewWindowsPhone81CustomConfiguration()(*WindowsPhone81CustomConfiguration) { m := &WindowsPhone81CustomConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_phone81_general_configuration.go b/models/windows_phone81_general_configuration.go index fb9de478c13..a98712ca0d3 100644 --- a/models/windows_phone81_general_configuration.go +++ b/models/windows_phone81_general_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhone81GeneralConfiguration +// WindowsPhone81GeneralConfiguration this topic provides descriptions of the declared methods, properties and relationships exposed by the windowsPhone81GeneralConfiguration resource. type WindowsPhone81GeneralConfiguration struct { DeviceConfiguration } -// NewWindowsPhone81GeneralConfiguration instantiates a new WindowsPhone81GeneralConfiguration and sets the default values. +// NewWindowsPhone81GeneralConfiguration instantiates a new windowsPhone81GeneralConfiguration and sets the default values. func NewWindowsPhone81GeneralConfiguration()(*WindowsPhone81GeneralConfiguration) { m := &WindowsPhone81GeneralConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_phone81_imported_p_f_x_certificate_profile.go b/models/windows_phone81_imported_p_f_x_certificate_profile.go index 11bedf4851d..b6c6283c4cb 100644 --- a/models/windows_phone81_imported_p_f_x_certificate_profile.go +++ b/models/windows_phone81_imported_p_f_x_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhone81ImportedPFXCertificateProfile +// WindowsPhone81ImportedPFXCertificateProfile windows 8.1 Phone and Mobile PFX Import certificate profile type WindowsPhone81ImportedPFXCertificateProfile struct { WindowsCertificateProfileBase } -// NewWindowsPhone81ImportedPFXCertificateProfile instantiates a new WindowsPhone81ImportedPFXCertificateProfile and sets the default values. +// NewWindowsPhone81ImportedPFXCertificateProfile instantiates a new windowsPhone81ImportedPFXCertificateProfile and sets the default values. func NewWindowsPhone81ImportedPFXCertificateProfile()(*WindowsPhone81ImportedPFXCertificateProfile) { m := &WindowsPhone81ImportedPFXCertificateProfile{ WindowsCertificateProfileBase: *NewWindowsCertificateProfileBase(), diff --git a/models/windows_phone81_s_c_e_p_certificate_profile.go b/models/windows_phone81_s_c_e_p_certificate_profile.go index 215989be576..6103b6d4709 100644 --- a/models/windows_phone81_s_c_e_p_certificate_profile.go +++ b/models/windows_phone81_s_c_e_p_certificate_profile.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhone81SCEPCertificateProfile +// WindowsPhone81SCEPCertificateProfile windows Phone 8.1+ SCEP certificate profile type WindowsPhone81SCEPCertificateProfile struct { WindowsPhone81CertificateProfileBase } -// NewWindowsPhone81SCEPCertificateProfile instantiates a new WindowsPhone81SCEPCertificateProfile and sets the default values. +// NewWindowsPhone81SCEPCertificateProfile instantiates a new windowsPhone81SCEPCertificateProfile and sets the default values. func NewWindowsPhone81SCEPCertificateProfile()(*WindowsPhone81SCEPCertificateProfile) { m := &WindowsPhone81SCEPCertificateProfile{ WindowsPhone81CertificateProfileBase: *NewWindowsPhone81CertificateProfileBase(), diff --git a/models/windows_phone81_store_app.go b/models/windows_phone81_store_app.go index 27ad9fb0afe..0bb6be70300 100644 --- a/models/windows_phone81_store_app.go +++ b/models/windows_phone81_store_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhone81StoreApp +// WindowsPhone81StoreApp contains properties and inherited properties for Windows Phone 8.1 Store apps. Inherits from graph.mobileApp. Will be deprecated in February 2023. type WindowsPhone81StoreApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewWindowsPhone81StoreApp instantiates a new WindowsPhone81StoreApp and sets the default values. +// NewWindowsPhone81StoreApp instantiates a new windowsPhone81StoreApp and sets the default values. func NewWindowsPhone81StoreApp()(*WindowsPhone81StoreApp) { m := &WindowsPhone81StoreApp{ MobileApp: *NewMobileApp(), diff --git a/models/windows_phone81_trusted_root_certificate.go b/models/windows_phone81_trusted_root_certificate.go index 1b2e36d97c1..23cdaea1b2d 100644 --- a/models/windows_phone81_trusted_root_certificate.go +++ b/models/windows_phone81_trusted_root_certificate.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhone81TrustedRootCertificate +// WindowsPhone81TrustedRootCertificate windows Phone 8.1+ Trusted Root Certificate configuration profile type WindowsPhone81TrustedRootCertificate struct { DeviceConfiguration } diff --git a/models/windows_phone81_vpn_configuration.go b/models/windows_phone81_vpn_configuration.go index a1c4dcd41ea..01d6d0a9a60 100644 --- a/models/windows_phone81_vpn_configuration.go +++ b/models/windows_phone81_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhone81VpnConfiguration +// WindowsPhone81VpnConfiguration by providing the configurations in this profile you can instruct the Windows Phone 8.1 to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user. type WindowsPhone81VpnConfiguration struct { Windows81VpnConfiguration } -// NewWindowsPhone81VpnConfiguration instantiates a new WindowsPhone81VpnConfiguration and sets the default values. +// NewWindowsPhone81VpnConfiguration instantiates a new windowsPhone81VpnConfiguration and sets the default values. func NewWindowsPhone81VpnConfiguration()(*WindowsPhone81VpnConfiguration) { m := &WindowsPhone81VpnConfiguration{ Windows81VpnConfiguration: *NewWindows81VpnConfiguration(), 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 93b3de1ffe9..ad666d204f9 100644 --- a/models/windows_phone_e_a_s_email_profile_configuration.go +++ b/models/windows_phone_e_a_s_email_profile_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhoneEASEmailProfileConfiguration +// WindowsPhoneEASEmailProfileConfiguration by providing configurations in this profile you can instruct the native email client on Windows Phone to communicate with an Exchange server and get email, contacts, calendar, and tasks. Furthermore, you can also specify how much email to sync and how often the device should sync. type WindowsPhoneEASEmailProfileConfiguration struct { EasEmailProfileConfigurationBase } -// NewWindowsPhoneEASEmailProfileConfiguration instantiates a new WindowsPhoneEASEmailProfileConfiguration and sets the default values. +// NewWindowsPhoneEASEmailProfileConfiguration instantiates a new windowsPhoneEASEmailProfileConfiguration and sets the default values. func NewWindowsPhoneEASEmailProfileConfiguration()(*WindowsPhoneEASEmailProfileConfiguration) { m := &WindowsPhoneEASEmailProfileConfiguration{ EasEmailProfileConfigurationBase: *NewEasEmailProfileConfigurationBase(), diff --git a/models/windows_phone_x_a_p.go b/models/windows_phone_x_a_p.go index f2caa193c7b..6b26d89c12a 100644 --- a/models/windows_phone_x_a_p.go +++ b/models/windows_phone_x_a_p.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsPhoneXAP +// WindowsPhoneXAP contains properties and inherited properties for Windows Phone XAP Line Of Business apps. type WindowsPhoneXAP struct { MobileLobApp } -// NewWindowsPhoneXAP instantiates a new WindowsPhoneXAP and sets the default values. +// NewWindowsPhoneXAP instantiates a new windowsPhoneXAP and sets the default values. func NewWindowsPhoneXAP()(*WindowsPhoneXAP) { m := &WindowsPhoneXAP{ MobileLobApp: *NewMobileLobApp(), diff --git a/models/windows_privacy_data_access_control_item.go b/models/windows_privacy_data_access_control_item.go index 53c7fa7a88e..453b5411276 100644 --- a/models/windows_privacy_data_access_control_item.go +++ b/models/windows_privacy_data_access_control_item.go @@ -7,6 +7,8 @@ import ( // WindowsPrivacyDataAccessControlItem specify access control level per privacy data category type WindowsPrivacyDataAccessControlItem struct { Entity + // The OdataType property + OdataType *string } // NewWindowsPrivacyDataAccessControlItem instantiates a new windowsPrivacyDataAccessControlItem and sets the default values. func NewWindowsPrivacyDataAccessControlItem()(*WindowsPrivacyDataAccessControlItem) { diff --git a/models/windows_protection_state.go b/models/windows_protection_state.go index 77941bf0556..425d73586ce 100644 --- a/models/windows_protection_state.go +++ b/models/windows_protection_state.go @@ -5,9 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsProtectionState +// WindowsProtectionState device protection status entity. type WindowsProtectionState struct { Entity + // The OdataType property + OdataType *string } // NewWindowsProtectionState instantiates a new windowsProtectionState and sets the default values. func NewWindowsProtectionState()(*WindowsProtectionState) { diff --git a/models/windows_quality_update_catalog_item.go b/models/windows_quality_update_catalog_item.go index c2cb11755b1..5d5e7d6122c 100644 --- a/models/windows_quality_update_catalog_item.go +++ b/models/windows_quality_update_catalog_item.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsQualityUpdateCatalogItem +// WindowsQualityUpdateCatalogItem windows update catalog item entity type WindowsQualityUpdateCatalogItem struct { WindowsUpdateCatalogItem } -// NewWindowsQualityUpdateCatalogItem instantiates a new WindowsQualityUpdateCatalogItem and sets the default values. +// NewWindowsQualityUpdateCatalogItem instantiates a new windowsQualityUpdateCatalogItem and sets the default values. func NewWindowsQualityUpdateCatalogItem()(*WindowsQualityUpdateCatalogItem) { m := &WindowsQualityUpdateCatalogItem{ WindowsUpdateCatalogItem: *NewWindowsUpdateCatalogItem(), diff --git a/models/windows_quality_update_profile.go b/models/windows_quality_update_profile.go index c0c97aa3f09..984f6303bd1 100644 --- a/models/windows_quality_update_profile.go +++ b/models/windows_quality_update_profile.go @@ -8,6 +8,8 @@ import ( // WindowsQualityUpdateProfile windows Quality Update Profile type WindowsQualityUpdateProfile struct { Entity + // The OdataType property + OdataType *string } // NewWindowsQualityUpdateProfile instantiates a new windowsQualityUpdateProfile and sets the default values. func NewWindowsQualityUpdateProfile()(*WindowsQualityUpdateProfile) { diff --git a/models/windows_quality_update_profile_assignment.go b/models/windows_quality_update_profile_assignment.go index 7ec0d13946a..31ea81f048d 100644 --- a/models/windows_quality_update_profile_assignment.go +++ b/models/windows_quality_update_profile_assignment.go @@ -7,6 +7,8 @@ import ( // WindowsQualityUpdateProfileAssignment this entity contains the properties used to assign a windows quality update profile to a group. type WindowsQualityUpdateProfileAssignment struct { Entity + // The OdataType property + OdataType *string } // NewWindowsQualityUpdateProfileAssignment instantiates a new windowsQualityUpdateProfileAssignment and sets the default values. func NewWindowsQualityUpdateProfileAssignment()(*WindowsQualityUpdateProfileAssignment) { diff --git a/models/windows_quality_update_profile_assignment_collection_response.go b/models/windows_quality_update_profile_assignment_collection_response.go index a4944bcb819..32007d73f0d 100644 --- a/models/windows_quality_update_profile_assignment_collection_response.go +++ b/models/windows_quality_update_profile_assignment_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsQualityUpdateProfileAssignmentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsQualityUpdateProfileAssignmentCollectionResponse instantiates a new WindowsQualityUpdateProfileAssignmentCollectionResponse and sets the default values. +// NewWindowsQualityUpdateProfileAssignmentCollectionResponse instantiates a new windowsQualityUpdateProfileAssignmentCollectionResponse and sets the default values. func NewWindowsQualityUpdateProfileAssignmentCollectionResponse()(*WindowsQualityUpdateProfileAssignmentCollectionResponse) { m := &WindowsQualityUpdateProfileAssignmentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_quality_update_profile_collection_response.go b/models/windows_quality_update_profile_collection_response.go index 86bae8bb149..58d285c4df5 100644 --- a/models/windows_quality_update_profile_collection_response.go +++ b/models/windows_quality_update_profile_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsQualityUpdateProfileCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsQualityUpdateProfileCollectionResponse instantiates a new WindowsQualityUpdateProfileCollectionResponse and sets the default values. +// NewWindowsQualityUpdateProfileCollectionResponse instantiates a new windowsQualityUpdateProfileCollectionResponse and sets the default values. func NewWindowsQualityUpdateProfileCollectionResponse()(*WindowsQualityUpdateProfileCollectionResponse) { m := &WindowsQualityUpdateProfileCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_store_app.go b/models/windows_store_app.go index 1f3e925550e..fb4db77dcb4 100644 --- a/models/windows_store_app.go +++ b/models/windows_store_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsStoreApp +// WindowsStoreApp contains properties and inherited properties for Windows Store apps. type WindowsStoreApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewWindowsStoreApp instantiates a new WindowsStoreApp and sets the default values. +// NewWindowsStoreApp instantiates a new windowsStoreApp and sets the default values. func NewWindowsStoreApp()(*WindowsStoreApp) { m := &WindowsStoreApp{ MobileApp: *NewMobileApp(), diff --git a/models/windows_universal_app_x.go b/models/windows_universal_app_x.go index 76772af34a4..fab95e77586 100644 --- a/models/windows_universal_app_x.go +++ b/models/windows_universal_app_x.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsUniversalAppX +// WindowsUniversalAppX contains properties and inherited properties for Windows Universal AppX Line Of Business apps. type WindowsUniversalAppX struct { MobileLobApp } -// NewWindowsUniversalAppX instantiates a new WindowsUniversalAppX and sets the default values. +// NewWindowsUniversalAppX instantiates a new windowsUniversalAppX and sets the default values. func NewWindowsUniversalAppX()(*WindowsUniversalAppX) { m := &WindowsUniversalAppX{ MobileLobApp: *NewMobileLobApp(), diff --git a/models/windows_universal_app_x_app_assignment_settings.go b/models/windows_universal_app_x_app_assignment_settings.go index cab860cb7c7..f8f8243b008 100644 --- a/models/windows_universal_app_x_app_assignment_settings.go +++ b/models/windows_universal_app_x_app_assignment_settings.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsUniversalAppXAppAssignmentSettings +// WindowsUniversalAppXAppAssignmentSettings contains properties used when assigning a Windows Universal AppX mobile app to a group. type WindowsUniversalAppXAppAssignmentSettings struct { MobileAppAssignmentSettings } -// NewWindowsUniversalAppXAppAssignmentSettings instantiates a new WindowsUniversalAppXAppAssignmentSettings and sets the default values. +// NewWindowsUniversalAppXAppAssignmentSettings instantiates a new windowsUniversalAppXAppAssignmentSettings and sets the default values. func NewWindowsUniversalAppXAppAssignmentSettings()(*WindowsUniversalAppXAppAssignmentSettings) { m := &WindowsUniversalAppXAppAssignmentSettings{ MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), @@ -24,6 +24,16 @@ func CreateWindowsUniversalAppXAppAssignmentSettingsFromDiscriminatorValue(parse // GetFieldDeserializers the deserialization information for the current model func (m *WindowsUniversalAppXAppAssignmentSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MobileAppAssignmentSettings.GetFieldDeserializers() + 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["useDeviceContext"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -36,6 +46,17 @@ func (m *WindowsUniversalAppXAppAssignmentSettings) GetFieldDeserializers()(map[ } return res } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WindowsUniversalAppXAppAssignmentSettings) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // 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") @@ -53,6 +74,12 @@ func (m *WindowsUniversalAppXAppAssignmentSettings) Serialize(writer i878a80d233 if err != nil { return err } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("useDeviceContext", m.GetUseDeviceContext()) if err != nil { @@ -61,6 +88,13 @@ func (m *WindowsUniversalAppXAppAssignmentSettings) Serialize(writer i878a80d233 } return nil } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WindowsUniversalAppXAppAssignmentSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // 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) @@ -72,6 +106,8 @@ func (m *WindowsUniversalAppXAppAssignmentSettings) SetUseDeviceContext(value *b type WindowsUniversalAppXAppAssignmentSettingsable interface { MobileAppAssignmentSettingsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOdataType()(*string) GetUseDeviceContext()(*bool) + SetOdataType(value *string)() SetUseDeviceContext(value *bool)() } diff --git a/models/windows_universal_app_x_contained_app.go b/models/windows_universal_app_x_contained_app.go index fc63255de22..0d9082f7ba5 100644 --- a/models/windows_universal_app_x_contained_app.go +++ b/models/windows_universal_app_x_contained_app.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsUniversalAppXContainedApp +// WindowsUniversalAppXContainedApp a class that represents a contained app of a WindowsUniversalAppX app. type WindowsUniversalAppXContainedApp struct { MobileContainedApp } -// NewWindowsUniversalAppXContainedApp instantiates a new WindowsUniversalAppXContainedApp and sets the default values. +// NewWindowsUniversalAppXContainedApp instantiates a new windowsUniversalAppXContainedApp and sets the default values. func NewWindowsUniversalAppXContainedApp()(*WindowsUniversalAppXContainedApp) { m := &WindowsUniversalAppXContainedApp{ MobileContainedApp: *NewMobileContainedApp(), diff --git a/models/windows_update_active_hours_install.go b/models/windows_update_active_hours_install.go index 14b213f8298..41c0266910c 100644 --- a/models/windows_update_active_hours_install.go +++ b/models/windows_update_active_hours_install.go @@ -7,8 +7,10 @@ import ( // WindowsUpdateActiveHoursInstall type WindowsUpdateActiveHoursInstall struct { WindowsUpdateInstallScheduleType + // The OdataType property + OdataType *string } -// NewWindowsUpdateActiveHoursInstall instantiates a new WindowsUpdateActiveHoursInstall and sets the default values. +// NewWindowsUpdateActiveHoursInstall instantiates a new windowsUpdateActiveHoursInstall and sets the default values. func NewWindowsUpdateActiveHoursInstall()(*WindowsUpdateActiveHoursInstall) { m := &WindowsUpdateActiveHoursInstall{ WindowsUpdateInstallScheduleType: *NewWindowsUpdateInstallScheduleType(), diff --git a/models/windows_update_catalog_item.go b/models/windows_update_catalog_item.go index ce8eacfeccf..472cca7f543 100644 --- a/models/windows_update_catalog_item.go +++ b/models/windows_update_catalog_item.go @@ -8,6 +8,8 @@ import ( // WindowsUpdateCatalogItem windows update catalog item entity type WindowsUpdateCatalogItem struct { Entity + // The OdataType property + OdataType *string } // NewWindowsUpdateCatalogItem instantiates a new windowsUpdateCatalogItem and sets the default values. func NewWindowsUpdateCatalogItem()(*WindowsUpdateCatalogItem) { diff --git a/models/windows_update_catalog_item_collection_response.go b/models/windows_update_catalog_item_collection_response.go index de4fd874600..7295c9bf447 100644 --- a/models/windows_update_catalog_item_collection_response.go +++ b/models/windows_update_catalog_item_collection_response.go @@ -8,7 +8,7 @@ import ( type WindowsUpdateCatalogItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWindowsUpdateCatalogItemCollectionResponse instantiates a new WindowsUpdateCatalogItemCollectionResponse and sets the default values. +// NewWindowsUpdateCatalogItemCollectionResponse instantiates a new windowsUpdateCatalogItemCollectionResponse and sets the default values. func NewWindowsUpdateCatalogItemCollectionResponse()(*WindowsUpdateCatalogItemCollectionResponse) { m := &WindowsUpdateCatalogItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/windows_update_for_business_configuration.go b/models/windows_update_for_business_configuration.go index e2abd201320..6a8796f4a8e 100644 --- a/models/windows_update_for_business_configuration.go +++ b/models/windows_update_for_business_configuration.go @@ -5,11 +5,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsUpdateForBusinessConfiguration +// WindowsUpdateForBusinessConfiguration windows Update for business configuration, allows you to specify how and when Windows as a Service updates your Windows 10/11 devices with feature and quality updates. Supports ODATA clauses that DeviceConfiguration entity supports: $filter by types of DeviceConfiguration, $top, $select only DeviceConfiguration base properties, $orderby only DeviceConfiguration base properties, and $skip. The query parameter '$search' is not supported. type WindowsUpdateForBusinessConfiguration struct { DeviceConfiguration } -// NewWindowsUpdateForBusinessConfiguration instantiates a new WindowsUpdateForBusinessConfiguration and sets the default values. +// NewWindowsUpdateForBusinessConfiguration instantiates a new windowsUpdateForBusinessConfiguration and sets the default values. func NewWindowsUpdateForBusinessConfiguration()(*WindowsUpdateForBusinessConfiguration) { m := &WindowsUpdateForBusinessConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_update_scheduled_install.go b/models/windows_update_scheduled_install.go index 0df6b89b455..3c755b8c233 100644 --- a/models/windows_update_scheduled_install.go +++ b/models/windows_update_scheduled_install.go @@ -7,8 +7,10 @@ import ( // WindowsUpdateScheduledInstall type WindowsUpdateScheduledInstall struct { WindowsUpdateInstallScheduleType + // The OdataType property + OdataType *string } -// NewWindowsUpdateScheduledInstall instantiates a new WindowsUpdateScheduledInstall and sets the default values. +// NewWindowsUpdateScheduledInstall instantiates a new windowsUpdateScheduledInstall and sets the default values. func NewWindowsUpdateScheduledInstall()(*WindowsUpdateScheduledInstall) { m := &WindowsUpdateScheduledInstall{ WindowsUpdateInstallScheduleType: *NewWindowsUpdateInstallScheduleType(), diff --git a/models/windows_update_state.go b/models/windows_update_state.go index 52241927d7d..14c4823d31f 100644 --- a/models/windows_update_state.go +++ b/models/windows_update_state.go @@ -8,8 +8,10 @@ import ( // WindowsUpdateState type WindowsUpdateState struct { Entity + // The OdataType property + OdataType *string } -// NewWindowsUpdateState instantiates a new WindowsUpdateState and sets the default values. +// NewWindowsUpdateState instantiates a new windowsUpdateState and sets the default values. func NewWindowsUpdateState()(*WindowsUpdateState) { m := &WindowsUpdateState{ Entity: *NewEntity(), diff --git a/models/windows_vpn_configuration.go b/models/windows_vpn_configuration.go index 54feae85d06..9c988c3734d 100644 --- a/models/windows_vpn_configuration.go +++ b/models/windows_vpn_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsVpnConfiguration +// WindowsVpnConfiguration windows VPN configuration profile. type WindowsVpnConfiguration struct { DeviceConfiguration } -// NewWindowsVpnConfiguration instantiates a new WindowsVpnConfiguration and sets the default values. +// NewWindowsVpnConfiguration instantiates a new windowsVpnConfiguration and sets the default values. func NewWindowsVpnConfiguration()(*WindowsVpnConfiguration) { m := &WindowsVpnConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_web_app.go b/models/windows_web_app.go index 31e40e024fb..54c46a3f8e3 100644 --- a/models/windows_web_app.go +++ b/models/windows_web_app.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsWebApp +// WindowsWebApp contains properties and inherited properties for Windows web apps. type WindowsWebApp struct { MobileApp + // The OdataType property + OdataType *string } -// NewWindowsWebApp instantiates a new WindowsWebApp and sets the default values. +// NewWindowsWebApp instantiates a new windowsWebApp and sets the default values. func NewWindowsWebApp()(*WindowsWebApp) { m := &WindowsWebApp{ MobileApp: *NewMobileApp(), diff --git a/models/windows_wifi_configuration.go b/models/windows_wifi_configuration.go index b4cd08e169c..ed48468dae2 100644 --- a/models/windows_wifi_configuration.go +++ b/models/windows_wifi_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsWifiConfiguration +// WindowsWifiConfiguration device Configuration. type WindowsWifiConfiguration struct { DeviceConfiguration } -// NewWindowsWifiConfiguration instantiates a new WindowsWifiConfiguration and sets the default values. +// NewWindowsWifiConfiguration instantiates a new windowsWifiConfiguration and sets the default values. func NewWindowsWifiConfiguration()(*WindowsWifiConfiguration) { m := &WindowsWifiConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windows_wifi_enterprise_e_a_p_configuration.go b/models/windows_wifi_enterprise_e_a_p_configuration.go index d17b597d693..e2a14bcffaa 100644 --- a/models/windows_wifi_enterprise_e_a_p_configuration.go +++ b/models/windows_wifi_enterprise_e_a_p_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsWifiEnterpriseEAPConfiguration +// WindowsWifiEnterpriseEAPConfiguration this entity provides descriptions of the declared methods, properties and relationships exposed by the Wifi CSP. type WindowsWifiEnterpriseEAPConfiguration struct { WindowsWifiConfiguration } -// NewWindowsWifiEnterpriseEAPConfiguration instantiates a new WindowsWifiEnterpriseEAPConfiguration and sets the default values. +// NewWindowsWifiEnterpriseEAPConfiguration instantiates a new windowsWifiEnterpriseEAPConfiguration and sets the default values. func NewWindowsWifiEnterpriseEAPConfiguration()(*WindowsWifiEnterpriseEAPConfiguration) { m := &WindowsWifiEnterpriseEAPConfiguration{ WindowsWifiConfiguration: *NewWindowsWifiConfiguration(), diff --git a/models/windows_wired_network_configuration.go b/models/windows_wired_network_configuration.go index 3ce98865a70..3bd113f83a5 100644 --- a/models/windows_wired_network_configuration.go +++ b/models/windows_wired_network_configuration.go @@ -4,11 +4,11 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// WindowsWiredNetworkConfiguration +// WindowsWiredNetworkConfiguration this entity provides descriptions of the declared methods, properties and relationships exposed by the Wired Network CSP. type WindowsWiredNetworkConfiguration struct { DeviceConfiguration } -// NewWindowsWiredNetworkConfiguration instantiates a new WindowsWiredNetworkConfiguration and sets the default values. +// NewWindowsWiredNetworkConfiguration instantiates a new windowsWiredNetworkConfiguration and sets the default values. func NewWindowsWiredNetworkConfiguration()(*WindowsWiredNetworkConfiguration) { m := &WindowsWiredNetworkConfiguration{ DeviceConfiguration: *NewDeviceConfiguration(), diff --git a/models/windowsupdates/applicable_content_device_match.go b/models/windowsupdates/applicable_content_device_match.go index f8a918396db..c5e4ed4b11d 100644 --- a/models/windowsupdates/applicable_content_device_match.go +++ b/models/windowsupdates/applicable_content_device_match.go @@ -10,7 +10,7 @@ type ApplicableContentDeviceMatch struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewApplicableContentDeviceMatch instantiates a new ApplicableContentDeviceMatch and sets the default values. +// NewApplicableContentDeviceMatch instantiates a new applicableContentDeviceMatch and sets the default values. func NewApplicableContentDeviceMatch()(*ApplicableContentDeviceMatch) { m := &ApplicableContentDeviceMatch{ } diff --git a/models/windowsupdates/azure_a_d_device.go b/models/windowsupdates/azure_a_d_device.go index 65beef6ad25..f6de11a7db8 100644 --- a/models/windowsupdates/azure_a_d_device.go +++ b/models/windowsupdates/azure_a_d_device.go @@ -8,7 +8,7 @@ import ( type AzureADDevice struct { UpdatableAsset } -// NewAzureADDevice instantiates a new AzureADDevice and sets the default values. +// NewAzureADDevice instantiates a new azureADDevice and sets the default values. func NewAzureADDevice()(*AzureADDevice) { m := &AzureADDevice{ UpdatableAsset: *NewUpdatableAsset(), diff --git a/models/windowsupdates/azure_a_d_device_registration_error.go b/models/windowsupdates/azure_a_d_device_registration_error.go index c877e7c9486..3ad3fa63db1 100644 --- a/models/windowsupdates/azure_a_d_device_registration_error.go +++ b/models/windowsupdates/azure_a_d_device_registration_error.go @@ -7,8 +7,10 @@ import ( // AzureADDeviceRegistrationError type AzureADDeviceRegistrationError struct { UpdatableAssetError + // The OdataType property + OdataType *string } -// NewAzureADDeviceRegistrationError instantiates a new AzureADDeviceRegistrationError and sets the default values. +// NewAzureADDeviceRegistrationError instantiates a new azureADDeviceRegistrationError and sets the default values. func NewAzureADDeviceRegistrationError()(*AzureADDeviceRegistrationError) { m := &AzureADDeviceRegistrationError{ UpdatableAssetError: *NewUpdatableAssetError(), diff --git a/models/windowsupdates/catalog.go b/models/windowsupdates/catalog.go index 2e2a85bd1bc..a6d650fba4f 100644 --- a/models/windowsupdates/catalog.go +++ b/models/windowsupdates/catalog.go @@ -8,6 +8,8 @@ import ( // Catalog type Catalog struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCatalog instantiates a new catalog and sets the default values. func NewCatalog()(*Catalog) { diff --git a/models/windowsupdates/catalog_content.go b/models/windowsupdates/catalog_content.go index 44a1178a569..407ed678e7d 100644 --- a/models/windowsupdates/catalog_content.go +++ b/models/windowsupdates/catalog_content.go @@ -7,8 +7,10 @@ import ( // CatalogContent type CatalogContent struct { DeployableContent + // The OdataType property + OdataType *string } -// NewCatalogContent instantiates a new CatalogContent and sets the default values. +// NewCatalogContent instantiates a new catalogContent and sets the default values. func NewCatalogContent()(*CatalogContent) { m := &CatalogContent{ DeployableContent: *NewDeployableContent(), diff --git a/models/windowsupdates/catalog_entry.go b/models/windowsupdates/catalog_entry.go index 55e08c5ed5f..2873e104827 100644 --- a/models/windowsupdates/catalog_entry.go +++ b/models/windowsupdates/catalog_entry.go @@ -9,6 +9,8 @@ import ( // CatalogEntry type CatalogEntry struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewCatalogEntry instantiates a new catalogEntry and sets the default values. func NewCatalogEntry()(*CatalogEntry) { diff --git a/models/windowsupdates/catalog_entry_collection_response.go b/models/windowsupdates/catalog_entry_collection_response.go index a898ee19bc0..7aa4612f7cf 100644 --- a/models/windowsupdates/catalog_entry_collection_response.go +++ b/models/windowsupdates/catalog_entry_collection_response.go @@ -9,7 +9,7 @@ import ( type CatalogEntryCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewCatalogEntryCollectionResponse instantiates a new CatalogEntryCollectionResponse and sets the default values. +// NewCatalogEntryCollectionResponse instantiates a new catalogEntryCollectionResponse and sets the default values. func NewCatalogEntryCollectionResponse()(*CatalogEntryCollectionResponse) { m := &CatalogEntryCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/windowsupdates/compliance_change.go b/models/windowsupdates/compliance_change.go index 180675be025..6932211b228 100644 --- a/models/windowsupdates/compliance_change.go +++ b/models/windowsupdates/compliance_change.go @@ -9,6 +9,8 @@ import ( // ComplianceChange type ComplianceChange struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewComplianceChange instantiates a new complianceChange and sets the default values. func NewComplianceChange()(*ComplianceChange) { diff --git a/models/windowsupdates/compliance_change_collection_response.go b/models/windowsupdates/compliance_change_collection_response.go index 28b1d25848e..6c5ba633d38 100644 --- a/models/windowsupdates/compliance_change_collection_response.go +++ b/models/windowsupdates/compliance_change_collection_response.go @@ -9,7 +9,7 @@ import ( type ComplianceChangeCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewComplianceChangeCollectionResponse instantiates a new ComplianceChangeCollectionResponse and sets the default values. +// NewComplianceChangeCollectionResponse instantiates a new complianceChangeCollectionResponse and sets the default values. func NewComplianceChangeCollectionResponse()(*ComplianceChangeCollectionResponse) { m := &ComplianceChangeCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/windowsupdates/content_approval.go b/models/windowsupdates/content_approval.go index 41004703288..21ab6ef50e7 100644 --- a/models/windowsupdates/content_approval.go +++ b/models/windowsupdates/content_approval.go @@ -8,7 +8,7 @@ import ( type ContentApproval struct { ComplianceChange } -// NewContentApproval instantiates a new ContentApproval and sets the default values. +// NewContentApproval instantiates a new contentApproval and sets the default values. func NewContentApproval()(*ContentApproval) { m := &ContentApproval{ ComplianceChange: *NewComplianceChange(), diff --git a/models/windowsupdates/content_approval_rule.go b/models/windowsupdates/content_approval_rule.go index e69e99c816b..0bcd00224f8 100644 --- a/models/windowsupdates/content_approval_rule.go +++ b/models/windowsupdates/content_approval_rule.go @@ -8,7 +8,7 @@ import ( type ContentApprovalRule struct { ComplianceChangeRule } -// NewContentApprovalRule instantiates a new ContentApprovalRule and sets the default values. +// NewContentApprovalRule instantiates a new contentApprovalRule and sets the default values. func NewContentApprovalRule()(*ContentApprovalRule) { m := &ContentApprovalRule{ ComplianceChangeRule: *NewComplianceChangeRule(), @@ -66,8 +66,29 @@ func (m *ContentApprovalRule) GetFieldDeserializers()(map[string]func(i878a80d23 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *ContentApprovalRule) 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 *ContentApprovalRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.ComplianceChangeRule.Serialize(writer) @@ -86,6 +107,12 @@ func (m *ContentApprovalRule) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetContentFilter sets the contentFilter property value. A filter to determine which content matches the rule on an ongoing basis. @@ -102,12 +129,21 @@ func (m *ContentApprovalRule) SetDurationBeforeDeploymentStart(value *i878a80d23 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ContentApprovalRule) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // ContentApprovalRuleable type ContentApprovalRuleable interface { ComplianceChangeRuleable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetContentFilter()(ContentFilterable) GetDurationBeforeDeploymentStart()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) + GetOdataType()(*string) SetContentFilter(value ContentFilterable)() SetDurationBeforeDeploymentStart(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() + SetOdataType(value *string)() } diff --git a/models/windowsupdates/date_driven_rollout_settings.go b/models/windowsupdates/date_driven_rollout_settings.go index a8b86360144..19d4e1540fa 100644 --- a/models/windowsupdates/date_driven_rollout_settings.go +++ b/models/windowsupdates/date_driven_rollout_settings.go @@ -9,7 +9,7 @@ import ( type DateDrivenRolloutSettings struct { GradualRolloutSettings } -// NewDateDrivenRolloutSettings instantiates a new DateDrivenRolloutSettings and sets the default values. +// NewDateDrivenRolloutSettings instantiates a new dateDrivenRolloutSettings and sets the default values. func NewDateDrivenRolloutSettings()(*DateDrivenRolloutSettings) { m := &DateDrivenRolloutSettings{ GradualRolloutSettings: *NewGradualRolloutSettings(), @@ -46,8 +46,29 @@ func (m *DateDrivenRolloutSettings) GetFieldDeserializers()(map[string]func(i878 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *DateDrivenRolloutSettings) 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 *DateDrivenRolloutSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.GradualRolloutSettings.Serialize(writer) @@ -60,6 +81,12 @@ func (m *DateDrivenRolloutSettings) Serialize(writer i878a80d2330e89d26896388a3f return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetEndDateTime sets the endDateTime property value. Specifies the date before which all devices currently in the deployment are offered the update. Devices added after this date are offered immediately. When the endDateTime is not set, all devices in the deployment are offered content at the same time. @@ -69,10 +96,19 @@ func (m *DateDrivenRolloutSettings) SetEndDateTime(value *i336074805fc853987abe6 panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DateDrivenRolloutSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // DateDrivenRolloutSettingsable type DateDrivenRolloutSettingsable interface { GradualRolloutSettingsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() } diff --git a/models/windowsupdates/deployment.go b/models/windowsupdates/deployment.go index 0a36b81894f..3abde644945 100644 --- a/models/windowsupdates/deployment.go +++ b/models/windowsupdates/deployment.go @@ -9,6 +9,8 @@ import ( // Deployment type Deployment struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDeployment instantiates a new deployment and sets the default values. func NewDeployment()(*Deployment) { diff --git a/models/windowsupdates/deployment_audience.go b/models/windowsupdates/deployment_audience.go index 3a07dd8e6b9..4b04947efeb 100644 --- a/models/windowsupdates/deployment_audience.go +++ b/models/windowsupdates/deployment_audience.go @@ -8,6 +8,8 @@ import ( // DeploymentAudience type DeploymentAudience struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewDeploymentAudience instantiates a new deploymentAudience and sets the default values. func NewDeploymentAudience()(*DeploymentAudience) { diff --git a/models/windowsupdates/deployment_audience_collection_response.go b/models/windowsupdates/deployment_audience_collection_response.go index 1b356379bb0..361260f5cc3 100644 --- a/models/windowsupdates/deployment_audience_collection_response.go +++ b/models/windowsupdates/deployment_audience_collection_response.go @@ -9,7 +9,7 @@ import ( type DeploymentAudienceCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewDeploymentAudienceCollectionResponse instantiates a new DeploymentAudienceCollectionResponse and sets the default values. +// NewDeploymentAudienceCollectionResponse instantiates a new deploymentAudienceCollectionResponse and sets the default values. func NewDeploymentAudienceCollectionResponse()(*DeploymentAudienceCollectionResponse) { m := &DeploymentAudienceCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/windowsupdates/deployment_collection_response.go b/models/windowsupdates/deployment_collection_response.go index 51f1aab78e0..ad64714be9d 100644 --- a/models/windowsupdates/deployment_collection_response.go +++ b/models/windowsupdates/deployment_collection_response.go @@ -9,7 +9,7 @@ import ( type DeploymentCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewDeploymentCollectionResponse instantiates a new DeploymentCollectionResponse and sets the default values. +// NewDeploymentCollectionResponse instantiates a new deploymentCollectionResponse and sets the default values. func NewDeploymentCollectionResponse()(*DeploymentCollectionResponse) { m := &DeploymentCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/windowsupdates/deployment_state_reason.go b/models/windowsupdates/deployment_state_reason.go index fd890850a47..99f97a04f53 100644 --- a/models/windowsupdates/deployment_state_reason.go +++ b/models/windowsupdates/deployment_state_reason.go @@ -10,7 +10,7 @@ type DeploymentStateReason struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewDeploymentStateReason instantiates a new DeploymentStateReason and sets the default values. +// NewDeploymentStateReason instantiates a new deploymentStateReason and sets the default values. func NewDeploymentStateReason()(*DeploymentStateReason) { m := &DeploymentStateReason{ } diff --git a/models/windowsupdates/driver_update_catalog_entry.go b/models/windowsupdates/driver_update_catalog_entry.go index 8c4e8f0557f..c3f46d57bd0 100644 --- a/models/windowsupdates/driver_update_catalog_entry.go +++ b/models/windowsupdates/driver_update_catalog_entry.go @@ -9,7 +9,7 @@ import ( type DriverUpdateCatalogEntry struct { SoftwareUpdateCatalogEntry } -// NewDriverUpdateCatalogEntry instantiates a new DriverUpdateCatalogEntry and sets the default values. +// NewDriverUpdateCatalogEntry instantiates a new driverUpdateCatalogEntry and sets the default values. func NewDriverUpdateCatalogEntry()(*DriverUpdateCatalogEntry) { m := &DriverUpdateCatalogEntry{ SoftwareUpdateCatalogEntry: *NewSoftwareUpdateCatalogEntry(), diff --git a/models/windowsupdates/driver_update_filter.go b/models/windowsupdates/driver_update_filter.go index 0fac10e0009..9d3014d4e86 100644 --- a/models/windowsupdates/driver_update_filter.go +++ b/models/windowsupdates/driver_update_filter.go @@ -8,7 +8,7 @@ import ( type DriverUpdateFilter struct { WindowsUpdateFilter } -// NewDriverUpdateFilter instantiates a new DriverUpdateFilter and sets the default values. +// NewDriverUpdateFilter instantiates a new driverUpdateFilter and sets the default values. func NewDriverUpdateFilter()(*DriverUpdateFilter) { m := &DriverUpdateFilter{ WindowsUpdateFilter: *NewWindowsUpdateFilter(), diff --git a/models/windowsupdates/duration_driven_rollout_settings.go b/models/windowsupdates/duration_driven_rollout_settings.go index ad0ab5ec809..2e8c6b2867a 100644 --- a/models/windowsupdates/duration_driven_rollout_settings.go +++ b/models/windowsupdates/duration_driven_rollout_settings.go @@ -7,8 +7,10 @@ import ( // DurationDrivenRolloutSettings type DurationDrivenRolloutSettings struct { GradualRolloutSettings + // The OdataType property + OdataType *string } -// NewDurationDrivenRolloutSettings instantiates a new DurationDrivenRolloutSettings and sets the default values. +// NewDurationDrivenRolloutSettings instantiates a new durationDrivenRolloutSettings and sets the default values. func NewDurationDrivenRolloutSettings()(*DurationDrivenRolloutSettings) { m := &DurationDrivenRolloutSettings{ GradualRolloutSettings: *NewGradualRolloutSettings(), diff --git a/models/windowsupdates/feature_update_catalog_entry.go b/models/windowsupdates/feature_update_catalog_entry.go index 43aae71e631..1a87fb9556f 100644 --- a/models/windowsupdates/feature_update_catalog_entry.go +++ b/models/windowsupdates/feature_update_catalog_entry.go @@ -8,7 +8,7 @@ import ( type FeatureUpdateCatalogEntry struct { SoftwareUpdateCatalogEntry } -// NewFeatureUpdateCatalogEntry instantiates a new FeatureUpdateCatalogEntry and sets the default values. +// NewFeatureUpdateCatalogEntry instantiates a new featureUpdateCatalogEntry and sets the default values. func NewFeatureUpdateCatalogEntry()(*FeatureUpdateCatalogEntry) { m := &FeatureUpdateCatalogEntry{ SoftwareUpdateCatalogEntry: *NewSoftwareUpdateCatalogEntry(), diff --git a/models/windowsupdates/operational_insights_connection.go b/models/windowsupdates/operational_insights_connection.go index 614af15478c..4659e964fa4 100644 --- a/models/windowsupdates/operational_insights_connection.go +++ b/models/windowsupdates/operational_insights_connection.go @@ -8,7 +8,7 @@ import ( type OperationalInsightsConnection struct { ResourceConnection } -// NewOperationalInsightsConnection instantiates a new OperationalInsightsConnection and sets the default values. +// NewOperationalInsightsConnection instantiates a new operationalInsightsConnection and sets the default values. func NewOperationalInsightsConnection()(*OperationalInsightsConnection) { m := &OperationalInsightsConnection{ ResourceConnection: *NewResourceConnection(), diff --git a/models/windowsupdates/quality_update_catalog_entry.go b/models/windowsupdates/quality_update_catalog_entry.go index 45be6cac0fb..f31b33ada05 100644 --- a/models/windowsupdates/quality_update_catalog_entry.go +++ b/models/windowsupdates/quality_update_catalog_entry.go @@ -8,7 +8,7 @@ import ( type QualityUpdateCatalogEntry struct { SoftwareUpdateCatalogEntry } -// NewQualityUpdateCatalogEntry instantiates a new QualityUpdateCatalogEntry and sets the default values. +// NewQualityUpdateCatalogEntry instantiates a new qualityUpdateCatalogEntry and sets the default values. func NewQualityUpdateCatalogEntry()(*QualityUpdateCatalogEntry) { m := &QualityUpdateCatalogEntry{ SoftwareUpdateCatalogEntry: *NewSoftwareUpdateCatalogEntry(), diff --git a/models/windowsupdates/rate_driven_rollout_settings.go b/models/windowsupdates/rate_driven_rollout_settings.go index 311e2a4cc19..8542c30d571 100644 --- a/models/windowsupdates/rate_driven_rollout_settings.go +++ b/models/windowsupdates/rate_driven_rollout_settings.go @@ -8,7 +8,7 @@ import ( type RateDrivenRolloutSettings struct { GradualRolloutSettings } -// NewRateDrivenRolloutSettings instantiates a new RateDrivenRolloutSettings and sets the default values. +// NewRateDrivenRolloutSettings instantiates a new rateDrivenRolloutSettings and sets the default values. func NewRateDrivenRolloutSettings()(*RateDrivenRolloutSettings) { m := &RateDrivenRolloutSettings{ GradualRolloutSettings: *NewGradualRolloutSettings(), @@ -45,8 +45,29 @@ func (m *RateDrivenRolloutSettings) GetFieldDeserializers()(map[string]func(i878 } 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 } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *RateDrivenRolloutSettings) 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 *RateDrivenRolloutSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.GradualRolloutSettings.Serialize(writer) @@ -59,6 +80,12 @@ func (m *RateDrivenRolloutSettings) Serialize(writer i878a80d2330e89d26896388a3f return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetDevicesPerOffer sets the devicesPerOffer property value. Specifies the number of devices that are offered at the same time. When not set, all devices in the deployment are offered content at the same time. @@ -68,10 +95,19 @@ func (m *RateDrivenRolloutSettings) SetDevicesPerOffer(value *int32)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RateDrivenRolloutSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // RateDrivenRolloutSettingsable type RateDrivenRolloutSettingsable interface { GradualRolloutSettingsable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDevicesPerOffer()(*int32) + GetOdataType()(*string) SetDevicesPerOffer(value *int32)() + SetOdataType(value *string)() } diff --git a/models/windowsupdates/resource_connection.go b/models/windowsupdates/resource_connection.go index 66af1433a08..13ab0b1b1c9 100644 --- a/models/windowsupdates/resource_connection.go +++ b/models/windowsupdates/resource_connection.go @@ -8,6 +8,8 @@ import ( // ResourceConnection type ResourceConnection struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewResourceConnection instantiates a new resourceConnection and sets the default values. func NewResourceConnection()(*ResourceConnection) { diff --git a/models/windowsupdates/resource_connection_collection_response.go b/models/windowsupdates/resource_connection_collection_response.go index a34c1d4a94c..64b8df8f071 100644 --- a/models/windowsupdates/resource_connection_collection_response.go +++ b/models/windowsupdates/resource_connection_collection_response.go @@ -9,7 +9,7 @@ import ( type ResourceConnectionCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewResourceConnectionCollectionResponse instantiates a new ResourceConnectionCollectionResponse and sets the default values. +// NewResourceConnectionCollectionResponse instantiates a new resourceConnectionCollectionResponse and sets the default values. func NewResourceConnectionCollectionResponse()(*ResourceConnectionCollectionResponse) { m := &ResourceConnectionCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/windowsupdates/software_update_catalog_entry.go b/models/windowsupdates/software_update_catalog_entry.go index ade1ecb4405..0ec9fbc014e 100644 --- a/models/windowsupdates/software_update_catalog_entry.go +++ b/models/windowsupdates/software_update_catalog_entry.go @@ -8,7 +8,7 @@ import ( type SoftwareUpdateCatalogEntry struct { CatalogEntry } -// NewSoftwareUpdateCatalogEntry instantiates a new SoftwareUpdateCatalogEntry and sets the default values. +// NewSoftwareUpdateCatalogEntry instantiates a new softwareUpdateCatalogEntry and sets the default values. func NewSoftwareUpdateCatalogEntry()(*SoftwareUpdateCatalogEntry) { m := &SoftwareUpdateCatalogEntry{ CatalogEntry: *NewCatalogEntry(), diff --git a/models/windowsupdates/software_update_filter.go b/models/windowsupdates/software_update_filter.go index ec40ea3e476..524c7dcd4f1 100644 --- a/models/windowsupdates/software_update_filter.go +++ b/models/windowsupdates/software_update_filter.go @@ -7,8 +7,10 @@ import ( // SoftwareUpdateFilter type SoftwareUpdateFilter struct { ContentFilter + // The OdataType property + OdataType *string } -// NewSoftwareUpdateFilter instantiates a new SoftwareUpdateFilter and sets the default values. +// NewSoftwareUpdateFilter instantiates a new softwareUpdateFilter and sets the default values. func NewSoftwareUpdateFilter()(*SoftwareUpdateFilter) { m := &SoftwareUpdateFilter{ ContentFilter: *NewContentFilter(), diff --git a/models/windowsupdates/updatable_asset.go b/models/windowsupdates/updatable_asset.go index 64fa76ec927..2c236cb1fd2 100644 --- a/models/windowsupdates/updatable_asset.go +++ b/models/windowsupdates/updatable_asset.go @@ -8,6 +8,8 @@ import ( // UpdatableAsset type UpdatableAsset struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewUpdatableAsset instantiates a new updatableAsset and sets the default values. func NewUpdatableAsset()(*UpdatableAsset) { diff --git a/models/windowsupdates/updatable_asset_collection_response.go b/models/windowsupdates/updatable_asset_collection_response.go index f4afa2eac47..53a54e4f6c8 100644 --- a/models/windowsupdates/updatable_asset_collection_response.go +++ b/models/windowsupdates/updatable_asset_collection_response.go @@ -9,7 +9,7 @@ import ( type UpdatableAssetCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewUpdatableAssetCollectionResponse instantiates a new UpdatableAssetCollectionResponse and sets the default values. +// NewUpdatableAssetCollectionResponse instantiates a new updatableAssetCollectionResponse and sets the default values. func NewUpdatableAssetCollectionResponse()(*UpdatableAssetCollectionResponse) { m := &UpdatableAssetCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/windowsupdates/updatable_asset_group.go b/models/windowsupdates/updatable_asset_group.go index 6175c64440d..1eec9c3d15a 100644 --- a/models/windowsupdates/updatable_asset_group.go +++ b/models/windowsupdates/updatable_asset_group.go @@ -8,7 +8,7 @@ import ( type UpdatableAssetGroup struct { UpdatableAsset } -// NewUpdatableAssetGroup instantiates a new UpdatableAssetGroup and sets the default values. +// NewUpdatableAssetGroup instantiates a new updatableAssetGroup and sets the default values. func NewUpdatableAssetGroup()(*UpdatableAssetGroup) { m := &UpdatableAssetGroup{ UpdatableAsset: *NewUpdatableAsset(), diff --git a/models/windowsupdates/update_management_enrollment.go b/models/windowsupdates/update_management_enrollment.go index 0d9e3122fff..9c976bf5b65 100644 --- a/models/windowsupdates/update_management_enrollment.go +++ b/models/windowsupdates/update_management_enrollment.go @@ -7,8 +7,10 @@ import ( // UpdateManagementEnrollment type UpdateManagementEnrollment struct { UpdatableAssetEnrollment + // The OdataType property + OdataType *string } -// NewUpdateManagementEnrollment instantiates a new UpdateManagementEnrollment and sets the default values. +// NewUpdateManagementEnrollment instantiates a new updateManagementEnrollment and sets the default values. func NewUpdateManagementEnrollment()(*UpdateManagementEnrollment) { m := &UpdateManagementEnrollment{ UpdatableAssetEnrollment: *NewUpdatableAssetEnrollment(), diff --git a/models/windowsupdates/update_policy.go b/models/windowsupdates/update_policy.go index 00f7b5c78d0..57f239714a3 100644 --- a/models/windowsupdates/update_policy.go +++ b/models/windowsupdates/update_policy.go @@ -9,6 +9,8 @@ import ( // UpdatePolicy type UpdatePolicy struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity + // The OdataType property + OdataType *string } // NewUpdatePolicy instantiates a new updatePolicy and sets the default values. func NewUpdatePolicy()(*UpdatePolicy) { diff --git a/models/windowsupdates/update_policy_collection_response.go b/models/windowsupdates/update_policy_collection_response.go index 138741478c2..c584fba9ba6 100644 --- a/models/windowsupdates/update_policy_collection_response.go +++ b/models/windowsupdates/update_policy_collection_response.go @@ -9,7 +9,7 @@ import ( type UpdatePolicyCollectionResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewUpdatePolicyCollectionResponse instantiates a new UpdatePolicyCollectionResponse and sets the default values. +// NewUpdatePolicyCollectionResponse instantiates a new updatePolicyCollectionResponse and sets the default values. func NewUpdatePolicyCollectionResponse()(*UpdatePolicyCollectionResponse) { m := &UpdatePolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), diff --git a/models/windowsupdates/windows_update_filter.go b/models/windowsupdates/windows_update_filter.go index 47f808b07ed..dd214953011 100644 --- a/models/windowsupdates/windows_update_filter.go +++ b/models/windowsupdates/windows_update_filter.go @@ -8,7 +8,7 @@ import ( type WindowsUpdateFilter struct { SoftwareUpdateFilter } -// NewWindowsUpdateFilter instantiates a new WindowsUpdateFilter and sets the default values. +// NewWindowsUpdateFilter instantiates a new windowsUpdateFilter and sets the default values. func NewWindowsUpdateFilter()(*WindowsUpdateFilter) { m := &WindowsUpdateFilter{ SoftwareUpdateFilter: *NewSoftwareUpdateFilter(), diff --git a/models/work_position.go b/models/work_position.go index bc87f6261f1..3a2ab7b0e36 100644 --- a/models/work_position.go +++ b/models/work_position.go @@ -8,7 +8,7 @@ import ( type WorkPosition struct { ItemFacet } -// NewWorkPosition instantiates a new WorkPosition and sets the default values. +// NewWorkPosition instantiates a new workPosition and sets the default values. func NewWorkPosition()(*WorkPosition) { m := &WorkPosition{ ItemFacet: *NewItemFacet(), diff --git a/models/work_position_collection_response.go b/models/work_position_collection_response.go index ceb4ca0e0b8..656695e44f3 100644 --- a/models/work_position_collection_response.go +++ b/models/work_position_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkPositionCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkPositionCollectionResponse instantiates a new WorkPositionCollectionResponse and sets the default values. +// NewWorkPositionCollectionResponse instantiates a new workPositionCollectionResponse and sets the default values. func NewWorkPositionCollectionResponse()(*WorkPositionCollectionResponse) { m := &WorkPositionCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook.go b/models/workbook.go index 4864d98a444..f11f685d865 100644 --- a/models/workbook.go +++ b/models/workbook.go @@ -7,6 +7,8 @@ import ( // Workbook type Workbook struct { Entity + // The OdataType property + OdataType *string } // NewWorkbook instantiates a new workbook and sets the default values. func NewWorkbook()(*Workbook) { diff --git a/models/workbook_application.go b/models/workbook_application.go index 14b45f151c0..3c8bd2d6d5e 100644 --- a/models/workbook_application.go +++ b/models/workbook_application.go @@ -7,6 +7,8 @@ import ( // WorkbookApplication type WorkbookApplication struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookApplication instantiates a new workbookApplication and sets the default values. func NewWorkbookApplication()(*WorkbookApplication) { diff --git a/models/workbook_chart.go b/models/workbook_chart.go index 3e76d52a5d0..56ca1e15b90 100644 --- a/models/workbook_chart.go +++ b/models/workbook_chart.go @@ -7,6 +7,8 @@ import ( // WorkbookChart type WorkbookChart struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChart instantiates a new workbookChart and sets the default values. func NewWorkbookChart()(*WorkbookChart) { diff --git a/models/workbook_chart_area_format.go b/models/workbook_chart_area_format.go index 8651ff76494..ebf34615601 100644 --- a/models/workbook_chart_area_format.go +++ b/models/workbook_chart_area_format.go @@ -7,6 +7,8 @@ import ( // WorkbookChartAreaFormat type WorkbookChartAreaFormat struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartAreaFormat instantiates a new workbookChartAreaFormat and sets the default values. func NewWorkbookChartAreaFormat()(*WorkbookChartAreaFormat) { diff --git a/models/workbook_chart_axes.go b/models/workbook_chart_axes.go index b730da7c602..a5fffec49ea 100644 --- a/models/workbook_chart_axes.go +++ b/models/workbook_chart_axes.go @@ -7,6 +7,8 @@ import ( // WorkbookChartAxes type WorkbookChartAxes struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartAxes instantiates a new workbookChartAxes and sets the default values. func NewWorkbookChartAxes()(*WorkbookChartAxes) { diff --git a/models/workbook_chart_axis.go b/models/workbook_chart_axis.go index 24e8b54c13e..3a657356ad7 100644 --- a/models/workbook_chart_axis.go +++ b/models/workbook_chart_axis.go @@ -7,6 +7,8 @@ import ( // WorkbookChartAxis type WorkbookChartAxis struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartAxis instantiates a new workbookChartAxis and sets the default values. func NewWorkbookChartAxis()(*WorkbookChartAxis) { diff --git a/models/workbook_chart_axis_format.go b/models/workbook_chart_axis_format.go index a59da10b0a6..3affeb99418 100644 --- a/models/workbook_chart_axis_format.go +++ b/models/workbook_chart_axis_format.go @@ -7,6 +7,8 @@ import ( // WorkbookChartAxisFormat type WorkbookChartAxisFormat struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartAxisFormat instantiates a new workbookChartAxisFormat and sets the default values. func NewWorkbookChartAxisFormat()(*WorkbookChartAxisFormat) { diff --git a/models/workbook_chart_axis_title.go b/models/workbook_chart_axis_title.go index 5fa137b837d..0c7ac36efb0 100644 --- a/models/workbook_chart_axis_title.go +++ b/models/workbook_chart_axis_title.go @@ -7,6 +7,8 @@ import ( // WorkbookChartAxisTitle type WorkbookChartAxisTitle struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartAxisTitle instantiates a new workbookChartAxisTitle and sets the default values. func NewWorkbookChartAxisTitle()(*WorkbookChartAxisTitle) { diff --git a/models/workbook_chart_axis_title_format.go b/models/workbook_chart_axis_title_format.go index f3b9e0ad4c4..bc887063a26 100644 --- a/models/workbook_chart_axis_title_format.go +++ b/models/workbook_chart_axis_title_format.go @@ -7,6 +7,8 @@ import ( // WorkbookChartAxisTitleFormat type WorkbookChartAxisTitleFormat struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartAxisTitleFormat instantiates a new workbookChartAxisTitleFormat and sets the default values. func NewWorkbookChartAxisTitleFormat()(*WorkbookChartAxisTitleFormat) { diff --git a/models/workbook_chart_collection_response.go b/models/workbook_chart_collection_response.go index 23e1106ba30..6a302201d38 100644 --- a/models/workbook_chart_collection_response.go +++ b/models/workbook_chart_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookChartCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookChartCollectionResponse instantiates a new WorkbookChartCollectionResponse and sets the default values. +// NewWorkbookChartCollectionResponse instantiates a new workbookChartCollectionResponse and sets the default values. func NewWorkbookChartCollectionResponse()(*WorkbookChartCollectionResponse) { m := &WorkbookChartCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_chart_data_label_format.go b/models/workbook_chart_data_label_format.go index 3b74a9c6b29..e67b3ae548b 100644 --- a/models/workbook_chart_data_label_format.go +++ b/models/workbook_chart_data_label_format.go @@ -7,6 +7,8 @@ import ( // WorkbookChartDataLabelFormat type WorkbookChartDataLabelFormat struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartDataLabelFormat instantiates a new workbookChartDataLabelFormat and sets the default values. func NewWorkbookChartDataLabelFormat()(*WorkbookChartDataLabelFormat) { diff --git a/models/workbook_chart_data_labels.go b/models/workbook_chart_data_labels.go index 51bf7cccf3e..19dc63c7d81 100644 --- a/models/workbook_chart_data_labels.go +++ b/models/workbook_chart_data_labels.go @@ -7,6 +7,8 @@ import ( // WorkbookChartDataLabels type WorkbookChartDataLabels struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartDataLabels instantiates a new workbookChartDataLabels and sets the default values. func NewWorkbookChartDataLabels()(*WorkbookChartDataLabels) { diff --git a/models/workbook_chart_fill.go b/models/workbook_chart_fill.go index a23b6f28cf2..a8319e31481 100644 --- a/models/workbook_chart_fill.go +++ b/models/workbook_chart_fill.go @@ -7,6 +7,8 @@ import ( // WorkbookChartFill type WorkbookChartFill struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartFill instantiates a new workbookChartFill and sets the default values. func NewWorkbookChartFill()(*WorkbookChartFill) { diff --git a/models/workbook_chart_font.go b/models/workbook_chart_font.go index 072cba91890..aea6aca8929 100644 --- a/models/workbook_chart_font.go +++ b/models/workbook_chart_font.go @@ -7,6 +7,8 @@ import ( // WorkbookChartFont type WorkbookChartFont struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartFont instantiates a new workbookChartFont and sets the default values. func NewWorkbookChartFont()(*WorkbookChartFont) { diff --git a/models/workbook_chart_gridlines.go b/models/workbook_chart_gridlines.go index 12b2ab156ef..ac9605820f6 100644 --- a/models/workbook_chart_gridlines.go +++ b/models/workbook_chart_gridlines.go @@ -7,6 +7,8 @@ import ( // WorkbookChartGridlines type WorkbookChartGridlines struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartGridlines instantiates a new workbookChartGridlines and sets the default values. func NewWorkbookChartGridlines()(*WorkbookChartGridlines) { diff --git a/models/workbook_chart_gridlines_format.go b/models/workbook_chart_gridlines_format.go index c6eff36c741..07419cba59c 100644 --- a/models/workbook_chart_gridlines_format.go +++ b/models/workbook_chart_gridlines_format.go @@ -7,6 +7,8 @@ import ( // WorkbookChartGridlinesFormat type WorkbookChartGridlinesFormat struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartGridlinesFormat instantiates a new workbookChartGridlinesFormat and sets the default values. func NewWorkbookChartGridlinesFormat()(*WorkbookChartGridlinesFormat) { diff --git a/models/workbook_chart_legend.go b/models/workbook_chart_legend.go index af9e7ff442b..3178b508f32 100644 --- a/models/workbook_chart_legend.go +++ b/models/workbook_chart_legend.go @@ -7,6 +7,8 @@ import ( // WorkbookChartLegend type WorkbookChartLegend struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartLegend instantiates a new workbookChartLegend and sets the default values. func NewWorkbookChartLegend()(*WorkbookChartLegend) { diff --git a/models/workbook_chart_legend_format.go b/models/workbook_chart_legend_format.go index b4d6297b4e2..154f640426b 100644 --- a/models/workbook_chart_legend_format.go +++ b/models/workbook_chart_legend_format.go @@ -7,6 +7,8 @@ import ( // WorkbookChartLegendFormat type WorkbookChartLegendFormat struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartLegendFormat instantiates a new workbookChartLegendFormat and sets the default values. func NewWorkbookChartLegendFormat()(*WorkbookChartLegendFormat) { diff --git a/models/workbook_chart_line_format.go b/models/workbook_chart_line_format.go index 7f2165ef5ab..30673d84786 100644 --- a/models/workbook_chart_line_format.go +++ b/models/workbook_chart_line_format.go @@ -7,6 +7,8 @@ import ( // WorkbookChartLineFormat type WorkbookChartLineFormat struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartLineFormat instantiates a new workbookChartLineFormat and sets the default values. func NewWorkbookChartLineFormat()(*WorkbookChartLineFormat) { diff --git a/models/workbook_chart_point.go b/models/workbook_chart_point.go index 94d0c50abe9..4e82fdea2a9 100644 --- a/models/workbook_chart_point.go +++ b/models/workbook_chart_point.go @@ -7,6 +7,8 @@ import ( // WorkbookChartPoint type WorkbookChartPoint struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartPoint instantiates a new workbookChartPoint and sets the default values. func NewWorkbookChartPoint()(*WorkbookChartPoint) { diff --git a/models/workbook_chart_point_collection_response.go b/models/workbook_chart_point_collection_response.go index 9d4e170d0fe..412e8ab8fff 100644 --- a/models/workbook_chart_point_collection_response.go +++ b/models/workbook_chart_point_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookChartPointCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookChartPointCollectionResponse instantiates a new WorkbookChartPointCollectionResponse and sets the default values. +// NewWorkbookChartPointCollectionResponse instantiates a new workbookChartPointCollectionResponse and sets the default values. func NewWorkbookChartPointCollectionResponse()(*WorkbookChartPointCollectionResponse) { m := &WorkbookChartPointCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_chart_point_format.go b/models/workbook_chart_point_format.go index 635d4b3735a..70a5dbc57c0 100644 --- a/models/workbook_chart_point_format.go +++ b/models/workbook_chart_point_format.go @@ -7,6 +7,8 @@ import ( // WorkbookChartPointFormat type WorkbookChartPointFormat struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartPointFormat instantiates a new workbookChartPointFormat and sets the default values. func NewWorkbookChartPointFormat()(*WorkbookChartPointFormat) { diff --git a/models/workbook_chart_series.go b/models/workbook_chart_series.go index b8ed4569bfc..b7a73989829 100644 --- a/models/workbook_chart_series.go +++ b/models/workbook_chart_series.go @@ -7,6 +7,8 @@ import ( // WorkbookChartSeries type WorkbookChartSeries struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartSeries instantiates a new workbookChartSeries and sets the default values. func NewWorkbookChartSeries()(*WorkbookChartSeries) { diff --git a/models/workbook_chart_series_collection_response.go b/models/workbook_chart_series_collection_response.go index cfdafd937b8..61379c2aec3 100644 --- a/models/workbook_chart_series_collection_response.go +++ b/models/workbook_chart_series_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookChartSeriesCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookChartSeriesCollectionResponse instantiates a new WorkbookChartSeriesCollectionResponse and sets the default values. +// NewWorkbookChartSeriesCollectionResponse instantiates a new workbookChartSeriesCollectionResponse and sets the default values. func NewWorkbookChartSeriesCollectionResponse()(*WorkbookChartSeriesCollectionResponse) { m := &WorkbookChartSeriesCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_chart_series_format.go b/models/workbook_chart_series_format.go index d3bde7bae4d..74640c042cf 100644 --- a/models/workbook_chart_series_format.go +++ b/models/workbook_chart_series_format.go @@ -7,6 +7,8 @@ import ( // WorkbookChartSeriesFormat type WorkbookChartSeriesFormat struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartSeriesFormat instantiates a new workbookChartSeriesFormat and sets the default values. func NewWorkbookChartSeriesFormat()(*WorkbookChartSeriesFormat) { diff --git a/models/workbook_chart_title.go b/models/workbook_chart_title.go index a5fa7ed9c72..dbe1c0ecc74 100644 --- a/models/workbook_chart_title.go +++ b/models/workbook_chart_title.go @@ -7,6 +7,8 @@ import ( // WorkbookChartTitle type WorkbookChartTitle struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartTitle instantiates a new workbookChartTitle and sets the default values. func NewWorkbookChartTitle()(*WorkbookChartTitle) { diff --git a/models/workbook_chart_title_format.go b/models/workbook_chart_title_format.go index 189285bd477..6249407e79a 100644 --- a/models/workbook_chart_title_format.go +++ b/models/workbook_chart_title_format.go @@ -7,6 +7,8 @@ import ( // WorkbookChartTitleFormat type WorkbookChartTitleFormat struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookChartTitleFormat instantiates a new workbookChartTitleFormat and sets the default values. func NewWorkbookChartTitleFormat()(*WorkbookChartTitleFormat) { diff --git a/models/workbook_comment.go b/models/workbook_comment.go index c448e0d41cc..1c88f87f23e 100644 --- a/models/workbook_comment.go +++ b/models/workbook_comment.go @@ -7,6 +7,8 @@ import ( // WorkbookComment type WorkbookComment struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookComment instantiates a new workbookComment and sets the default values. func NewWorkbookComment()(*WorkbookComment) { diff --git a/models/workbook_comment_collection_response.go b/models/workbook_comment_collection_response.go index eef63b5933a..4a5042f60c5 100644 --- a/models/workbook_comment_collection_response.go +++ b/models/workbook_comment_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookCommentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookCommentCollectionResponse instantiates a new WorkbookCommentCollectionResponse and sets the default values. +// NewWorkbookCommentCollectionResponse instantiates a new workbookCommentCollectionResponse and sets the default values. func NewWorkbookCommentCollectionResponse()(*WorkbookCommentCollectionResponse) { m := &WorkbookCommentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_comment_reply.go b/models/workbook_comment_reply.go index cc5aedb9e23..a9cc34c0d8b 100644 --- a/models/workbook_comment_reply.go +++ b/models/workbook_comment_reply.go @@ -7,6 +7,8 @@ import ( // WorkbookCommentReply type WorkbookCommentReply struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookCommentReply instantiates a new workbookCommentReply and sets the default values. func NewWorkbookCommentReply()(*WorkbookCommentReply) { diff --git a/models/workbook_comment_reply_collection_response.go b/models/workbook_comment_reply_collection_response.go index 106a9db02fa..aa4942553df 100644 --- a/models/workbook_comment_reply_collection_response.go +++ b/models/workbook_comment_reply_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookCommentReplyCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookCommentReplyCollectionResponse instantiates a new WorkbookCommentReplyCollectionResponse and sets the default values. +// NewWorkbookCommentReplyCollectionResponse instantiates a new workbookCommentReplyCollectionResponse and sets the default values. func NewWorkbookCommentReplyCollectionResponse()(*WorkbookCommentReplyCollectionResponse) { m := &WorkbookCommentReplyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_filter.go b/models/workbook_filter.go index beeb53ebd82..615d16b7a35 100644 --- a/models/workbook_filter.go +++ b/models/workbook_filter.go @@ -7,6 +7,8 @@ import ( // WorkbookFilter type WorkbookFilter struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookFilter instantiates a new workbookFilter and sets the default values. func NewWorkbookFilter()(*WorkbookFilter) { diff --git a/models/workbook_format_protection.go b/models/workbook_format_protection.go index 353cbe8e7e1..a88cbf92705 100644 --- a/models/workbook_format_protection.go +++ b/models/workbook_format_protection.go @@ -8,7 +8,7 @@ import ( type WorkbookFormatProtection struct { Entity } -// NewWorkbookFormatProtection instantiates a new WorkbookFormatProtection and sets the default values. +// NewWorkbookFormatProtection instantiates a new workbookFormatProtection and sets the default values. func NewWorkbookFormatProtection()(*WorkbookFormatProtection) { m := &WorkbookFormatProtection{ Entity: *NewEntity(), @@ -42,6 +42,16 @@ func (m *WorkbookFormatProtection) GetFieldDeserializers()(map[string]func(i878a } 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 } // GetFormulaHidden gets the formulaHidden property value. The formulaHidden property @@ -66,6 +76,17 @@ func (m *WorkbookFormatProtection) GetLocked()(*bool) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WorkbookFormatProtection) 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 *WorkbookFormatProtection) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -84,6 +105,12 @@ func (m *WorkbookFormatProtection) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } return nil } // SetFormulaHidden sets the formulaHidden property value. The formulaHidden property @@ -100,12 +127,21 @@ func (m *WorkbookFormatProtection) SetLocked(value *bool)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WorkbookFormatProtection) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // WorkbookFormatProtectionable type WorkbookFormatProtectionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetFormulaHidden()(*bool) GetLocked()(*bool) + GetOdataType()(*string) SetFormulaHidden(value *bool)() SetLocked(value *bool)() + SetOdataType(value *string)() } diff --git a/models/workbook_function_result.go b/models/workbook_function_result.go index a26bad4bdb0..4104ae6c9e3 100644 --- a/models/workbook_function_result.go +++ b/models/workbook_function_result.go @@ -7,8 +7,10 @@ import ( // WorkbookFunctionResult type WorkbookFunctionResult struct { Entity + // The OdataType property + OdataType *string } -// NewWorkbookFunctionResult instantiates a new WorkbookFunctionResult and sets the default values. +// NewWorkbookFunctionResult instantiates a new workbookFunctionResult and sets the default values. func NewWorkbookFunctionResult()(*WorkbookFunctionResult) { m := &WorkbookFunctionResult{ Entity: *NewEntity(), diff --git a/models/workbook_functions.go b/models/workbook_functions.go index 9a4a678adc5..c49246f28a7 100644 --- a/models/workbook_functions.go +++ b/models/workbook_functions.go @@ -7,6 +7,8 @@ import ( // WorkbookFunctions type WorkbookFunctions struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookFunctions instantiates a new workbookFunctions and sets the default values. func NewWorkbookFunctions()(*WorkbookFunctions) { diff --git a/models/workbook_named_item.go b/models/workbook_named_item.go index 397e6b362c8..75193ae628d 100644 --- a/models/workbook_named_item.go +++ b/models/workbook_named_item.go @@ -7,6 +7,8 @@ import ( // WorkbookNamedItem type WorkbookNamedItem struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookNamedItem instantiates a new workbookNamedItem and sets the default values. func NewWorkbookNamedItem()(*WorkbookNamedItem) { diff --git a/models/workbook_named_item_collection_response.go b/models/workbook_named_item_collection_response.go index 9051d951069..3c7b79200a6 100644 --- a/models/workbook_named_item_collection_response.go +++ b/models/workbook_named_item_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookNamedItemCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookNamedItemCollectionResponse instantiates a new WorkbookNamedItemCollectionResponse and sets the default values. +// NewWorkbookNamedItemCollectionResponse instantiates a new workbookNamedItemCollectionResponse and sets the default values. func NewWorkbookNamedItemCollectionResponse()(*WorkbookNamedItemCollectionResponse) { m := &WorkbookNamedItemCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_operation.go b/models/workbook_operation.go index 0d7b1912fa8..58be1397dd8 100644 --- a/models/workbook_operation.go +++ b/models/workbook_operation.go @@ -7,6 +7,8 @@ import ( // WorkbookOperation type WorkbookOperation struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookOperation instantiates a new workbookOperation and sets the default values. func NewWorkbookOperation()(*WorkbookOperation) { diff --git a/models/workbook_operation_collection_response.go b/models/workbook_operation_collection_response.go index 283631c31ac..c631e9f9da3 100644 --- a/models/workbook_operation_collection_response.go +++ b/models/workbook_operation_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookOperationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookOperationCollectionResponse instantiates a new WorkbookOperationCollectionResponse and sets the default values. +// NewWorkbookOperationCollectionResponse instantiates a new workbookOperationCollectionResponse and sets the default values. func NewWorkbookOperationCollectionResponse()(*WorkbookOperationCollectionResponse) { m := &WorkbookOperationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_pivot_table.go b/models/workbook_pivot_table.go index 29b9fea2e18..878b55db978 100644 --- a/models/workbook_pivot_table.go +++ b/models/workbook_pivot_table.go @@ -7,6 +7,8 @@ import ( // WorkbookPivotTable type WorkbookPivotTable struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookPivotTable instantiates a new workbookPivotTable and sets the default values. func NewWorkbookPivotTable()(*WorkbookPivotTable) { diff --git a/models/workbook_pivot_table_collection_response.go b/models/workbook_pivot_table_collection_response.go index 01f7356aed8..2457461cac7 100644 --- a/models/workbook_pivot_table_collection_response.go +++ b/models/workbook_pivot_table_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookPivotTableCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookPivotTableCollectionResponse instantiates a new WorkbookPivotTableCollectionResponse and sets the default values. +// NewWorkbookPivotTableCollectionResponse instantiates a new workbookPivotTableCollectionResponse and sets the default values. func NewWorkbookPivotTableCollectionResponse()(*WorkbookPivotTableCollectionResponse) { m := &WorkbookPivotTableCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_range.go b/models/workbook_range.go index 2cf9b49ad67..e790cffa860 100644 --- a/models/workbook_range.go +++ b/models/workbook_range.go @@ -7,8 +7,10 @@ import ( // WorkbookRange type WorkbookRange struct { Entity + // The OdataType property + OdataType *string } -// NewWorkbookRange instantiates a new WorkbookRange and sets the default values. +// NewWorkbookRange instantiates a new workbookRange and sets the default values. func NewWorkbookRange()(*WorkbookRange) { m := &WorkbookRange{ Entity: *NewEntity(), diff --git a/models/workbook_range_border.go b/models/workbook_range_border.go index 2a708479066..9179c81e93a 100644 --- a/models/workbook_range_border.go +++ b/models/workbook_range_border.go @@ -7,6 +7,8 @@ import ( // WorkbookRangeBorder type WorkbookRangeBorder struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookRangeBorder instantiates a new workbookRangeBorder and sets the default values. func NewWorkbookRangeBorder()(*WorkbookRangeBorder) { diff --git a/models/workbook_range_fill.go b/models/workbook_range_fill.go index 9415f0e405f..309d2063583 100644 --- a/models/workbook_range_fill.go +++ b/models/workbook_range_fill.go @@ -7,6 +7,8 @@ import ( // WorkbookRangeFill type WorkbookRangeFill struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookRangeFill instantiates a new workbookRangeFill and sets the default values. func NewWorkbookRangeFill()(*WorkbookRangeFill) { diff --git a/models/workbook_range_font.go b/models/workbook_range_font.go index 34ad6a73452..75ebf697506 100644 --- a/models/workbook_range_font.go +++ b/models/workbook_range_font.go @@ -7,6 +7,8 @@ import ( // WorkbookRangeFont type WorkbookRangeFont struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookRangeFont instantiates a new workbookRangeFont and sets the default values. func NewWorkbookRangeFont()(*WorkbookRangeFont) { diff --git a/models/workbook_range_format.go b/models/workbook_range_format.go index 285fffcbee2..414187572f6 100644 --- a/models/workbook_range_format.go +++ b/models/workbook_range_format.go @@ -7,6 +7,8 @@ import ( // WorkbookRangeFormat type WorkbookRangeFormat struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookRangeFormat instantiates a new workbookRangeFormat and sets the default values. func NewWorkbookRangeFormat()(*WorkbookRangeFormat) { diff --git a/models/workbook_range_sort.go b/models/workbook_range_sort.go index 5fd42907d41..4f5c29994f7 100644 --- a/models/workbook_range_sort.go +++ b/models/workbook_range_sort.go @@ -7,6 +7,8 @@ import ( // WorkbookRangeSort type WorkbookRangeSort struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookRangeSort instantiates a new workbookRangeSort and sets the default values. func NewWorkbookRangeSort()(*WorkbookRangeSort) { diff --git a/models/workbook_range_view.go b/models/workbook_range_view.go index 84545eaed71..b3a2499787c 100644 --- a/models/workbook_range_view.go +++ b/models/workbook_range_view.go @@ -7,8 +7,10 @@ import ( // WorkbookRangeView type WorkbookRangeView struct { Entity + // The OdataType property + OdataType *string } -// NewWorkbookRangeView instantiates a new WorkbookRangeView and sets the default values. +// NewWorkbookRangeView instantiates a new workbookRangeView and sets the default values. func NewWorkbookRangeView()(*WorkbookRangeView) { m := &WorkbookRangeView{ Entity: *NewEntity(), diff --git a/models/workbook_table.go b/models/workbook_table.go index 1a6ac1fa909..9b66c121d58 100644 --- a/models/workbook_table.go +++ b/models/workbook_table.go @@ -7,6 +7,8 @@ import ( // WorkbookTable type WorkbookTable struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookTable instantiates a new workbookTable and sets the default values. func NewWorkbookTable()(*WorkbookTable) { diff --git a/models/workbook_table_collection_response.go b/models/workbook_table_collection_response.go index 96c2bbe6c01..2cf802fb304 100644 --- a/models/workbook_table_collection_response.go +++ b/models/workbook_table_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookTableCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookTableCollectionResponse instantiates a new WorkbookTableCollectionResponse and sets the default values. +// NewWorkbookTableCollectionResponse instantiates a new workbookTableCollectionResponse and sets the default values. func NewWorkbookTableCollectionResponse()(*WorkbookTableCollectionResponse) { m := &WorkbookTableCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_table_column.go b/models/workbook_table_column.go index 87927f18fc8..0c2923be119 100644 --- a/models/workbook_table_column.go +++ b/models/workbook_table_column.go @@ -7,6 +7,8 @@ import ( // WorkbookTableColumn type WorkbookTableColumn struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookTableColumn instantiates a new workbookTableColumn and sets the default values. func NewWorkbookTableColumn()(*WorkbookTableColumn) { diff --git a/models/workbook_table_column_collection_response.go b/models/workbook_table_column_collection_response.go index c7122359420..153c8419a75 100644 --- a/models/workbook_table_column_collection_response.go +++ b/models/workbook_table_column_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookTableColumnCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookTableColumnCollectionResponse instantiates a new WorkbookTableColumnCollectionResponse and sets the default values. +// NewWorkbookTableColumnCollectionResponse instantiates a new workbookTableColumnCollectionResponse and sets the default values. func NewWorkbookTableColumnCollectionResponse()(*WorkbookTableColumnCollectionResponse) { m := &WorkbookTableColumnCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_table_row.go b/models/workbook_table_row.go index e2b17f20d16..2c67cdb78ce 100644 --- a/models/workbook_table_row.go +++ b/models/workbook_table_row.go @@ -7,6 +7,8 @@ import ( // WorkbookTableRow type WorkbookTableRow struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookTableRow instantiates a new workbookTableRow and sets the default values. func NewWorkbookTableRow()(*WorkbookTableRow) { diff --git a/models/workbook_table_row_collection_response.go b/models/workbook_table_row_collection_response.go index 9cc5be9f2c3..5b01f788eaa 100644 --- a/models/workbook_table_row_collection_response.go +++ b/models/workbook_table_row_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookTableRowCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookTableRowCollectionResponse instantiates a new WorkbookTableRowCollectionResponse and sets the default values. +// NewWorkbookTableRowCollectionResponse instantiates a new workbookTableRowCollectionResponse and sets the default values. func NewWorkbookTableRowCollectionResponse()(*WorkbookTableRowCollectionResponse) { m := &WorkbookTableRowCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_table_sort.go b/models/workbook_table_sort.go index 84557ac2ebb..24026c8f130 100644 --- a/models/workbook_table_sort.go +++ b/models/workbook_table_sort.go @@ -7,6 +7,8 @@ import ( // WorkbookTableSort type WorkbookTableSort struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookTableSort instantiates a new workbookTableSort and sets the default values. func NewWorkbookTableSort()(*WorkbookTableSort) { diff --git a/models/workbook_worksheet.go b/models/workbook_worksheet.go index cb75c83f9b3..436fbf2545d 100644 --- a/models/workbook_worksheet.go +++ b/models/workbook_worksheet.go @@ -75,6 +75,16 @@ func (m *WorkbookWorksheet) GetFieldDeserializers()(map[string]func(i878a80d2330 } 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["pivotTables"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateWorkbookPivotTableFromDiscriminatorValue) if err != nil { @@ -161,6 +171,17 @@ func (m *WorkbookWorksheet) GetNames()([]WorkbookNamedItemable) { } return nil } +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WorkbookWorksheet) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPivotTables gets the pivotTables property value. Collection of PivotTables that are part of the worksheet. func (m *WorkbookWorksheet) GetPivotTables()([]WorkbookPivotTableable) { val, err := m.GetBackingStore().Get("pivotTables") @@ -252,6 +273,12 @@ func (m *WorkbookWorksheet) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + { + err = writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } if m.GetPivotTables() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetPivotTables())) for i, v := range m.GetPivotTables() { @@ -317,6 +344,13 @@ func (m *WorkbookWorksheet) SetNames(value []WorkbookNamedItemable)() { panic(err) } } +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WorkbookWorksheet) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} // SetPivotTables sets the pivotTables property value. Collection of PivotTables that are part of the worksheet. func (m *WorkbookWorksheet) SetPivotTables(value []WorkbookPivotTableable)() { err := m.GetBackingStore().Set("pivotTables", value) @@ -359,6 +393,7 @@ type WorkbookWorksheetable interface { GetCharts()([]WorkbookChartable) GetName()(*string) GetNames()([]WorkbookNamedItemable) + GetOdataType()(*string) GetPivotTables()([]WorkbookPivotTableable) GetPosition()(*int32) GetProtection()(WorkbookWorksheetProtectionable) @@ -367,6 +402,7 @@ type WorkbookWorksheetable interface { SetCharts(value []WorkbookChartable)() SetName(value *string)() SetNames(value []WorkbookNamedItemable)() + SetOdataType(value *string)() SetPivotTables(value []WorkbookPivotTableable)() SetPosition(value *int32)() SetProtection(value WorkbookWorksheetProtectionable)() diff --git a/models/workbook_worksheet_collection_response.go b/models/workbook_worksheet_collection_response.go index 753b1cc5e77..4cf6b068c03 100644 --- a/models/workbook_worksheet_collection_response.go +++ b/models/workbook_worksheet_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkbookWorksheetCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkbookWorksheetCollectionResponse instantiates a new WorkbookWorksheetCollectionResponse and sets the default values. +// NewWorkbookWorksheetCollectionResponse instantiates a new workbookWorksheetCollectionResponse and sets the default values. func NewWorkbookWorksheetCollectionResponse()(*WorkbookWorksheetCollectionResponse) { m := &WorkbookWorksheetCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/workbook_worksheet_protection.go b/models/workbook_worksheet_protection.go index 2eeecd68b80..4beaa0bb2f8 100644 --- a/models/workbook_worksheet_protection.go +++ b/models/workbook_worksheet_protection.go @@ -7,6 +7,8 @@ import ( // WorkbookWorksheetProtection type WorkbookWorksheetProtection struct { Entity + // The OdataType property + OdataType *string } // NewWorkbookWorksheetProtection instantiates a new workbookWorksheetProtection and sets the default values. func NewWorkbookWorksheetProtection()(*WorkbookWorksheetProtection) { diff --git a/models/workforce_integration.go b/models/workforce_integration.go index c2dd2392f1f..2499b00659e 100644 --- a/models/workforce_integration.go +++ b/models/workforce_integration.go @@ -8,7 +8,7 @@ import ( type WorkforceIntegration struct { ChangeTrackedEntity } -// NewWorkforceIntegration instantiates a new WorkforceIntegration and sets the default values. +// NewWorkforceIntegration instantiates a new workforceIntegration and sets the default values. func NewWorkforceIntegration()(*WorkforceIntegration) { m := &WorkforceIntegration{ ChangeTrackedEntity: *NewChangeTrackedEntity(), diff --git a/models/workforce_integration_collection_response.go b/models/workforce_integration_collection_response.go index e9d829dc3ea..659dfc2e496 100644 --- a/models/workforce_integration_collection_response.go +++ b/models/workforce_integration_collection_response.go @@ -8,7 +8,7 @@ import ( type WorkforceIntegrationCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewWorkforceIntegrationCollectionResponse instantiates a new WorkforceIntegrationCollectionResponse and sets the default values. +// NewWorkforceIntegrationCollectionResponse instantiates a new workforceIntegrationCollectionResponse and sets the default values. func NewWorkforceIntegrationCollectionResponse()(*WorkforceIntegrationCollectionResponse) { m := &WorkforceIntegrationCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/x509_certificate_authentication_method_configuration.go b/models/x509_certificate_authentication_method_configuration.go index 7b5e751b75f..4104198eba3 100644 --- a/models/x509_certificate_authentication_method_configuration.go +++ b/models/x509_certificate_authentication_method_configuration.go @@ -8,7 +8,7 @@ import ( type X509CertificateAuthenticationMethodConfiguration struct { AuthenticationMethodConfiguration } -// NewX509CertificateAuthenticationMethodConfiguration instantiates a new X509CertificateAuthenticationMethodConfiguration and sets the default values. +// NewX509CertificateAuthenticationMethodConfiguration instantiates a new x509CertificateAuthenticationMethodConfiguration and sets the default values. func NewX509CertificateAuthenticationMethodConfiguration()(*X509CertificateAuthenticationMethodConfiguration) { m := &X509CertificateAuthenticationMethodConfiguration{ AuthenticationMethodConfiguration: *NewAuthenticationMethodConfiguration(), diff --git a/models/zebra_fota_artifact.go b/models/zebra_fota_artifact.go index eeb88376235..d989cbb40d5 100644 --- a/models/zebra_fota_artifact.go +++ b/models/zebra_fota_artifact.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ZebraFotaArtifact +// ZebraFotaArtifact describes a single artifact for a specific device model. type ZebraFotaArtifact struct { Entity + // The OdataType property + OdataType *string } -// NewZebraFotaArtifact instantiates a new ZebraFotaArtifact and sets the default values. +// NewZebraFotaArtifact instantiates a new zebraFotaArtifact and sets the default values. func NewZebraFotaArtifact()(*ZebraFotaArtifact) { m := &ZebraFotaArtifact{ Entity: *NewEntity(), diff --git a/models/zebra_fota_artifact_collection_response.go b/models/zebra_fota_artifact_collection_response.go index 3fcfc52e26f..87425890910 100644 --- a/models/zebra_fota_artifact_collection_response.go +++ b/models/zebra_fota_artifact_collection_response.go @@ -8,7 +8,7 @@ import ( type ZebraFotaArtifactCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewZebraFotaArtifactCollectionResponse instantiates a new ZebraFotaArtifactCollectionResponse and sets the default values. +// NewZebraFotaArtifactCollectionResponse instantiates a new zebraFotaArtifactCollectionResponse and sets the default values. func NewZebraFotaArtifactCollectionResponse()(*ZebraFotaArtifactCollectionResponse) { m := &ZebraFotaArtifactCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/zebra_fota_connector.go b/models/zebra_fota_connector.go index 54a8ea9b7a8..6c28430dbcf 100644 --- a/models/zebra_fota_connector.go +++ b/models/zebra_fota_connector.go @@ -5,11 +5,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ZebraFotaConnector +// ZebraFotaConnector the Zebra FOTA connector entity that represents the tenant's authorization status for Intune to call Zebra Update Services. type ZebraFotaConnector struct { Entity + // The OdataType property + OdataType *string } -// NewZebraFotaConnector instantiates a new ZebraFotaConnector and sets the default values. +// NewZebraFotaConnector instantiates a new zebraFotaConnector and sets the default values. func NewZebraFotaConnector()(*ZebraFotaConnector) { m := &ZebraFotaConnector{ Entity: *NewEntity(), diff --git a/models/zebra_fota_deployment.go b/models/zebra_fota_deployment.go index 4c124e9473b..03836d49a71 100644 --- a/models/zebra_fota_deployment.go +++ b/models/zebra_fota_deployment.go @@ -4,11 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ZebraFotaDeployment +// ZebraFotaDeployment the Zebra FOTA deployment entity that describes settings, deployment device groups required to create a FOTA deployment, and deployment status. type ZebraFotaDeployment struct { Entity + // The OdataType property + OdataType *string } -// NewZebraFotaDeployment instantiates a new ZebraFotaDeployment and sets the default values. +// NewZebraFotaDeployment instantiates a new zebraFotaDeployment and sets the default values. func NewZebraFotaDeployment()(*ZebraFotaDeployment) { m := &ZebraFotaDeployment{ Entity: *NewEntity(), diff --git a/models/zebra_fota_deployment_collection_response.go b/models/zebra_fota_deployment_collection_response.go index 92721c7a28e..350a119e012 100644 --- a/models/zebra_fota_deployment_collection_response.go +++ b/models/zebra_fota_deployment_collection_response.go @@ -8,7 +8,7 @@ import ( type ZebraFotaDeploymentCollectionResponse struct { BaseCollectionPaginationCountResponse } -// NewZebraFotaDeploymentCollectionResponse instantiates a new ZebraFotaDeploymentCollectionResponse and sets the default values. +// NewZebraFotaDeploymentCollectionResponse instantiates a new zebraFotaDeploymentCollectionResponse and sets the default values. func NewZebraFotaDeploymentCollectionResponse()(*ZebraFotaDeploymentCollectionResponse) { m := &ZebraFotaDeploymentCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), diff --git a/models/zebra_fota_deployment_settings.go b/models/zebra_fota_deployment_settings.go index ce30d1d9900..003a23a8c43 100644 --- a/models/zebra_fota_deployment_settings.go +++ b/models/zebra_fota_deployment_settings.go @@ -11,7 +11,7 @@ type ZebraFotaDeploymentSettings struct { // Stores model information. backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore } -// NewZebraFotaDeploymentSettings instantiates a new ZebraFotaDeploymentSettings and sets the default values. +// NewZebraFotaDeploymentSettings instantiates a new zebraFotaDeploymentSettings and sets the default values. func NewZebraFotaDeploymentSettings()(*ZebraFotaDeploymentSettings) { m := &ZebraFotaDeploymentSettings{ } diff --git a/networkaccess/connectivity_branches_branch_site_item_request_builder.go b/networkaccess/connectivity_branches_branch_site_item_request_builder.go index 2ef8aba0267..379381eb446 100644 --- a/networkaccess/connectivity_branches_branch_site_item_request_builder.go +++ b/networkaccess/connectivity_branches_branch_site_item_request_builder.go @@ -18,7 +18,7 @@ type ConnectivityBranchesBranchSiteItemRequestBuilderDeleteRequestConfiguration // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ConnectivityBranchesBranchSiteItemRequestBuilderGetQueryParameters get branches from networkAccess +// ConnectivityBranchesBranchSiteItemRequestBuilderGetQueryParameters retrieve information about a specific branch. type ConnectivityBranchesBranchSiteItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,7 +54,10 @@ func NewConnectivityBranchesBranchSiteItemRequestBuilder(rawUrl string, requestA urlParams["request-raw-url"] = rawUrl return NewConnectivityBranchesBranchSiteItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete navigation property branches for networkAccess +// Delete delete a specific branch. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-branchsite-delete?view=graph-rest-1.0 func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConnectivityBranchesBranchSiteItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -78,7 +81,10 @@ func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) DeviceLinks()(*Connec func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ForwardingProfiles()(*ConnectivityBranchesItemForwardingProfilesRequestBuilder) { return NewConnectivityBranchesItemForwardingProfilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get branches from networkAccess +// Get retrieve information about a specific branch. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-branchsite-get?view=graph-rest-1.0 func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesBranchSiteItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -97,7 +103,10 @@ func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) Get(ctx context.Conte } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable), nil } -// Patch update the navigation property branches in networkAccess +// Patch update the configuration or properties of a specific branch. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-branchsite-update?view=graph-rest-1.0 func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable, requestConfiguration *ConnectivityBranchesBranchSiteItemRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -116,7 +125,7 @@ func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) Patch(ctx context.Con } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable), nil } -// ToDeleteRequestInformation delete navigation property branches for networkAccess +// ToDeleteRequestInformation delete a specific branch. func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesBranchSiteItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -128,7 +137,7 @@ func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ToDeleteRequestInform } return requestInfo, nil } -// ToGetRequestInformation get branches from networkAccess +// ToGetRequestInformation retrieve information about a specific branch. func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesBranchSiteItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -144,7 +153,7 @@ func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ToGetRequestInformati } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property branches in networkAccess +// ToPatchRequestInformation update the configuration or properties of a specific branch. func (m *ConnectivityBranchesBranchSiteItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable, requestConfiguration *ConnectivityBranchesBranchSiteItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/connectivity_branches_item_device_links_device_link_item_request_builder.go b/networkaccess/connectivity_branches_item_device_links_device_link_item_request_builder.go index df5239961fa..069274a5001 100644 --- a/networkaccess/connectivity_branches_item_device_links_device_link_item_request_builder.go +++ b/networkaccess/connectivity_branches_item_device_links_device_link_item_request_builder.go @@ -18,7 +18,7 @@ type ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderDeleteReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderGetQueryParameters get deviceLinks from networkAccess +// ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderGetQueryParameters retrieve the device link associated with a specific branch. type ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,7 +54,10 @@ func NewConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder(rawUrl s urlParams["request-raw-url"] = rawUrl return NewConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete navigation property deviceLinks for networkAccess +// Delete removes the link between the branch and the CPE device, effectively removing the connection and associated configuration between them. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-branchsite-delete-devicelinks?view=graph-rest-1.0 func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -70,7 +73,10 @@ func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) Delete } return nil } -// Get get deviceLinks from networkAccess +// Get retrieve the device link associated with a specific branch. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-devicelink-get?view=graph-rest-1.0 func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +95,10 @@ func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) Get(ct } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable), nil } -// Patch update the navigation property deviceLinks in networkAccess +// Patch update the device link associated with a specific branch. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-devicelink-update?view=graph-rest-1.0 func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable, requestConfiguration *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -108,7 +117,7 @@ func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) Patch( } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable), nil } -// ToDeleteRequestInformation delete navigation property deviceLinks for networkAccess +// ToDeleteRequestInformation removes the link between the branch and the CPE device, effectively removing the connection and associated configuration between them. func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -120,7 +129,7 @@ func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) ToDele } return requestInfo, nil } -// ToGetRequestInformation get deviceLinks from networkAccess +// ToGetRequestInformation retrieve the device link associated with a specific branch. func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -136,7 +145,7 @@ func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) ToGetR } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property deviceLinks in networkAccess +// ToPatchRequestInformation update the device link associated with a specific branch. func (m *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable, requestConfiguration *ConnectivityBranchesItemDeviceLinksDeviceLinkItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/connectivity_branches_item_device_links_request_builder.go b/networkaccess/connectivity_branches_item_device_links_request_builder.go index 152a791138e..16cf3d83b8c 100644 --- a/networkaccess/connectivity_branches_item_device_links_request_builder.go +++ b/networkaccess/connectivity_branches_item_device_links_request_builder.go @@ -11,7 +11,7 @@ import ( type ConnectivityBranchesItemDeviceLinksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ConnectivityBranchesItemDeviceLinksRequestBuilderGetQueryParameters get deviceLinks from networkAccess +// ConnectivityBranchesItemDeviceLinksRequestBuilderGetQueryParameters retrieve a list of device links associated with a specific branch. type ConnectivityBranchesItemDeviceLinksRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,10 @@ func NewConnectivityBranchesItemDeviceLinksRequestBuilder(rawUrl string, request func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) Count()(*ConnectivityBranchesItemDeviceLinksCountRequestBuilder) { return NewConnectivityBranchesItemDeviceLinksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get deviceLinks from networkAccess +// Get retrieve a list of device links associated with a specific branch. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-branchsite-list-devicelinks?view=graph-rest-1.0 func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemDeviceLinksRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -93,7 +96,10 @@ func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) Get(ctx context.Cont } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkCollectionResponseable), nil } -// Post create new navigation property to deviceLinks for networkAccess +// Post create a branch site with associated device links. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-branchsite-post-devicelinks?view=graph-rest-1.0 func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) Post(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable, requestConfiguration *ConnectivityBranchesItemDeviceLinksRequestBuilderPostRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -112,7 +118,7 @@ func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) Post(ctx context.Con } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable), nil } -// ToGetRequestInformation get deviceLinks from networkAccess +// ToGetRequestInformation retrieve a list of device links associated with a specific branch. func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemDeviceLinksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -128,7 +134,7 @@ func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) ToGetRequestInformat } return requestInfo, nil } -// ToPostRequestInformation create new navigation property to deviceLinks for networkAccess +// ToPostRequestInformation create a branch site with associated device links. func (m *ConnectivityBranchesItemDeviceLinksRequestBuilder) ToPostRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.DeviceLinkable, requestConfiguration *ConnectivityBranchesItemDeviceLinksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_forwarding_profile_item_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_forwarding_profile_item_request_builder.go index 1cfc976ed76..08c499c5f00 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_forwarding_profile_item_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_forwarding_profile_item_request_builder.go @@ -18,7 +18,7 @@ type ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuild // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderGetQueryParameters get forwardingProfiles from networkAccess +// ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderGetQueryParameters each forwarding profile associated with a branch site is specified. Supports $expand. type ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestB } return nil } -// Get get forwardingProfiles from networkAccess +// Get each forwarding profile associated with a branch site is specified. Supports $expand. func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +124,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestB } return requestInfo, nil } -// ToGetRequestInformation get forwardingProfiles from networkAccess +// ToGetRequestInformation each forwarding profile associated with a branch site is specified. Supports $expand. func (m *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesForwardingProfileItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_item_policy_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_item_policy_request_builder.go index 7a46b64898e..89fcd3590ac 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_item_policy_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_item_policy_request_builder.go @@ -11,7 +11,7 @@ import ( type ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetQueryParameters get policy from networkAccess +// ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetQueryParameters policy. type ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestB urlParams["request-raw-url"] = rawUrl return NewConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilderInternal(urlParams, requestAdapter) } -// Get get policy from networkAccess +// Get policy. func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Policyable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -59,7 +59,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequest } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Policyable), nil } -// ToGetRequestInformation get policy from networkAccess +// ToGetRequestInformation policy. func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_policy_link_item_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_policy_link_item_request_builder.go index f083f2efb1c..a232ca845d0 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_policy_link_item_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_policy_link_item_request_builder.go @@ -18,7 +18,7 @@ type ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetQueryParameters get policies from networkAccess +// ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetQueryParameters traffic forwarding policies associated with this profile. type ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemReq } return nil } -// Get get policies from networkAccess +// Get traffic forwarding policies associated with this profile. func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +124,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemReq } return requestInfo, nil } -// ToGetRequestInformation get policies from networkAccess +// ToGetRequestInformation traffic forwarding policies associated with this profile. func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_request_builder.go index 2de04fa14d1..d5947d43b0e 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_item_policies_request_builder.go @@ -11,7 +11,7 @@ import ( type ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilderGetQueryParameters get policies from networkAccess +// ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilderGetQueryParameters traffic forwarding policies associated with this profile. type ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder(raw func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) Count()(*ConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilder) { return NewConnectivityBranchesItemForwardingProfilesItemPoliciesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get policies from networkAccess +// Get traffic forwarding policies associated with this profile. func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) P } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable), nil } -// ToGetRequestInformation get policies from networkAccess +// ToGetRequestInformation traffic forwarding policies associated with this profile. func (m *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesItemPoliciesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/connectivity_branches_item_forwarding_profiles_request_builder.go b/networkaccess/connectivity_branches_item_forwarding_profiles_request_builder.go index bd5368a930d..a6fbf7b6ba6 100644 --- a/networkaccess/connectivity_branches_item_forwarding_profiles_request_builder.go +++ b/networkaccess/connectivity_branches_item_forwarding_profiles_request_builder.go @@ -11,7 +11,7 @@ import ( type ConnectivityBranchesItemForwardingProfilesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ConnectivityBranchesItemForwardingProfilesRequestBuilderGetQueryParameters get forwardingProfiles from networkAccess +// ConnectivityBranchesItemForwardingProfilesRequestBuilderGetQueryParameters retrieve a list of traffic forwarding profiles associated with a branch. type ConnectivityBranchesItemForwardingProfilesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,10 @@ func NewConnectivityBranchesItemForwardingProfilesRequestBuilder(rawUrl string, func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) Count()(*ConnectivityBranchesItemForwardingProfilesCountRequestBuilder) { return NewConnectivityBranchesItemForwardingProfilesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get forwardingProfiles from networkAccess +// Get retrieve a list of traffic forwarding profiles associated with a branch. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-branchsite-list-forwardingprofiles?view=graph-rest-1.0 func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +115,7 @@ func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) Post(ctx cont } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable), nil } -// ToGetRequestInformation get forwardingProfiles from networkAccess +// ToGetRequestInformation retrieve a list of traffic forwarding profiles associated with a branch. func (m *ConnectivityBranchesItemForwardingProfilesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesItemForwardingProfilesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/connectivity_branches_request_builder.go b/networkaccess/connectivity_branches_request_builder.go index 73d783ff759..f72212ec892 100644 --- a/networkaccess/connectivity_branches_request_builder.go +++ b/networkaccess/connectivity_branches_request_builder.go @@ -11,7 +11,7 @@ import ( type ConnectivityBranchesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ConnectivityBranchesRequestBuilderGetQueryParameters get branches from networkAccess +// ConnectivityBranchesRequestBuilderGetQueryParameters retrieve a list of branches within a tenant connected to the Global Secure Access services. type ConnectivityBranchesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,10 @@ func NewConnectivityBranchesRequestBuilder(rawUrl string, requestAdapter i2ae418 func (m *ConnectivityBranchesRequestBuilder) Count()(*ConnectivityBranchesCountRequestBuilder) { return NewConnectivityBranchesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get branches from networkAccess +// Get retrieve a list of branches within a tenant connected to the Global Secure Access services. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-connectivity-list-branches?view=graph-rest-1.0 func (m *ConnectivityBranchesRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityBranchesRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -93,7 +96,10 @@ func (m *ConnectivityBranchesRequestBuilder) Get(ctx context.Context, requestCon } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteCollectionResponseable), nil } -// Post create new navigation property to branches for networkAccess +// Post create a new branch. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-connectivity-post-branches?view=graph-rest-1.0 func (m *ConnectivityBranchesRequestBuilder) Post(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable, requestConfiguration *ConnectivityBranchesRequestBuilderPostRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -112,7 +118,7 @@ func (m *ConnectivityBranchesRequestBuilder) Post(ctx context.Context, body i43e } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable), nil } -// ToGetRequestInformation get branches from networkAccess +// ToGetRequestInformation retrieve a list of branches within a tenant connected to the Global Secure Access services. func (m *ConnectivityBranchesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityBranchesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -128,7 +134,7 @@ func (m *ConnectivityBranchesRequestBuilder) ToGetRequestInformation(ctx context } return requestInfo, nil } -// ToPostRequestInformation create new navigation property to branches for networkAccess +// ToPostRequestInformation create a new branch. func (m *ConnectivityBranchesRequestBuilder) ToPostRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.BranchSiteable, requestConfiguration *ConnectivityBranchesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/connectivity_request_builder.go b/networkaccess/connectivity_request_builder.go index 912ba215482..f952c99d10b 100644 --- a/networkaccess/connectivity_request_builder.go +++ b/networkaccess/connectivity_request_builder.go @@ -18,7 +18,7 @@ type ConnectivityRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ConnectivityRequestBuilderGetQueryParameters get connectivity from networkAccess +// ConnectivityRequestBuilderGetQueryParameters connectivity represents all the connectivity components in Global Secure Access. type ConnectivityRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -74,7 +74,7 @@ func (m *ConnectivityRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get get connectivity from networkAccess +// Get connectivity represents all the connectivity components in Global Secure Access. func (m *ConnectivityRequestBuilder) Get(ctx context.Context, requestConfiguration *ConnectivityRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Connectivityable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +124,7 @@ func (m *ConnectivityRequestBuilder) ToDeleteRequestInformation(ctx context.Cont } return requestInfo, nil } -// ToGetRequestInformation get connectivity from networkAccess +// ToGetRequestInformation connectivity represents all the connectivity components in Global Secure Access. func (m *ConnectivityRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConnectivityRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/forwarding_policies_forwarding_policy_item_request_builder.go b/networkaccess/forwarding_policies_forwarding_policy_item_request_builder.go index 27820b8af1e..f05f6528d03 100644 --- a/networkaccess/forwarding_policies_forwarding_policy_item_request_builder.go +++ b/networkaccess/forwarding_policies_forwarding_policy_item_request_builder.go @@ -18,7 +18,7 @@ type ForwardingPoliciesForwardingPolicyItemRequestBuilderDeleteRequestConfigurat // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ForwardingPoliciesForwardingPolicyItemRequestBuilderGetQueryParameters get forwardingPolicies from networkAccess +// ForwardingPoliciesForwardingPolicyItemRequestBuilderGetQueryParameters retrieve information about a specific forwarding policy. type ForwardingPoliciesForwardingPolicyItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *ForwardingPoliciesForwardingPolicyItemRequestBuilder) Delete(ctx contex } return nil } -// Get get forwardingPolicies from networkAccess +// Get retrieve information about a specific forwarding policy. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-forwardingpolicy-get?view=graph-rest-1.0 func (m *ForwardingPoliciesForwardingPolicyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ForwardingPoliciesForwardingPolicyItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingPolicyable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -128,7 +131,7 @@ func (m *ForwardingPoliciesForwardingPolicyItemRequestBuilder) ToDeleteRequestIn } return requestInfo, nil } -// ToGetRequestInformation get forwardingPolicies from networkAccess +// ToGetRequestInformation retrieve information about a specific forwarding policy. func (m *ForwardingPoliciesForwardingPolicyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ForwardingPoliciesForwardingPolicyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/forwarding_policies_item_microsoft_graph_networkaccess_update_policy_rules_request_builder.go b/networkaccess/forwarding_policies_item_microsoft_graph_networkaccess_update_policy_rules_request_builder.go index b443f06435f..f5718c90d24 100644 --- a/networkaccess/forwarding_policies_item_microsoft_graph_networkaccess_update_policy_rules_request_builder.go +++ b/networkaccess/forwarding_policies_item_microsoft_graph_networkaccess_update_policy_rules_request_builder.go @@ -30,7 +30,10 @@ func NewForwardingPoliciesItemMicrosoftGraphNetworkaccessUpdatePolicyRulesReques urlParams["request-raw-url"] = rawUrl return NewForwardingPoliciesItemMicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action updatePolicyRules +// Post update the rules within a forwarding policy. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-forwardingpolicy-updatepolicyrules?view=graph-rest-1.0 func (m *ForwardingPoliciesItemMicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilder) Post(ctx context.Context, body ForwardingPoliciesItemMicrosoftGraphNetworkaccessUpdatePolicyRulesUpdatePolicyRulesPostRequestBodyable, requestConfiguration *ForwardingPoliciesItemMicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -46,7 +49,7 @@ func (m *ForwardingPoliciesItemMicrosoftGraphNetworkaccessUpdatePolicyRulesReque } return nil } -// ToPostRequestInformation invoke action updatePolicyRules +// ToPostRequestInformation update the rules within a forwarding policy. func (m *ForwardingPoliciesItemMicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ForwardingPoliciesItemMicrosoftGraphNetworkaccessUpdatePolicyRulesUpdatePolicyRulesPostRequestBodyable, requestConfiguration *ForwardingPoliciesItemMicrosoftGraphNetworkaccessUpdatePolicyRulesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/forwarding_policies_item_policy_rules_policy_rule_item_request_builder.go b/networkaccess/forwarding_policies_item_policy_rules_policy_rule_item_request_builder.go index 0c5372998dd..51999fc9e53 100644 --- a/networkaccess/forwarding_policies_item_policy_rules_policy_rule_item_request_builder.go +++ b/networkaccess/forwarding_policies_item_policy_rules_policy_rule_item_request_builder.go @@ -18,7 +18,7 @@ type ForwardingPoliciesItemPolicyRulesPolicyRuleItemRequestBuilderDeleteRequestC // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ForwardingPoliciesItemPolicyRulesPolicyRuleItemRequestBuilderGetQueryParameters get policyRules from networkAccess +// ForwardingPoliciesItemPolicyRulesPolicyRuleItemRequestBuilderGetQueryParameters represents the definition of the policy ruleset that makes up the core definition of a policy. type ForwardingPoliciesItemPolicyRulesPolicyRuleItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ForwardingPoliciesItemPolicyRulesPolicyRuleItemRequestBuilder) Delete(c } return nil } -// Get get policyRules from networkAccess +// Get represents the definition of the policy ruleset that makes up the core definition of a policy. func (m *ForwardingPoliciesItemPolicyRulesPolicyRuleItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ForwardingPoliciesItemPolicyRulesPolicyRuleItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyRuleable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +120,7 @@ func (m *ForwardingPoliciesItemPolicyRulesPolicyRuleItemRequestBuilder) ToDelete } return requestInfo, nil } -// ToGetRequestInformation get policyRules from networkAccess +// ToGetRequestInformation represents the definition of the policy ruleset that makes up the core definition of a policy. func (m *ForwardingPoliciesItemPolicyRulesPolicyRuleItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ForwardingPoliciesItemPolicyRulesPolicyRuleItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/forwarding_policies_item_policy_rules_request_builder.go b/networkaccess/forwarding_policies_item_policy_rules_request_builder.go index 6e003eb3f8e..ffe40499b45 100644 --- a/networkaccess/forwarding_policies_item_policy_rules_request_builder.go +++ b/networkaccess/forwarding_policies_item_policy_rules_request_builder.go @@ -11,7 +11,7 @@ import ( type ForwardingPoliciesItemPolicyRulesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ForwardingPoliciesItemPolicyRulesRequestBuilderGetQueryParameters get policyRules from networkAccess +// ForwardingPoliciesItemPolicyRulesRequestBuilderGetQueryParameters represents the definition of the policy ruleset that makes up the core definition of a policy. type ForwardingPoliciesItemPolicyRulesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewForwardingPoliciesItemPolicyRulesRequestBuilder(rawUrl string, requestAd func (m *ForwardingPoliciesItemPolicyRulesRequestBuilder) Count()(*ForwardingPoliciesItemPolicyRulesCountRequestBuilder) { return NewForwardingPoliciesItemPolicyRulesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get policyRules from networkAccess +// Get represents the definition of the policy ruleset that makes up the core definition of a policy. func (m *ForwardingPoliciesItemPolicyRulesRequestBuilder) Get(ctx context.Context, requestConfiguration *ForwardingPoliciesItemPolicyRulesRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyRuleCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *ForwardingPoliciesItemPolicyRulesRequestBuilder) Post(ctx context.Conte } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyRuleable), nil } -// ToGetRequestInformation get policyRules from networkAccess +// ToGetRequestInformation represents the definition of the policy ruleset that makes up the core definition of a policy. func (m *ForwardingPoliciesItemPolicyRulesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ForwardingPoliciesItemPolicyRulesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/forwarding_policies_request_builder.go b/networkaccess/forwarding_policies_request_builder.go index d00cb118d07..f0f744cd3cb 100644 --- a/networkaccess/forwarding_policies_request_builder.go +++ b/networkaccess/forwarding_policies_request_builder.go @@ -11,7 +11,7 @@ import ( type ForwardingPoliciesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ForwardingPoliciesRequestBuilderGetQueryParameters get forwardingPolicies from networkAccess +// ForwardingPoliciesRequestBuilderGetQueryParameters retrieve information about a specific forwarding policy. type ForwardingPoliciesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewForwardingPoliciesRequestBuilder(rawUrl string, requestAdapter i2ae4187f func (m *ForwardingPoliciesRequestBuilder) Count()(*ForwardingPoliciesCountRequestBuilder) { return NewForwardingPoliciesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get forwardingPolicies from networkAccess +// Get retrieve information about a specific forwarding policy. func (m *ForwardingPoliciesRequestBuilder) Get(ctx context.Context, requestConfiguration *ForwardingPoliciesRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingPolicyCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *ForwardingPoliciesRequestBuilder) Post(ctx context.Context, body i43e72 } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingPolicyable), nil } -// ToGetRequestInformation get forwardingPolicies from networkAccess +// ToGetRequestInformation retrieve information about a specific forwarding policy. func (m *ForwardingPoliciesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ForwardingPoliciesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/forwarding_profiles_forwarding_profile_item_request_builder.go b/networkaccess/forwarding_profiles_forwarding_profile_item_request_builder.go index cb01af4270c..e94a5bc4d90 100644 --- a/networkaccess/forwarding_profiles_forwarding_profile_item_request_builder.go +++ b/networkaccess/forwarding_profiles_forwarding_profile_item_request_builder.go @@ -18,7 +18,7 @@ type ForwardingProfilesForwardingProfileItemRequestBuilderDeleteRequestConfigura // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ForwardingProfilesForwardingProfileItemRequestBuilderGetQueryParameters get forwardingProfiles from networkAccess +// ForwardingProfilesForwardingProfileItemRequestBuilderGetQueryParameters retrieve information about a specific forwarding profile. type ForwardingProfilesForwardingProfileItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *ForwardingProfilesForwardingProfileItemRequestBuilder) Delete(ctx conte } return nil } -// Get get forwardingProfiles from networkAccess +// Get retrieve information about a specific forwarding profile. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-forwardingprofile-get?view=graph-rest-1.0 func (m *ForwardingProfilesForwardingProfileItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ForwardingProfilesForwardingProfileItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +92,10 @@ func (m *ForwardingProfilesForwardingProfileItemRequestBuilder) Get(ctx context. } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable), nil } -// Patch update the navigation property forwardingProfiles in networkAccess +// Patch update an existing forwarding profile. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-forwardingprofile-update?view=graph-rest-1.0 func (m *ForwardingProfilesForwardingProfileItemRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, requestConfiguration *ForwardingProfilesForwardingProfileItemRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -124,7 +130,7 @@ func (m *ForwardingProfilesForwardingProfileItemRequestBuilder) ToDeleteRequestI } return requestInfo, nil } -// ToGetRequestInformation get forwardingProfiles from networkAccess +// ToGetRequestInformation retrieve information about a specific forwarding profile. func (m *ForwardingProfilesForwardingProfileItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ForwardingProfilesForwardingProfileItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -140,7 +146,7 @@ func (m *ForwardingProfilesForwardingProfileItemRequestBuilder) ToGetRequestInfo } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property forwardingProfiles in networkAccess +// ToPatchRequestInformation update an existing forwarding profile. func (m *ForwardingProfilesForwardingProfileItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable, requestConfiguration *ForwardingProfilesForwardingProfileItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/forwarding_profiles_item_policies_item_policy_request_builder.go b/networkaccess/forwarding_profiles_item_policies_item_policy_request_builder.go index 1ff3aab3002..743329e152e 100644 --- a/networkaccess/forwarding_profiles_item_policies_item_policy_request_builder.go +++ b/networkaccess/forwarding_profiles_item_policies_item_policy_request_builder.go @@ -11,7 +11,7 @@ import ( type ForwardingProfilesItemPoliciesItemPolicyRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetQueryParameters get policy from networkAccess +// ForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetQueryParameters policy. type ForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewForwardingProfilesItemPoliciesItemPolicyRequestBuilder(rawUrl string, re urlParams["request-raw-url"] = rawUrl return NewForwardingProfilesItemPoliciesItemPolicyRequestBuilderInternal(urlParams, requestAdapter) } -// Get get policy from networkAccess +// Get policy. func (m *ForwardingProfilesItemPoliciesItemPolicyRequestBuilder) Get(ctx context.Context, requestConfiguration *ForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Policyable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -59,7 +59,7 @@ func (m *ForwardingProfilesItemPoliciesItemPolicyRequestBuilder) Get(ctx context } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Policyable), nil } -// ToGetRequestInformation get policy from networkAccess +// ToGetRequestInformation policy. func (m *ForwardingProfilesItemPoliciesItemPolicyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ForwardingProfilesItemPoliciesItemPolicyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/forwarding_profiles_item_policies_policy_link_item_request_builder.go b/networkaccess/forwarding_profiles_item_policies_policy_link_item_request_builder.go index 3e0bc7b47cb..65ed55faf1b 100644 --- a/networkaccess/forwarding_profiles_item_policies_policy_link_item_request_builder.go +++ b/networkaccess/forwarding_profiles_item_policies_policy_link_item_request_builder.go @@ -18,7 +18,7 @@ type ForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderDeleteRequestConf // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetQueryParameters get policies from networkAccess +// ForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetQueryParameters traffic forwarding policies associated with this profile. type ForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) Delete(ctx } return nil } -// Get get policies from networkAccess +// Get traffic forwarding policies associated with this profile. func (m *ForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +124,7 @@ func (m *ForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) ToDeleteReq } return requestInfo, nil } -// ToGetRequestInformation get policies from networkAccess +// ToGetRequestInformation traffic forwarding policies associated with this profile. func (m *ForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ForwardingProfilesItemPoliciesPolicyLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/forwarding_profiles_item_policies_request_builder.go b/networkaccess/forwarding_profiles_item_policies_request_builder.go index a71e83ac872..30c81974836 100644 --- a/networkaccess/forwarding_profiles_item_policies_request_builder.go +++ b/networkaccess/forwarding_profiles_item_policies_request_builder.go @@ -11,7 +11,7 @@ import ( type ForwardingProfilesItemPoliciesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ForwardingProfilesItemPoliciesRequestBuilderGetQueryParameters get policies from networkAccess +// ForwardingProfilesItemPoliciesRequestBuilderGetQueryParameters traffic forwarding policies associated with this profile. type ForwardingProfilesItemPoliciesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewForwardingProfilesItemPoliciesRequestBuilder(rawUrl string, requestAdapt func (m *ForwardingProfilesItemPoliciesRequestBuilder) Count()(*ForwardingProfilesItemPoliciesCountRequestBuilder) { return NewForwardingProfilesItemPoliciesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get policies from networkAccess +// Get traffic forwarding policies associated with this profile. func (m *ForwardingProfilesItemPoliciesRequestBuilder) Get(ctx context.Context, requestConfiguration *ForwardingProfilesItemPoliciesRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *ForwardingProfilesItemPoliciesRequestBuilder) Post(ctx context.Context, } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.PolicyLinkable), nil } -// ToGetRequestInformation get policies from networkAccess +// ToGetRequestInformation traffic forwarding policies associated with this profile. func (m *ForwardingProfilesItemPoliciesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ForwardingProfilesItemPoliciesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/forwarding_profiles_request_builder.go b/networkaccess/forwarding_profiles_request_builder.go index 287179be46e..e93630cef20 100644 --- a/networkaccess/forwarding_profiles_request_builder.go +++ b/networkaccess/forwarding_profiles_request_builder.go @@ -11,7 +11,7 @@ import ( type ForwardingProfilesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ForwardingProfilesRequestBuilderGetQueryParameters get forwardingProfiles from networkAccess +// ForwardingProfilesRequestBuilderGetQueryParameters retrieve a list of forwarding profiles. type ForwardingProfilesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,10 @@ func NewForwardingProfilesRequestBuilder(rawUrl string, requestAdapter i2ae4187f func (m *ForwardingProfilesRequestBuilder) Count()(*ForwardingProfilesCountRequestBuilder) { return NewForwardingProfilesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get forwardingProfiles from networkAccess +// Get retrieve a list of forwarding profiles. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-networkaccessroot-list-forwardingprofiles?view=graph-rest-1.0 func (m *ForwardingProfilesRequestBuilder) Get(ctx context.Context, requestConfiguration *ForwardingProfilesRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +115,7 @@ func (m *ForwardingProfilesRequestBuilder) Post(ctx context.Context, body i43e72 } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingProfileable), nil } -// ToGetRequestInformation get forwardingProfiles from networkAccess +// ToGetRequestInformation retrieve a list of forwarding profiles. func (m *ForwardingProfilesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ForwardingProfilesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/logs_request_builder.go b/networkaccess/logs_request_builder.go index b90b3901660..844e2a9c9bb 100644 --- a/networkaccess/logs_request_builder.go +++ b/networkaccess/logs_request_builder.go @@ -18,7 +18,7 @@ type LogsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// LogsRequestBuilderGetQueryParameters get logs from networkAccess +// LogsRequestBuilderGetQueryParameters represnts network connections that are routed through Global Secure Access. type LogsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *LogsRequestBuilder) Delete(ctx context.Context, requestConfiguration *L } return nil } -// Get get logs from networkAccess +// Get represnts network connections that are routed through Global Secure Access. func (m *LogsRequestBuilder) Get(ctx context.Context, requestConfiguration *LogsRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Logsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +120,7 @@ func (m *LogsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, req } return requestInfo, nil } -// ToGetRequestInformation get logs from networkAccess +// ToGetRequestInformation represnts network connections that are routed through Global Secure Access. func (m *LogsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LogsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/logs_traffic_network_access_traffic_transaction_item_request_builder.go b/networkaccess/logs_traffic_network_access_traffic_transaction_item_request_builder.go index 1cb15a69c07..4a21e8685be 100644 --- a/networkaccess/logs_traffic_network_access_traffic_transaction_item_request_builder.go +++ b/networkaccess/logs_traffic_network_access_traffic_transaction_item_request_builder.go @@ -18,7 +18,7 @@ type LogsTrafficNetworkAccessTrafficTransactionItemRequestBuilderDeleteRequestCo // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// LogsTrafficNetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters get traffic from networkAccess +// LogsTrafficNetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters represents a collection of log entries in the network access traffic log. type LogsTrafficNetworkAccessTrafficTransactionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *LogsTrafficNetworkAccessTrafficTransactionItemRequestBuilder) Delete(ct } return nil } -// Get get traffic from networkAccess +// Get represents a collection of log entries in the network access traffic log. func (m *LogsTrafficNetworkAccessTrafficTransactionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LogsTrafficNetworkAccessTrafficTransactionItemRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.NetworkAccessTrafficable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +120,7 @@ func (m *LogsTrafficNetworkAccessTrafficTransactionItemRequestBuilder) ToDeleteR } return requestInfo, nil } -// ToGetRequestInformation get traffic from networkAccess +// ToGetRequestInformation represents a collection of log entries in the network access traffic log. func (m *LogsTrafficNetworkAccessTrafficTransactionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LogsTrafficNetworkAccessTrafficTransactionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/logs_traffic_request_builder.go b/networkaccess/logs_traffic_request_builder.go index 44490af1d2a..a62f87644ca 100644 --- a/networkaccess/logs_traffic_request_builder.go +++ b/networkaccess/logs_traffic_request_builder.go @@ -11,7 +11,7 @@ import ( type LogsTrafficRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// LogsTrafficRequestBuilderGetQueryParameters get traffic from networkAccess +// LogsTrafficRequestBuilderGetQueryParameters get a list of log events for traffic routed through the Global Secure Access services. type LogsTrafficRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,10 @@ func NewLogsTrafficRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 func (m *LogsTrafficRequestBuilder) Count()(*LogsTrafficCountRequestBuilder) { return NewLogsTrafficCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get traffic from networkAccess +// Get get a list of log events for traffic routed through the Global Secure Access services. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-logs-list-traffic?view=graph-rest-1.0 func (m *LogsTrafficRequestBuilder) Get(ctx context.Context, requestConfiguration *LogsTrafficRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.NetworkAccessTrafficCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +115,7 @@ func (m *LogsTrafficRequestBuilder) Post(ctx context.Context, body i43e723cc778f } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.NetworkAccessTrafficable), nil } -// ToGetRequestInformation get traffic from networkAccess +// ToGetRequestInformation get a list of log events for traffic routed through the Global Secure Access services. func (m *LogsTrafficRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LogsTrafficRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/reports_request_builder.go b/networkaccess/reports_request_builder.go index 71c5494ec10..46e88747b75 100644 --- a/networkaccess/reports_request_builder.go +++ b/networkaccess/reports_request_builder.go @@ -19,7 +19,7 @@ type ReportsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ReportsRequestBuilderGetQueryParameters get reports from networkAccess +// ReportsRequestBuilderGetQueryParameters represents the status of the Global Secure Access services for the tenant. type ReportsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -71,7 +71,7 @@ func (m *ReportsRequestBuilder) Delete(ctx context.Context, requestConfiguration } return nil } -// Get get reports from networkAccess +// Get represents the status of the Global Secure Access services for the tenant. func (m *ReportsRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Reportsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ReportsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, } return requestInfo, nil } -// ToGetRequestInformation get reports from networkAccess +// ToGetRequestInformation represents the status of the Global Secure Access services for the tenant. func (m *ReportsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/settings_conditional_access_request_builder.go b/networkaccess/settings_conditional_access_request_builder.go index c9c900f8dce..92bd2e06de0 100644 --- a/networkaccess/settings_conditional_access_request_builder.go +++ b/networkaccess/settings_conditional_access_request_builder.go @@ -18,7 +18,7 @@ type SettingsConditionalAccessRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// SettingsConditionalAccessRequestBuilderGetQueryParameters get conditionalAccess from networkAccess +// SettingsConditionalAccessRequestBuilderGetQueryParameters retrieve the conditional access settings, which include the preservation of the original source IP address in network traffic for accurate identification and tracking, as well as the establishment of scalable network connectivity through the Global Secure Access services. type SettingsConditionalAccessRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *SettingsConditionalAccessRequestBuilder) Delete(ctx context.Context, re } return nil } -// Get get conditionalAccess from networkAccess +// Get retrieve the conditional access settings, which include the preservation of the original source IP address in network traffic for accurate identification and tracking, as well as the establishment of scalable network connectivity through the Global Secure Access services. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-conditionalaccesssettings-get?view=graph-rest-1.0 func (m *SettingsConditionalAccessRequestBuilder) Get(ctx context.Context, requestConfiguration *SettingsConditionalAccessRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConditionalAccessSettingsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +92,10 @@ func (m *SettingsConditionalAccessRequestBuilder) Get(ctx context.Context, reque } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConditionalAccessSettingsable), nil } -// Patch update the navigation property conditionalAccess in networkAccess +// Patch update the conditional access settings to include the preservation of the original source IP address in network traffic for accurate identification and tracking, as well as the establishment of scalable network connectivity through the Global Secure Access services. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-conditionalaccesssettings-update?view=graph-rest-1.0 func (m *SettingsConditionalAccessRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConditionalAccessSettingsable, requestConfiguration *SettingsConditionalAccessRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConditionalAccessSettingsable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -120,7 +126,7 @@ func (m *SettingsConditionalAccessRequestBuilder) ToDeleteRequestInformation(ctx } return requestInfo, nil } -// ToGetRequestInformation get conditionalAccess from networkAccess +// ToGetRequestInformation retrieve the conditional access settings, which include the preservation of the original source IP address in network traffic for accurate identification and tracking, as well as the establishment of scalable network connectivity through the Global Secure Access services. func (m *SettingsConditionalAccessRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SettingsConditionalAccessRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -136,7 +142,7 @@ func (m *SettingsConditionalAccessRequestBuilder) ToGetRequestInformation(ctx co } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property conditionalAccess in networkAccess +// ToPatchRequestInformation update the conditional access settings to include the preservation of the original source IP address in network traffic for accurate identification and tracking, as well as the establishment of scalable network connectivity through the Global Secure Access services. func (m *SettingsConditionalAccessRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ConditionalAccessSettingsable, requestConfiguration *SettingsConditionalAccessRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/settings_cross_tenant_access_request_builder.go b/networkaccess/settings_cross_tenant_access_request_builder.go index bd19694fab6..5eab37abd61 100644 --- a/networkaccess/settings_cross_tenant_access_request_builder.go +++ b/networkaccess/settings_cross_tenant_access_request_builder.go @@ -18,7 +18,7 @@ type SettingsCrossTenantAccessRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// SettingsCrossTenantAccessRequestBuilderGetQueryParameters get crossTenantAccess from networkAccess +// SettingsCrossTenantAccessRequestBuilderGetQueryParameters retrieve the cross-tenant access settings, which include network packet tagging to enforce Tenant Restrictions Policies (TRv2 Policies) aimed at preventing data exfiltration to external tenants. type SettingsCrossTenantAccessRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *SettingsCrossTenantAccessRequestBuilder) Delete(ctx context.Context, re } return nil } -// Get get crossTenantAccess from networkAccess +// Get retrieve the cross-tenant access settings, which include network packet tagging to enforce Tenant Restrictions Policies (TRv2 Policies) aimed at preventing data exfiltration to external tenants. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-crosstenantaccesssettings-get?view=graph-rest-1.0 func (m *SettingsCrossTenantAccessRequestBuilder) Get(ctx context.Context, requestConfiguration *SettingsCrossTenantAccessRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessSettingsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +92,10 @@ func (m *SettingsCrossTenantAccessRequestBuilder) Get(ctx context.Context, reque } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessSettingsable), nil } -// Patch update the navigation property crossTenantAccess in networkAccess +// Patch update the cross-tenant access settings to include network packet tagging for enforcing Tenant Restrictions Policies (TRv2 Policies) that prevent data exfiltration to external tenants. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-crosstenantaccesssettings-update?view=graph-rest-1.0 func (m *SettingsCrossTenantAccessRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessSettingsable, requestConfiguration *SettingsCrossTenantAccessRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessSettingsable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -120,7 +126,7 @@ func (m *SettingsCrossTenantAccessRequestBuilder) ToDeleteRequestInformation(ctx } return requestInfo, nil } -// ToGetRequestInformation get crossTenantAccess from networkAccess +// ToGetRequestInformation retrieve the cross-tenant access settings, which include network packet tagging to enforce Tenant Restrictions Policies (TRv2 Policies) aimed at preventing data exfiltration to external tenants. func (m *SettingsCrossTenantAccessRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SettingsCrossTenantAccessRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -136,7 +142,7 @@ func (m *SettingsCrossTenantAccessRequestBuilder) ToGetRequestInformation(ctx co } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property crossTenantAccess in networkAccess +// ToPatchRequestInformation update the cross-tenant access settings to include network packet tagging for enforcing Tenant Restrictions Policies (TRv2 Policies) that prevent data exfiltration to external tenants. func (m *SettingsCrossTenantAccessRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessSettingsable, requestConfiguration *SettingsCrossTenantAccessRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/settings_enriched_audit_logs_request_builder.go b/networkaccess/settings_enriched_audit_logs_request_builder.go index 5c587a8ad44..555a4aefa00 100644 --- a/networkaccess/settings_enriched_audit_logs_request_builder.go +++ b/networkaccess/settings_enriched_audit_logs_request_builder.go @@ -89,7 +89,10 @@ func (m *SettingsEnrichedAuditLogsRequestBuilder) Get(ctx context.Context, reque } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.EnrichedAuditLogsable), nil } -// Patch update the navigation property enrichedAuditLogs in networkAccess +// Patch update the settings for the enriched audit logs workloads to control the enrichment feature for each partner workload, such as SharePoint, Teams, and Exchange. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-enrichedauditlogs-update?view=graph-rest-1.0 func (m *SettingsEnrichedAuditLogsRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.EnrichedAuditLogsable, requestConfiguration *SettingsEnrichedAuditLogsRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.EnrichedAuditLogsable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -136,7 +139,7 @@ func (m *SettingsEnrichedAuditLogsRequestBuilder) ToGetRequestInformation(ctx co } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property enrichedAuditLogs in networkAccess +// ToPatchRequestInformation update the settings for the enriched audit logs workloads to control the enrichment feature for each partner workload, such as SharePoint, Teams, and Exchange. func (m *SettingsEnrichedAuditLogsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.EnrichedAuditLogsable, requestConfiguration *SettingsEnrichedAuditLogsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/settings_forwarding_options_request_builder.go b/networkaccess/settings_forwarding_options_request_builder.go index d2de6f72036..2df0efbc530 100644 --- a/networkaccess/settings_forwarding_options_request_builder.go +++ b/networkaccess/settings_forwarding_options_request_builder.go @@ -18,7 +18,7 @@ type SettingsForwardingOptionsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// SettingsForwardingOptionsRequestBuilderGetQueryParameters get forwardingOptions from networkAccess +// SettingsForwardingOptionsRequestBuilderGetQueryParameters retrieve the forwarding options for the tenant, with a specific focus on the 'skipDnsLookupState' flag. This flag determines whether DNS lookup will be skipped, allowing Microsoft 365 traffic to be forwarded directly to the Front Door using the client-resolved destination. type SettingsForwardingOptionsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *SettingsForwardingOptionsRequestBuilder) Delete(ctx context.Context, re } return nil } -// Get get forwardingOptions from networkAccess +// Get retrieve the forwarding options for the tenant, with a specific focus on the 'skipDnsLookupState' flag. This flag determines whether DNS lookup will be skipped, allowing Microsoft 365 traffic to be forwarded directly to the Front Door using the client-resolved destination. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-forwardingoptions-get?view=graph-rest-1.0 func (m *SettingsForwardingOptionsRequestBuilder) Get(ctx context.Context, requestConfiguration *SettingsForwardingOptionsRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingOptionsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -89,7 +92,10 @@ func (m *SettingsForwardingOptionsRequestBuilder) Get(ctx context.Context, reque } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingOptionsable), nil } -// Patch update the navigation property forwardingOptions in networkAccess +// Patch the forwarding options for the tenant, with a specific focus on the skipDnsLookupState flag. This flag determines whether DNS lookup will be skipped, allowing Microsoft 365 traffic to be forwarded directly to the Front Door using the client-resolved destination. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-forwardingoptions-update?view=graph-rest-1.0 func (m *SettingsForwardingOptionsRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingOptionsable, requestConfiguration *SettingsForwardingOptionsRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingOptionsable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -120,7 +126,7 @@ func (m *SettingsForwardingOptionsRequestBuilder) ToDeleteRequestInformation(ctx } return requestInfo, nil } -// ToGetRequestInformation get forwardingOptions from networkAccess +// ToGetRequestInformation retrieve the forwarding options for the tenant, with a specific focus on the 'skipDnsLookupState' flag. This flag determines whether DNS lookup will be skipped, allowing Microsoft 365 traffic to be forwarded directly to the Front Door using the client-resolved destination. func (m *SettingsForwardingOptionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SettingsForwardingOptionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -136,7 +142,7 @@ func (m *SettingsForwardingOptionsRequestBuilder) ToGetRequestInformation(ctx co } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property forwardingOptions in networkAccess +// ToPatchRequestInformation the forwarding options for the tenant, with a specific focus on the skipDnsLookupState flag. This flag determines whether DNS lookup will be skipped, allowing Microsoft 365 traffic to be forwarded directly to the Front Door using the client-resolved destination. func (m *SettingsForwardingOptionsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.ForwardingOptionsable, requestConfiguration *SettingsForwardingOptionsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/settings_request_builder.go b/networkaccess/settings_request_builder.go index b9d097d740a..5f88c84a28a 100644 --- a/networkaccess/settings_request_builder.go +++ b/networkaccess/settings_request_builder.go @@ -18,7 +18,7 @@ type SettingsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// SettingsRequestBuilderGetQueryParameters get settings from networkAccess +// SettingsRequestBuilderGetQueryParameters global Secure Access settings. type SettingsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -86,7 +86,7 @@ func (m *SettingsRequestBuilder) EnrichedAuditLogs()(*SettingsEnrichedAuditLogsR func (m *SettingsRequestBuilder) ForwardingOptions()(*SettingsForwardingOptionsRequestBuilder) { return NewSettingsForwardingOptionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get settings from networkAccess +// Get global Secure Access settings. func (m *SettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *SettingsRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Settingsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -136,7 +136,7 @@ func (m *SettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, } return requestInfo, nil } -// ToGetRequestInformation get settings from networkAccess +// ToGetRequestInformation global Secure Access settings. func (m *SettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/networkaccess/tenant_status_request_builder.go b/networkaccess/tenant_status_request_builder.go index e2e87ac9a02..8cbddb3d5c7 100644 --- a/networkaccess/tenant_status_request_builder.go +++ b/networkaccess/tenant_status_request_builder.go @@ -18,7 +18,7 @@ type TenantStatusRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// TenantStatusRequestBuilderGetQueryParameters get tenantStatus from networkAccess +// TenantStatusRequestBuilderGetQueryParameters retrieve the onboarding status of a specific tenant. type TenantStatusRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *TenantStatusRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get get tenantStatus from networkAccess +// Get retrieve the onboarding status of a specific tenant. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/networkaccess-tenantstatus-get?view=graph-rest-1.0 func (m *TenantStatusRequestBuilder) Get(ctx context.Context, requestConfiguration *TenantStatusRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.TenantStatusable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +123,7 @@ func (m *TenantStatusRequestBuilder) ToDeleteRequestInformation(ctx context.Cont } return requestInfo, nil } -// ToGetRequestInformation get tenantStatus from networkAccess +// ToGetRequestInformation retrieve the onboarding status of a specific tenant. func (m *TenantStatusRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TenantStatusRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/onpremisespublishingprofiles/item_connector_groups_request_builder.go b/onpremisespublishingprofiles/item_connector_groups_request_builder.go index 7a1e7a60490..497aa305251 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 connectorGroup object. +// Post create a new connectorGroup. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/connectorgroup-post?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/connectorgroup-post-connectorgroups?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 { @@ -134,7 +134,7 @@ func (m *ItemConnectorGroupsRequestBuilder) ToGetRequestInformation(ctx context. } return requestInfo, nil } -// ToPostRequestInformation create a connectorGroup object. +// ToPostRequestInformation create a new connectorGroup. func (m *ItemConnectorGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConnectorGroupable, requestConfiguration *ItemConnectorGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/organization/item_settings_pronouns_request_builder.go b/organization/item_settings_pronouns_request_builder.go index 8bcd8f851f6..2cc59c2d83f 100644 --- a/organization/item_settings_pronouns_request_builder.go +++ b/organization/item_settings_pronouns_request_builder.go @@ -18,7 +18,7 @@ type ItemSettingsPronounsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSettingsPronounsRequestBuilderGetQueryParameters get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. +// ItemSettingsPronounsRequestBuilderGetQueryParameters get pronouns from organization type ItemSettingsPronounsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,10 +70,7 @@ func (m *ItemSettingsPronounsRequestBuilder) Delete(ctx context.Context, request } return nil } -// Get get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. -// [Find more info here] -// -// [Find more info here]: https://docs.microsoft.com/graph/api/organizationsettings-list-pronounssettings?view=graph-rest-1.0 +// Get get pronouns from organization func (m *ItemSettingsPronounsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsPronounsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PronounsSettingsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -92,10 +89,7 @@ func (m *ItemSettingsPronounsRequestBuilder) Get(ctx context.Context, requestCon } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PronounsSettingsable), nil } -// Patch update the properties of a pronounsSettings in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. -// [Find more info here] -// -// [Find more info here]: https://docs.microsoft.com/graph/api/pronounssettings-update?view=graph-rest-1.0 +// Patch update the navigation property pronouns in organization func (m *ItemSettingsPronounsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PronounsSettingsable, requestConfiguration *ItemSettingsPronounsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PronounsSettingsable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -126,7 +120,7 @@ func (m *ItemSettingsPronounsRequestBuilder) ToDeleteRequestInformation(ctx cont } return requestInfo, nil } -// ToGetRequestInformation get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. +// ToGetRequestInformation get pronouns from organization func (m *ItemSettingsPronounsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsPronounsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -142,7 +136,7 @@ func (m *ItemSettingsPronounsRequestBuilder) ToGetRequestInformation(ctx context } return requestInfo, nil } -// ToPatchRequestInformation update the properties of a pronounsSettings in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. +// ToPatchRequestInformation update the navigation property pronouns in organization func (m *ItemSettingsPronounsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PronounsSettingsable, requestConfiguration *ItemSettingsPronounsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/reports/authentication_methods_user_registration_details_request_builder.go b/reports/authentication_methods_user_registration_details_request_builder.go index 2b8eb2ed579..f8c7db4dd41 100644 --- a/reports/authentication_methods_user_registration_details_request_builder.go +++ b/reports/authentication_methods_user_registration_details_request_builder.go @@ -11,7 +11,7 @@ import ( type AuthenticationMethodsUserRegistrationDetailsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// AuthenticationMethodsUserRegistrationDetailsRequestBuilderGetQueryParameters get a list of the authentication methods registered for the user as defined in the userRegistrationDetails object. +// AuthenticationMethodsUserRegistrationDetailsRequestBuilderGetQueryParameters get a list of the authentication methods registered for a user as defined in the userRegistrationDetails object. type AuthenticationMethodsUserRegistrationDetailsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewAuthenticationMethodsUserRegistrationDetailsRequestBuilder(rawUrl string func (m *AuthenticationMethodsUserRegistrationDetailsRequestBuilder) Count()(*AuthenticationMethodsUserRegistrationDetailsCountRequestBuilder) { return NewAuthenticationMethodsUserRegistrationDetailsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of the authentication methods registered for the user as defined in the userRegistrationDetails object. +// Get get a list of the authentication methods registered for a user as defined in the userRegistrationDetails object. // [Find more info here] // // [Find more info here]: https://docs.microsoft.com/graph/api/authenticationmethodsroot-list-userregistrationdetails?view=graph-rest-1.0 @@ -115,7 +115,7 @@ func (m *AuthenticationMethodsUserRegistrationDetailsRequestBuilder) Post(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserRegistrationDetailsable), nil } -// ToGetRequestInformation get a list of the authentication methods registered for the user as defined in the userRegistrationDetails object. +// ToGetRequestInformation get a list of the authentication methods registered for a user as defined in the userRegistrationDetails object. func (m *AuthenticationMethodsUserRegistrationDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AuthenticationMethodsUserRegistrationDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/reports/daily_print_usage_by_printer_print_usage_by_printer_item_request_builder.go b/reports/daily_print_usage_by_printer_print_usage_by_printer_item_request_builder.go index 0bf385b521c..ebd690d76e6 100644 --- a/reports/daily_print_usage_by_printer_print_usage_by_printer_item_request_builder.go +++ b/reports/daily_print_usage_by_printer_print_usage_by_printer_item_request_builder.go @@ -18,7 +18,7 @@ type DailyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderDeleteRequestC // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DailyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderGetQueryParameters get dailyPrintUsageByPrinter from reports +// DailyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderGetQueryParameters retrieve a list of daily print usage summaries, grouped by printer. type DailyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *DailyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilder) Delete(c } return nil } -// Get get dailyPrintUsageByPrinter from reports +// Get retrieve a list of daily print usage summaries, grouped by printer. func (m *DailyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DailyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByPrinterable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +120,7 @@ func (m *DailyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilder) ToDelete } return requestInfo, nil } -// ToGetRequestInformation get dailyPrintUsageByPrinter from reports +// ToGetRequestInformation retrieve a list of daily print usage summaries, grouped by printer. func (m *DailyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DailyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/reports/daily_print_usage_by_printer_request_builder.go b/reports/daily_print_usage_by_printer_request_builder.go index 933525cff92..ddd33a27102 100644 --- a/reports/daily_print_usage_by_printer_request_builder.go +++ b/reports/daily_print_usage_by_printer_request_builder.go @@ -11,7 +11,7 @@ import ( type DailyPrintUsageByPrinterRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DailyPrintUsageByPrinterRequestBuilderGetQueryParameters get dailyPrintUsageByPrinter from reports +// DailyPrintUsageByPrinterRequestBuilderGetQueryParameters retrieve a list of daily print usage summaries, grouped by printer. type DailyPrintUsageByPrinterRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewDailyPrintUsageByPrinterRequestBuilder(rawUrl string, requestAdapter i2a func (m *DailyPrintUsageByPrinterRequestBuilder) Count()(*DailyPrintUsageByPrinterCountRequestBuilder) { return NewDailyPrintUsageByPrinterCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get dailyPrintUsageByPrinter from reports +// Get retrieve a list of daily print usage summaries, grouped by printer. func (m *DailyPrintUsageByPrinterRequestBuilder) Get(ctx context.Context, requestConfiguration *DailyPrintUsageByPrinterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByPrinterCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *DailyPrintUsageByPrinterRequestBuilder) Post(ctx context.Context, body } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByPrinterable), nil } -// ToGetRequestInformation get dailyPrintUsageByPrinter from reports +// ToGetRequestInformation retrieve a list of daily print usage summaries, grouped by printer. func (m *DailyPrintUsageByPrinterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DailyPrintUsageByPrinterRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/reports/daily_print_usage_by_user_print_usage_by_user_item_request_builder.go b/reports/daily_print_usage_by_user_print_usage_by_user_item_request_builder.go index 12f4450fa53..05878fbedd3 100644 --- a/reports/daily_print_usage_by_user_print_usage_by_user_item_request_builder.go +++ b/reports/daily_print_usage_by_user_print_usage_by_user_item_request_builder.go @@ -18,7 +18,7 @@ type DailyPrintUsageByUserPrintUsageByUserItemRequestBuilderDeleteRequestConfigu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DailyPrintUsageByUserPrintUsageByUserItemRequestBuilderGetQueryParameters get dailyPrintUsageByUser from reports +// DailyPrintUsageByUserPrintUsageByUserItemRequestBuilderGetQueryParameters retrieve a list of daily print usage summaries, grouped by user. type DailyPrintUsageByUserPrintUsageByUserItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *DailyPrintUsageByUserPrintUsageByUserItemRequestBuilder) Delete(ctx con } return nil } -// Get get dailyPrintUsageByUser from reports +// Get retrieve a list of daily print usage summaries, grouped by user. func (m *DailyPrintUsageByUserPrintUsageByUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DailyPrintUsageByUserPrintUsageByUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByUserable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +120,7 @@ func (m *DailyPrintUsageByUserPrintUsageByUserItemRequestBuilder) ToDeleteReques } return requestInfo, nil } -// ToGetRequestInformation get dailyPrintUsageByUser from reports +// ToGetRequestInformation retrieve a list of daily print usage summaries, grouped by user. func (m *DailyPrintUsageByUserPrintUsageByUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DailyPrintUsageByUserPrintUsageByUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/reports/daily_print_usage_by_user_request_builder.go b/reports/daily_print_usage_by_user_request_builder.go index 1c65d84578b..c75fa88aea6 100644 --- a/reports/daily_print_usage_by_user_request_builder.go +++ b/reports/daily_print_usage_by_user_request_builder.go @@ -11,7 +11,7 @@ import ( type DailyPrintUsageByUserRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DailyPrintUsageByUserRequestBuilderGetQueryParameters get dailyPrintUsageByUser from reports +// DailyPrintUsageByUserRequestBuilderGetQueryParameters retrieve a list of daily print usage summaries, grouped by user. type DailyPrintUsageByUserRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewDailyPrintUsageByUserRequestBuilder(rawUrl string, requestAdapter i2ae41 func (m *DailyPrintUsageByUserRequestBuilder) Count()(*DailyPrintUsageByUserCountRequestBuilder) { return NewDailyPrintUsageByUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get dailyPrintUsageByUser from reports +// Get retrieve a list of daily print usage summaries, grouped by user. func (m *DailyPrintUsageByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *DailyPrintUsageByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByUserCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *DailyPrintUsageByUserRequestBuilder) Post(ctx context.Context, body ie2 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByUserable), nil } -// ToGetRequestInformation get dailyPrintUsageByUser from reports +// ToGetRequestInformation retrieve a list of daily print usage summaries, grouped by user. func (m *DailyPrintUsageByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DailyPrintUsageByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/reports/monthly_print_usage_by_printer_print_usage_by_printer_item_request_builder.go b/reports/monthly_print_usage_by_printer_print_usage_by_printer_item_request_builder.go index 20f18620ca0..e8608ecc265 100644 --- a/reports/monthly_print_usage_by_printer_print_usage_by_printer_item_request_builder.go +++ b/reports/monthly_print_usage_by_printer_print_usage_by_printer_item_request_builder.go @@ -18,7 +18,7 @@ type MonthlyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderDeleteReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MonthlyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderGetQueryParameters get monthlyPrintUsageByPrinter from reports +// MonthlyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderGetQueryParameters retrieve a list of monthly print usage summaries, grouped by printer. type MonthlyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MonthlyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilder) Delete } return nil } -// Get get monthlyPrintUsageByPrinter from reports +// Get retrieve a list of monthly print usage summaries, grouped by printer. func (m *MonthlyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MonthlyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByPrinterable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +120,7 @@ func (m *MonthlyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilder) ToDele } return requestInfo, nil } -// ToGetRequestInformation get monthlyPrintUsageByPrinter from reports +// ToGetRequestInformation retrieve a list of monthly print usage summaries, grouped by printer. func (m *MonthlyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MonthlyPrintUsageByPrinterPrintUsageByPrinterItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/reports/monthly_print_usage_by_printer_request_builder.go b/reports/monthly_print_usage_by_printer_request_builder.go index db1532ff336..98193634418 100644 --- a/reports/monthly_print_usage_by_printer_request_builder.go +++ b/reports/monthly_print_usage_by_printer_request_builder.go @@ -11,7 +11,7 @@ import ( type MonthlyPrintUsageByPrinterRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MonthlyPrintUsageByPrinterRequestBuilderGetQueryParameters get monthlyPrintUsageByPrinter from reports +// MonthlyPrintUsageByPrinterRequestBuilderGetQueryParameters retrieve a list of monthly print usage summaries, grouped by printer. type MonthlyPrintUsageByPrinterRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewMonthlyPrintUsageByPrinterRequestBuilder(rawUrl string, requestAdapter i func (m *MonthlyPrintUsageByPrinterRequestBuilder) Count()(*MonthlyPrintUsageByPrinterCountRequestBuilder) { return NewMonthlyPrintUsageByPrinterCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get monthlyPrintUsageByPrinter from reports +// Get retrieve a list of monthly print usage summaries, grouped by printer. func (m *MonthlyPrintUsageByPrinterRequestBuilder) Get(ctx context.Context, requestConfiguration *MonthlyPrintUsageByPrinterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByPrinterCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *MonthlyPrintUsageByPrinterRequestBuilder) Post(ctx context.Context, bod } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByPrinterable), nil } -// ToGetRequestInformation get monthlyPrintUsageByPrinter from reports +// ToGetRequestInformation retrieve a list of monthly print usage summaries, grouped by printer. func (m *MonthlyPrintUsageByPrinterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MonthlyPrintUsageByPrinterRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/reports/monthly_print_usage_by_user_print_usage_by_user_item_request_builder.go b/reports/monthly_print_usage_by_user_print_usage_by_user_item_request_builder.go index 3e1111df8ab..0ec9f4b0e0f 100644 --- a/reports/monthly_print_usage_by_user_print_usage_by_user_item_request_builder.go +++ b/reports/monthly_print_usage_by_user_print_usage_by_user_item_request_builder.go @@ -18,7 +18,7 @@ type MonthlyPrintUsageByUserPrintUsageByUserItemRequestBuilderDeleteRequestConfi // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MonthlyPrintUsageByUserPrintUsageByUserItemRequestBuilderGetQueryParameters get monthlyPrintUsageByUser from reports +// MonthlyPrintUsageByUserPrintUsageByUserItemRequestBuilderGetQueryParameters retrieve a list of monthly print usage summaries, grouped by user. type MonthlyPrintUsageByUserPrintUsageByUserItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MonthlyPrintUsageByUserPrintUsageByUserItemRequestBuilder) Delete(ctx c } return nil } -// Get get monthlyPrintUsageByUser from reports +// Get retrieve a list of monthly print usage summaries, grouped by user. func (m *MonthlyPrintUsageByUserPrintUsageByUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MonthlyPrintUsageByUserPrintUsageByUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByUserable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +120,7 @@ func (m *MonthlyPrintUsageByUserPrintUsageByUserItemRequestBuilder) ToDeleteRequ } return requestInfo, nil } -// ToGetRequestInformation get monthlyPrintUsageByUser from reports +// ToGetRequestInformation retrieve a list of monthly print usage summaries, grouped by user. func (m *MonthlyPrintUsageByUserPrintUsageByUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MonthlyPrintUsageByUserPrintUsageByUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/reports/monthly_print_usage_by_user_request_builder.go b/reports/monthly_print_usage_by_user_request_builder.go index d9b28b05a4e..e2ebdae7cf0 100644 --- a/reports/monthly_print_usage_by_user_request_builder.go +++ b/reports/monthly_print_usage_by_user_request_builder.go @@ -11,7 +11,7 @@ import ( type MonthlyPrintUsageByUserRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MonthlyPrintUsageByUserRequestBuilderGetQueryParameters get monthlyPrintUsageByUser from reports +// MonthlyPrintUsageByUserRequestBuilderGetQueryParameters retrieve a list of monthly print usage summaries, grouped by user. type MonthlyPrintUsageByUserRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,7 @@ func NewMonthlyPrintUsageByUserRequestBuilder(rawUrl string, requestAdapter i2ae func (m *MonthlyPrintUsageByUserRequestBuilder) Count()(*MonthlyPrintUsageByUserCountRequestBuilder) { return NewMonthlyPrintUsageByUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get monthlyPrintUsageByUser from reports +// Get retrieve a list of monthly print usage summaries, grouped by user. func (m *MonthlyPrintUsageByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *MonthlyPrintUsageByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByUserCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *MonthlyPrintUsageByUserRequestBuilder) Post(ctx context.Context, body i } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PrintUsageByUserable), nil } -// ToGetRequestInformation get monthlyPrintUsageByUser from reports +// ToGetRequestInformation retrieve a list of monthly print usage summaries, grouped by user. func (m *MonthlyPrintUsageByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MonthlyPrintUsageByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/reports/reports_request_builder.go b/reports/reports_request_builder.go index 72a0d9efcca..c1cd894cd22 100644 --- a/reports/reports_request_builder.go +++ b/reports/reports_request_builder.go @@ -647,6 +647,10 @@ func (m *ReportsRequestBuilder) Security()(*SecurityRequestBuilder) { func (m *ReportsRequestBuilder) ServicePrincipalSignInActivities()(*ServicePrincipalSignInActivitiesRequestBuilder) { return NewServicePrincipalSignInActivitiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// Sla provides operations to manage the sla property of the microsoft.graph.reportRoot entity. +func (m *ReportsRequestBuilder) Sla()(*SlaRequestBuilder) { + return NewSlaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation get reports func (m *ReportsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() diff --git a/reports/sla_azure_a_d_authentication_request_builder.go b/reports/sla_azure_a_d_authentication_request_builder.go new file mode 100644 index 00000000000..d062d2791c1 --- /dev/null +++ b/reports/sla_azure_a_d_authentication_request_builder.go @@ -0,0 +1,158 @@ +package reports + +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" +) + +// SlaAzureADAuthenticationRequestBuilder provides operations to manage the azureADAuthentication property of the microsoft.graph.serviceLevelAgreementRoot entity. +type SlaAzureADAuthenticationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SlaAzureADAuthenticationRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SlaAzureADAuthenticationRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// SlaAzureADAuthenticationRequestBuilderGetQueryParameters read the properties and relationships of an azureADAuthentication object to find the level of Azure AD authentication availability for your tenant. The Azure AD Service Level Agreement (SLA) commits to at least 99.99% authentication availability, as described in Azure Active Directory SLA performance. This object provides you with your tenant’s actual performance against this commitment. +type SlaAzureADAuthenticationRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// SlaAzureADAuthenticationRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SlaAzureADAuthenticationRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *SlaAzureADAuthenticationRequestBuilderGetQueryParameters +} +// SlaAzureADAuthenticationRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SlaAzureADAuthenticationRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewSlaAzureADAuthenticationRequestBuilderInternal instantiates a new AzureADAuthenticationRequestBuilder and sets the default values. +func NewSlaAzureADAuthenticationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SlaAzureADAuthenticationRequestBuilder) { + m := &SlaAzureADAuthenticationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/sla/azureADAuthentication{?%24select,%24expand}", pathParameters), + } + return m +} +// NewSlaAzureADAuthenticationRequestBuilder instantiates a new AzureADAuthenticationRequestBuilder and sets the default values. +func NewSlaAzureADAuthenticationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SlaAzureADAuthenticationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSlaAzureADAuthenticationRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property azureADAuthentication for reports +func (m *SlaAzureADAuthenticationRequestBuilder) Delete(ctx context.Context, requestConfiguration *SlaAzureADAuthenticationRequestBuilderDeleteRequestConfiguration)(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 azureADAuthentication object to find the level of Azure AD authentication availability for your tenant. The Azure AD Service Level Agreement (SLA) commits to at least 99.99% authentication availability, as described in Azure Active Directory SLA performance. This object provides you with your tenant’s actual performance against this commitment. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/azureadauthentication-get?view=graph-rest-1.0 +func (m *SlaAzureADAuthenticationRequestBuilder) Get(ctx context.Context, requestConfiguration *SlaAzureADAuthenticationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AzureADAuthenticationable, 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.CreateAzureADAuthenticationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AzureADAuthenticationable), nil +} +// Patch update the navigation property azureADAuthentication in reports +func (m *SlaAzureADAuthenticationRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AzureADAuthenticationable, requestConfiguration *SlaAzureADAuthenticationRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AzureADAuthenticationable, 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.CreateAzureADAuthenticationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AzureADAuthenticationable), nil +} +// ToDeleteRequestInformation delete navigation property azureADAuthentication for reports +func (m *SlaAzureADAuthenticationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SlaAzureADAuthenticationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToGetRequestInformation read the properties and relationships of an azureADAuthentication object to find the level of Azure AD authentication availability for your tenant. The Azure AD Service Level Agreement (SLA) commits to at least 99.99% authentication availability, as described in Azure Active Directory SLA performance. This object provides you with your tenant’s actual performance against this commitment. +func (m *SlaAzureADAuthenticationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SlaAzureADAuthenticationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property azureADAuthentication in reports +func (m *SlaAzureADAuthenticationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AzureADAuthenticationable, requestConfiguration *SlaAzureADAuthenticationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH + requestInfo.Headers.Add("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/reports/sla_request_builder.go b/reports/sla_request_builder.go new file mode 100644 index 00000000000..19a29d362f0 --- /dev/null +++ b/reports/sla_request_builder.go @@ -0,0 +1,159 @@ +package reports + +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" +) + +// SlaRequestBuilder provides operations to manage the sla property of the microsoft.graph.reportRoot entity. +type SlaRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SlaRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SlaRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// SlaRequestBuilderGetQueryParameters a placeholder to allow for the desired URL path for SLA. +type SlaRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// SlaRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SlaRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *SlaRequestBuilderGetQueryParameters +} +// SlaRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SlaRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// AzureADAuthentication provides operations to manage the azureADAuthentication property of the microsoft.graph.serviceLevelAgreementRoot entity. +func (m *SlaRequestBuilder) AzureADAuthentication()(*SlaAzureADAuthenticationRequestBuilder) { + return NewSlaAzureADAuthenticationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewSlaRequestBuilderInternal instantiates a new SlaRequestBuilder and sets the default values. +func NewSlaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SlaRequestBuilder) { + m := &SlaRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/sla{?%24select,%24expand}", pathParameters), + } + return m +} +// NewSlaRequestBuilder instantiates a new SlaRequestBuilder and sets the default values. +func NewSlaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SlaRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSlaRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sla for reports +func (m *SlaRequestBuilder) Delete(ctx context.Context, requestConfiguration *SlaRequestBuilderDeleteRequestConfiguration)(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 placeholder to allow for the desired URL path for SLA. +func (m *SlaRequestBuilder) Get(ctx context.Context, requestConfiguration *SlaRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceLevelAgreementRootable, 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.CreateServiceLevelAgreementRootFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceLevelAgreementRootable), nil +} +// Patch update the navigation property sla in reports +func (m *SlaRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceLevelAgreementRootable, requestConfiguration *SlaRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceLevelAgreementRootable, 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.CreateServiceLevelAgreementRootFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceLevelAgreementRootable), nil +} +// ToDeleteRequestInformation delete navigation property sla for reports +func (m *SlaRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SlaRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToGetRequestInformation a placeholder to allow for the desired URL path for SLA. +func (m *SlaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SlaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property sla in reports +func (m *SlaRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceLevelAgreementRootable, requestConfiguration *SlaRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH + requestInfo.Headers.Add("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/riskdetections/risk_detections_request_builder.go b/riskdetections/risk_detections_request_builder.go index d17212e1dfe..82c44195778 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 **riskDetection** object. +// RiskDetectionsRequestBuilderGetQueryParameters retrieve the properties of a collection of **riskDetection** objects. 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 **riskDetection** object. +// Get retrieve the properties of a collection of **riskDetection** objects. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/riskdetection-list?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 **riskDetection** object. +// ToGetRequestInformation retrieve the properties of a collection of **riskDetection** objects. func (m *RiskDetectionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskDetectionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/serviceprincipals/item_member_of_directory_object_item_request_builder.go b/serviceprincipals/item_member_of_directory_object_item_request_builder.go index 05d0f6e32d6..3395867beb8 100644 --- a/serviceprincipals/item_member_of_directory_object_item_request_builder.go +++ b/serviceprincipals/item_member_of_directory_object_item_request_builder.go @@ -63,6 +63,10 @@ func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) Get(ctx context.Context, func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) GraphAdministrativeUnit()(*ItemMemberOfItemGraphAdministrativeUnitRequestBuilder) { return NewItemMemberOfItemGraphAdministrativeUnitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GraphDirectoryRole casts the previous resource to directoryRole. +func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) GraphDirectoryRole()(*ItemMemberOfItemGraphDirectoryRoleRequestBuilder) { + return NewItemMemberOfItemGraphDirectoryRoleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // GraphGroup casts the previous resource to group. func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) GraphGroup()(*ItemMemberOfItemGraphGroupRequestBuilder) { return NewItemMemberOfItemGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/serviceprincipals/item_member_of_graph_directory_role_count_request_builder.go b/serviceprincipals/item_member_of_graph_directory_role_count_request_builder.go new file mode 100644 index 00000000000..89df95cac1b --- /dev/null +++ b/serviceprincipals/item_member_of_graph_directory_role_count_request_builder.go @@ -0,0 +1,76 @@ +package serviceprincipals + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemMemberOfGraphDirectoryRoleCountRequestBuilder provides operations to count the resources in the collection. +type ItemMemberOfGraphDirectoryRoleCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters get the number of the resource +type ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters +} +// NewItemMemberOfGraphDirectoryRoleCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemMemberOfGraphDirectoryRoleCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfGraphDirectoryRoleCountRequestBuilder) { + m := &ItemMemberOfGraphDirectoryRoleCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/memberOf/graph.directoryRole/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewItemMemberOfGraphDirectoryRoleCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemMemberOfGraphDirectoryRoleCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfGraphDirectoryRoleCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemMemberOfGraphDirectoryRoleCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *ItemMemberOfGraphDirectoryRoleCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*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 *ItemMemberOfGraphDirectoryRoleCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "text/plain") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/serviceprincipals/item_member_of_graph_directory_role_request_builder.go b/serviceprincipals/item_member_of_graph_directory_role_request_builder.go new file mode 100644 index 00000000000..8ad7addbc2d --- /dev/null +++ b/serviceprincipals/item_member_of_graph_directory_role_request_builder.go @@ -0,0 +1,93 @@ +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" +) + +// ItemMemberOfGraphDirectoryRoleRequestBuilder casts the previous resource to directoryRole. +type ItemMemberOfGraphDirectoryRoleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +type ItemMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters 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"` +} +// ItemMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters +} +// NewItemMemberOfGraphDirectoryRoleRequestBuilderInternal instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemMemberOfGraphDirectoryRoleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfGraphDirectoryRoleRequestBuilder) { + m := &ItemMemberOfGraphDirectoryRoleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/memberOf/graph.directoryRole{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemMemberOfGraphDirectoryRoleRequestBuilder instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemMemberOfGraphDirectoryRoleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfGraphDirectoryRoleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemMemberOfGraphDirectoryRoleRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) Count()(*ItemMemberOfGraphDirectoryRoleCountRequestBuilder) { + return NewItemMemberOfGraphDirectoryRoleCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable, 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.CreateDirectoryRoleCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable), nil +} +// ToGetRequestInformation get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/serviceprincipals/item_member_of_item_graph_directory_role_request_builder.go b/serviceprincipals/item_member_of_item_graph_directory_role_request_builder.go new file mode 100644 index 00000000000..046719b857a --- /dev/null +++ b/serviceprincipals/item_member_of_item_graph_directory_role_request_builder.go @@ -0,0 +1,77 @@ +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" +) + +// ItemMemberOfItemGraphDirectoryRoleRequestBuilder casts the previous resource to directoryRole. +type ItemMemberOfItemGraphDirectoryRoleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +type ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters +} +// NewItemMemberOfItemGraphDirectoryRoleRequestBuilderInternal instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemMemberOfItemGraphDirectoryRoleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfItemGraphDirectoryRoleRequestBuilder) { + m := &ItemMemberOfItemGraphDirectoryRoleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/memberOf/{directoryObject%2Did}/graph.directoryRole{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemMemberOfItemGraphDirectoryRoleRequestBuilder instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemMemberOfItemGraphDirectoryRoleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfItemGraphDirectoryRoleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemMemberOfItemGraphDirectoryRoleRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +func (m *ItemMemberOfItemGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable, 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.CreateDirectoryRoleFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable), nil +} +// ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +func (m *ItemMemberOfItemGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/serviceprincipals/item_member_of_request_builder.go b/serviceprincipals/item_member_of_request_builder.go index d35fea47e1e..b8447d8480b 100644 --- a/serviceprincipals/item_member_of_request_builder.go +++ b/serviceprincipals/item_member_of_request_builder.go @@ -93,6 +93,10 @@ func (m *ItemMemberOfRequestBuilder) Get(ctx context.Context, requestConfigurati func (m *ItemMemberOfRequestBuilder) GraphAdministrativeUnit()(*ItemMemberOfGraphAdministrativeUnitRequestBuilder) { return NewItemMemberOfGraphAdministrativeUnitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GraphDirectoryRole casts the previous resource to directoryRole. +func (m *ItemMemberOfRequestBuilder) GraphDirectoryRole()(*ItemMemberOfGraphDirectoryRoleRequestBuilder) { + return NewItemMemberOfGraphDirectoryRoleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // GraphGroup casts the previous resource to group. func (m *ItemMemberOfRequestBuilder) GraphGroup()(*ItemMemberOfGraphGroupRequestBuilder) { return NewItemMemberOfGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/serviceprincipals/item_synchronization_jobs_item_bulk_upload_request_builder.go b/serviceprincipals/item_synchronization_jobs_item_bulk_upload_request_builder.go new file mode 100644 index 00000000000..7e13d3987f3 --- /dev/null +++ b/serviceprincipals/item_synchronization_jobs_item_bulk_upload_request_builder.go @@ -0,0 +1,165 @@ +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" +) + +// ItemSynchronizationJobsItemBulkUploadRequestBuilder provides operations to manage the bulkUpload property of the microsoft.graph.synchronizationJob entity. +type ItemSynchronizationJobsItemBulkUploadRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSynchronizationJobsItemBulkUploadRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSynchronizationJobsItemBulkUploadRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSynchronizationJobsItemBulkUploadRequestBuilderGetQueryParameters the bulk upload operation for the job. +type ItemSynchronizationJobsItemBulkUploadRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemSynchronizationJobsItemBulkUploadRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSynchronizationJobsItemBulkUploadRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemSynchronizationJobsItemBulkUploadRequestBuilderGetQueryParameters +} +// ItemSynchronizationJobsItemBulkUploadRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSynchronizationJobsItemBulkUploadRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSynchronizationJobsItemBulkUploadRequestBuilderInternal instantiates a new BulkUploadRequestBuilder and sets the default values. +func NewItemSynchronizationJobsItemBulkUploadRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSynchronizationJobsItemBulkUploadRequestBuilder) { + m := &ItemSynchronizationJobsItemBulkUploadRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/bulkUpload{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemSynchronizationJobsItemBulkUploadRequestBuilder instantiates a new BulkUploadRequestBuilder and sets the default values. +func NewItemSynchronizationJobsItemBulkUploadRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSynchronizationJobsItemBulkUploadRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSynchronizationJobsItemBulkUploadRequestBuilderInternal(urlParams, requestAdapter) +} +// Content provides operations to manage the media for the servicePrincipal entity. +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) Content()(*ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) { + return NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Delete delete navigation property bulkUpload for servicePrincipals +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderDeleteRequestConfiguration)(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 the bulk upload operation for the job. +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable, 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.CreateBulkUploadFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable), nil +} +// Patch update the navigation property bulkUpload in servicePrincipals +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable, 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.CreateBulkUploadFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable), nil +} +// ToDeleteRequestInformation delete navigation property bulkUpload for servicePrincipals +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToGetRequestInformation the bulk upload operation for the job. +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property bulkUpload in servicePrincipals +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkUploadable, requestConfiguration *ItemSynchronizationJobsItemBulkUploadRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH + requestInfo.Headers.Add("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/serviceprincipals/item_synchronization_jobs_item_bulk_upload_value_content_request_builder.go b/serviceprincipals/item_synchronization_jobs_item_bulk_upload_value_content_request_builder.go new file mode 100644 index 00000000000..724417e5a26 --- /dev/null +++ b/serviceprincipals/item_synchronization_jobs_item_bulk_upload_value_content_request_builder.go @@ -0,0 +1,106 @@ +package serviceprincipals + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder provides operations to manage the media for the servicePrincipal entity. +type ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderPutRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderInternal instantiates a new ContentRequestBuilder and sets the default values. +func NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) { + m := &ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/synchronization/jobs/{synchronizationJob%2Did}/bulkUpload/$value", pathParameters), + } + return m +} +// NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder instantiates a new ContentRequestBuilder and sets the default values. +func NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get media content for the navigation property bulkUpload from servicePrincipals +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderGetRequestConfiguration)([]byte, 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, "[]byte", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.([]byte), nil +} +// Put update media content for the navigation property bulkUpload in servicePrincipals +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { + requestInfo, err := m.ToPutRequestInformation(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 +} +// ToGetRequestInformation get media content for the navigation property bulkUpload from servicePrincipals +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} +// ToPutRequestInformation update media content for the navigation property bulkUpload in servicePrincipals +// Deprecated: as of 2022-10/PrivatePreview:HRInboundPushApi on 2022-10-04 and will be removed 2023-06-14 +func (m *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemSynchronizationJobsItemBulkUploadValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT + requestInfo.SetStreamContent(body) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/serviceprincipals/item_synchronization_jobs_item_schema_directories_item_discover_request_builder.go b/serviceprincipals/item_synchronization_jobs_item_schema_directories_item_discover_request_builder.go index b8ecbc7f285..62a18d3ccfc 100644 --- a/serviceprincipals/item_synchronization_jobs_item_schema_directories_item_discover_request_builder.go +++ b/serviceprincipals/item_synchronization_jobs_item_schema_directories_item_discover_request_builder.go @@ -34,7 +34,7 @@ func NewItemSynchronizationJobsItemSchemaDirectoriesItemDiscoverRequestBuilder(r // Post discover the latest schema definition for provisioning to an application. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/directorydefinition-discover?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-directorydefinition-discover?view=graph-rest-1.0 func (m *ItemSynchronizationJobsItemSchemaDirectoriesItemDiscoverRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemSynchronizationJobsItemSchemaDirectoriesItemDiscoverRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryDefinitionable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/serviceprincipals/item_synchronization_jobs_request_builder.go b/serviceprincipals/item_synchronization_jobs_request_builder.go index 849af592a52..db6ab7ed055 100644 --- a/serviceprincipals/item_synchronization_jobs_request_builder.go +++ b/serviceprincipals/item_synchronization_jobs_request_builder.go @@ -77,7 +77,7 @@ func (m *ItemSynchronizationJobsRequestBuilder) Count()(*ItemSynchronizationJobs // Get list existing jobs for a given application instance (service principal). // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronizationjob-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronization-list-jobs?view=graph-rest-1.0 func (m *ItemSynchronizationJobsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSynchronizationJobsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SynchronizationJobCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,7 +99,7 @@ func (m *ItemSynchronizationJobsRequestBuilder) Get(ctx context.Context, request // Post create new synchronization job with a default synchronization schema. The job is created in a disabled state. Call Start job to start synchronization. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronizationjob-post?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronization-post-jobs?view=graph-rest-1.0 func (m *ItemSynchronizationJobsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SynchronizationJobable, requestConfiguration *ItemSynchronizationJobsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SynchronizationJobable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/serviceprincipals/item_synchronization_jobs_synchronization_job_item_request_builder.go b/serviceprincipals/item_synchronization_jobs_synchronization_job_item_request_builder.go index ef23936222d..93f56ee1bbf 100644 --- a/serviceprincipals/item_synchronization_jobs_synchronization_job_item_request_builder.go +++ b/serviceprincipals/item_synchronization_jobs_synchronization_job_item_request_builder.go @@ -41,6 +41,10 @@ type ItemSynchronizationJobsSynchronizationJobItemRequestBuilderPatchRequestConf // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BulkUpload provides operations to manage the bulkUpload property of the microsoft.graph.synchronizationJob entity. +func (m *ItemSynchronizationJobsSynchronizationJobItemRequestBuilder) BulkUpload()(*ItemSynchronizationJobsItemBulkUploadRequestBuilder) { + return NewItemSynchronizationJobsItemBulkUploadRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewItemSynchronizationJobsSynchronizationJobItemRequestBuilderInternal instantiates a new SynchronizationJobItemRequestBuilder and sets the default values. func NewItemSynchronizationJobsSynchronizationJobItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSynchronizationJobsSynchronizationJobItemRequestBuilder) { m := &ItemSynchronizationJobsSynchronizationJobItemRequestBuilder{ diff --git a/serviceprincipals/item_synchronization_templates_item_schema_directories_item_discover_request_builder.go b/serviceprincipals/item_synchronization_templates_item_schema_directories_item_discover_request_builder.go index 91b3a785f90..cb118442eed 100644 --- a/serviceprincipals/item_synchronization_templates_item_schema_directories_item_discover_request_builder.go +++ b/serviceprincipals/item_synchronization_templates_item_schema_directories_item_discover_request_builder.go @@ -34,7 +34,7 @@ func NewItemSynchronizationTemplatesItemSchemaDirectoriesItemDiscoverRequestBuil // Post discover the latest schema definition for provisioning to an application. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/directorydefinition-discover?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-directorydefinition-discover?view=graph-rest-1.0 func (m *ItemSynchronizationTemplatesItemSchemaDirectoriesItemDiscoverRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemSynchronizationTemplatesItemSchemaDirectoriesItemDiscoverRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryDefinitionable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/serviceprincipals/item_synchronization_templates_request_builder.go b/serviceprincipals/item_synchronization_templates_request_builder.go index 58af79c82a0..96ea69f40b5 100644 --- a/serviceprincipals/item_synchronization_templates_request_builder.go +++ b/serviceprincipals/item_synchronization_templates_request_builder.go @@ -77,7 +77,7 @@ func (m *ItemSynchronizationTemplatesRequestBuilder) Count()(*ItemSynchronizatio // Get list the synchronization templates associated with a given application or service principal. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronizationtemplate-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/synchronization-synchronization-list-templates?view=graph-rest-1.0 func (m *ItemSynchronizationTemplatesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSynchronizationTemplatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SynchronizationTemplateCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/serviceprincipals/item_transitive_member_of_directory_object_item_request_builder.go b/serviceprincipals/item_transitive_member_of_directory_object_item_request_builder.go index 839c822ba67..c48c2777266 100644 --- a/serviceprincipals/item_transitive_member_of_directory_object_item_request_builder.go +++ b/serviceprincipals/item_transitive_member_of_directory_object_item_request_builder.go @@ -63,6 +63,10 @@ func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) Get(ctx contex func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) GraphAdministrativeUnit()(*ItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) { return NewItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GraphDirectoryRole casts the previous resource to directoryRole. +func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) GraphDirectoryRole()(*ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) { + return NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // GraphGroup casts the previous resource to group. func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) GraphGroup()(*ItemTransitiveMemberOfItemGraphGroupRequestBuilder) { return NewItemTransitiveMemberOfItemGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/serviceprincipals/item_transitive_member_of_graph_directory_role_count_request_builder.go b/serviceprincipals/item_transitive_member_of_graph_directory_role_count_request_builder.go new file mode 100644 index 00000000000..766edf538fd --- /dev/null +++ b/serviceprincipals/item_transitive_member_of_graph_directory_role_count_request_builder.go @@ -0,0 +1,76 @@ +package serviceprincipals + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder provides operations to count the resources in the collection. +type ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters +} +// NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) { + m := &ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/transitiveMemberOf/graph.directoryRole/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*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 *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "text/plain") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/serviceprincipals/item_transitive_member_of_graph_directory_role_request_builder.go b/serviceprincipals/item_transitive_member_of_graph_directory_role_request_builder.go new file mode 100644 index 00000000000..2df89000428 --- /dev/null +++ b/serviceprincipals/item_transitive_member_of_graph_directory_role_request_builder.go @@ -0,0 +1,93 @@ +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" +) + +// ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder casts the previous resource to directoryRole. +type ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +type ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters 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"` +} +// ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters +} +// NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderInternal instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) { + m := &ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/transitiveMemberOf/graph.directoryRole{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) Count()(*ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) { + return NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable, 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.CreateDirectoryRoleCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable), nil +} +// ToGetRequestInformation get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/serviceprincipals/item_transitive_member_of_item_graph_directory_role_request_builder.go b/serviceprincipals/item_transitive_member_of_item_graph_directory_role_request_builder.go new file mode 100644 index 00000000000..b2415a40125 --- /dev/null +++ b/serviceprincipals/item_transitive_member_of_item_graph_directory_role_request_builder.go @@ -0,0 +1,77 @@ +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" +) + +// ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder casts the previous resource to directoryRole. +type ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +type ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters +} +// NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderInternal instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) { + m := &ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.directoryRole{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +func (m *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable, 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.CreateDirectoryRoleFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable), nil +} +// ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +func (m *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/serviceprincipals/item_transitive_member_of_request_builder.go b/serviceprincipals/item_transitive_member_of_request_builder.go index 85529afec99..0838b318246 100644 --- a/serviceprincipals/item_transitive_member_of_request_builder.go +++ b/serviceprincipals/item_transitive_member_of_request_builder.go @@ -93,6 +93,10 @@ func (m *ItemTransitiveMemberOfRequestBuilder) Get(ctx context.Context, requestC func (m *ItemTransitiveMemberOfRequestBuilder) GraphAdministrativeUnit()(*ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) { return NewItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GraphDirectoryRole casts the previous resource to directoryRole. +func (m *ItemTransitiveMemberOfRequestBuilder) GraphDirectoryRole()(*ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) { + return NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // GraphGroup casts the previous resource to group. func (m *ItemTransitiveMemberOfRequestBuilder) GraphGroup()(*ItemTransitiveMemberOfGraphGroupRequestBuilder) { return NewItemTransitiveMemberOfGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/sites/item_pages_item_canvas_layout_horizontal_sections_horizontal_section_item_request_builder.go b/sites/item_pages_item_canvas_layout_horizontal_sections_horizontal_section_item_request_builder.go index 1b863c393fa..73be9c8d7d2 100644 --- a/sites/item_pages_item_canvas_layout_horizontal_sections_horizontal_section_item_request_builder.go +++ b/sites/item_pages_item_canvas_layout_horizontal_sections_horizontal_section_item_request_builder.go @@ -96,7 +96,10 @@ func (m *ItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionItemRequest } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable), nil } -// Patch update the navigation property horizontalSections in sites +// Patch update the properties of a horizontalSection object. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/horizontalsection-update?view=graph-rest-1.0 func (m *ItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, requestConfiguration *ItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -143,7 +146,7 @@ func (m *ItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionItemRequest } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property horizontalSections in sites +// ToPatchRequestInformation update the properties of a horizontalSection object. func (m *ItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, requestConfiguration *ItemPagesItemCanvasLayoutHorizontalSectionsHorizontalSectionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/sites/item_pages_item_canvas_layout_horizontal_sections_request_builder.go b/sites/item_pages_item_canvas_layout_horizontal_sections_request_builder.go index b403d69f7a3..1e50a2f9f6c 100644 --- a/sites/item_pages_item_canvas_layout_horizontal_sections_request_builder.go +++ b/sites/item_pages_item_canvas_layout_horizontal_sections_request_builder.go @@ -96,7 +96,10 @@ func (m *ItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilder) Get(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionCollectionResponseable), nil } -// Post create new navigation property to horizontalSections for sites +// Post create a horizontalSection object in a given sitePage. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/sitepage-post-horizontalsection?view=graph-rest-1.0 func (m *ItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, requestConfiguration *ItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -131,7 +134,7 @@ func (m *ItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilder) ToGetRequest } return requestInfo, nil } -// ToPostRequestInformation create new navigation property to horizontalSections for sites +// ToPostRequestInformation create a horizontalSection object in a given sitePage. func (m *ItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.HorizontalSectionable, requestConfiguration *ItemPagesItemCanvasLayoutHorizontalSectionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/sites/item_pages_item_canvas_layout_vertical_section_request_builder.go b/sites/item_pages_item_canvas_layout_vertical_section_request_builder.go index 60c37d2c4af..deaa3e34bc1 100644 --- a/sites/item_pages_item_canvas_layout_vertical_section_request_builder.go +++ b/sites/item_pages_item_canvas_layout_vertical_section_request_builder.go @@ -92,7 +92,10 @@ func (m *ItemPagesItemCanvasLayoutVerticalSectionRequestBuilder) Get(ctx context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VerticalSectionable), nil } -// Patch update the navigation property verticalSection in sites +// Patch create a verticalSection object in a given sitePage. A sitePage can only have one vertical section. If a vertical section already exists, this method returns a `409 Conflict` response code. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/sitepage-post-verticalsection?view=graph-rest-1.0 func (m *ItemPagesItemCanvasLayoutVerticalSectionRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VerticalSectionable, requestConfiguration *ItemPagesItemCanvasLayoutVerticalSectionRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VerticalSectionable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -139,7 +142,7 @@ func (m *ItemPagesItemCanvasLayoutVerticalSectionRequestBuilder) ToGetRequestInf } return requestInfo, nil } -// ToPatchRequestInformation update the navigation property verticalSection in sites +// ToPatchRequestInformation create a verticalSection object in a given sitePage. A sitePage can only have one vertical section. If a vertical section already exists, this method returns a `409 Conflict` response code. func (m *ItemPagesItemCanvasLayoutVerticalSectionRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VerticalSectionable, requestConfiguration *ItemPagesItemCanvasLayoutVerticalSectionRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/sites/sites_request_builder.go b/sites/sites_request_builder.go index 85f28de102b..0e924ce862c 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://docs.microsoft.com/graph/api/site-list?view=graph-rest-1.0 +// [Find more info here]: https://docs.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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/solutions/virtual_events_events_item_sessions_item_registration_request_builder.go b/solutions/virtual_events_events_item_sessions_item_registration_request_builder.go index 56fa197ab56..90e26814cf5 100644 --- a/solutions/virtual_events_events_item_sessions_item_registration_request_builder.go +++ b/solutions/virtual_events_events_item_sessions_item_registration_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsEventsItemSessionsItemRegistrationRequestBuilderDeleteRequestC // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsEventsItemSessionsItemRegistrationRequestBuilderGetQueryParameters get the externalMeetingRegistration details associated with an onlineMeeting. +// VirtualEventsEventsItemSessionsItemRegistrationRequestBuilderGetQueryParameters get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. type VirtualEventsEventsItemSessionsItemRegistrationRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -77,10 +77,10 @@ func (m *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilder) Delete(c } return nil } -// Get get the externalMeetingRegistration details associated with an onlineMeeting. +// Get get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/externalmeetingregistration-get?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/meetingregistration-get?view=graph-rest-1.0 func (m *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -137,7 +137,7 @@ func (m *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilder) ToDelete } return requestInfo, nil } -// ToGetRequestInformation get the externalMeetingRegistration details associated with an onlineMeeting. +// ToGetRequestInformation get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. func (m *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemSessionsItemRegistrationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/solutions/virtual_events_webinars_item_sessions_item_registration_request_builder.go b/solutions/virtual_events_webinars_item_sessions_item_registration_request_builder.go index 95b9d73faa1..0b3683f9b39 100644 --- a/solutions/virtual_events_webinars_item_sessions_item_registration_request_builder.go +++ b/solutions/virtual_events_webinars_item_sessions_item_registration_request_builder.go @@ -18,7 +18,7 @@ type VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilderDeleteReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilderGetQueryParameters get the externalMeetingRegistration details associated with an onlineMeeting. +// VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilderGetQueryParameters get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. type VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -77,10 +77,10 @@ func (m *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilder) Delete } return nil } -// Get get the externalMeetingRegistration details associated with an onlineMeeting. +// Get get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/externalmeetingregistration-get?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/meetingregistration-get?view=graph-rest-1.0 func (m *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -137,7 +137,7 @@ func (m *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilder) ToDele } return requestInfo, nil } -// ToGetRequestInformation get the externalMeetingRegistration details associated with an onlineMeeting. +// ToGetRequestInformation get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. func (m *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemSessionsItemRegistrationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teamwork/team_templates_request_builder.go b/teamwork/team_templates_request_builder.go index 86dbd897958..ccd410db0fe 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 list the teamTemplateDefinition objects associated with a teamTemplate. +// TeamTemplatesRequestBuilderGetQueryParameters get the list of teamTemplate objects that are available for a tenant. 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 list the teamTemplateDefinition objects associated with a teamTemplate. +// Get get the list of teamTemplate objects that are available for a tenant. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/teamtemplate-list-definitions?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/teamwork-list-teamtemplates?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 list the teamTemplateDefinition objects associated with a teamTemplate. +// ToGetRequestInformation get the list of teamTemplate objects that are available for a tenant. func (m *TeamTemplatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 2f5862cf751..3f6c3d01d21 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInfo } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 f99397aca2a..6e3cf31401e 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 9353e33d7f4..9922c723128 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 2073e9d1f2d..891552c0305 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToG } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 a7b1e90b754..212a013410f 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_events_item_attachments_request_builder.go b/users/item_calendar_events_item_attachments_request_builder.go index a2db004af98..9bf2c584043 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToGetRequestInformatio } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 54650b67ac8..d603e9c2e66 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 40eafe75550..39f6c3712fd 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 a5619937656..d69187427cb 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequ } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 98ec19a95b6..fbb13cb59e0 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 8d030c159b4..020490e1ba9 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBu } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 af09201a897..58ccab3e81e 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 34a9c05efe9..3f9a85c811b 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 88bf9742a27..ab349800bc4 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 55d12b4883d..cbb41c0ded4 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 a9cb3fad725..26702597eb5 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 de8bddc1465..c70490c4552 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 064a9bcf011..7015deabc1e 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 1b0effb5c9b..362e5c1fb2b 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRe } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 e61ddc758bf..36e9bc9596b 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_calendar_view_item_attachments_request_builder.go b/users/item_calendar_view_item_attachments_request_builder.go index 794cbabdce2..860eef337c1 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInformation( } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 844a4cabe26..91ecaba539d 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 583b3cf447c..18d25b6b1fd 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 34f5b884090..360352af93e 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToGetReques } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 aff36e0af7e..732f1374c66 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 478e8fe8779..2567322ad44 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToGetReques } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 2a2b77f11f5..79cf848476d 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsReq } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 0400c697eba..a1e41db9a15 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 44ffda01943..febdcb18e6c 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 95a45f71c19..75521893853 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 9a2e1b69a72..f91f48ec12f 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToGetRequestInfor } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 d0f93a2aa4a..430770b89ff 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBu } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 3107aa32fcf..c5738c6a339 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 e48b0851886..476edd42e8a 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGe } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 184a8045d2b..7adb39cc148 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_events_item_attachments_request_builder.go b/users/item_events_item_attachments_request_builder.go index 2ca322e0502..cf8218a276d 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx co } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 f495585aa6c..8d7ec649134 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetR } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 71444938c8a..d3012ae9824 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 cf036f00558..77284fd7f28 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInfor } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 a379db773f8..045abbcd10c 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://docs.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 +// [Find more info here]: https://docs.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 { @@ -136,7 +136,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu } 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.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_request_builder.go index cb001d16adb..c19d6dd817a 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_request_builder.go @@ -31,7 +31,10 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder( urlParams["request-raw-url"] = rawUrl return NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action markAsJunk +// Post mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the **Junk Email** folder, when **moveToJunk** is `true`. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/message-markasjunk?view=graph-rest-1.0 func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder) Post(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -50,7 +53,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } -// ToPostRequestInformation invoke action markAsJunk +// ToPostRequestInformation mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the **Junk Email** folder, when **moveToJunk** is `true`. func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_request_builder.go index e678a6f9f5c..19f20e2af3c 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_request_builder.go @@ -31,7 +31,10 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuild urlParams["request-raw-url"] = rawUrl return NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action markAsNotJunk +// Post mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the **Inbox** folder, when **moveToInbox** is `true`. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/message-markasnotjunk?view=graph-rest-1.0 func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) Post(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -50,7 +53,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } -// ToPostRequestInformation invoke action markAsNotJunk +// ToPostRequestInformation mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the **Inbox** folder, when **moveToInbox** is `true`. func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate 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 866e112d427..569824b2046 100644 --- a/users/item_mail_folders_item_child_folders_request_builder.go +++ b/users/item_mail_folders_item_child_folders_request_builder.go @@ -98,10 +98,10 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderCollectionResponseable), nil } -// Post create a new mailSearchFolder in the specified user's mailbox. +// 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. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/mailsearchfolder-post?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/mailfolder-post-childfolders?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 { @@ -136,7 +136,7 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToGetRequestInformation( } return requestInfo, nil } -// ToPostRequestInformation create a new mailSearchFolder in the specified user's mailbox. +// 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. func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersItemChildFoldersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_item_messages_item_mark_as_junk_request_builder.go b/users/item_mail_folders_item_messages_item_mark_as_junk_request_builder.go index 38d06ea7ec9..901c5ccd90b 100644 --- a/users/item_mail_folders_item_messages_item_mark_as_junk_request_builder.go +++ b/users/item_mail_folders_item_messages_item_mark_as_junk_request_builder.go @@ -31,7 +31,10 @@ func NewItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder(rawUrl string, r urlParams["request-raw-url"] = rawUrl return NewItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action markAsJunk +// Post mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the **Junk Email** folder, when **moveToJunk** is `true`. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/message-markasjunk?view=graph-rest-1.0 func (m *ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder) Post(ctx context.Context, body ItemMailFoldersItemMessagesItemMarkAsJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -50,7 +53,7 @@ func (m *ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder) Post(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } -// ToPostRequestInformation invoke action markAsJunk +// ToPostRequestInformation mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the **Junk Email** folder, when **moveToJunk** is `true`. func (m *ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemMarkAsJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_item_messages_item_mark_as_not_junk_request_builder.go b/users/item_mail_folders_item_messages_item_mark_as_not_junk_request_builder.go index d1ec5d6bd35..1eeaaeac6b0 100644 --- a/users/item_mail_folders_item_messages_item_mark_as_not_junk_request_builder.go +++ b/users/item_mail_folders_item_messages_item_mark_as_not_junk_request_builder.go @@ -31,7 +31,10 @@ func NewItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder(rawUrl string urlParams["request-raw-url"] = rawUrl return NewItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action markAsNotJunk +// Post mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the **Inbox** folder, when **moveToInbox** is `true`. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/message-markasnotjunk?view=graph-rest-1.0 func (m *ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) Post(ctx context.Context, body ItemMailFoldersItemMessagesItemMarkAsNotJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -50,7 +53,7 @@ func (m *ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) Post(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } -// ToPostRequestInformation invoke action markAsNotJunk +// ToPostRequestInformation mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the **Inbox** folder, when **moveToInbox** is `true`. func (m *ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemMarkAsNotJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_mail_folder_item_request_builder.go b/users/item_mail_folders_mail_folder_item_request_builder.go index 9734c0c49b0..fcfc62eca03 100644 --- a/users/item_mail_folders_mail_folder_item_request_builder.go +++ b/users/item_mail_folders_mail_folder_item_request_builder.go @@ -117,10 +117,10 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) Messages()(*ItemMailFolder func (m *ItemMailFoldersMailFolderItemRequestBuilder) Move()(*ItemMailFoldersItemMoveRequestBuilder) { return NewItemMailFoldersItemMoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of mailFolder object. +// Patch update the writable properties of a mailSearchFolder object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/mailfolder-update?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/mailsearchfolder-update?view=graph-rest-1.0 func (m *ItemMailFoldersMailFolderItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersMailFolderItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -167,7 +167,7 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) ToGetRequestInformation(ct } return requestInfo, nil } -// ToPatchRequestInformation update the properties of mailFolder object. +// ToPatchRequestInformation update the writable properties of a mailSearchFolder object. func (m *ItemMailFoldersMailFolderItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersMailFolderItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_member_of_directory_object_item_request_builder.go b/users/item_member_of_directory_object_item_request_builder.go index 27ea3cbb7ed..532be345ec0 100644 --- a/users/item_member_of_directory_object_item_request_builder.go +++ b/users/item_member_of_directory_object_item_request_builder.go @@ -63,6 +63,10 @@ func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) Get(ctx context.Context, func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) GraphAdministrativeUnit()(*ItemMemberOfItemGraphAdministrativeUnitRequestBuilder) { return NewItemMemberOfItemGraphAdministrativeUnitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GraphDirectoryRole casts the previous resource to directoryRole. +func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) GraphDirectoryRole()(*ItemMemberOfItemGraphDirectoryRoleRequestBuilder) { + return NewItemMemberOfItemGraphDirectoryRoleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // GraphGroup casts the previous resource to group. func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) GraphGroup()(*ItemMemberOfItemGraphGroupRequestBuilder) { return NewItemMemberOfItemGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/users/item_member_of_graph_directory_role_count_request_builder.go b/users/item_member_of_graph_directory_role_count_request_builder.go new file mode 100644 index 00000000000..7480fb5ceaf --- /dev/null +++ b/users/item_member_of_graph_directory_role_count_request_builder.go @@ -0,0 +1,76 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemMemberOfGraphDirectoryRoleCountRequestBuilder provides operations to count the resources in the collection. +type ItemMemberOfGraphDirectoryRoleCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters get the number of the resource +type ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters +} +// NewItemMemberOfGraphDirectoryRoleCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemMemberOfGraphDirectoryRoleCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfGraphDirectoryRoleCountRequestBuilder) { + m := &ItemMemberOfGraphDirectoryRoleCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/memberOf/graph.directoryRole/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewItemMemberOfGraphDirectoryRoleCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemMemberOfGraphDirectoryRoleCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfGraphDirectoryRoleCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemMemberOfGraphDirectoryRoleCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *ItemMemberOfGraphDirectoryRoleCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*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 *ItemMemberOfGraphDirectoryRoleCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "text/plain") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/users/item_member_of_graph_directory_role_request_builder.go b/users/item_member_of_graph_directory_role_request_builder.go new file mode 100644 index 00000000000..ad8974100d8 --- /dev/null +++ b/users/item_member_of_graph_directory_role_request_builder.go @@ -0,0 +1,93 @@ +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" +) + +// ItemMemberOfGraphDirectoryRoleRequestBuilder casts the previous resource to directoryRole. +type ItemMemberOfGraphDirectoryRoleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +type ItemMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters 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"` +} +// ItemMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters +} +// NewItemMemberOfGraphDirectoryRoleRequestBuilderInternal instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemMemberOfGraphDirectoryRoleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfGraphDirectoryRoleRequestBuilder) { + m := &ItemMemberOfGraphDirectoryRoleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/memberOf/graph.directoryRole{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemMemberOfGraphDirectoryRoleRequestBuilder instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemMemberOfGraphDirectoryRoleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfGraphDirectoryRoleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemMemberOfGraphDirectoryRoleRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) Count()(*ItemMemberOfGraphDirectoryRoleCountRequestBuilder) { + return NewItemMemberOfGraphDirectoryRoleCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable, 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.CreateDirectoryRoleCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable), nil +} +// ToGetRequestInformation get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/users/item_member_of_item_graph_directory_role_request_builder.go b/users/item_member_of_item_graph_directory_role_request_builder.go new file mode 100644 index 00000000000..2fd7ac67936 --- /dev/null +++ b/users/item_member_of_item_graph_directory_role_request_builder.go @@ -0,0 +1,77 @@ +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" +) + +// ItemMemberOfItemGraphDirectoryRoleRequestBuilder casts the previous resource to directoryRole. +type ItemMemberOfItemGraphDirectoryRoleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +type ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters +} +// NewItemMemberOfItemGraphDirectoryRoleRequestBuilderInternal instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemMemberOfItemGraphDirectoryRoleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfItemGraphDirectoryRoleRequestBuilder) { + m := &ItemMemberOfItemGraphDirectoryRoleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/memberOf/{directoryObject%2Did}/graph.directoryRole{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemMemberOfItemGraphDirectoryRoleRequestBuilder instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemMemberOfItemGraphDirectoryRoleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMemberOfItemGraphDirectoryRoleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemMemberOfItemGraphDirectoryRoleRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +func (m *ItemMemberOfItemGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable, 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.CreateDirectoryRoleFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable), nil +} +// ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +func (m *ItemMemberOfItemGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/users/item_member_of_request_builder.go b/users/item_member_of_request_builder.go index 80d7dc51093..c080c096095 100644 --- a/users/item_member_of_request_builder.go +++ b/users/item_member_of_request_builder.go @@ -93,6 +93,10 @@ func (m *ItemMemberOfRequestBuilder) Get(ctx context.Context, requestConfigurati func (m *ItemMemberOfRequestBuilder) GraphAdministrativeUnit()(*ItemMemberOfGraphAdministrativeUnitRequestBuilder) { return NewItemMemberOfGraphAdministrativeUnitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GraphDirectoryRole casts the previous resource to directoryRole. +func (m *ItemMemberOfRequestBuilder) GraphDirectoryRole()(*ItemMemberOfGraphDirectoryRoleRequestBuilder) { + return NewItemMemberOfGraphDirectoryRoleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // GraphGroup casts the previous resource to group. func (m *ItemMemberOfRequestBuilder) GraphGroup()(*ItemMemberOfGraphGroupRequestBuilder) { return NewItemMemberOfGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/users/item_messages_item_mark_as_junk_request_builder.go b/users/item_messages_item_mark_as_junk_request_builder.go index 17d1a657948..c860e447d9c 100644 --- a/users/item_messages_item_mark_as_junk_request_builder.go +++ b/users/item_messages_item_mark_as_junk_request_builder.go @@ -31,7 +31,10 @@ func NewItemMessagesItemMarkAsJunkRequestBuilder(rawUrl string, requestAdapter i urlParams["request-raw-url"] = rawUrl return NewItemMessagesItemMarkAsJunkRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action markAsJunk +// Post mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the **Junk Email** folder, when **moveToJunk** is `true`. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/message-markasjunk?view=graph-rest-1.0 func (m *ItemMessagesItemMarkAsJunkRequestBuilder) Post(ctx context.Context, body ItemMessagesItemMarkAsJunkPostRequestBodyable, requestConfiguration *ItemMessagesItemMarkAsJunkRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -50,7 +53,7 @@ func (m *ItemMessagesItemMarkAsJunkRequestBuilder) Post(ctx context.Context, bod } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } -// ToPostRequestInformation invoke action markAsJunk +// ToPostRequestInformation mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the **Junk Email** folder, when **moveToJunk** is `true`. func (m *ItemMessagesItemMarkAsJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemMarkAsJunkPostRequestBodyable, requestConfiguration *ItemMessagesItemMarkAsJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_messages_item_mark_as_not_junk_request_builder.go b/users/item_messages_item_mark_as_not_junk_request_builder.go index 0ff9accfd49..7fefa364504 100644 --- a/users/item_messages_item_mark_as_not_junk_request_builder.go +++ b/users/item_messages_item_mark_as_not_junk_request_builder.go @@ -31,7 +31,10 @@ func NewItemMessagesItemMarkAsNotJunkRequestBuilder(rawUrl string, requestAdapte urlParams["request-raw-url"] = rawUrl return NewItemMessagesItemMarkAsNotJunkRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action markAsNotJunk +// Post mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the **Inbox** folder, when **moveToInbox** is `true`. +// [Find more info here] +// +// [Find more info here]: https://docs.microsoft.com/graph/api/message-markasnotjunk?view=graph-rest-1.0 func (m *ItemMessagesItemMarkAsNotJunkRequestBuilder) Post(ctx context.Context, body ItemMessagesItemMarkAsNotJunkPostRequestBodyable, requestConfiguration *ItemMessagesItemMarkAsNotJunkRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -50,7 +53,7 @@ func (m *ItemMessagesItemMarkAsNotJunkRequestBuilder) Post(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } -// ToPostRequestInformation invoke action markAsNotJunk +// ToPostRequestInformation mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the **Inbox** folder, when **moveToInbox** is `true`. func (m *ItemMessagesItemMarkAsNotJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemMarkAsNotJunkPostRequestBodyable, requestConfiguration *ItemMessagesItemMarkAsNotJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_messages_item_value_content_request_builder.go b/users/item_messages_item_value_content_request_builder.go index deda0ab4379..531997d8611 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://docs.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/opentypeextension-get?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 9eb1a02951b..485f7ce37ad 100644 --- a/users/item_messages_message_item_request_builder.go +++ b/users/item_messages_message_item_request_builder.go @@ -80,10 +80,10 @@ func (m *ItemMessagesMessageItemRequestBuilder) CreateReply()(*ItemMessagesItemC func (m *ItemMessagesMessageItemRequestBuilder) CreateReplyAll()(*ItemMessagesItemCreateReplyAllRequestBuilder) { return NewItemMessagesItemCreateReplyAllRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete delete a message in the specified user's mailbox, or delete a relationship of the message. For example, you can delete a specific @-mention of the specified user in the message. +// Delete delete eventMessage. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/message-delete?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/eventmessage-delete?view=graph-rest-1.0 func (m *ItemMessagesMessageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -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://docs.microsoft.com/graph/api/eventmessage-get?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/opentypeextension-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 an eventMessage object. +// Patch update the properties of a message object. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/eventmessage-update?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/message-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 { @@ -179,7 +179,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) ReplyAll()(*ItemMessagesItemRepl func (m *ItemMessagesMessageItemRequestBuilder) Send()(*ItemMessagesItemSendRequestBuilder) { return NewItemMessagesItemSendRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete a message in the specified user's mailbox, or delete a relationship of the message. For example, you can delete a specific @-mention of the specified user in the message. +// ToDeleteRequestInformation delete eventMessage. func (m *ItemMessagesMessageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -207,7 +207,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) ToGetRequestInformation(ctx cont } return requestInfo, nil } -// ToPatchRequestInformation update the properties of an eventMessage object. +// ToPatchRequestInformation update the properties of a message object. func (m *ItemMessagesMessageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_messages_request_builder.go b/users/item_messages_request_builder.go index 0d745da5182..72a5c0cd515 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://docs.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/opentypeextension-get?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 db2ccfcb902..cfcea5387ab 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 externalMeetingRegistration details associated with an onlineMeeting. +// ItemOnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. type ItemOnlineMeetingsItemRegistrationRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -77,10 +77,10 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Co } return nil } -// Get get the externalMeetingRegistration details associated with an onlineMeeting. +// Get get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. // [Find more info here] // -// [Find more info here]: https://docs.microsoft.com/graph/api/externalmeetingregistration-get?view=graph-rest-1.0 +// [Find more info here]: https://docs.microsoft.com/graph/api/meetingregistration-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 { @@ -137,7 +137,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInform } return requestInfo, nil } -// ToGetRequestInformation get the externalMeetingRegistration details associated with an onlineMeeting. +// ToGetRequestInformation get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_transitive_member_of_directory_object_item_request_builder.go b/users/item_transitive_member_of_directory_object_item_request_builder.go index a1365817a90..1487bcbb12b 100644 --- a/users/item_transitive_member_of_directory_object_item_request_builder.go +++ b/users/item_transitive_member_of_directory_object_item_request_builder.go @@ -63,6 +63,10 @@ func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) Get(ctx contex func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) GraphAdministrativeUnit()(*ItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) { return NewItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GraphDirectoryRole casts the previous resource to directoryRole. +func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) GraphDirectoryRole()(*ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) { + return NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // GraphGroup casts the previous resource to group. func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) GraphGroup()(*ItemTransitiveMemberOfItemGraphGroupRequestBuilder) { return NewItemTransitiveMemberOfItemGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) diff --git a/users/item_transitive_member_of_graph_directory_role_count_request_builder.go b/users/item_transitive_member_of_graph_directory_role_count_request_builder.go new file mode 100644 index 00000000000..6cbe80bc8df --- /dev/null +++ b/users/item_transitive_member_of_graph_directory_role_count_request_builder.go @@ -0,0 +1,76 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder provides operations to count the resources in the collection. +type ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetQueryParameters +} +// NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) { + m := &ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/transitiveMemberOf/graph.directoryRole/$count{?%24search,%24filter}", pathParameters), + } + return m +} +// NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +func (m *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*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 *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "text/plain") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/users/item_transitive_member_of_graph_directory_role_request_builder.go b/users/item_transitive_member_of_graph_directory_role_request_builder.go new file mode 100644 index 00000000000..d20f3274ab1 --- /dev/null +++ b/users/item_transitive_member_of_graph_directory_role_request_builder.go @@ -0,0 +1,93 @@ +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" +) + +// ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder casts the previous resource to directoryRole. +type ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +type ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters 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"` +} +// ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetQueryParameters +} +// NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderInternal instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) { + m := &ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/transitiveMemberOf/graph.directoryRole{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters), + } + return m +} +// NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) Count()(*ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) { + return NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable, 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.CreateDirectoryRoleCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable), nil +} +// ToGetRequestInformation get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/users/item_transitive_member_of_item_graph_directory_role_request_builder.go b/users/item_transitive_member_of_item_graph_directory_role_request_builder.go new file mode 100644 index 00000000000..a6c3a9197db --- /dev/null +++ b/users/item_transitive_member_of_item_graph_directory_role_request_builder.go @@ -0,0 +1,77 @@ +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" +) + +// ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder casts the previous resource to directoryRole. +type ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +type ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetQueryParameters +} +// NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderInternal instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) { + m := &ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.directoryRole{?%24select,%24expand}", pathParameters), + } + return m +} +// NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder instantiates a new GraphDirectoryRoleRequestBuilder and sets the default values. +func NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +func (m *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable, 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.CreateDirectoryRoleFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable), nil +} +// ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +func (m *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + return requestInfo, nil +} diff --git a/users/item_transitive_member_of_request_builder.go b/users/item_transitive_member_of_request_builder.go index 8461683981f..e295d37c55a 100644 --- a/users/item_transitive_member_of_request_builder.go +++ b/users/item_transitive_member_of_request_builder.go @@ -93,6 +93,10 @@ func (m *ItemTransitiveMemberOfRequestBuilder) Get(ctx context.Context, requestC func (m *ItemTransitiveMemberOfRequestBuilder) GraphAdministrativeUnit()(*ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) { return NewItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GraphDirectoryRole casts the previous resource to directoryRole. +func (m *ItemTransitiveMemberOfRequestBuilder) GraphDirectoryRole()(*ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) { + return NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // GraphGroup casts the previous resource to group. func (m *ItemTransitiveMemberOfRequestBuilder) GraphGroup()(*ItemTransitiveMemberOfGraphGroupRequestBuilder) { return NewItemTransitiveMemberOfGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)